https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/Document-Information-Extraction-qa.xml SAP Community - Document Information Extraction 2026-02-18T12:10:33.046862+00:00 python-feedgen Document Information Extraction Q&A in SAP Community https://community.sap.com/t5/technology-q-a/how-to-upload-documents-in-bulk-using-a-background-job-document-information/qaq-p/14107469 How to upload documents in bulk using a background job - Document information Extraction 2025-05-21T09:50:18.336000+02:00 ewa_poss https://community.sap.com/t5/user/viewprofilepage/user-id/771251 <P>hi guys,</P><P>Could you let me know if there's an option to upload documents to Document Information Extraction via a batch job or another tool/program, in a more automated way than uploading document by document manually by a user? And if yes, how to achieve this?</P><P>I have a case where I will receive hundreds of scanned documents every day (purchase orders) in a specific folder, from which a job or program should pick them up one by one and try to upload them to Document Information Extraction (DIE).</P><P>best,</P><P>Ewa</P> 2025-05-21T09:50:18.336000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/table-change-not-possible-there-is-a-db-trigger-on-the-table/qaq-p/14154960 Table change not possible. There is a db trigger on the table 2025-07-17T11:01:03.997000+02:00 Prajwal_N1 https://community.sap.com/t5/user/viewprofilepage/user-id/1399883 <P>"Table change not possible. There is a DB trigger on the table." I am facing this issue; how to solve this?</P><P>&nbsp;</P><P> </P> 2025-07-17T11:01:03.997000+02:00 https://community.sap.com/t5/crm-and-cx-q-a/oppt-prioritization-score-custom-agent-in-sap-cx-ai-toolkit/qaq-p/14159317 Oppt Prioritization score custom Agent in SAP CX AI Toolkit 2025-07-22T17:26:06.300000+02:00 ruchi19 https://community.sap.com/t5/user/viewprofilepage/user-id/2214 <P>Hi Experts,</P><P>I am trying to create a custom AI agent for opportunities called&nbsp;Oppt Prioritization score agent. For this i created an AI Tool by giving the following prompt:</P><P>You are an opportunity prioritization agent in the SAP CX AI Toolkit for SAP Sales Cloud V2. Analyze all opportunities with Opprtunity.Status with Open status.</P><P>Calculate the prioritization score based on the following weighted criteria:<BR />1. Opportunity.Expected_Value (50% weight)<BR />2. Opportunity.Probability (30% weight)<BR />3. Opportunity.Close_Date within 30 days from the Opportunity.Current_Date (20% weight)<BR />Assumptions<BR />4.Opportunity.Probability is assumed to be a percentage (0-100).<BR />5.The Opportunity.Close_Date condition is binary, based on whether it falls within 30 days from the Opportunity.Current_Date, interpreted as future dates for prioritization.</P><P>Priotitization Score = 0.5*{Opportunity.Expected_Value} + 0.3*{Opportunity.Probability} + 0.2*{cases}<BR />1 {ifOpportunity.Close_Date is within 30 days from the Opportunity.Current_Date} else<BR />0<BR />end{cases}</P><P>Provide a one-sentence explanation per opportunity justifying its ranking and, sorted by Amount (descending). Use a professional tone and avoid technical jargon.<BR />For each opportunity, provide a brief, actionable follow-up recommendation (e.g., “Schedule a discovery call to discuss budget constraints”). Use a concise, professional tone and leverage intelligent Q&amp;A to ensure recommendations are contextually relevant.<BR />Include a summary of recent interactions for each opportunity, generated using the toolkit’s AI summary capabilities. Use a professional tone and ensure recommendations support team collaboration.<BR />Ensure Output Fits Within 5000 Chatacters<BR />Compact Formatting--&gt; Remove unnecessary spaces &amp; line breaks.<BR />Limit Answer Length--&gt; Max 500 Characters per answer, truncate with "..."</P><P>I assigned this AI tool to the custom AI Agent.The details (PFA screenshot) which are used are</P><P>Expected value = 15000 USD</P><P>Probability = 80</P><P>Close Date = 25 Jul 2025</P><P>The calculation for close date is incorrect, it should be 1, but it is coming as 0. Any suggestions how can i achieve the condition for the close date?</P> 2025-07-22T17:26:06.300000+02:00 https://community.sap.com/t5/technology-q-a/sap-business-process-automation-with-document-information-extraction/qaq-p/14161696 SAP Business Process Automation with Document Information Extraction - extract data using AI 2025-07-24T17:10:26.475000+02:00 AdrianW https://community.sap.com/t5/user/viewprofilepage/user-id/3936 <P>Greetings,</P><P>I am building a automation process and want to use the activity "Extract Data Using AI (Premium), reference can be found here&nbsp;<A href="https://help.sap.com/doc/ef04046d675e4c13aca8b0ff9d85d2a8/Cloud/en-US/modules/dox.html#extractDataWithGenAi" target="_blank" rel="noopener noreferrer">IRPA SDK V2.</A></P><P>It is marked as Alpha, so I'm not sure what that means. I am using&nbsp;Document Information Extraction SDK version 1.75.21 (the latest) but this activity is not available within the SDK.&nbsp;</P><P>Can you please let me know when it will be available as it is key to the process I am building. As we have many document types I do not want to extract based on a template. We do have DOX premium service to allow for gen AI extraction based on the schema only.</P><P>Many thanks in advance for your help, Adrian</P> 2025-07-24T17:10:26.475000+02:00 https://community.sap.com/t5/technology-q-a/quot-message-quot-quot-missing-parameter-options-quot-in-sap-document-ai/qaq-p/14168090 "message": "Missing parameter: options" in SAP Document AI Upload API 2025-07-31T12:56:28.550000+02:00 AnirbanB https://community.sap.com/t5/user/viewprofilepage/user-id/1631372 <P>Hi Team,</P><P>While working with the document upload api (below) in SAP document AI API from BAS&nbsp;</P><DIV><DIV><SPAN>../document-information-extraction/v1/document/jobs getting the error in network response -</SPAN></DIV><DIV><SPAN>{<BR />"error": {<BR />"code": "E95",<BR />"message": "Required form-data not provided.",<BR />"details": [<BR />{<BR />"code": "0",<BR />"message": "Missing parameter: options"<BR />}<BR />]<BR />}<BR />}</SPAN></DIV><DIV><SPAN>while the same is working fine from Postman</SPAN></DIV><DIV><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ABhakta_0-1753959030409.png" style="width: 554px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/294532i729A6917189B514A/image-dimensions/554x305?v=v2" width="554" height="305" role="button" title="ABhakta_0-1753959030409.png" alt="ABhakta_0-1753959030409.png" /></span><P><SPAN>Any help is greatly appreciated. Thank you in advance.</SPAN></P><P><SPAN><a href="https://community.sap.com/t5/c-khhcw49343/SAP+Document+AI/pd-p/73554900100800002861" class="lia-product-mention" data-product="402-1">SAP Document AI</a>&nbsp;</SPAN></P></DIV></DIV> 2025-07-31T12:56:28.550000+02:00 https://community.sap.com/t5/technology-q-a/is-it-possible-to-structure-dox-files-in-folders-and-subfolders/qaq-p/14174829 Is it possible to structure DOX files in folders and subfolders? 2025-08-07T14:51:43.064000+02:00 TMNielsen https://community.sap.com/t5/user/viewprofilepage/user-id/16897 <P>Hi&nbsp;</P><P>When we load documents via the DOX web UI or via API endpoint, the documents are just places in one big unstructured stack and the UI seems to have no option to structure these files and even not very good search functionality.&nbsp;<BR /><BR />I have below test setup with currently only 3 documents, but when wh go live I expect we will have maybe hundreds of documents loaded every day and the documents will be for different solutions like purchase order, sales invoices, and some custom made documents for certificates.&nbsp;<BR />It is not nice that these documents are just in a big stack and I can't even filter on template or schema.<BR /><BR />Or can I? Are there some tools that I didn't see?</P><P><BR /><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TMNielsen_0-1754570370930.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/297984iE1B35F8BC3FAE505/image-size/large?v=v2&amp;px=999" role="button" title="TMNielsen_0-1754570370930.png" alt="TMNielsen_0-1754570370930.png" /></span></P><P>Kind Regards<BR />Thomas Madsen Nielsen</P> 2025-08-07T14:51:43.064000+02:00 https://community.sap.com/t5/technology-q-a/customizing-extraction-fields-in-sap-document-information-extraction-dox/qaq-p/14178960 Customizing Extraction Fields in SAP Document Information Extraction (DOX) 2025-08-12T19:47:26.625000+02:00 kevinkim0908 https://community.sap.com/t5/user/viewprofilepage/user-id/2225535 <DIV>Hello,&nbsp;</DIV><DIV><BR />I’m currently evaluating SAP Document Information Extraction (DOX) in SAP Document AI using a trial account. Although I’ve noticed that it extracts every text very accurately, not every text is being mapped to the extraction fields.</DIV><DIV>&nbsp;</DIV><DIV>I wanted to add/customize header fields myself to map the extracted text to header fields or line items better (while following this link<SPAN>&nbsp;</SPAN><A title="https://help.sap.com/docs/document-ai/sap-document-ai/add-data-fields" href="https://help.sap.com/docs/document-ai/sap-document-ai/add-data-fields" target="_blank" rel="noopener noreferrer">https://help.sap.com/docs/document-ai/sap-document-ai/add-data-fields</A>&nbsp;to add data fields) but schema configuration&nbsp;doesn’t appear in my trial environment. It also states that I cannot change SAP schemas as shown in the attached image below:<BR /><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kevinkim0908_0-1755018997313.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/300033i19590D5A6393D8D1/image-size/medium?v=v2&amp;px=400" role="button" title="kevinkim0908_0-1755018997313.png" alt="kevinkim0908_0-1755018997313.png" /></span><BR />So I was wondering if&nbsp;it's possible to edit/customize extraction fields in the premium version of SAP Document AI? If so, does this customization occur before the optical character recognition (OCR) to guide the model, or only after OCR to map extracted text to fields?</DIV><DIV>&nbsp;</DIV><DIV>Defining custom field mappings before OCR would be extremely valuable for my team's use case, so I’d greatly appreciate if anyone can explain what’s possible before I consider upgrading to a full subscription. Thank you.</DIV> 2025-08-12T19:47:26.625000+02:00 https://community.sap.com/t5/technology-q-a/how-do-i-make-dox-learn/qaq-p/14191103 How do I make DOX learn? 2025-08-25T14:36:45.387000+02:00 TMNielsen https://community.sap.com/t5/user/viewprofilepage/user-id/16897 <P>Hi&nbsp;<BR /><BR />I trying to load some purchase orders with different layouts. I Need to extract at least one field that is not included in the SAP standard schema (EAN no.), so I made a copy of the <SPAN>SAP_purchaseOrder_schema&nbsp;</SPAN>and added the ean header field to the copy.</P><P>The new field can have setup type Manual or Auto (with a default extractor). As I understand the documentation, a custom field must have setup type Manual. Also I understand that only setup type Auto will use the AI functionality and if I chose Manual setup type, I must make a template. Does this mean that fields with Auto are handled by the AI and fields with Manual are depending on the template?</P><P>So I have made the new field with setup type Manual and I have made a template.</P><P>Then I uploaded a file. Some data was extracted wrongly so I entered Edit mode and corrected the errors and saved the document again. Then I addet the document to the template.</P><P>Now I expected DOX to have learned from the corrections I made, but if I load exactly same document again, it still makes the same errors.</P><P>So, can anyone explain how DOX can learn and what setup influence the learning and what I can to to teach DOX?</P><P>Also I would like to understand, if I have 3 purchase orders with 3 very different layouts, can I handle this by adding the 3 documents to one template or must I create 3 templates or is it even better to create 3 different schemas?<BR /><BR />I hope it is allright that I asked 3 questions in this thread as I think they are all related to the subject - how does DOX learn and fix extraction errors?</P><P>Kind Regards&nbsp;<BR />Thomas Madsen Nielsen</P> 2025-08-25T14:36:45.387000+02:00 https://community.sap.com/t5/technology-q-a/the-limited-no-of-documents-in-the-trial-version-of-sap-document-ai-must/qaq-p/14204462 The limited no of documents in the Trial version of SAP Document AI must increase to make sense 2025-09-02T13:47:49.518000+02:00 TMNielsen https://community.sap.com/t5/user/viewprofilepage/user-id/16897 <P>Hi&nbsp;<BR /><BR />Depending on where you read documentation, the limited no of document that can be loaded in a Trial DOX is either 30 or 50 documents per month - with the addition that it counts one document per every 3 pages in a file.<BR /><BR />This very little - almost useless. On top of this the usage statistics in BTP are unreliable, so the counted usage is higher than reality.</P><P>I have a BTP trial account with a trial DOX where I have loaded 17 document. 7 in August and 10 in September, but the usage statistics says I have loaded 40 documents in September and now my quota is used. I know 100% sure I loaded the same document 10 times in september and the document was only 2 pages, so it should count 10 documents instead of 40.</P><P>Also it is frustrating that the usage statistics says I loaded 47 documents, but even if that was correct (it isn't), the documentation says that the quota is 50 documents per 30 days (rolling period), so according to documentation my quota is not used in any way.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TMNielsen_4-1756813469863.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/307853i08F057F57B80435A/image-size/large?v=v2&amp;px=999" role="button" title="TMNielsen_4-1756813469863.png" alt="TMNielsen_4-1756813469863.png" /></span></P><P>&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TMNielsen_1-1756813094483.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/307848i02C205D4F1D3C0DC/image-size/large?v=v2&amp;px=999" role="button" title="TMNielsen_1-1756813094483.png" alt="TMNielsen_1-1756813094483.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TMNielsen_2-1756813134844.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/307850i97B92B0DB2E203CC/image-size/medium?v=v2&amp;px=400" role="button" title="TMNielsen_2-1756813134844.png" alt="TMNielsen_2-1756813134844.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TMNielsen_3-1756813381123.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/307852iA96C39AD1952C322/image-size/large?v=v2&amp;px=999" role="button" title="TMNielsen_3-1756813381123.png" alt="TMNielsen_3-1756813381123.png" /></span></P><P><BR />If SAP wants to sell SAP Document AI, they should increase the quota. If we can't really test it, why should we buy it?<BR /><BR />Also I find it disturbing that the usage statistics count usage that does not exist. I have seen this problem not only in trail versions, but also in Pay-As-You-Go.<BR /><BR />Just my 2 cents.</P><P>Thomas Madsen Nielsen</P> 2025-09-02T13:47:49.518000+02:00 https://community.sap.com/t5/technology-q-a/how-to-integrate-sap-document-ai-with-sap-build-process-automation/qaq-p/14207349 How to Integrate SAP Document AI with SAP Build Process Automation 2025-09-04T14:02:04.049000+02:00 yathampavansap https://community.sap.com/t5/user/viewprofilepage/user-id/889712 <P>Perfect <span class="lia-unicode-emoji" title=":thumbs_up:">👍</span> Here’s your full <STRONG>rephrased + enhanced message</STRONG> including the part about creating an Action for file upload. You can use this directly in your SAP Community or Blog:</P><HR /><P>I have created an instance of <STRONG>SAP Document AI</STRONG> and built a few custom schemas to read PDFs. Everything works fine when tested directly in Document AI.</P><P>Now, I want to <STRONG>integrate it with SAP Build Process Automation (BPA)</STRONG>. For this, I have already created a <STRONG>destination</STRONG>.</P><P>My question:<BR /><span class="lia-unicode-emoji" title=":backhand_index_pointing_right:">👉</span> How can I create an <STRONG>Action in BPA</STRONG> to upload a file to Document AI?</P><UL><LI><P>Do we need to use a <STRONG>Custom Script</STRONG> to achieve this, or is it recommended to only create <STRONG>Actions in BPA</STRONG> and then call them in a process?</P></LI></UL><P>If the recommended approach is to use an <STRONG>Action</STRONG>, can someone guide me on <STRONG>how to create an Action in BPA for file upload</STRONG>?</P><P>Specifically:</P><UL><LI><P>How should the <STRONG>input parameters</STRONG> (like PDF file and options JSON) be defined in the Action?</P></LI><LI><P>How do we configure the <STRONG>multipart/form-data</STRONG> request inside the Action?</P></LI><LI><P>Once created, can this Action be directly reused in different BPA processes for uploading files?</P></LI></UL><P>Would really appreciate your guidance. Thanks in advance!</P><P>For reference, below are the steps I followed in Postman which work successfully:</P><H3 id="toc-hId-1888278721">Step 1: Upload the PDF</H3><P>Call the <STRONG>Upload API</STRONG> with multipart/form-data.</P><UL><LI><P><STRONG>file</STRONG> → PDF document</P></LI><LI><P><STRONG>options</STRONG> → JSON with schema details</P></LI></UL><P>Example:</P><PRE>{ "schemaId": "69d84f47-b658-46fb-a330-d9aadd602112", "clientId": "default", "documentType": "invoice" }</PRE><P><span class="lia-unicode-emoji" title=":backhand_index_pointing_right:">👉</span> Response returns a <STRONG>Job ID</STRONG>.</P><H3 id="toc-hId-1691765216">Step 2: Check Job Status</H3><P>Use the <STRONG>Get Job API</STRONG> with the Job ID.<BR />Proceed when status = SUCCEEDED.</P><H3 id="toc-hId-1495251711">Step 3: Fetch Extracted Data</H3><P>Call the <STRONG>Get Result API</STRONG> with the Job ID to get the extracted data in JSON format (header details, line items, etc.).</P><HR /><P><span class="lia-unicode-emoji" title=":white_heavy_check_mark:">✅</span> Now, I’m looking for help on how to configure this same upload flow as an <STRONG>Action in SAP BPA</STRONG>, so I can call it directly from an automation.</P> 2025-09-04T14:02:04.049000+02:00 https://community.sap.com/t5/technology-q-a/sap-document-ai-item-splitted-to-2-pages/qaq-p/14211966 SAP Document AI - item splitted to 2 pages 2025-09-09T13:36:18.246000+02:00 PatrikMajer https://community.sap.com/t5/user/viewprofilepage/user-id/121736 <P>Hi everyone,</P><P>In SAP Document AI (Premium version), I run into a limitation when invoices or other documents contain line items that are split across two pages.</P><P>Instead of treating them as one item, the service always creates two separate items. I know this is a known limitation, but I’m trying to understand if there are any <EM>workarounds</EM> or configuration options that can help.</P><P>So far I’ve tried:</P><UL><LI><P>Enabling <STRONG>Instant Learning</STRONG></P></LI><LI><P>Setting <STRONG>dataFeedbackCollection = true</STRONG></P></LI></UL><P>…but it doesn’t improve the results.</P><UL><LI><P>Has anyone found a reliable way to handle split line items?</P></LI><LI><P>Are there service settings or template tricks that help?</P></LI><LI><P>Or is post-processing/merging the only practical solution at this point?</P></LI></UL><P>Would love to hear how others are dealing with this.</P><P>Thank you</P> 2025-09-09T13:36:18.246000+02:00 https://community.sap.com/t5/technology-q-a/blog-post-integrate-sap-document-ai-with-sap-build-process-automation-on-a/qaq-p/14219067 Blog Post : Integrate SAP Document AI with SAP Build Process Automation on a Trial Account 2025-09-16T19:38:52.286000+02:00 25shahindrajit25 https://community.sap.com/t5/user/viewprofilepage/user-id/2151955 <H2 id="toc-hId-1760176282">Introduction</H2><P>In today's digital world, automating document-heavy processes is key to improving efficiency and accuracy. Manually extracting data from invoices, purchase orders, or delivery notes is time-consuming and prone to errors. This is where the powerful combination of&nbsp;SAP Document AI&nbsp;and&nbsp;SAP Build Process Automation&nbsp;comes into play.</P><P>SAP Document AI uses machine learning to intelligently extract structured data from unstructured documents. SAP Build Process Automation allows you to design, build, and run automated workflows. By integrating these two services, you can create robust automations that read, interpret, and process documents just like a human would, but faster and without fatigue.</P><P>In this blog post, we will walk through the steps to integrate these two services on a trial account, using a standard invoice schema to extract data.</P><H4 id="toc-hId-1821828215">Prerequisites</H4><UL><LI>An active&nbsp;SAP BTP Trial Account.</LI><LI>Access to&nbsp;SAP Build Process Automation&nbsp;in your trial subaccount.</LI><LI>Basic familiarity with the SAP Build Process Automation studio.</LI></UL><H4 id="toc-hId-1625314710">Step 1: Subscribe to SAP Document AI</H4><P>The easiest way to get started with SAP Document AI on SAP BTP is by using the booster tool.</P><OL><LI>Log in to your&nbsp;SAP BTP Trial Account&nbsp;cockpit.</LI><LI>Navigate to your&nbsp;Subaccount&nbsp;and go to the&nbsp;Booster.</LI><LI>Search for&nbsp;"SAP Document AI"&nbsp;and click on Start.</LI><LI>Run the booster. It will automatically:<BR /><OL><LI>Subscribe you to the service.</LI><LI>Create a service instance and a service key.</LI></OL></LI><LI>Once the booster completes, go to your&nbsp;Subaccount&nbsp;-&gt;&nbsp;Instances and Subscriptions.</LI><LI>Find your newly created service instance for SAP Document AI and navigate to its&nbsp;Service Keys. Open the default service key.</LI><LI>Crucial:&nbsp;From the JSON of the service key, note down the following values. You will need them in the next step:<OL><LI>uaa.clientid</LI><LI>uaa.clientsecret</LI><LI>uaa.url</LI></OL></LI></OL><PRE>Note:&nbsp;To access the SAP Document AI service on the browser (e.g., to check schemas or test manually), ensure your user has the appropriate roles assigned by the booster, such as&nbsp;Document_Information_Extraction_Viewer.</PRE><H4 id="toc-hId-1428801205">Step 2: Generate an Access Token in your Automation</H4><P>To call any SAP Document AI API, you need a valid OAuth access token. We will generate this using the client credentials from the service key.</P><OL><LI>In your SAP Build Process Automation project, create three&nbsp;String variables:<OL><LI>uaaUrl&nbsp;(Value: The&nbsp;uaa.url&nbsp;from your service key)</LI><LI>clientId&nbsp;(Value: The&nbsp;uaa.clientid&nbsp;from your service key)</LI><LI>clientSecret&nbsp;(Value: The&nbsp;uaa.clientsecret&nbsp;from your service key)</LI></OL></LI><LI>Create a fourth variable to hold the combined client ID and secret, encoded in Base64. Name it&nbsp;clientInfo.</LI><LI>Use a&nbsp;Script&nbsp;activity to construct the request for the access token. Set the&nbsp;Output&nbsp;parameter of this script to a variable of type&nbsp;Any&nbsp;(e.g.,&nbsp;optionsGet).<OL><LI>Script Code for Access Token Request:</LI></OL></LI></OL><pre class="lia-code-sample language-javascript"><code>return { method: 'GET', url: uaaUrl + '/oauth/token?grant_type=client_credentials', responseType: 'json', resolveBodyOnly: true, headers:{ Authorization:'Basic ' + clientInfo } };</code></pre><UL><LI>After this script, use an Rest Call Web Service&nbsp;activity.</LI><LI>The response contains an&nbsp;access_token&nbsp;field. Extract this token into a new string variable or directly pass it to the variable. The value should be:<OL><LI>"Bearer " + step2.obj.access_token</LI></OL></LI></UL><H4 id="toc-hId-1232287700">Step 3: Upload a Document for Processing</H4><P>Now that we have an access token, we can upload an invoice document for processing. We will use the pre-built&nbsp;SAP_invoice_schema.</P><OL><LI>Ensure you have the path to your invoice file stored in a variable (e.g.,&nbsp;fileObj).</LI><LI>Use another&nbsp;Script&nbsp;activity to construct the multipart/form-data request for document upload. The output will be your request configuration.</LI><LI>Use an Rest Call Web Service&nbsp;activity to execute this request.<OL><LI>Script Code for Document Upload:</LI></OL></LI></OL><pre class="lia-code-sample language-javascript"><code>// Define the extraction options let optionsPayload = { documentType: "custom", schemaName: "SAP_invoice_schema", // Using the pre-built schema // Below commented values are optional, if you want you can use as per requirement. //headerFields: ["deliveryNoteNumber", "purchaseOrderNumber", "deliveryDate"], //lineItemFields: ["materialNumber", "quantity", "unitOfMeasure"], clientId: "default" }; // Construct the HTTP request options let requestOptions = { method: "POST", url: "https://aiservices-trial-dox.cfapps.us10.hana.ondemand.com/document-information-extraction/v1/document/jobs", responseType: "json", resolveBodyOnly: true, metadataType: irpa_core.enums.request.metadataType.formData, // Crucial for file upload headers: { Authorization: access_Token // Use the variable from previous step }, metadata: [ { name: "file", file: fileObj, // Variable holding the file path }, { name: "options", value: JSON.stringify(optionsPayload) } ], timeout: 30000 // Set a longer timeout for file upload }; return requestOptions;​</code></pre><UL><LI>From the&nbsp;uploadResponse, extract two crucial values:<OL><LI>The job&nbsp;id&nbsp;(e.g., into&nbsp;jobId). You will need this to check the result.</LI><LI>The initial&nbsp;status. It will be&nbsp;'PENDING', meaning the AI is processing the document.</LI></OL></LI></UL><H4 id="toc-hId-1035774195">Step 4: Retrieve the Extracted Data</H4><P>Processing with AI is not instantaneous. We need to poll the service until the status changes from&nbsp;PENDING&nbsp;to&nbsp;DONE.</P><OL><LI>Create a Data Type:&nbsp;First, create a simple Data Type (e.g.,&nbsp;ExtractionResult) with two fields:<OL><LI>Status&nbsp;(Type: String)</LI><LI>Data&nbsp;(Type: Any)</LI></OL></LI><LI>Create a Variable:&nbsp;Create a variable (e.g.,&nbsp;finalResult) of this custom type&nbsp;ExtractionResult.</LI><LI>Set Initial Value:&nbsp;Initialize this variable. Set&nbsp;Status&nbsp;to&nbsp;'PENDING'&nbsp;and leave&nbsp;Data&nbsp;blank.</LI><LI>Build the Polling Request:&nbsp;Create a&nbsp;Script&nbsp;activity to build a GET request to check the job status. The output will be used in an HTTP Request.<OL><LI>Script Code for Retrieving Job Status/Result:</LI></OL></LI></OL><pre class="lia-code-sample language-javascript"><code>let requestOptions = { method: "GET", // Use the jobId from the upload step in the URL url: "https://aiservices-trial-dox.cfapps.us10.hana.ondemand.com/document-information-extraction/v1/document/jobs/" + jobId, responseType: "json", resolveBodyOnly: true, headers: { Authorization: access_Token, // Re-use the same access token 'Cache-Control': 'no-cache' } }; return requestOptions;​</code></pre><UL><LI>Implement the Polling Loop:<OL><LI>Drag a&nbsp;Forever Loop&nbsp;into your workflow.</LI><LI>In the loop's&nbsp;Condition, use the expression:&nbsp;finalResult.Status !== 'PENDING'. This means the loop will break as soon as the status is no longer 'PENDING'.</LI><LI>Inside the loop:<OL><LI>Use a Wait&nbsp;activity (e.g., wait for 2 seconds) to avoid making too many API calls.</LI><LI>Use the Rest Call Web Service&nbsp;activity with the configuration from the script above. Store the output in a temporary variable (e.g.,&nbsp;pollResponse).</LI><LI>Use a&nbsp;Set Variable&nbsp;activity to update&nbsp;finalResult.Status&nbsp;with&nbsp;pollResponse.status&nbsp;&nbsp;with&nbsp;pollResponse.</LI></OL></LI><LI>The loop will continue until the status in the API response changes to&nbsp;'DONE'. Once it breaks out of the loop,&nbsp;finalResult.Data&nbsp;will contain the fully extracted invoice data!</LI></OL></LI></UL><P>You can now use the extracted data&nbsp;in the subsequent steps of your automation, such as filling a form or triggering another process.</P><P><STRONG>The Flow will look like this:</STRONG></P><P><span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="25shahindrajit25_0-1758043381144.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/315356i28370F3BC10819F8/image-size/large?v=v2&amp;px=999" role="button" title="25shahindrajit25_0-1758043381144.png" alt="25shahindrajit25_0-1758043381144.png" /></span></P><H4 id="toc-hId-839260690">Conclusion</H4><P>Congratulations! You have successfully integrated SAP Document AI with SAP Build Process Automation. You have built an automation that can submit documents for processing and patiently wait for the AI to return the extracted structured data. This pattern can be applied to countless use cases involving invoices, contracts, forms, and more, unlocking significant potential for automation within your business processes.</P><P>This is just the beginning. You can explore creating custom schemas tailored to your specific document types for even more precise extraction.</P><P data-unlink="true">Feel free to connect here or on LinkedIn for any questions or suggestions.<BR /><BR />LinkedIn : Indrajit Shah&nbsp;<A href="https://www.linkedin.com/in/indrajit-shahkumar/" target="_blank" rel="nofollow noopener noreferrer">https://www.linkedin.com/in/indrajit-shahkumar/</A><BR />LinkedIn : Aditi Jain&nbsp;<A href="https://www.linkedin.com/in/aditi-jain-3b6b4a190/" target="_blank" rel="nofollow noopener noreferrer">https://www.linkedin.com/in/aditi-jain-3b6b4a190/</A><BR />Co-Author&nbsp;<a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1680442">@Aditii_Jain</a>&nbsp;&nbsp;</P><P>&nbsp;</P> 2025-09-16T19:38:52.286000+02:00 https://community.sap.com/t5/technology-q-a/question-when-will-my-blog-post-become-visible-on-sap-community/qaq-p/14236450 Question: When will my blog post become visible on SAP Community? 2025-10-07T09:50:03.016000+02:00 furkan5 https://community.sap.com/t5/user/viewprofilepage/user-id/2115025 <P>Hi everyone,<BR />I submitted a blog post this past Sunday (<STRONG>October 5, 2025</STRONG>). As far as I know, blog posts on SAP Community go through a moderation process before being published.</P><P>How long does this usually take? My post hasn't been published yet.<BR />Did I possibly miss something, or should I just wait a bit longer?</P><P>Thanks in advance <span class="lia-unicode-emoji" title=":folded_hands:">🙏</span></P> 2025-10-07T09:50:03.016000+02:00 https://community.sap.com/t5/product-lifecycle-management-q-a/unable-to-create-sap-document-ai-trial-instance-plan-blocks-of-100/qaq-p/14245637 Unable to create SAP Document AI Trial instance (plan blocks_of_100) 2025-10-16T11:07:45.603000+02:00 yuray76 https://community.sap.com/t5/user/viewprofilepage/user-id/850054 <P class="">Dear SAP Support Team,</P><P class="">We are currently testing the <SPAN class=""><STRONG>SAP Document AI Trial</STRONG></SPAN> service and have encountered an issue when trying to create a new instance — either via <SPAN class=""><STRONG>Booster</STRONG></SPAN> or manually through the <SPAN class=""><STRONG>BTP Cockpit</STRONG></SPAN>.</P><P class="">Each attempt fails with the following message:<BR />Couldn't create an instance of service 'SAP Document AI Trial' with plan 'blocks_of_100'.<BR />Operation failed.</P><P class="">The same behavior occurs across multiple <SPAN class=""><STRONG>trial subaccounts</STRONG></SPAN> and for <SPAN class=""><STRONG>different users</STRONG></SPAN>. Additionally, previously created instances cannot be deleted and show the status <SPAN class=""><STRONG>“Deletion Failed”</STRONG></SPAN>.</P><P class="">We understand this is a <SPAN class=""><STRONG>trial environment</STRONG></SPAN>, but could you please advise whether this behavior is expected or if there is any known limitation or temporary issue affecting the <SPAN class=""><STRONG>SAP Document AI Trial</STRONG></SPAN> service?</P><P class="">Any guidance or confirmation would be highly appreciated.</P><P class="">Thank you in advance for your help and time.</P> 2025-10-16T11:07:45.603000+02:00 https://community.sap.com/t5/technology-q-a/tutorial-use-machine-learning-to-extract-information-from-documents-with/qaq-p/14256594 Tutorial Use Machine Learning to Extract Information from Documents with Swagger UI - error 500 2025-10-30T01:02:13.117000+01:00 triminh_le181 https://community.sap.com/t5/user/viewprofilepage/user-id/2259623 <P>Hi,</P><P>I'm following the tutorial&nbsp;<A href="https://developers.sap.com/tutorials/cp-aibus-dox-swagger-ui..html" target="_blank" rel="noopener noreferrer">Use Machine Learning to Extract Information from Documents with Swagger UI | SAP Tutorials</A>.</P><P>When I try querying or posting data, it always returns error 500.</P><P>I'm using Trial subaccount - service instance&nbsp;<SPAN>SAP Document AI Trial - plan Default.</SPAN></P><P><SPAN>Has anyone encountered this issue?</SPAN></P><P><SPAN>Regards,</SPAN></P><P><SPAN>Tri</SPAN></P> 2025-10-30T01:02:13.117000+01:00 https://community.sap.com/t5/technology-q-a/best-practices-for-training-custom-invoice-templates-in-sap-document-ai/qaq-p/14264138 Best Practices for Training Custom Invoice Templates in SAP Document AI (Base Version) 2025-11-10T11:10:14.955000+01:00 yathampavansap https://community.sap.com/t5/user/viewprofilepage/user-id/889712 <H3 id="toc-hId-1893728520"><STRONG><span class="lia-unicode-emoji" title=":blue_book:">📘</span> Summary:</STRONG></H3><P>Looking for best practices on how to handle schema updates and reuse trained templates in <STRONG>SAP Document Information Extraction (DOX) Base Version</STRONG>. After adding new fields through schema versioning, previous training and mappings are not retained. Need guidance on whether retraining is required or if there’s a migration/reuse option.</P><H3 id="toc-hId-1697215015"><STRONG>Scenario:</STRONG></H3><P>I’ve been working on a custom invoice extraction setup using <STRONG>SAP Document Information Extraction (DOX) – Base Version</STRONG> (non-generative).<BR />The use case involves <STRONG>500 invoices with different layouts</STRONG>.</P><P>I created:</P><UL><LI><P>One <STRONG>custom schema</STRONG></P></LI><LI><P>Around <STRONG>100 templates</STRONG>, each trained manually with “Setup Type = Manual” for all fields</P></LI><LI><P>Training done successfully for ~100 invoices</P></LI></UL><H3 id="toc-hId-1500701510"><STRONG>&nbsp;New Requirement:</STRONG></H3><P>Later, we received a request to <STRONG>add 5 new fields</STRONG> to the existing schema.<BR />However, DOX doesn’t allow adding fields to an <STRONG>active schema version</STRONG> that already has templates.<BR />To add new fields, we must:</P><OL><LI><P><STRONG>Deactivate and delete the existing templates</STRONG>, or</P></LI><LI><P><STRONG>Create a new schema version</STRONG></P></LI></OL><P>I proceeded with <STRONG>creating a new schema version</STRONG> and added the new fields.</P><H3 id="toc-hId-1304188005"><STRONG>&nbsp;Challenge:</STRONG></H3><P>When uploading invoices using the <STRONG>new schema version</STRONG>, the <STRONG>existing training/mappings</STRONG> from version 1 are not available.<BR />It behaves as a completely new schema — none of the previously trained fields or templates are reused.</P><H3 id="toc-hId-1107674500"><STRONG>&nbsp;Question / Clarification Needed:</STRONG></H3><P>Do I need to <STRONG>retrain all 500 invoices</STRONG> again for the new schema version, or<BR />Is there any <STRONG>recommended approach or migration method</STRONG> to reuse the field mappings from the previous version?</P><HR /><H3 id="toc-hId-911160995"><STRONG><span class="lia-unicode-emoji" title=":rocket:">🚀</span> Discussion Points / Best Practices (to confirm with SAP team):</STRONG></H3><UL><LI><P>Is there any way to <STRONG>migrate or copy field mappings</STRONG> between schema versions?</P></LI><LI><P>What’s the <STRONG>best practice</STRONG> when new fields need to be added to a schema with multiple templates?</P></LI><LI><P>Should we <STRONG>plan all required fields</STRONG> before starting training to avoid versioning issues?</P></LI><LI><P>Does <STRONG>SAP DOX Premium (Generative AI)</STRONG> handle such cases more flexibly?</P></LI></UL><H3 id="toc-hId-714647490"><STRONG>&nbsp;</STRONG></H3> 2025-11-10T11:10:14.955000+01:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/hello-what-about-sap-ia-joule/qaq-p/14268985 Hello, what about SAP IA JOULE? 2025-11-14T11:34:09.879000+01:00 Patricia4 https://community.sap.com/t5/user/viewprofilepage/user-id/1431469 <P>Can a sap consultant get the SAP AI Joule?</P><P>BR</P> 2025-11-14T11:34:09.879000+01:00 https://community.sap.com/t5/technology-q-a/outlook-about-sap-document-ai-channels-and-workflow-features/qaq-p/14269152 Outlook about SAP Document AI - Channels and workflow features 2025-11-14T15:21:06.408000+01:00 TMNielsen https://community.sap.com/t5/user/viewprofilepage/user-id/16897 <P>Hi Document AI experts</P><P>According to the latest update of Document AI documentation, <EM>"The integration of the Channels and&nbsp;Workflows features lets you set up inbound channels that route incoming emails to appropriately configured workflows,&nbsp;automating sophisticated document-processing tasks."</EM></P><P>I have a request to make an automatic load of PDFs attached to emails in a outlook email folder and I was thinking about making a solution utilizing the MS-Graph API. Now it seems that SAP Document AI has build in functionality to handle this request, so I have put my MS-Graph idea on hold and hope that someone in here can share some experience and maybe even a guide how to set this up.<BR /><BR />Kind Regards<BR />Thomas Madsen Nielsen</P> 2025-11-14T15:21:06.408000+01:00 https://community.sap.com/t5/supply-chain-management-q-a/sap-ai-for-sap-transportation-management/qaq-p/14288796 SAP AI for SAP Transportation management 2025-12-11T13:25:51.909000+01:00 Sonal_leo https://community.sap.com/t5/user/viewprofilepage/user-id/2270224 <P>Hello,</P><P>Iam looking for an SAP AI just for the purpose of finding relevant information on SAP Transportation management relating to any issue or concept. That means i want to give a prompt and expects SAP AI to serach for information across sap ecosystem i.e. SAP Notes etc.</P><P>I have access to sap learning hub and practice system in the hub. Is it possible to use SAP AI in hub for the above question and if not how can i get a trial system of SAP AI for the above objective ?</P><P>rgds</P><P>S</P><P>&nbsp;</P> 2025-12-11T13:25:51.909000+01:00 https://community.sap.com/t5/technology-q-a/unexpected-line-item-extraction-behavior-in-purchase-orders-using-sap/qaq-p/14302401 Unexpected Line Item Extraction Behavior in Purchase Orders using SAP Document AI 2026-01-06T22:17:47.802000+01:00 aorozco https://community.sap.com/t5/user/viewprofilepage/user-id/839366 <P>Hi everyone,</P><P>We are currently using <STRONG>SAP Document Information Extraction (Premium Edition)</STRONG> and we have created a <STRONG>custom schema based on SAP’s standard Purchase Order schema</STRONG>.</P><P>The issue we are facing is related to <STRONG>line item extraction</STRONG>.<BR />When we submit multi-page Purchase Orders, DOX often extracts <STRONG>line items from tables that are NOT the correct PO item table</STRONG>, and in many cases, those tables are located on <STRONG>different pages</STRONG> of the document. These “wrong” tables have a very similar structure to the real item table, which seems to confuse the detection.<BR /><BR /></P><H3 id="toc-hId-1916759746"><STRONG>What we have tried so far</STRONG></H3><P><span class="lia-unicode-emoji" title=":keycap_1:">1️⃣</span>Edited documents in the DOX UI, corrected the fields, confirmed the results and submitted feedback (ground truth).<BR /><span class="lia-unicode-emoji" title=":keycap_2:">2️⃣</span>Created a <STRONG>Template</STRONG>, associated the corrected documents to it, and executed extraction again using this template.</P><P>However, even after multiple training attempts, DOX still extracts line items from the wrong table/page in many cases.<BR /><BR /></P><H3 id="toc-hId-1720246241"><STRONG>Constraints</STRONG></H3><P>Splitting the PDF is <STRONG>not an option</STRONG>, because the “wrong” table is not always on the same page (for example, it is not always page 2). The page position is not consistent.</P><HR /><H3 id="toc-hId-1523732736"><STRONG>My questions</STRONG></H3><UL><LI><P>Shouldn’t this be resolved by using templates and providing repeated feedback?</P></LI><LI><P>Is this a limitation of DOX template training?</P></LI><LI><P>Is there any recommended approach or best practice to handle scenarios where multiple similar tables exist across different pages?</P></LI></UL><P>Any guidance, clarification, or alternative approach would be really appreciated.</P><P>Thanks in advance!</P> 2026-01-06T22:17:47.802000+01:00