https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/SAP-BTP-ABAP-environment-qa.xmlSAP Community - SAP BTP, ABAP environment2025-05-25T02:00:25.297344+00:00python-feedgenSAP BTP, ABAP environment Q&A in SAP Communityhttps://community.sap.com/t5/technology-q-a/how-do-i-make-a-field-from-a-child-entity-available-as-non-default-in-a/qaq-p/14094653How do I make a field from a child entity available as non-default in a list report?2025-05-06T17:16:37.136000+02:00MattDionhttps://community.sap.com/t5/user/viewprofilepage/user-id/7084<P>I am in the BTP ABAP Environment working on some RAP annotations. I have a RAP Object that looks like this:</P><pre class="lia-code-sample language-abap"><code>define root view entity ROOT
composition [0..*] of CHILD as _child
{
key uuid,
...
_child
}</code></pre><pre class="lia-code-sample language-abap"><code>define view entity CHILD
association to parent ROOT as_root on CHILD.rootuuid = ROOT.uuid
{
key uuid,
rootuuid,
CoolValue,
_root
}</code></pre><P>In the annotations of the ROOT, I know I can add fields from my child like so:</P><pre class="lia-code-sample language-abap"><code>annotate entity ROOT with
{
<a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1445379">@ui</a>: {
lineItem: [{ position: 10, value: '_child.CoolValue' }],
selectionField: [{ position: 10, element: '_child.CoolValue' }]
}
_child;
}</code></pre><P>These annotations work great if I want the field to be displayed by default.</P><P>My requirement is to have the field available, but not displayed. So for filter fields, I want to see the field in 'Adapt Filters', and for the list I want to view the field in the view settings' Columns list. But by default they should not be displayed.</P><P>If I remove the annotations, the field 'CoolValue' is not available at all (because you lose the reference to the field that is important in the child entity). How can I adjust this implementation to make the field available, but not shown by default?</P>2025-05-06T17:16:37.136000+02:00https://community.sap.com/t5/enterprise-resource-planning-q-a/bp-is-not-creating-with-respect-to-new-customer-creation/qaq-p/14095018BP is not creating with respect to new customer creation2025-05-07T08:40:14.946000+02:00Nick__284https://community.sap.com/t5/user/viewprofilepage/user-id/179080<P> I used the class CMD_EI_API and the method MAINTAIN_DIRECT_INPUT to pass customer data into the deep structure. It successfully updated the customer in table KNA1, but the Business Partner (BP) was not created. I checked the BP records and confirmed it wasn’t generated. Please let me know how to resolve this</P><P><!-- StartFragment --><SPAN> <SPAN class="">CALL </SPAN><SPAN class="">METHOD </SPAN>cmd_ei_api<SPAN class="">=></SPAN>maintain_direct_input<BR /> <SPAN class="">EXPORTING</SPAN><BR /> iv_collect_messages <SPAN class="">= </SPAN>gc_x<BR /> is_master_data <SPAN class="">= </SPAN>ls_customer<BR /> <SPAN class="">IMPORTING</SPAN><BR /> es_message_defective <SPAN class="">= </SPAN>ls_error<SPAN class="">.</SPAN></SPAN></P>2025-05-07T08:40:14.946000+02:00https://community.sap.com/t5/technology-q-a/how-to-call-atc-in-custom-code/qaq-p/14096448How to call ATC in custom code?2025-05-08T15:09:01.006000+02:00DRA1https://community.sap.com/t5/user/viewprofilepage/user-id/2119351<P>Can I create a custom code to call the ATC in a abap program?</P>2025-05-08T15:09:01.006000+02:00https://community.sap.com/t5/technology-q-a/accessing-association-s-data-when-calling-a-cds-via-web-api-v2-or-v4-odata/qaq-p/14097155Accessing association's data when calling a CDS via web API (V2 or V4 odata).2025-05-09T11:35:24.161000+02:00rosenpetrovhttps://community.sap.com/t5/user/viewprofilepage/user-id/840368<P>Hello, i have created a pretty simple cds view entity.<BR />I have created a service definition and a service binding to V2 API Odata.<BR />I have a problem with accessing association's data when using an API call (via transaction /IWFND/GW_CLIENT ).<BR />When i work with it in "Eclipse" i can follow the association _item and view the results supplied by it.However I have a problem when i try to access the data supplied by association _item, when executing an API call to the service via sap transaction: /IWFND/GW_CLIENT.</P><P>View definition:</P><pre class="lia-code-sample language-abap"><code>@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'test order'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
define view entity ztest_order as select from vbak
association [1..*] to vbap as _item on
$projection.Salesorder = _item.vbeln
{
key vbeln as Salesorder,
kunnr as SoldToParty,
_item
}</code></pre><P> Service definition:</P><pre class="lia-code-sample language-abap"><code>@EndUserText.label: 'x'
define service Ztest_order01_srv {
expose ztest_order;
}</code></pre><P>request with correct result:</P><pre class="lia-code-sample language-abap"><code>request:
/sap/opu/odata/sap/ZTEST_ORDER01_SRV_V2/ztest_order('2567')
result:
{
"Salesorder" : "2567",
"SoldToParty" : "1810146"
}</code></pre><P>Request with attempt for accessing association _item:</P><pre class="lia-code-sample language-abap"><code>request:
/sap/opu/odata/sap/ZTEST_ORDER01_SRV_V2/ztest_order('2567')?$expand=_item
response:
{
"error" : {
"message" : {
"lang" : "en",
"value" : "Resource not found for the segment '_item'."
},
"innererror" : {
"Error_Resolution" : {
"SAP_Transaction" : "For backend administrators: use ADT feed reader \"SAP Gateway Error Log\" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details",
"SAP_Note" : "See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)"
}
}
}
}</code></pre><P>Please share thoughts how to solve this problem.</P><P> </P><P> </P>2025-05-09T11:35:24.161000+02:00https://community.sap.com/t5/technology-q-a/cl-gui-alv-grid-final-internal-table-automatically-not-update-while-sorting/qaq-p/14099315CL_GUI_ALV_GRID Final internal table automatically not update while sorting2025-05-12T19:33:55.967000+02:00AadivaramAbbuluhttps://community.sap.com/t5/user/viewprofilepage/user-id/1706013<P>HI.<BR />having one issue need advises. <BR />did some research and search still need suggestions.<BR />First used the method set_table_for_First_Display</P><P>Report is showing the output. I am using below event. calling one standard Tcode.<BR />While calling one of the column value i am passing now everything is fine.<BR />if i sort this column in the GUI ouput column values are changing like ascending and descending <BR />now if i call the Tcode.. What ever the first time it display that values only it is passing. <BR />back side internal table not able to adjust automatically. This is giving me the problem. Any adise.</P><P>I used Refresh_Table_Display too after Sethandler evetn. But no use.</P><P>Note: While calling the Set_table_For_First_Display In changing i am passing sort and filter too but no use.J ust passing empty structures not filling anything here..</P><P>CALL METHOD GR_GRID->SET_TABLE_FOR_FIRST_DISPLAY</P><P>CREATE OBJECT GR_EVENT_HANDLER . SET HANDLER GR_EVENT_HANDLER->HANDLE_HOTSPOT_CLICK FOR GR_GRID.</P><P>CALL METHOD GR_GRID->REFRESH_TABLE_DISPLAY</P><P>Is there any possible way to solve my issue.</P>2025-05-12T19:33:55.967000+02:00https://community.sap.com/t5/technology-q-a/leveraging-edidc-table-for-rap-report-with-clean-core-approach/qaq-p/14099679Leveraging EDIDC table for RAP Report with Clean Core Approach2025-05-13T07:33:30.535000+02:00Chandraweehttps://community.sap.com/t5/user/viewprofilepage/user-id/1909255<P>Hi Team,</P><P>Requirement: Develop a RAP report for Failed IDOCs.</P><P>There is no alternate API for EDIDC.</P><P>How to achieve this Functionality with Clean Core Approach</P><P> </P><P>Thanks</P><P>Chandraween</P>2025-05-13T07:33:30.535000+02:00https://community.sap.com/t5/technology-q-a/cds-deep-level-association-expose-to-service-problem/qaq-p/14100911CDS deep level association - expose to service - problem2025-05-14T09:01:07.857000+02:00rosenpetrovhttps://community.sap.com/t5/user/viewprofilepage/user-id/840368<P>Hello i have 3 cds views and would like to expose the main view ZTEST_R1_ORD_MAIN as a service.<BR />My aim is when the service is being executed to be able to return the data related to all items (view ZTEST_R1_ORD_VBAP) related to the root view and all schedule lines (view ZTEST_R1_ORD_VBEP) related to the items.<BR />I.e. the structure is 3 levels deep:<BR />ZTEST_R1_ORD_MAIN -> ZTEST_R1_ORD_VBAP -> ZTEST_R1_ORD_VBEP<BR />and relations are performed via associations.<BR />I export the root entity ZTEST_R1_ORD_MAIN via <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1599241">@odata</a>.publlish:true</P><P>I perform tests via transaction /IWFND/GW_CLIENT.<BR />I do have an access (via @expand=) to association which relates the 1st to the 2nd view (ZTEST_R1_ORD_MAIN -> ZTEST_R1_ORD_VBAP), i.e. association _item. And i can read the entries in _item association.<BR />The problem is that i can NOT access association which relates 2nd to the 3rd view (ZTEST_R1_ORD_VBAP -> ZTEST_R1_ORD_VBEP), i.e. association: _schline. And i can NOT read the entities in _schline association.</P><P>I don't know if this is restriction of <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1599241">@odata</a>.publish:true...<BR />I have tried also with manually creating service and service binding - again without success.<BR />Sap returns message like: _schline is not a recognizable object.</P><P>Here are the view definitions:</P><P>1st level view is exposed as a service via <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1599241">@odata</a>.publish:true</P><pre class="lia-code-sample language-abap"><code>@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'x'
@Metadata.ignorePropagatedAnnotations: true
define root view entity ztest_r1_ord_main as select from vbak
association [1..*] to ztest_r1_ord_vbap as _item on $projection.vbeln = _item.vbeln
{
key vbeln,
vkorg,
_item
}</code></pre><P> 2nd level view</P><pre class="lia-code-sample language-abap"><code>@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'x'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
define view entity ztest_r1_ord_vbap as select from vbap
association [1..*] to ztest_r1_ord_vbep as _schline on $projection.vbeln = _schline.vbeln and $projection.posnr = _schline.posnr
{
key vbeln,
key posnr,
matnr,
_schline
}</code></pre><P>3rd level view</P><pre class="lia-code-sample language-abap"><code>@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'VBEP'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
define view entity ztest_r1_ord_vbep as select from vbep
{
key vbeln,
key posnr,
key etenr,
@Semantics.quantity.unitOfMeasure: 'vrkme'
bmeng,
vrkme
}</code></pre><P>Please, give me an advice how to solve this.</P>2025-05-14T09:01:07.857000+02:00https://community.sap.com/t5/enterprise-resource-planning-q-a/sap-alv-grid-export-to-excel-issue-gt-after-upgrade/qaq-p/14102257SAP ALV GRID Export to Excel issue -> After upgrade2025-05-15T11:33:10.398000+02:00arpita_churi3https://community.sap.com/t5/user/viewprofilepage/user-id/223787<P>Hi All,</P><P>We are facing multiple issues in ALV grid output while exporting data to Excel after upgrade from ECC to S4.</P><OL class="lia-list-style-type-lower-alpha"><LI> All columns are not exported in custom report. using REUSE_ALV_GRID_DISPLAY </LI><LI>When we select Total field in layout– it is adding extra lines in yellow color with total from random rows instead of Total in the last row. but we we do separated with tab option and convert to excel it is coming correct.</LI></OL><P>Please help if anyone has come across similar issue.</P><P>Thank,</P><P>Arpita Save</P>2025-05-15T11:33:10.398000+02:00https://community.sap.com/t5/technology-q-a/failed-to-get-service-instance-from-adt/qaq-p/14104261Failed to get service instance from ADT2025-05-17T13:22:53.393000+02:00vianhttps://community.sap.com/t5/user/viewprofilepage/user-id/1584373<P>Hi All,</P><P>I started an ABAP trial account where ABAP trial instance was successfully created. However, when I want to connect from ADT it is saying "Failed to get service instance URL info for...</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vian_0-1747480699286.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/262516i7A394CBED095F6F8/image-size/medium?v=v2&px=400" role="button" title="vian_0-1747480699286.png" alt="vian_0-1747480699286.png" /></span></P><P>When I tried to open from BTP cockpit, it ended up like this.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vian_1-1747480842268.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/262517i86D56FF59EDD5BCC/image-size/medium?v=v2&px=400" role="button" title="vian_1-1747480842268.png" alt="vian_1-1747480842268.png" /></span></P><P> </P><P> </P><P>Any idea what is the reason? Is that because SAP maintenance? If yes, how can I easily check maintenance calendar plan by SAP for this trial account? Any link?</P><P>Thanks,</P><P>vian</P><P> </P>2025-05-17T13:22:53.393000+02:00https://community.sap.com/t5/crm-and-cx-q-a/cannot-connect-to-the-service-instance-the-service-is-currently-not/qaq-p/14104838Cannot connect to the Service Instance. The service is currently not available.2025-05-19T05:49:54.459000+02:00thiwankachttps://community.sap.com/t5/user/viewprofilepage/user-id/667519<P>Hi </P><P>I'm getting error of "Cannot connect to the Service Instance. The service is currently not available." thought I have log successfully. Could you please advise on this </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-05-19 091320.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/262767iFFB24DC82D738F13/image-size/medium?v=v2&px=400" role="button" title="Screenshot 2025-05-19 091320.png" alt="Screenshot 2025-05-19 091320.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-05-19 091706.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/262768iFA154F1863218934/image-size/medium?v=v2&px=400" role="button" title="Screenshot 2025-05-19 091706.png" alt="Screenshot 2025-05-19 091706.png" /></span></P><P> </P><P> </P>2025-05-19T05:49:54.459000+02:00https://community.sap.com/t5/technology-q-a/btp-cockpit-abap-trial-instance-creation-issue/qaq-p/14105398BTP Cockpit - ABAP trial instance creation issue2025-05-19T13:56:35.345000+02:00Prabhakar6https://community.sap.com/t5/user/viewprofilepage/user-id/1758061<P>Hi Team</P><P>When trying to create an ABAP trial version instance in the BTP cockpit, the creation process fails. Could this be due to a planned upgrade or maintenance? If so, does anyone have information on when the maintenance will be completed and when instance creation will be available again?</P><P> </P><P>Thanks</P><P>Prabhakar </P>2025-05-19T13:56:35.345000+02:00https://community.sap.com/t5/technology-q-a/scroll-functionality-on-grdc-form-using-screen-recording/qaq-p/14105491Scroll functionality on GRDC Form using Screen Recording2025-05-19T14:55:41.184000+02:00ThandoMhttps://community.sap.com/t5/user/viewprofilepage/user-id/2052879<P>Hi there, I need some assistance in capturing a scroll element using screen recording on SAP BTP to extract data by using the scroll bar to navigate up/down or left/right on the screen. Currently struggling with this functionality.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThandoM_0-1747659054252.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/263102i9002A301F64EF571/image-size/medium?v=v2&px=400" role="button" title="ThandoM_0-1747659054252.png" alt="ThandoM_0-1747659054252.png" /></span></P><P><a href="https://community.sap.com/t5/c-khhcw49343/SAP+BTP+ABAP+environment/pd-p/73555000100800001164" class="lia-product-mention" data-product="11-1">SAP BTP ABAP environment</a> </P>2025-05-19T14:55:41.184000+02:00https://community.sap.com/t5/technology-q-a/run-desktop-agent-on-each-users-pc-when-workflow-is-trigger-by-user/qaq-p/14105547Run Desktop Agent on each users PC when workflow is trigger by User2025-05-19T15:04:57.658000+02:00ThandoMhttps://community.sap.com/t5/user/viewprofilepage/user-id/2052879<P>Hi there, need assistance in making a desktop agent run a screen recording that captures data off GRDC for each individual on the PC's when they trigger the workflow. Currently the bot will open on the developers PC to do the screen capturing of data even if triggered by a user on they own PC. Please can you advise how to rectify this issue. Thanks</P><P><a href="https://community.sap.com/t5/c-khhcw49343/SAP+BTP+ABAP+environment/pd-p/73555000100800001164" class="lia-product-mention" data-product="11-1">SAP BTP ABAP environment</a> </P>2025-05-19T15:04:57.658000+02:00https://community.sap.com/t5/technology-q-a/error-occurring-while-accessing-sap-btp-cloud-trial-account-unexpected/qaq-p/14105574Error occurring while accessing SAP BTP Cloud trial account(Unexpected response code: 503)2025-05-19T15:47:04.007000+02:00SwashrayeeBanerjeehttps://community.sap.com/t5/user/viewprofilepage/user-id/2058725<P>Hello- I am facing below error while accessing trial BTP cloud account via ADT tool. I did the entire set up on 17 th May 2025.ADT version is 06-2025</P><P>User ID - banerjeeswashrayee@gmail.com</P><P>'Logon is not possible: Failed to get service instance URL info for <A href="https://685bd85e-501d-43dd-b091-aa6811254f67.abap.us10.hana.ondemand.com" target="_blank" rel="nofollow noopener noreferrer">https://685bd85e-501d-43dd-b091-aa6811254f67.abap.us10.hana.ondemand.com</A>: Unexpected response code: 503'Can anyone assist?</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SwashrayeeBanerjee_0-1747662024463.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/263163i567BE35922904268/image-size/medium?v=v2&px=400" role="button" title="SwashrayeeBanerjee_0-1747662024463.png" alt="SwashrayeeBanerjee_0-1747662024463.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SwashrayeeBanerjee_2-1747662132805.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/263167i0BFE6C2E764F672A/image-size/medium?v=v2&px=400" role="button" title="SwashrayeeBanerjee_2-1747662132805.png" alt="SwashrayeeBanerjee_2-1747662132805.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SwashrayeeBanerjee_3-1747662364371.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/263169i8437CA025D644A77/image-size/medium?v=v2&px=400" role="button" title="SwashrayeeBanerjee_3-1747662364371.png" alt="SwashrayeeBanerjee_3-1747662364371.png" /></span></P><P> </P><P> </P><P> </P>2025-05-19T15:47:04.007000+02:00https://community.sap.com/t5/technology-q-a/not-able-to-create-a-communication-scenario-on-package-in-eclipse-for-odbc/qaq-p/14105586Not able to create a communication scenario on package in eclipse for ODBC usage2025-05-19T15:52:37.328000+02:00e_poshttps://community.sap.com/t5/user/viewprofilepage/user-id/214849<P>Using the tutorial 'Using ODBC driver for SQL Service' I am not able to create a communication scenario on my package in order to proceed with the ODBC setup interfacing CDS entity views. I refer to step 7 in the tutorial:</P><P><A href="https://developers.sap.com/tutorials/abap-environment-abap-sql..html#188ddaca-109e-44a1-844f-3115eb8ef8bc" target="_blank" rel="noopener noreferrer">Using ODBC driver for SQL Service | SAP Tutorials</A></P><P>The only option to create a communication scenario is on a project instead of a package and I get the message I get is: "Communication Scenario is not supported in the selected project".</P><P> </P><P> </P><P> </P><P> </P><P> </P>2025-05-19T15:52:37.328000+02:00https://community.sap.com/t5/technology-q-a/unable-to-create-the-abap-environment-instance/qaq-p/14106186Unable to create the ABAP environment Instance2025-05-20T08:16:33.416000+02:00Jayasurya2https://community.sap.com/t5/user/viewprofilepage/user-id/2132658<P><EM>I am trying to create instance of ABAP Steampunk, but it failing with error "Forbidden"</EM></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_20250520_114517.jpg" style="width: 3456px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/263521iF1D5E2ED4FD3D5B4/image-size/medium?v=v2&px=400" role="button" title="IMG_20250520_114517.jpg" alt="IMG_20250520_114517.jpg" /></span></P><P> <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/55">@Andre_Fischer</a> </P>2025-05-20T08:16:33.416000+02:00https://community.sap.com/t5/technology-q-a/sap-rap-free-search-and-list-sort-in-fiori-application/qaq-p/14108465SAP RAP Free Search and list sort in Fiori Application2025-05-21T22:22:46.165000+02:00Abhinandan_Dutthttps://community.sap.com/t5/user/viewprofilepage/user-id/2048402<P>Hello Experts,</P><P>While creating a sample RAP application from the SAP Learning course "<A class="" title="Building Apps with the ABAP RESTful Application Programming Model" href="https://learning.sap.com/courses/building-apps-with-the-abap-restful-application-programming-model" target="_blank" rel="noopener noreferrer">Building Apps with the ABAP RESTful Application Programming Model</A>" </P><P>I am caught with 2 issues</P><P>1. Free search is not working in the Fiori app. </P><P>Images of BO projection</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AD1996_0-1747858233588.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264592i3E6C1DF0CB0B7596/image-size/medium?v=v2&px=400" role="button" title="AD1996_0-1747858233588.png" alt="AD1996_0-1747858233588.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AD1996_1-1747858250540.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264593iA05901E1684A3749/image-size/medium?v=v2&px=400" role="button" title="AD1996_1-1747858250540.png" alt="AD1996_1-1747858250540.png" /></span></P><P>Fiori Application Data</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AD1996_4-1747858424963.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264598iE764ED4DBE89AA89/image-size/medium?v=v2&px=400" role="button" title="AD1996_4-1747858424963.png" alt="AD1996_4-1747858424963.png" /></span></P><P> </P><P>with Free Search</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AD1996_3-1747858405373.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264597i49F2B070D098BAA5/image-size/medium?v=v2&px=400" role="button" title="AD1996_3-1747858405373.png" alt="AD1996_3-1747858405373.png" /></span></P><P> </P><P> </P><P>2. Sorting Order of the List in the Fiori Application</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AD1996_2-1747858342480.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264595iE30394CACC3E5A83/image-size/medium?v=v2&px=400" role="button" title="AD1996_2-1747858342480.png" alt="AD1996_2-1747858342480.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AD1996_5-1747858434853.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264599i4F60464C2C878360/image-size/medium?v=v2&px=400" role="button" title="AD1996_5-1747858434853.png" alt="AD1996_5-1747858434853.png" /></span></P><P>Any advice that could help me understand why I am encountering the above issues would be greatly appreciated.</P><P><a href="https://community.sap.com/t5/c-khhcw49343/ABAP+RESTful+Application+Programming+Model/pd-p/7e44126e-7b27-471d-a379-df205a12b1ff" class="lia-product-mention" data-product="909-1">ABAP RESTful Application Programming Model</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+Fiori/pd-p/73554900100700000977" class="lia-product-mention" data-product="18-1">SAP Fiori</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+BTP+ABAP+environment/pd-p/73555000100800001164" class="lia-product-mention" data-product="11-1">SAP BTP ABAP environment</a></P><P> </P>2025-05-21T22:22:46.165000+02:00https://community.sap.com/t5/enterprise-resource-planning-q-a/create-custom-entity-with-compositions-exposed-as-odata-v4-api/qaq-p/14108901Create custom entity with compositions exposed as OData V4 API2025-05-22T09:42:18.863000+02:00sdig89https://community.sap.com/t5/user/viewprofilepage/user-id/1404879<P>Hello Experts, </P><P>I have a question which I am not able to solve by myself ^^</P><P>My requirement basically is to create a new custom API in SAP S/4 HANA Public Cloud that allows me, for a given {warehouse + batch-managed product + quantity}, to find the list of all batch numbers, that can be consumed to address that batch-managed product's quantity based on some rules.</P><P>I gave myself as objective to create this structure as output of my new custom API, with a header structure (giving the status of the batch determination logic) and an item list (giving the list of all the batch numbers that should be used for the consumption, with the quantity to be consumed in each batch):</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdig89_5-1747896925597.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264814i228342F09A81AAA7/image-size/large?v=v2&px=999" role="button" title="sdig89_5-1747896925597.png" alt="sdig89_5-1747896925597.png" /></span></P><P>I started by created 2 custom CDS entities: one for the header structure and another one for the item structure.</P><P>I added this annotation to both these 2 custom CDS entities <STRONG><EM>"</EM></STRONG><SPAN><STRONG><EM>@ObjectModel.query.implementedBy:'ABAP:ZCL_TEST_BATCH_NBR_DET1'"</EM></STRONG> where <STRONG>"ZCL_TEST_BATCH_NBR_DET1'"</STRONG> is a custom class referencing interface <STRONG>"IF_RAP_QUERY_PROVIDER"</STRONG> In order to be able to trigger its method <STRONG>"SELECT"</STRONG> when someone tries to retrieve data from either one of my 2 custom CDS entities. </SPAN></P><P><SPAN>In order to have a parent-child relationship between my 2 custom CDS entities, I added a <STRONG>composition</STRONG> <STRONG>statement</STRONG> in the header custom entity CDS view and <STRONG>an association to parent statement</STRONG> in the line-items child custom entity CDS view.</SPAN></P><P><SPAN><STRONG>Custom Entity for the Header parent CDS view:</STRONG> </SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdig89_6-1747897291969.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264822i055A505A2851BF84/image-size/large/is-moderation-mode/true?v=v2&px=999" role="button" title="sdig89_6-1747897291969.png" alt="sdig89_6-1747897291969.png" /></span></P><P><SPAN><STRONG>Custom Entity for the Line-Item Child CDS view:</STRONG> </SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdig89_8-1747897607134.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264827i8152F7E4EAB7F127/image-size/large?v=v2&px=999" role="button" title="sdig89_8-1747897607134.png" alt="sdig89_8-1747897607134.png" /></span></P><P><SPAN>Then I implemented code for the SELECT statement of my custom class ZCL_TEST_BATCH_NBR_DET1.</SPAN></P><P><SPAN>Once done, I created a new service definition exposing both my 2 custom cds entities:</SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdig89_9-1747897649508.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264828i4E9E337CE92CF54D/image-size/large?v=v2&px=999" role="button" title="sdig89_9-1747897649508.png" alt="sdig89_9-1747897649508.png" /></span></P><P><SPAN>Then I exposed my service definition into an OData V4 API service binding, followed with the normal communication scenario, comm arrangement configuration..</SPAN></P><P><SPAN>My problem is that, once all this is done, when I try to execute my API from POSTMAN, I am not able to get <STRONG>the header AND the item data AT THE SAME TIME.</STRONG></SPAN></P><P><SPAN>I am able for instance to get data for the header custom entity CDS view with the correct structure I defined: </SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdig89_10-1747897846184.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264831i4B3E9603C4F3B944/image-size/large?v=v2&px=999" role="button" title="sdig89_10-1747897846184.png" alt="sdig89_10-1747897846184.png" /></span></P><P><SPAN>I am also able to get data for the line_item custom entity CDS view, for the different batch numbers to use for the consumption as per the structure I designed:</SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdig89_11-1747898014504.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264833i7ECC70352A27DF3B/image-size/large?v=v2&px=999" role="button" title="sdig89_11-1747898014504.png" alt="sdig89_11-1747898014504.png" /></span></P><P>But, <FONT color="#FF0000"><STRONG>How can I merge these two results of these 2 entities in the same response?</STRONG></FONT></P><P>I want my custom API response to be similar to the following one: </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdig89_12-1747898080698.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264834iC7120AAC5563D328/image-size/large?v=v2&px=999" role="button" title="sdig89_12-1747898080698.png" alt="sdig89_12-1747898080698.png" /></span></P><P>How can I accomplish this please?</P><P>I thought by creating a composition relationship between these 2 custom entities, that the SELECT method will fetch data for both header and Item custom entity CDS views and that the result will be merged in the same response, but it is not.</P><P>Also, when I run a GET OData call to the header entity, "SELECT" method of class "<SPAN>ZCL_TEST_BATCH_NBR_DET0" is called<STRONG> only once</STRONG>, and "io_request->get_entity_id( )" gives "ZC_TEST_BATCH_DETERMIN_HD" as entity. This means, that my logic is being executed <STRONG>ONLY on the header custom CDS view,</STRONG> which is not enough to fulfill my requirement.</SPAN></P><P><SPAN>Then I tried to add <STRONG>"$expand"</STRONG> to the OData URL to execute, by adding <STRONG>"?$expand=_BatchDetItemDetails"</STRONG> to my URL:</SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdig89_13-1747898867215.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264838iEC3BFAB82776A371/image-size/large?v=v2&px=999" role="button" title="sdig89_13-1747898867215.png" alt="sdig89_13-1747898867215.png" /></span></P><P><SPAN>but I am getting HTTP Bad Request error in POSTMAN : "</SPAN></P><DIV><DIV><SPAN>"The expand option's expand path contains an invalid property '_BatchDetItemDetails'"</SPAN><SPAN>,</SPAN></DIV></DIV><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdig89_14-1747898882405.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/264839iCF37522B97729B5F/image-size/large?v=v2&px=999" role="button" title="sdig89_14-1747898882405.png" alt="sdig89_14-1747898882405.png" /></span></P><P><SPAN>Can someone help me on this please? I feel like my custom API is not designed to "accept" any "expand" attribute. </SPAN></P><P><SPAN>Or if you have another idea on how to achieve this, without having to use the "?$expand" statement?</SPAN></P><P><SPAN>Thanks experts</SPAN></P>2025-05-22T09:42:18.863000+02:00https://community.sap.com/t5/technology-q-a/aif-customizing-screen-not-allowing-to-use-tmint-namespace-to-integrate/qaq-p/14109576AIF customizing screen not allowing to use /TMINT namespace to integrate FreightOrder proxy2025-05-22T19:11:57.745000+02:00HarikaBonalahttps://community.sap.com/t5/user/viewprofilepage/user-id/2133710<P>I am trying to integrate SAP TM Freight order standard proxy ( TransportationOrderGenericRequest_In ) to process errors to AIF. Below screen shot is the standard proxy runtime class where we have logic to integrate to AIF.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarikaBonala_0-1747933326286.png" style="width: 603px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/265180iFD1FB79E4320FC79/image-dimensions/603x205?v=v2" width="603" height="205" role="button" title="HarikaBonala_0-1747933326286.png" alt="HarikaBonala_0-1747933326286.png" /></span></P><P>It has inbuild AIF namespace and Interface name details in the proxy. I am trying to create the given name space /TMINT using /AIF/CUST. I get below error; we cannot save this namespace.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarikaBonala_1-1747933544937.png" style="width: 677px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/265181i5165BCD08AB2D03A/image-dimensions/677x396?v=v2" width="677" height="396" role="button" title="HarikaBonala_1-1747933544937.png" alt="HarikaBonala_1-1747933544937.png" /></span></P><P>Any suggestions on how to save the namespace or any other approach to achieve this scenario.</P><P> </P><P> </P><P> </P><P> </P>2025-05-22T19:11:57.745000+02:00https://community.sap.com/t5/technology-q-a/class-zdmo-cl-fe-travel-generator-can-t-generate-package/qaq-p/14110225Class zdmo_cl_fe_travel_generator can't generate Package2025-05-23T11:40:52.666000+02:00HavertzVangeancehttps://community.sap.com/t5/user/viewprofilepage/user-id/2011526<P><SPAN>Hi Community Experts, </SPAN></P><P><SPAN>I having a problem with class zdmo_cl_fe_travel_generator when run the program suppose to generate a Package to add to the library but when i run the class the console is empty and i figure out why. One different that i found was my sub account on SAP BTP is US East but my friend who have a sub account Singapore can run the class zdmo_cl_fe_travel_generator normally and generated a Package to use.</SPAN></P><P>Can someone help me generate the package from class <SPAN>zdmo_cl_fe_travel_generator i really want to learn more about SAP BTP.</SPAN></P><P><SPAN>Note: I also try running the class zdmo_cl_fe_travel_generator on my other friend eclipse which sub account is also US East but didn't work only the sub account Singapore can generate the package.</SPAN></P><P>Thanks & Regards,</P><P><SPAN> </SPAN></P><DIV class=""> </DIV><DIV class=""> </DIV><DIV class=""> </DIV><DIV class=""> </DIV><DIV class=""> </DIV><DIV class=""> </DIV>2025-05-23T11:40:52.666000+02:00