https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/NW-ABAP-Gateway-(OData)-qa.xml SAP Community - NW ABAP Gateway (OData) 2024-05-20T11:11:10.838752+00:00 python-feedgen NW ABAP Gateway (OData) Q&A in SAP Community https://community.sap.com/t5/technology-q-a/avoiding-repetitive-post-call-in-sap-odata/qaq-p/13652907 Avoiding repetitive Post call in SAP Odata 2024-03-28T20:16:57.523000+01:00 Nikhil1 https://community.sap.com/t5/user/viewprofilepage/user-id/887122 <P><STRONG>Hi everyone, </STRONG></P><P><STRONG>I</STRONG><STRONG>'m encountering issues with duplicate data being posted through SAP OData. Is there a way to identify and prevent these repetitive submissions?&nbsp;</STRONG></P><P>Regards,</P><P>Nikhil</P> 2024-03-28T20:16:57.523000+01:00 https://community.sap.com/t5/technology-q-a/sap-gateway-ignored-the-filter-pass-by-odata-receiver-adapter-in/qaq-p/13653882 SAP Gateway ignored the filter pass by OData receiver adapter in Integration Sute 2024-03-30T12:21:40.136000+01:00 sbandara https://community.sap.com/t5/user/viewprofilepage/user-id/1285213 <P>Dear All,</P><P>I am trying to implement an OData API in Integration Suite and having issues passing the filter to the backend S/4HANA system. This is an end-to-end OData service (Receiver and sender). The requirement is to publish an OData endpoint to expose an OData service built in S/4 HANA using Integration Suite.</P><P>Details are :</P><OL><LI>S/4 HANA development environment has two clients 400 and 411. Cloud connector has access only to client 411. OData service was developed consuming a CDS view using Eclipse in client 400 and copied to 411.</LI></OL><P>Processing mode = Routing Based and added system alias</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sbandara_0-1711796825033.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/88736i68EBC8F709726FD1/image-size/medium?v=v2&amp;px=400" role="button" title="sbandara_0-1711796825033.png" alt="sbandara_0-1711796825033.png" /></span></P><P>2. I tested the OData service with the following URL internally and it is giving the expected result.</P><P><A href="https://%3chostname%3e/sap/opu/odata/sap/ZAPI_O2_SALESORDERETA/SalesOrderETA/?$filter=(SoldToParty%20eq%20%2747474%27%20and%20OpenReqdDelivQtyInBaseUnit%20gt%200)" target="_blank" rel="nofollow noopener noreferrer">https://&lt;hostname&gt;/sap/opu/odata/sap/ZAPI_O2_SALESORDERETA/SalesOrderETA/?$filter=(SoldToParty%20eq%20%2747474%27%20and%20OpenReqdDelivQtyInBaseUnit%20gt%200)</A></P><P>3. iFlow has been configured with the following information.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sbandara_1-1711796905619.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/88737i3B9257091F23F30F/image-size/medium?v=v2&amp;px=400" role="button" title="sbandara_1-1711796905619.png" alt="sbandara_1-1711796905619.png" /></span></P><P>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;a.Runtime configuration - Allowed Header(s) : CamelHttpQuery</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sbandara_3-1711796985168.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/88739iE9CD747B3F106554/image-size/medium?v=v2&amp;px=400" role="button" title="sbandara_3-1711796985168.png" alt="sbandara_3-1711796985168.png" /></span></P><P>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b. OData sender – System generated values.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sbandara_4-1711797036026.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/88740iAB31F22C767106AB/image-size/medium?v=v2&amp;px=400" role="button" title="sbandara_4-1711797036026.png" alt="sbandara_4-1711797036026.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sbandara_5-1711797063840.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/88741iAFA861963EEA4C7F/image-size/medium?v=v2&amp;px=400" role="button" title="sbandara_5-1711797063840.png" alt="sbandara_5-1711797063840.png" /></span></P><P>&nbsp; &nbsp; &nbsp; &nbsp; c. Odata sender -Script</P><P>I tried with following two options.</P><P>if(uriInfo.getFilter() != null){</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; def filter = uriInfo.getFilter();</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(odataURI.size()!=0)</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; odataURI.append(urlDelimiter);</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; odataURI.append("\$filter=").append(filter);</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log.logErrors(LogMessage.TechnicalError,&nbsp; "Filter value:"+filterExpression);</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</P><P>message.setHeader("odataEntity",entityName);</P><P>message.setHeader("odataURI",odataURI.toString());</P><P>When I do this, trace has following value for the filter.</P><P><STRONG>odataURI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : $filter=org.apache.olingo.odata2.core.uri.expression.FilterExpressionImpl@7d1f5f10</STRONG></P><P>Then I tried with this</P><P>if(uriInfo.getFilter() != null){</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; def filterExpression = uriInfo.getFilter().getExpressionString()</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; odataURI.append(urlDelimiter);</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; odataURI.append("\$filter=").append(filter);</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; odataURI.append("\$filter=").append(filterExpression);</P><P>}</P><P>message.setHeader("odataEntity",entityName);</P><P>message.setHeader("odataURI",odataURI.toString());</P><P>Trace had the following value for the filter.</P><P><STRONG>odataURI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : $filter=(SoldToParty eq '47474' and OpenReqdDelivQtyInBaseUnit gt 0)</STRONG></P><P>&nbsp; &nbsp; &nbsp; &nbsp; d. OData receiver configuration looks like this.</P><P>Connection Address <A href="http://%3chostname%3e:443/sap/opu/odata/sap/ZAPI_O2_SALESORDERETA" target="_blank" rel="nofollow noopener noreferrer">http://&lt;hostname&gt;:443/sap/opu/odata/sap/ZAPI_O2_SALESORDERETA</A></P><P>Proxy On-Premise</P><P>Authentication Basic</P><P>Credential Name – Populated with valid credential ID</P><P>Processing</P><P>Operation details : Query(GET)</P><P>Resource Path : SalesETA</P><P>HEADER DETAILS – Request Header = *</P><P>METADATA DETAILS – Customer query parameter = sap-client=411</P><P>The external endpoint is&nbsp;</P><P><SPAN>https://&lt;hostname&gt;.hana.ondemand.com/gw/odata/SAP/S4_SALESORDERETA;v=1/SalesOrderETATypeSet/?$filter=(SoldToParty eq '47474' and OpenReqdDelivQtyInBaseUnit gt 0)</SPAN></P><P><SPAN>Message log sys&nbsp;com.sap.gateway.core.ip.component.odata.exception.OsciException: Unauthorized : 401 : HTTP/1.1</SPAN></P><P>It would be great if someone could help me.</P><P>Kind Regards</P><P><SPAN>Shantha</SPAN></P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</P> 2024-03-30T12:21:40.136000+01:00 https://community.sap.com/t5/technology-q-a/odata-query-not-working-when-using-symbol/qaq-p/13655099 Odata Query not working when using '=' symbol 2024-04-02T04:36:19.146000+02:00 ricky_shaw https://community.sap.com/t5/user/viewprofilepage/user-id/202195 <P>Hi,</P><P>I have an Odata Query which is working (getting data) fine when i use '<STRONG>eq</STRONG>' as below:</P><P>/sap/opu/odata/SAP/<STRONG>Z*****_01</STRONG>/<STRONG>BPInputsSet?</STRONG>$format=json&amp;$filter= Account <STRONG>eq</STRONG> '800000012341' and Prodtyp <STRONG>eq</STRONG> 'EWR' &amp;$expand=NavtoData1,NavtoData2&amp;$format=json</P><P>But when i replace 'EQ' with '<STRONG>='&nbsp;</STRONG> its throwing error like " 400 : Invalid token detected at position.".etc</P><P>How to correct this error?</P> 2024-04-02T04:36:19.146000+02:00 https://community.sap.com/t5/technology-q-a/navigating-odata-service-customization-in-abap-cloud/qaq-p/13656325 Navigating OData Service Customization in ABAP Cloud 2024-04-02T18:27:39.220000+02:00 rcaziraghi https://community.sap.com/t5/user/viewprofilepage/user-id/15535 <DIV class=""><DIV class=""><DIV class=""><P>Hello everyone!</P><P>I'm engaged in a project on SAP BTP ABAP environment and encountering challenges with OData services. Traditionally, in the on-premises ABAP environment, we could utilize the SEGW transaction to create and adjust OData services, including renaming entities to meet our naming standards or needs. However, SEGW is not accessible in the SAP BTP ABAP environment, where RAP has become the preferred technology. I'm exploring alternative methods to achieve similar outcomes.</P><P>One of our goals is to rename navigation properties (associations) in OData services generated from referenced CDS views. I aim to align the names of navigation properties in OData services with our project's naming guidelines, preferring "Entity" over the usual "toEntity".</P><P>Additionally, I've encountered issues with reserved words, such as CDS fields, in the SAP BTP ABAP environment, which were not problematic in on-premises settings (<A href="https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-sql-reference-guide/reserved-words" target="_self" rel="noopener noreferrer">link</A>).</P><P>The reason I wish to keep the services identical (at a metadata level) in SAP BTP ABAP environment and on-premises is to connect the new cloud OData services to existing development resources, such as Fiori applications and third-party integrations.</P><P>Creative solutions or indirect methods may be necessary due to these limitations. Any advice, tips, or documentation references would be highly valued.</P><P>Looking forward to your insights and suggestions.</P><P>Thank you!</P><P>Rafael</P></DIV></DIV></DIV> 2024-04-02T18:27:39.220000+02:00 https://community.sap.com/t5/technology-q-a/pass-variable-value-dynamically-in-post-request-body-postman/qaq-p/13658053 Pass variable value dynamically in POST Request body - Postman 2024-04-04T03:51:00.671000+02:00 KrisG https://community.sap.com/t5/user/viewprofilepage/user-id/136587 <P>Good afternoon all.</P><P>Running my Odata services from Postman , just for the ease of doing testing.</P><P>I have to post some master data with external number range and every time I am changing variable value in the POST request body to the next number.?(some random number or last number+1 from table).</P><P>Is there way to automate this in Postman? I created variable and used it in body. not sure if it works. it doesn't ask for variable when I run. I want to make it easy for someone who wants to test it.&nbsp; I can pass on some variables from 'GET' but this key number has to be from user input.</P><P>like, when I click run, it just asks for variable value, or should be able to add this variable just before running from collection.(without going into individual service)</P><P>is there an option for this? i couldn't find much help from existing threads.</P> 2024-04-04T03:51:00.671000+02:00 https://community.sap.com/t5/technology-q-a/retrieve-metadata-failed-because-the-odata-server-returned-http-code-401/qaq-p/13658969 Retrieve metadata failed because the OData server returned HTTP code, 401 2024-04-04T13:08:28.401000+02:00 thirus11 https://community.sap.com/t5/user/viewprofilepage/user-id/39439 <P>Dear Experts,</P><P>Could you please help/support on the below error. Recently we have been facing an issue when accessing the SAP Hybrid App in IPAD, After the successful authentication when the call goes to gateway system we are getting this error. More details on the error&nbsp;</P><P>Error Retrieve metadata failed because the OData server returned HTTP code, 401 with message "Logon Error Message"</P><P>The connections is via SAP BTP and we are seeing the same error logs in cloud platform. But I am not able to see any logs in gateways system.</P><P>Kindly let me know or help me to fix this issue. This is very urgent&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thirus11_0-1712228818784.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/91315iE602B6BBF0F2FA72/image-size/medium?v=v2&amp;px=400" role="button" title="thirus11_0-1712228818784.png" alt="thirus11_0-1712228818784.png" /></span></P><P>&nbsp;</P> 2024-04-04T13:08:28.401000+02:00 https://community.sap.com/t5/technology-q-a/workflow-user-decision-step-with-link-of-fiori-screen/qaq-p/13661260 Workflow user decision step with link of FIORI screen 2024-04-06T19:55:50.310000+02:00 sanjay_deshpande4 https://community.sap.com/t5/user/viewprofilepage/user-id/221812 <P>Dear All,</P><P>I am having requirement of 'Link of Fiori screen' in workflow User decision step which is available in MYINBOX. On clicking the Link in user decision step FIORI screen should appear.</P><P>Can anybody kindly guide what work is required from ODATA and FIORI side is needed.</P><P>My workflow template triggering from Odata.</P><P>Regards.</P><P>&nbsp;</P><P>&nbsp;</P> 2024-04-06T19:55:50.310000+02:00 https://community.sap.com/t5/technology-q-a/myinbox-is-connected-to-hub-system-and-workflow-exists-in-ecc-system/qaq-p/13661262 MYINBOX is connected to HUB system and workflow exists in ECC system 2024-04-06T20:12:20.153000+02:00 sanjay_deshpande4 https://community.sap.com/t5/user/viewprofilepage/user-id/221812 <P>Dear All,</P><P>MyINBOX is connected to HUB system and workflow exists in ECC system also the tasks are in ECC Inbox. Kindly help how can I have the ECC inbox tasks in NetWeaver Gateway inbox so that NW gateway MyINbox will have the ECC WF tasks.</P><P>Regards.</P><P>&nbsp;</P> 2024-04-06T20:12:20.153000+02:00 https://community.sap.com/t5/technology-q-a/business-partner-creation-using-odata-v2-0/qaq-p/13661797 Business Partner  Creation using ODATA V2.0 2024-04-08T07:10:52.987000+02:00 Pranjali-Sharma https://community.sap.com/t5/user/viewprofilepage/user-id/1432332 <P><STRONG>Objective:Business Partner&nbsp; Creation using ODATA V2.0</STRONG></P><P><STRONG>Step 1.</STRONG> To Create OData go to T-Code SEGW.</P><P><STRONG>Step 2.</STRONG> Create a New Project(Ex--&gt; Z_CUSTOMER)</P><P><STRONG>Step 3.</STRONG> Then create a Entity Type(Ex--&gt; Customer)</P><P><STRONG>Step 4 .</STRONG> In properties, insert field by referring below attached screenshot.&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-04-05 160505.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/92542i5FF143CEC800592A/image-size/large?v=v2&amp;px=999" role="button" title="Screenshot 2024-04-05 160505.png" alt="Screenshot 2024-04-05 160505.png" /></span></P><P><STRONG>Step 5. Source Code</STRONG></P><P><STRONG>1. Get EntitySet Method</STRONG></P><pre class="lia-code-sample language-abap"><code>method CUSTOMERSET_GET_ENTITYSET. data lwa_entity LIKE LINE OF et_entityset. SELECT * FROM kna1 INTO TABLE <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1407137">@DATA</a>(lt_cust). LOOP AT lt_cust INTO data(lwa_cust). SELECT SINGLE city1, country, region INTO (@lwa_entity-city, @lwa_entity-country, @lwa_entity-region) FROM adrc WHERE addrnumber = @lwa_cust-adrnr. lwa_entity-name1 = lwa_cust-name1. lwa_entity-businesspartner = lwa_cust-kunnr. lwa_entity-businesscategory = '2'. lwa_entity-partnergroup = 'Customer'. append lwa_entity to et_entityset. ENDLOOP. endmethod.</code></pre><P><STRONG>2. Get Entity Method</STRONG></P><pre class="lia-code-sample language-abap"><code>METHOD customerset_get_entity. DATA : bp TYPE kunnr. DATA : address TYPE bapicustomer_04. DATA : gen_detail TYPE bapicustomer_kna1. DATA : comp_Detail TYPE bapicustomer_05. DATA : return TYPE bapiret1. DATA(lwa_key) = it_key_tab[ name = 'CustomerCode' ]. IF lwa_key-value IS NOT INITIAL. bp = lwa_key-value. CALL FUNCTION 'BAPI_CUSTOMER_GETDETAIL2' EXPORTING customerno = bp * COMPANYCODE = IMPORTING customeraddress = address customergeneraldetail = gen_detail customercompanydetail = comp_detail return = return * TABLES * CUSTOMERBANKDETAIL = * CUSTOMERIBANDETAIL = * CUSTOMERSEPADETAIL = . IF sy-subrc = 0 and return-type &lt;&gt; 'E'. er_entity-city = address-city. er_entity-country = address-country. er_entity-region = address-region. er_entity-name1 = address-name. er_entity-businesspartner = bp. er_entity-businesscategory = '2'. er_entity-partnergroup = 'Customer'. else. er_entity-businesspartner = 'Not Found.'. er_entity-return = 'No customer found.'. ENDIF. ELSE. RAISE EXCEPTION TYPE /iwbep/cx_mgw_not_impl_exc EXPORTING textid = /iwbep/cx_mgw_busi_exception=&gt;business_error method = 'Please pass Customer Key to get the details.'. ENDIF.</code></pre><P><STRONG>3. Create Entity Method</STRONG></P><pre class="lia-code-sample language-abap"><code>METHOD customerset_create_entity. DATA centraldataorg TYPE BAPIBUS1006_CENTRAL_ORGAN. DATA partner_data TYPE bapibus1006_central. DATA address TYPE bapibus1006_address. DATA bp TYPE bapibus1006_head-bpartner. DATA return TYPE TABLE OF bapiret2. DATA ls_request_input_data TYPE zcl_z_customer_mpc=&gt;ts_customer. io_data_provider-&gt;read_entry_data( IMPORTING es_data = ls_request_input_data ). IF ls_request_input_data IS NOT INITIAL. partner_data-searchterm2 = 'SaleForceCustomer'. centraldataorg-name1 = ls_request_input_data-name1. address-city = ls_request_input_data-city. address-country = ls_request_input_data-country. address-region = ls_request_input_data-region. address-c_o_name = ls_request_input_data-name1. address-time_zone = ls_request_input_data-time_zone. address-postl_cod1 = '123456'. address-langu = 'EN'. CALL FUNCTION 'BAPI_BPCONSUMER_CREATE' EXPORTING * PARTNER_EXTERNAL_NO = partner_group = 'BP02' partner_category = '2' partner_central_data = partner_data * CENTRAL_DATA_PERSON = central_data_organization = centraldataorg * CENTRAL_DATA_GROUP = partner_addr = address * DUPLICATE_MESSAGE_TYPE_ADDR = * ACCEPT_ERROR_ADDR = IMPORTING businesspartner = bp TABLES * PARTNER_TEL_ADDR = * PARTNER_FAX_ADDR = * PARTNER_TELETEX_ADDR = * PARTNER_TELEX_ADDR = * PARTNER_EMAIL_ADDR = * PARTNER_RML_ADDR = * PARTNER_X400_ADDR = * PARTNER_RFC_ADDR = * PARTNER_PRT_ADDR = * PARTNER_SSF_ADDR = * PARTNER_URI_ADDR = * PARTNER_PAGER_ADDR = * PARTNER_NOTE_ADDR = * PARTNER_NOTECOM_ADDR = * PARTNER_TEL_NONADDRESS = * PARTNER_FAX_NONADDRESS = * PARTNER_TELETEX_NONADDRESS = * PARTNER_TELEX_NONADDRESS = * PARTNER_EMAIL_NONADDRESS = * PARTNER_RML_NONADDRESS = * PARTNER_X400_NONADDRESS = * PARTNER_RFC_NONADDRESS = * PARTNER_PRT_NONADDRESS = * PARTNER_SSF_NONADDRESS = * PARTNER_URI_NONADDRESS = * PARTNER_PAGER_NONADDRESS = * PARTNER_NOTECOM_NONADDRESS = * PARTNER_ADDRESSDUPLICATES = * PARTNER_BANK_ATTR = return = return. IF bp IS NOT INITIAL. CALL FUNCTION 'BAPI_BUPA_ROLE_ADD' EXPORTING businesspartner = bp businesspartnerrole = 'FLCU01' * DIFFERENTIATIONTYPEVALUE = * TABLES * RETURN = . IF ls_request_input_data-commit IS NOT INITIAL. COMMIT WORK. * CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' * EXPORTING * WAIT = ' ' * IMPORTING * return = return. ER_ENTITY-businesspartner = bp. er_entity-name1 = ls_request_input_data-name1. ELSE. "// error handling ENDIF. ELSE. "// error handling ENDIF. ENDIF. ENDMETHOD.</code></pre><P><SPAN class=""><span class="lia-unicode-emoji" title=":slightly_smiling_face:">🙂</span>Thank you</SPAN></P><P><SPAN class="">Pranjali Sharma</SPAN></P> 2024-04-08T07:10:52.987000+02:00 https://community.sap.com/t5/technology-q-a/how-can-we-export-all-entitytypes-along-with-properties-abap-filed-name/qaq-p/13663009 How can we export all entityTypes along with properties/ABAP Filed name 2024-04-09T04:28:23.478000+02:00 SAPSupport https://community.sap.com/t5/user/viewprofilepage/user-id/121003 <P>Hi Team</P><P>How can we export all entityTypes along with properties/ABAP Filed name related to corresponding standard ODATA Services which we activated under our landscape as per the business requirement</P><P>&nbsp;</P><P>Best Regards</P><P>&nbsp;</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A target="_blank" href="https://community.sap.com/t5/enterprise-resource-planning-blogs-by-sap/maximizing-the-power-of-sap-community-at-product-support/ba-p/13501276">here</A>.</B> 2024-04-09T04:28:23.478000+02:00 https://community.sap.com/t5/technology-q-a/odata-url-accessibility/qaq-p/13668567 odata url accessibility 2024-04-12T19:59:12.964000+02:00 HemantVaswani https://community.sap.com/t5/user/viewprofilepage/user-id/147458 <DIV><DIV>Inside the SAP S4 HANA 2021 fully activated appliance, i have enabled the SAP gateway to access odata service.</DIV><DIV>&nbsp;</DIV><DIV>I am able to successfully execute the&nbsp; http and https using&nbsp; the SAP Gateway Client in GUI&nbsp; t code /n/IWFND/MAINT_SERVICES&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>same URLs are accessible in the browser</DIV><DIV>&nbsp;</DIV><DIV><A href="http://localhostfqdn/sap/opu/odata/sap/" target="_blank" rel="noopener nofollow noreferrer">http://localhostfqdn/sap/opu/odata/sap/</A> MD_SUPPLIER_MASTER_SRV</DIV><DIV>&nbsp;</DIV><DIV><A href="http://localhostfqdn/sap/opu/odata/sap/" target="_blank" rel="noopener nofollow noreferrer">http://localhostfqdn/sap/opu/odata/sap/</A> API_BUSINESS_PARTNER</DIV><DIV>&nbsp;</DIV><DIV><A href="http://localhostfqdn/sap/opu/odata/sap/" target="_blank" rel="noopener nofollow noreferrer">http://localhostfqdn/sap/opu/odata/sap/</A> API_SUPPLIERINVOICE_PROCESS</DIV><DIV>&nbsp;</DIV><DIV>Although the following odata is getting successfully executed using&nbsp; the SAP Gateway Client in GUI t code /n/IWFND/MAINT_SERVICES&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>FAP_VENDOR_LINE_ITEMS</DIV><DIV>&nbsp;</DIV><DIV>While accessing through the browser, on prompt&nbsp; of user id password, the above SAP GUI user id if provided, it's not allowing me to access</DIV><DIV>&nbsp;</DIV><DIV><A href="http://localhostfqdn/sap/opu/odata/sap/" target="_blank" rel="noopener nofollow noreferrer">http://localhostfqdn/sap/opu/odata/sap/</A> FAP_VENDOR_LINE_ITEMS</DIV><DIV>&nbsp;</DIV><DIV>Please suggest some solution</DIV><DIV>&nbsp;</DIV><DIV>The authorizations are checked and found to be in place, I mean the required ones are available</DIV><DIV>The url <A href="http://localhostfqdn/sap/opu/odata/sap/" target="_blank" rel="noopener nofollow noreferrer">http://localhostfqdn/sap/opu/odata/sap/</A> FAP_VENDOR_LINE_ITEMS&nbsp; used with an entity set and a filter, its able to produce the data in the browser</DIV><DIV>&nbsp;</DIV></DIV> 2024-04-12T19:59:12.964000+02:00 https://community.sap.com/t5/technology-q-a/how-to-pass-parameter-to-getentityset-from-sapui5/qaq-p/13673572 How to pass parameter to getEntitySet from SAPUI5? 2024-04-17T17:09:05.155000+02:00 UlisesCasal https://community.sap.com/t5/user/viewprofilepage/user-id/1392744 <P><SPAN>Hello everyone! I read the following post <A href="https://community.sap.com/t5/technology-q-a/how-to-pass-filter-parameters-to-get-entityset-from-sapui5/qaq-p/668725" target="_blank">Solved: How to pass filter parameters to Get EntitySet fro... - SAP Community</A>&nbsp;but it was not helpful. Basically, I need to pass a string as a parameter to my OData Gateway (getEntitySet) to bring a set of data filtered by said string from a Z table. My code for my controller in SAPUI5 is as follows: </SPAN></P><P>&nbsp;</P><pre class="lia-code-sample language-javascript"><code>var oFilterN = new Filter('FilterExample', FilterOperator.EQ, oExample); var oParams = { filters: [oFilterN] } var oFilter = "/GetEntitySetExample"; oModel.read(oFilter, oParams, { success: function(oData){ var oDataObtained = oData; var oModel = new JSONModel(oData); this.getView().setModel(oModel, "modelExample"); }.bind(this), error: function(oError){} });</code></pre><P>&nbsp;</P><P><SPAN>(In the gateway service, I manage to obtain the parameter with this code, but it never enters the success or error of the controller in sapui5, so it does not allow me to obtain the data set)</SPAN></P><P><SPAN>And the code for my gateway service is as follows:</SPAN></P><P>&nbsp;</P><pre class="lia-code-sample language-abap"><code>method getEntitySetExample_get_entityset. DATA: my_filter_options type /iwbep/t_mgw_select_option, lv_param type ztable-keycamp. READ TABLE it_filter_select_options INTO DATA(ls_filter) INDEX 1. lv_param = ls_filter-select_options[ 1 ]-low. select * from ZTABLE INTO CORRESPONDING FIELDS OF TABLE et_entityset WHERE keycamp EQ lv_param. endmethod.</code></pre><P>&nbsp;</P><P>&nbsp;</P> 2024-04-17T17:09:05.155000+02:00 https://community.sap.com/t5/technology-q-a/annotation-in-segw/qaq-p/13674941 Annotation in SEGW 2024-04-18T16:26:51.058000+02:00 BODHISATTWA__20 https://community.sap.com/t5/user/viewprofilepage/user-id/6822 <P>I have created a SEGW service&nbsp; . I have enabled the filter options so that when i consume it in VS so that I <STRONG>automatically get those fields as filter parameters&nbsp; .</STRONG></P><P>&nbsp;</P><P>&nbsp;</P><P><STRONG>But&nbsp;<span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BODHISATTWA__20_0-1713448123070.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/98270i14F3AE67DBF044BF/image-size/medium?v=v2&amp;px=400" role="button" title="BODHISATTWA__20_0-1713448123070.png" alt="BODHISATTWA__20_0-1713448123070.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BODHISATTWA__20_1-1713448151960.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/98272i1A9C92635ED789B4/image-size/medium?v=v2&amp;px=400" role="button" title="BODHISATTWA__20_1-1713448151960.png" alt="BODHISATTWA__20_1-1713448151960.png" /></span></STRONG></P><P><STRONG>I have some CDS views which are also part of the same OData .I want them to be a value help on the same those filter parameter&nbsp; .</STRONG></P><P><STRONG>I looked into&nbsp; this blog&nbsp; <A href="https://community.sap.com/t5/technology-blogs-by-members/odata-annotations-in-segw-with-example-and-consume-it-in-visual-studio-to/ba-p/13551588" target="_blank">https://community.sap.com/t5/technology-blogs-by-members/odata-annotations-in-segw-with-example-and-consume-it-in-visual-studio-to/ba-p/13551588</A></STRONG></P><P><STRONG>.Instead of this fixed values , I want the CDS to be displayed&nbsp; or a table .</STRONG></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BODHISATTWA__20_2-1713449239075.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/98290i91FBC3E0A99E0996/image-size/medium?v=v2&amp;px=400" role="button" title="BODHISATTWA__20_2-1713449239075.png" alt="BODHISATTWA__20_2-1713449239075.png" /></span></P><P>&nbsp;</P><P>can anybody tell me what would be the right annotation for this .</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P> 2024-04-18T16:26:51.058000+02:00 https://community.sap.com/t5/supply-chain-management-q-a/error-while-activating-odata-service/qaq-p/13679911 Error While activating Odata service 2024-04-23T21:55:57.362000+02:00 Nikhil1 https://community.sap.com/t5/user/viewprofilepage/user-id/887122 <P>Hi Experts,&nbsp;</P><P>&nbsp;</P><P>&nbsp;I am unable to activate following odata services which are required for standard fiori app:&nbsp;<A href="https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F4024')/S28OP" target="_blank" rel="noopener nofollow noreferrer">https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F4024')/S28OP</A></P><P>&nbsp;</P><P>Tried adding the service from /Iwfnd/maint/service . Following Service appear in while adding the service, but error starts appearing.&nbsp;</P><P>&nbsp;</P><P>C_EWM_ODOOVPGQ_2_CDS</P><P>C_EWM_OUTBDELIVORDADJQ_2_CDS</P><P>C_EWM_WAREHOUSEORDERQ_2_CDS</P><P>C_EWM_WAREHOUSETASKOVPGQ_2_CDS</P><P>C_EWM_WAREHOUSETASKQ_2_CDS</P><P>C_EWM_WHSEORDEROVPGQ_2_CDS</P><P>Able to see following error message when checked from /IWBEP/ERROR?LOG</P><P>Exception of type 'CX_RS_MSG' has occurred; see details for more information</P><P>-&lt;CX_RS_MSG&gt;<BR /><BR />&lt;MSGID&gt;RSODP&lt;/MSGID&gt;<BR /><BR />&lt;MSGNO&gt;099&lt;/MSGNO&gt;<BR /><BR />&lt;MSGTY&gt;X&lt;/MSGTY&gt;<BR /><BR />&lt;MSGV1/&gt;<BR /><BR />&lt;MSGV2/&gt;<BR /><BR />&lt;MSGV3/&gt;<BR /><BR />&lt;MSGV4/&gt;</P><P><BR />&lt;/CX_RS_MSG&gt;</P><P>Regards,</P><P>Nikhil1</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P> 2024-04-23T21:55:57.362000+02:00 https://community.sap.com/t5/technology-q-a/myinbox-issue-with-user-decision-task-link-from-myinbox/qaq-p/13680168 MYINBOX: Issue with user decision task link from MYINBOX 2024-04-24T05:36:30.203000+02:00 sanjay_deshpande4 https://community.sap.com/t5/user/viewprofilepage/user-id/221812 <P>Dear All,</P><P>I am facing below issue in FIORI MY Inbox, the link has ABAP code at the backend from BO-Method.</P><P>The task is user decision task and link open from SAP Inbox successfully. However, "Object Link 1" doesn't open.</P><P>Can anybody guide how this can be fixed?</P><P>I found below similar post however what to mention in SWUVISU in Frontend (Netweaver gateway server) is not mentioned clearly neither in post nor in Note. I will be thankful for kindly guiding further:</P><P><A href="https://community.sap.com/t5/technology-q-a/how-to-open-object-link-in-fiori-my-inbox/qaq-p/11139652" target="_blank">Solved: How to open Object Link in Fiori My Inbox - SAP Community</A></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanjay_deshpande4_0-1713928500102.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/100835iE663594312EED89F/image-size/large?v=v2&amp;px=999" role="button" title="sanjay_deshpande4_0-1713928500102.png" alt="sanjay_deshpande4_0-1713928500102.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanjay_deshpande4_1-1713928910881.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/100840i121940DDE59E01D7/image-size/large?v=v2&amp;px=999" role="button" title="sanjay_deshpande4_1-1713928910881.png" alt="sanjay_deshpande4_1-1713928910881.png" /></span></P><P>Regards.</P> 2024-04-24T05:36:30.203000+02:00 https://community.sap.com/t5/technology-q-a/odata-metadata-issue-for-standard-service/qaq-p/13682801 odata Metadata issue for standard service 2024-04-25T20:39:20.474000+02:00 thaneesh_sst1987 https://community.sap.com/t5/user/viewprofilepage/user-id/837776 <P>I am seeing an issue with the standard odata service delivered by SAP where function import parameters are not appearing correctly in the metadata. When I copy the standard project to custom and generate service, it shows all parameters as expected in metadata.</P> 2024-04-25T20:39:20.474000+02:00 https://community.sap.com/t5/technology-q-a/setting-the-backend-odata-service-alias-in-a-btp-destination-possible/qaq-p/13687731 Setting the backend OData Service Alias in a BTP Destination. Possible? 2024-04-30T20:23:14.071000+02:00 BrendanFarthing https://community.sap.com/t5/user/viewprofilepage/user-id/1856 <P>Hi,</P><P>We have a scenario as follows with BTP UI5 apps making OData calls to backend ECC systems:</P><P>BTP Cloud Foundry UI5 App &gt; BTP Destination &gt; SAP Cloud Connector &gt; Gateway Hub &gt; ECC (NW 7.00)</P><P>For a very specific reason we would like to set the Alias assigned to the OData service on the Gateway Hub via the BTP Destination, rather than inside the UI5 app itself, or via other external means. I'm talking about the&nbsp;";o=&lt;ALIAS&gt;" part of the OData URL.</P><P>I am hoping that SAP have some internal option within the SAP BTP Destination service (specifically on Cloud Foundry) which can inject the ";o=&lt;ALIAS&gt;" into the correct place in the OData URL if we specify it in a special Destination Property.</P><P>I have searched high and low and tried various properties like "sap-system-alias" or "sap-system" but they don't work, or were designed to work somewhere else. I have also tried these names and some others as HTTP Headers as a guess, but no luck.</P><P>Anyone have any idea if an 'Alias' Property exists in Cloud Foundry Destinations which can do what I need?</P><P>Note also that we are very experienced with all of this and know every other possible way to handle Aliases on OData calls in relation to BTP, ECC or S/4. But we have one very specific requirement where using a BTP Destination would save us a lot of hassle.</P><P>Thanks in advance,</P><P>Brendan</P><P>&nbsp;</P> 2024-04-30T20:23:14.071000+02:00 https://community.sap.com/t5/technology-q-a/issue-in-retrieving-delta-link-in-maif-odata-response-in-application-json/qaq-p/13694886 Issue in retrieving Delta link in MAIF OData response in application/json format only 2024-05-08T10:25:42.336000+02:00 Yugesh https://community.sap.com/t5/user/viewprofilepage/user-id/1453048 <P>I exposed some database tables as entities using Mobile Application Integration Framework(MAIF). Here, server-side paging is enabled, and delta sync is on in MAIF. When I try to retrieve the data using application/XML format, server is sending the data along with delta token but When I change accept format to application/json, server is not sending delta link.<BR /><BR />When retrieving data in XML format</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yugesh_0-1715156895802.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/107355i785B8A58F93B6431/image-size/medium?v=v2&amp;px=400" role="button" title="Yugesh_0-1715156895802.png" alt="Yugesh_0-1715156895802.png" /></span></P><P>&nbsp;</P><P>When retrieving the data in JSON format</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yugesh_2-1715156477238.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/107343iB81B43807DA8A727/image-size/medium?v=v2&amp;px=400" role="button" title="Yugesh_2-1715156477238.png" alt="Yugesh_2-1715156477238.png" /></span><BR />Is something needs to be done in MAIF side? it seems weird that it work in XML but not in JSON.</P> 2024-05-08T10:25:42.336000+02:00 https://community.sap.com/t5/technology-q-a/not-able-to-locate-sap-updatable-or-sap-creatable-tags-in-metadata-for-sap/qaq-p/13697518 Not able to locate sap:updatable or sap:creatable tags in metadata for SAP S/4HANA OData V4 APIs 2024-05-10T12:29:08.292000+02:00 SidhantMahajan https://community.sap.com/t5/user/viewprofilepage/user-id/1439856 <P>Hi Team,</P><P>For any OData V4 APIs in SAP S/4HANA Cloud or On-premise, when we query for the $metadata for any service, we do not find these tags anymore:&nbsp;<SPAN>sap:creatable,&nbsp;</SPAN><SPAN>sap:updatable,&nbsp;</SPAN><SPAN>sap:delectable, etc to know if each entityset or field/property within an entity is supported for these operations or not.</SPAN></P><P><SPAN>Have we changed the mechanism to check this information on the compatibility?&nbsp;</SPAN></P><P><SPAN>Would be really helpful if someone in <a href="https://community.sap.com/t5/c-khhcw49343/SAP+S%25252F4HANA/pd-p/73554900100800000266" class="lia-product-mention" data-product="799-1">SAP S/4HANA</a>&nbsp;product team can help us in answering this question since we are unable to know that which all fields supports what all operations within an entity by looking at the metadata which was pretty much clear in OData V2 APIs.&nbsp;<a href="https://community.sap.com/t5/user/viewprofilepage/user-id/121003">@SAPSupport</a>&nbsp;</SPAN></P><P><SPAN>Regards,</SPAN></P><P><SPAN>Sidhant Mahajan</SPAN></P> 2024-05-10T12:29:08.292000+02:00 https://community.sap.com/t5/technology-q-a/data-transfer-from-databricks-to-sap-odata-api/qaq-p/13700164 Data transfer from Databricks to SAP - ODATA API 2024-05-14T06:54:56.450000+02:00 vvaree https://community.sap.com/t5/user/viewprofilepage/user-id/68250 <P><BR />We need to move 200,000 records daily from a Data bricks environment on GCP to a custom table in SAP.<BR />Since Data bricks can't expose workbook APIs due to their current capabilities , SAP will provide an OData API with a POST operation for data transfer. With the huge volume of data , performance can be a bottleneck . Below are the questions -</P><P>&nbsp;</P><P>a) Is OData API intended for large data transfer ? What are the limitations ?<BR />b) what are the best practices while transmitting huge volume data through ODATA rest API . Already aware of the Pagination / batching .<BR />c) What other interfacing methods are possible with data bricks other than FTP and without any level of integration.</P><P>P.S : Exploring PyRFC from data bricks to call SAP RFC as an alternative.<BR />&nbsp; &nbsp; &nbsp; &nbsp; We don't use SAP Datasphere</P> 2024-05-14T06:54:56.450000+02:00