https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/API-Management-qa.xml SAP Community - API Management 2024-05-20T11:10:03.576392+00:00 python-feedgen API Management Q&A in SAP Community https://community.sap.com/t5/technology-q-a/how-do-i-efficiently-update-a-lot-of-entities-at-once/qaq-p/13641551 How do I efficiently update a lot of entities at once? 2024-03-18T13:19:08.378000+01:00 kenjon https://community.sap.com/t5/user/viewprofilepage/user-id/850276 <P>I connect to the SAP service layer via Nestjs.</P><P>In the SAP software I have created User Defined Fields for the IncomingPayment entity and A/R Invoice entity.</P><P>There are already a ton of entities created and all of them have their UDF value set to null.</P><P>I decided to programmatically set them using Nestjs with a for loop.</P><P>&nbsp;</P><P>So what I do is fetch /IncomingPayments (GET Request) and I set the 'Prefer' header to 'odata.maxpagesize=30000'. This way I ensure all of the Incoming Payments ever created are fetched.</P><P>I ensure only the DocEntry and PaymentInvoices properties are selected.</P><P>Using a for loop, I loop over all of the fetched entities and I then do a PATCH request to /IncomingPayments(i) where i is the current incomingpayment being looped over. By accessing the first element of PaymentInvoices (PaymentInvoices[0]) and then getting it's DocEntry property (PaymentInvoices[0].DocEntry), I get the A/R Invoice Docentry that the current incoming payment is based on.</P><P>In the patch request body I have this:</P><pre class="lia-code-sample language-json"><code>{ "U_invoice_id": invoiceId, }</code></pre><P>This is the approach I use to update each incoming payment.</P><P>But, I noticed not all of them are getting updated when I use this method.</P><P>I thought the Prefer header was the cause of that so I reduced it to 1000 instead of 30000.</P><P>But that still doesn't update all incoming payments. Some are skipped and I need to run the service multiple times to update all of them.</P><P>Is there a more efficient way to do this??</P><P>Maybe in SAP itself.</P><P>Using a Script?</P><P>Help</P><P>&nbsp;</P> 2024-03-18T13:19:08.378000+01:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/how-to-view-incoming-json-requests-in-sap/qaq-p/13643164 How to view incoming JSON requests in SAP 2024-03-19T15:13:29.821000+01:00 bharath_jaladi https://community.sap.com/t5/user/viewprofilepage/user-id/143015 <P>Hi,</P><P>We are using API calls for creation of Orders and Advanced Returns in SAP. As a functional, I'm aware of viewing the order creation&nbsp;XMLs using SXMB_MONI/SRT_MONI. My ask over here is how to view the Return orders input data or response data as return uses JSON/ODATA for interaction as per SAP help.</P><P>Thanks,</P><P>Bharath</P> 2024-03-19T15:13:29.821000+01:00 https://community.sap.com/t5/technology-q-a/issue-filtering-on-incentive-management-odata-apis-kubernetes-pipelineruns/qaq-p/13643448 Issue Filtering on Incentive Management OData APIs (Kubernetes) PipelineRuns API 2024-03-19T18:39:30.950000+01:00 Ron_Hagan https://community.sap.com/t5/user/viewprofilepage/user-id/114921 <P>I'm trying to execute a GET request to retrieve PipelineRuns from the API in the subject.</P><P>In Postman, if I do a straight GET without any filters, I get 10 records back.&nbsp; There are 147 rows in the CS_PIPELINERUN table for this environment as I've queried the table in WEBIDE.</P><P>I would like to be able to filter on the StartTime field of the API but I can't seem to be able to get the syntax correct.&nbsp; As an example, if I want to retrieve just the one PipelineRun for March 29, 2023 at 19:05:35.480, I've tried this:&nbsp;&nbsp;<SPAN>cng-pipeline/odata/PipelineRuns?$filter=StartTime eq 2023-03-29T19:05:35.480Z</SPAN></P><P>This still brings back 10 records.&nbsp; I then tried this (this is the actual value from the table):<BR /><BR /></P><P><SPAN>cng-pipeline/odata/PipelineRuns?StartTime=2023-03-29 19:05:35.480000000</SPAN></P><P><SPAN>This also returns 10 records.</SPAN></P><P><SPAN>My questions are: 1. What is the correct syntax for filtering a PipelineRun using the StartTime?</SPAN></P><P><SPAN>2.&nbsp; Is there some sort of limit on the number of records this API will allow to be returned and if so, how do I change/override it with a parameter?</SPAN></P><P><SPAN>In the documentation for the API, it says the Contact is the Incentive Management API Support Team but I can't seem to find anything about them, much less how to contact them.</SPAN></P><P><SPAN>I know I'm probably whistling up a tree but I'm really hoping somebody knows the answers to these questions and can help me.</SPAN></P><P><SPAN>Thanks in advance!</SPAN></P><P><SPAN>Ron</SPAN></P><P>&nbsp;</P> 2024-03-19T18:39:30.950000+01:00 https://community.sap.com/t5/technology-q-a/cpi-url-not-returning-large-payload/qaq-p/13644086 CPI URL not returning large payload 2024-03-20T10:34:12.173000+01:00 Akash https://community.sap.com/t5/user/viewprofilepage/user-id/863626 <P>Hii,</P><P>I have consumed odata url (which have more than 1lakh data for a particular date range) in iflow with http adapter , after successfully generated CPI url then test it via postman with a particular date range(input parameters) and the API return Status Code 200ok but didn't return any data. it is happening when the payload is too large.</P> 2024-03-20T10:34:12.173000+01:00 https://community.sap.com/t5/technology-q-a/authentication-between-sap-api-management-and-sap-cloud-integration/qaq-p/13648407 Authentication between SAP API Management and SAP Cloud Integration 2024-03-25T11:51:39.279000+01:00 SandeshK https://community.sap.com/t5/user/viewprofilepage/user-id/12724 <P>Hello All,</P><P>What is the best practice to setup authentication between API Management and Cloud Integration in scenarios where APIM must trigger a CPI iFlow?&nbsp;</P><P>I normally prefer using certificate based authentication by setting up a keystore in APIM and use that in the API provider that is configured for CPI. In CPI, I upload the public certificate of the keystore in the service key. However, we must purchase a certificate keypair signed by a authorised certificate authority or use a S-User generated certificate on SAP Passport. I am not aware if there is any other way to setup a key pair. Interested to know if someone can share their experience here.</P><P>I am aware that you can also use OAuth with CPI buy you must create policies inside API proxy to authenticate. Hence, I prefer the certificate based because there is no need to add additional policies in the proxy. I am curious to know how you setup this authentication in your projects?</P><P>Thanks in advance!</P> 2024-03-25T11:51:39.279000+01:00 https://community.sap.com/t5/technology-q-a/webhook-for-sap-cpi/qaq-p/13648527 Webhook for SAP CPI 2024-03-25T13:57:42.350000+01:00 Chadha__ https://community.sap.com/t5/user/viewprofilepage/user-id/1405836 <DIV><DIV class=""><DIV class=""><SPAN>Hello Experts;</SPAN></DIV></DIV><DIV class=""><DIV class=""><SPAN>I want to use Webhook with SAP integration suite for event driven iflows architecture. I foud this blog but it's not detailed and I'm new to SAP CPI. Any help please <span class="lia-unicode-emoji" title=":slightly_smiling_face:">🙂</span></SPAN></DIV></DIV><DIV class=""><DIV class=""><SPAN><A class="" href="https://community.sap.com/t5/technology-blogs-by-members/sap-em-webhook-mechanism-sap-cpi/ba-p/13450415" target="_blank">https://community.sap.com/t5/technology-blogs-by-members/sap-em-webhook-mechanism-sap-cpi/ba-p/13450415</A>.</SPAN></DIV><DIV class=""><SPAN>I have an SAP BTP Trial account and I want to trigger insertion events in my iflow through webhook.</SPAN></DIV></DIV></DIV> 2024-03-25T13:57:42.350000+01:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/api-supplierinvoice-process-srv-is-unable-to-park-service-purchase-order/qaq-p/13651141 API_SUPPLIERINVOICE_PROCESS_SRV is unable to park Service Purchase Order. 2024-03-27T11:57:43.340000+01:00 myc https://community.sap.com/t5/user/viewprofilepage/user-id/749014 <P>We are using this API&nbsp;"API_SUPPLIERINVOICE_PROCESS_SRV" to park an invoice with reference to GR and it's working as expected.<BR /><BR />When we are trying to park it with reference to Service Entry Sheet following error returns "Service purchase order cannot be processed".<BR /><BR />Can anyone please suggest solution?</P><P><BR />Following is our payload.</P><pre class="lia-code-sample language-json"><code>{ "CompanyCode": "1100", "DocumentDate": "2023-12-01T00:00:01", "PostingDate": "2024-02-27T00:00:02", "SupplierInvoiceIDByInvcgParty": "99296", "InvoicingParty": "0001800135", "DocumentCurrency": "PKR", "InvoiceGrossAmount": "93680.00", "SupplierInvoiceStatus": "A", "to_SuplrInvcItemPurOrdRef": [ { "SupplierInvoiceItem": "000001", "PurchaseOrder": "4500062057", "PurchaseOrderItem": "00010", "TaxCode": "AY", "DocumentCurrency": "PKR", "SupplierInvoiceItemAmount": "93680.00", "PurchaseOrderQuantityUnit": "AU", "QuantityInPurchaseOrderUnit": "1", "ServiceEntrySheet": "1000300787", "ServiceEntrySheetItem": "10" } ], "to_SuplrInvoiceAdditionalData": { "SupplierInvoice": "99296", "FiscalYear": "2024" } }</code></pre><P>&nbsp;</P> 2024-03-27T11:57:43.340000+01:00 https://community.sap.com/t5/technology-q-a/oauth-saml-bearer-question/qaq-p/13653544 OAuth SAML Bearer question 2024-03-29T16:51:03.853000+01:00 phoenixming0912 https://community.sap.com/t5/user/viewprofilepage/user-id/284483 <P>Hi all,</P><P>I have read through the following deep dive blog regarding OAuth SAML bearer assertion flow.</P><P><A href="https://community.sap.com/t5/enterprise-resource-planning-blogs-by-sap/deep-dive-8-with-sap-cloud-sdk-leverage-principal-propagation-via-oauth-2/ba-p/13341009" target="_blank">Deep Dive 8 with SAP Cloud SDK: Leverage Principal... - SAP Community</A></P><P>My question is: is&nbsp;<SPAN>SAP Cloud Identity&nbsp;registered in the SAP cloud platform as trusted IdP also the IdP for resource server (SAP S/4HANA)?</SPAN></P><P><SPAN><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IdP.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/88526i5931BFF46F4DA3A8/image-size/medium?v=v2&amp;px=400" role="button" title="IdP.png" alt="IdP.png" /></span></SPAN></P><P><SPAN>Regards,<BR />Eric</SPAN></P> 2024-03-29T16:51:03.853000+01:00 https://community.sap.com/t5/technology-q-a/vmd-ei-api/qaq-p/13653865 VMD_EI_API 2024-03-30T10:45:29.222000+01:00 hariprasathk https://community.sap.com/t5/user/viewprofilepage/user-id/872389 <P>Hi Team,</P><P>I created a Vendor API using Class&nbsp;VMD_EI_API=&gt;MAINTAIN. And i passed i required fields to create the Vendor.</P><P>At last i can able to create the vendor successfully. But i'm unable to get the vendor in the program.</P><P>How to get the vendor number after gets created using&nbsp;&nbsp;Class&nbsp;VMD_EI_API=&gt;MAINTAIN.</P><P>&nbsp;</P><P>Regards</P><P>Hari Prasath</P><P>&nbsp;</P> 2024-03-30T10:45:29.222000+01:00 https://community.sap.com/t5/technology-q-a/api-sales-order-retuning-empty-values-for-sales-order-items-during-post/qaq-p/13660908 API_SALES_ORDER retuning empty values for sales order items during POST operation 2024-04-05T18:09:28.244000+02:00 abdul_hakim https://community.sap.com/t5/user/viewprofilepage/user-id/10355 <P>Hello Experts</P><P>We are using SAP standard API&nbsp;<A href="https://api.sap.com/api/OP_API_SALES_ORDER_SRV_0001/path/post_A_SalesOrder" target="_blank" rel="noopener noreferrer">https://api.sap.com/api/OP_API_SALES_ORDER_SRV_0001/path/post_A_SalesOrder</A></P><P>for Sales order creation. While making POST call to create Sales order along with Sales order items the Sales order is getting created successfully along with items. However in the response Payload the items section is returned as blank and we expect the line items details that got created. Please let me know how to get the line items data as well in the response Payload during POST call.</P><P>Current response received for items:</P><P>&nbsp;&nbsp;&nbsp; "to_Item" : {<BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "results" : [</P><P>&nbsp;</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]</P><P>}</P><P>Regards,</P><P>Abdul Hakim</P> 2024-04-05T18:09:28.244000+02:00 https://community.sap.com/t5/technology-q-a/does-crystal-report-30-day-trial-doesn-t-provide-report-creation-api/qaq-p/13661925 Does crystal report 30 day trial doesn't provide 'Report Creation API'? 2024-04-08T08:40:42.958000+02:00 nayem https://community.sap.com/t5/user/viewprofilepage/user-id/1433480 <P>I have downloaded the crystal report with 30 day trial, in the license manager I'm seeing 'report creation api: no'</P> 2024-04-08T08:40:42.958000+02:00 https://community.sap.com/t5/financial-management-q-a/sap-business-bydesign-and-soap-ui/qaq-p/13662328 SAP Business Bydesign and SOAP UI 2024-04-08T13:28:26.549000+02:00 byd https://community.sap.com/t5/user/viewprofilepage/user-id/1424802 <P>required items under the following acquisition conditions.<BR />Also, what is the text content of the XML file to be included in the SOAP UI?</P><P>&nbsp;</P><P><Acquisition conditions&gt;<BR />Invoice Request Type: Customer Return Invoice Request<BR />External Reference: 1000</P><P><BR />&lt;Item to be obtained&gt;<BR />Invoice Request ID (Document ID)<BR />Status<BR />External Reference</P> 2024-04-08T13:28:26.549000+02:00 https://community.sap.com/t5/human-capital-management-q-a/successfactor-s-story-report-stream-performance-data-from-sfsf-to-sftp/qaq-p/13668272 SuccessFactor’s Story Report - stream performance data from SFSF to SFTP Servers 2024-04-12T15:04:42.452000+02:00 gloriakurz https://community.sap.com/t5/user/viewprofilepage/user-id/76095 <P>Hi all,</P><P>as we know table reports&nbsp;will be Deleted on November 21, 2025. <SPAN><SPAN class="">We have many customers that are working with table reports and stream performance data from SFSF to SFTP Servers.</SPAN></SPAN></P><P>Will be in the future also an integration between story reports and HCM or what is the new way when table reports will be deleted on november 2025?</P><P>Thanks a lot and best regards</P><P>Gloria</P><P><a href="https://community.sap.com/t5/c-khhcw49343/SAP+SuccessFactors+People+Analytics/pd-p/73554900100800002745" class="lia-product-mention" data-product="169-1">SAP SuccessFactors People Analytics</a>&nbsp;<a href="https://community.sap.com/t5/c-khhcw49343/SAP+SuccessFactors+Compensation/pd-p/73555000100800000771" class="lia-product-mention" data-product="159-1">SAP SuccessFactors Compensation</a>&nbsp;<a href="https://community.sap.com/t5/c-khhcw49343/API+Management/pd-p/67838200100800006828" class="lia-product-mention" data-product="358-1">API Management</a>&nbsp;</P> 2024-04-12T15:04:42.452000+02:00 https://community.sap.com/t5/technology-q-a/java-io-ioexception-attempted-read-from-closed-stream/qaq-p/13670580 java.io.IOException: Attempted read from closed stream 2024-04-15T09:45:44.187000+02:00 brandonleenaido https://community.sap.com/t5/user/viewprofilepage/user-id/180605 <P>Good day,</P><P>We have setup new integrations on Integration Suite which connect to Success Factors API via API Management.</P><P>We get the following error when the integration runs on schedule (intermittently):</P><P><SPAN>java.io.IOException: Attempted read from closed stream</SPAN></P><P><SPAN>We are unable to pin point or reproduce the error in our QA environement.</SPAN></P><P>Has anyone experienced or resolved this issue before?</P><P>Regards,</P><P>Brandon</P> 2024-04-15T09:45:44.187000+02:00 https://community.sap.com/t5/technology-q-a/query-delivery-note-based-on-counter-sales-number/qaq-p/13670670 Query delivery note based on counter sales number 2024-04-15T10:31:01.491000+02:00 jiabao_zhou https://community.sap.com/t5/user/viewprofilepage/user-id/887584 <P>How to query the delivery note through the counter sales number? I have tried many interfaces, including Odata and web APIs, which only query the delivery note based on the sales order number and not the counter sales number. Could you please provide the relevant interface? I am using the sap byd version and I am very anxious. Thank you</P> 2024-04-15T10:31:01.491000+02:00 https://community.sap.com/t5/technology-q-a/how-can-we-do-error-handling-in-an-interface-on-public-cloud-where/qaq-p/13672569 How can we do error handling in an interface on public cloud where integration is done on APIgee? 2024-04-16T21:09:06.471000+02:00 piyushvj31 https://community.sap.com/t5/user/viewprofilepage/user-id/610426 <P>We have a client requirement where we are trying to integrate third party systems with SAP S/4 cloud using APIgee as middleware. How can we do error logging, reporting and reprocessing?</P> 2024-04-16T21:09:06.471000+02:00 https://community.sap.com/t5/technology-q-a/api-client-locked/qaq-p/13683991 API Client Locked 2024-04-26T21:03:41.050000+02:00 Ron_Hagan https://community.sap.com/t5/user/viewprofilepage/user-id/114921 <P>I have an application that uses an OData API (kubernetes) and it's been working great.&nbsp; I have a function that gets the Bearer Token and passes it to the main function.</P><P>I was trying to do the same thing in an IM Advanced Workflow Groovy script and for some reason, not only is it NOT working but I tried so many times (unsuccessfully) that I'm getting "Client locked" as an error.</P><P>Will it unlock after a predetermined period of time or am I hosed?</P><P>Thanks!</P><P>Ron</P> 2024-04-26T21:03:41.050000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/how-to-find-and-debug-the-technical-object-called-in-the-backend-for-an-api/qaq-p/13688272 How to find AND debug the technical object called in the backend for an API call in S/4 HANA Cloud? 2024-05-01T12:47:15.576000+02:00 sdig89 https://community.sap.com/t5/user/viewprofilepage/user-id/1404879 <P>Hello experts,&nbsp;</P><P>I am working on&nbsp;<STRONG>S/4 HANA Cloud: Public edition version 2402</STRONG> and I would like to know how to find the technical name of the objet (BAPI? FM?) called in the backend system, when running a released API as we can find in SAP Business Accelerator hub.</P><P>For instance, to create a Sales Order, 3 APIs are available in the hub for public cloud:&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="sdig89_0-1714556512256.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/104348i521DB747F87D58C5/image-size/medium?v=v2&amp;px=400" role="button" title="sdig89_0-1714556512256.png" alt="sdig89_0-1714556512256.png" /></span></P><P><STRONG>1/</STRONG> We are not sure yet which one we should pick for our requirement. <STRONG>Any help on this?</STRONG></P><P><STRONG>2/</STRONG> More important, I really want to be able <STRONG>to debug in Eclipse</STRONG> ABAP Development Tools, any Tryout call we do when testing one of these APIs. <STRONG>How can I do that?</STRONG> I have already access to ADT and to the backend system, was able to debug backend for some other requirements (not API calls), but would like to be able to debug API calls.&nbsp;</P><P>I tried a put a breakpoint in ADT for the technical API communication user used when calling the API from Postman or from the API Hub website (tryout feature), but still, the breakpoint is not triggered. <STRONG>What am I missing?</STRONG></P><P><STRONG>3/</STRONG> I would like to <STRONG>know exactly the technical object</STRONG> (BAPI name if any?) behind each API? I assume one of these "Create Sales Order (A2A) or (A2X)" APIs to create a Sales Order, calls in the backend&nbsp;<STRONG>BAPI_SALESORDER_CREATEFROMDAT2</STRONG>, right?&nbsp;</P><P>By the way, the API calls have status 200, but still, not able to debug any of the API calls, nor able to find the technical objects called in the backend system, from the API call done in the cloud.</P><P>Thank you&nbsp;</P> 2024-05-01T12:47:15.576000+02:00 https://community.sap.com/t5/technology-q-a/cache-oauth-token-using-cache-policies-in-sap-apim/qaq-p/13692894 Cache OAuth token using Cache policies in SAP APIM 2024-05-06T17:30:36.095000+02:00 faisaljamal1 https://community.sap.com/t5/user/viewprofilepage/user-id/1029743 <P>Hello All,</P><P>I have a doubt regarding the cache policies and how they can be used for caching the OAuth token. I am working on an API to connect to SuccessFactors and I am using OAuth as the Authentication. Here is the high level overview/ sequence of policies in the Pre-Flow of Target EndPoint</P><P>1. KeyValueMapOperations</P><P>2. LookUpCache</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="faisaljamal1_0-1715007624493.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/106382i26E610D365AD45BB/image-size/medium?v=v2&amp;px=400" role="button" title="faisaljamal1_0-1715007624493.png" alt="faisaljamal1_0-1715007624493.png" /></span></P><P>3. GenerateSAMLAssertion (with policies for encoding)</P><P>4. AssignMessage (creating Request before call to get token)</P><P>5. ServiceCallOut</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="faisaljamal1_1-1715007816528.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/106386iCC87DC77BBED7D51/image-size/medium?v=v2&amp;px=400" role="button" title="faisaljamal1_1-1715007816528.png" alt="faisaljamal1_1-1715007816528.png" /></span></P><P>6. RaiseFault</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="faisaljamal1_2-1715007868769.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/106388i16426D96492FC3C8/image-size/medium?v=v2&amp;px=400" role="button" title="faisaljamal1_2-1715007868769.png" alt="faisaljamal1_2-1715007868769.png" /></span></P><P>7. ExtractVariables (to fetch token and expiry time)</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="faisaljamal1_3-1715007914899.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/106389i9BF3B80C1C15CC63/image-size/medium?v=v2&amp;px=400" role="button" title="faisaljamal1_3-1715007914899.png" alt="faisaljamal1_3-1715007914899.png" /></span></P><P>8. PopulateCache</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="faisaljamal1_4-1715007958952.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/106390i6C57CF09CBC7673E/image-size/medium?v=v2&amp;px=400" role="button" title="faisaljamal1_4-1715007958952.png" alt="faisaljamal1_4-1715007958952.png" /></span></P><P>After this I have included "AssignMessage" in the PostFlow to set the Authorization Header before making the call to access the resource.&nbsp;</P><P>This set up is working fine in general, but the consumer of this API has reported that they sometimes get the following error:</P><P>[LGN0022]The access token has expired. The token was issued at 4/23/24 8:45 AM and expired at 4/24/24 8:45 AM. Please use the "new_token" parameter to generate a new token.</P><P>My understanding is that this issue might be occurring when the token which is used from the cache is expired before the call is made to the Successfactors. But ideally, this should happen only once throughout the duration set by the "TimeoutInSec" parameter of PopulateCache policy. Is this understanding correct?</P><P>Also, How does the "TimeoutInSec" parameter works in general. Does its value automatically decrease after after every run of the API? And, should I reduce the value of "expires_in" by 60-90 seconds before setting it in ExpirySettings in Populatecahe policy? Or in general what should be done to avoid the error caused by token expiry?</P><P>I am not able to simulate this error as the token is valid for 24 hours and the API works fine without any errors duging the testing, for eg, with POSTMAN. Any help would be appreciated. Thanks!</P><P>Regards,</P><P>Faisal</P> 2024-05-06T17:30:36.095000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/create-sale-orders-via-api-or-3rd-integration-with-sap-ecc-6/qaq-p/13696182 Create sale orders via API or 3rd integration with SAP ECC 6 2024-05-09T11:57:51.498000+02:00 hoangnh4 https://community.sap.com/t5/user/viewprofilepage/user-id/1453127 <P>Hi there,<BR />I'm using SAP ECC 6, can I create sale orders via API or 3rd integration?</P><P>Please give me docs if you can.</P><P>Thank you in advance!</P><DIV><DIV class="">&nbsp;</DIV></DIV> 2024-05-09T11:57:51.498000+02:00