Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
arunchembra1
Participant
Introduction

With Create Sales Orders from Unstructured Data fiori application, you as an internal sales representative can create sales orders from PDF files. After a purchase order file in PDF format is uploaded, the system automatically extracts data from the file and determines master data (for example, identify the sold-to party based on the purchaser’s name and address, sales area, and product ) from the extracted data. This data is saved in a sales order request, which you can later convert into a sales order. The automated process reduces the manual effort required to create sales orders from PDF files.

 

Process Flow:

The overall processing flow in this app is displayed as shown in the following figure:


Prerequisites:

  1. The Document Information Extraction service has been enabled using the SAP Cloud Platform Cockpit.

  2. The scope item 4X9 (Create Sales Orders from Unstructured Data) has been activated in SAP S/4HANA Cloud.


This session describes how you can implement the cloud-to-cloud de-ployment option without the SAP Cloud Platform Integration middleware in between, as depicted in the following figure:

 


 

Document Information Extraction Activation:

Document Information Extraction helps you to process large amounts of business documents that have content in headers and tables. You can use the extracted information, for example, to automatically process payables, invoices, or payment notes while making sure that invoices and payables match. After you upload a document file to the service, it returns the extraction results from header fields and line items in JSON format.

This service runs in the Cloud Foundry environment and carries out the following steps to extract information from the uploaded document file:

  1. The document is submitted to optical character recognition

  2. The information from the document is extracted to a JSON file, which the user can query.


 

Service Configuration in SAP Cloud Platform:

  1. Create Customer owned SCP consumer account (or identify it if it already exists)

  2. Check the available entitlements of the service plan for this subaccount, If you do not find the service in your list, proceed as follows:





    • Click Configure Entitlements

    • Click Add Service Plans

    • Select Document Information Extraction and choose the default service plan. Click Add 1 Service Plan

    • Save your Entitlements changes





  1. Create Customer owned SCP space if not exists in the subaccount



 

4. Click Service Marketplace on the navigation side bar, and search for Document Information                Extraction and click the tile to access the service.     .

5. Create DOX service instance for “document-information-extraction” service



    • Click Instances on the navigation side bar

    • Click New Instance to start the creation dialog









      1. In the dialog, leave the default value for the service plan and click Next

      2. Leave the parameters empty and click Next

      3. Do not assign any application and click Next

      4. Finally, enter a name for your new instance as sales-order-request-dox

      5. Click Finish to create the instance







         6. Create service key in SCP (Contains SCP Oauth2.0 URL/ClientID/Client Secret)



    • To create service keys, first access your service instance by clicking its name

    • Now select Service Keys on the navigation side bar

    • Click Create Service Key to start the creation dialog









      1. In the dialog, enter sales-order-request-dox -keys as the name for your service keys. Leave the Configuration Parameters (JSON) box empty.

      2. Click Save to create the service keys






 


S/4 Hana Cloud Communication Setup:

Now we need to enable the communication between SAP S/4HANA Cloud and Document Information Extraction. This scenario enables the Create Sales Order – Automatic Extraction app in SAP S/4HANA Cloud to retrieve extracted purchase order data from the Document Information Extraction service on SAP Cloud Platform.

Create Communication Systems:

  1. Open the Communication Systems app by choosing Communication Management - >Communication Systems.



 

2. Choose New to create a communication system.

3. On the New Communication System screen, make the following entries:



    • ID: <SCP DOX ID>, for example, SCP_DOX

    • System Name: <SCP DOX Description>, for example, SCP DOX Service System





 

4. Choose Create.

5. On the Communication Systems screen, make the following entries:



    1. Host Name: <SCP DOX Service System> For example, cfapps.sap.hana.ondemand.com

    2. Port: 443





 

                 3. Endpoint: <Auth. Endpoint in SCP dox service instance>


                    For example, xxx.authentication.sap.hana.ondemand.com/oauth/token/authorize

                 4. Token Endpoint: <Token Endpoint in SCP dox service instance

For example, authentication.sap.hana.ondemand.com/oauth/token

 


    6. In the User for Outbound Communication User screen, choose Add.

7. On the New Outbound Communication User screen, enter the following details:



    • Authentication Method: OAuth 2.0

    • OAuth 2.0 Client ID: <Client ID in SCP dox service instance>

    • Client Secret: <Password in SCP dox service instance>





    8. Choose OK and then save.

Maintain Communication Arrangement:

  1. Select Communication Management -> Communication Arrangements.



 

  1. Open Communication Arrangement

  2. Choose New.

  3. On the Communication Arrangement screen, make the following entries:



  • Scenario: SAP_COM_0641



  1. Choose Create.



  1. On the Communication Arrangement screen, make the following entries:



  • Communication System<SCP DOX ID>, for example, SCP_DOX


 


 

  1. Maintain the paths for the following services:



  • Outbound Services:



  1. Service - Documents REST service

  2. Path - /document-information-extraction/v1/



 

  1. The system now automatically updates default information from the communication system and communication scenario. For example, user IDs as well as inbound and outbound services.

  2. Choose Save.


Application Create Sales Orders from Unstructured Data Testing: 

Finally we have completed all the configurations and its time for testing. Before testing please make sure this application role was assigned to the user in fiori launchpad.

To access this app, add either of the following to your user:

  • Business role template Internal Sales Representative (SAP_BR_INTERNAL_SALES_REP)

  • Business catalog Sales - Sales Order Automation (SAP_SD_BC_SO_EXTRACTION_PC)


 

  1. Open the fiori launchpad and Click on Create Sales Orders Automatic Extraction Tile


       




  1. Click on the Upload File button as shown below





  1. Enter the Company code and Upload the Purchase Order pdf file



 

  1. After the file is successfully uploaded, the system creates a sales order request, which  contains the uploaded file as an attachment, and starts data extraction. You need to wait some time to view the extraction result. You can retry if data extraction fails





  1. After the purchase order data is extracted into a sales order request, the system performs master data determination and checks the data completeness of the sales order request. As shown below, you have option to Edit, Delete and Create Sales Order.





  1. Before you create a sales order,please verify the Header details





  1. Before you create a sales order, please verify the Item details





  1. Once you verify all the details, please click on the Create Sales Order button





  1. Once the sales order has been created, you can see the Sales Order Number and navigate to related apps through its document number (ID).



 


 

References : 

https://www.youtube.com/watch?v=bAqARTEoSho

 

Thanks & Regards,

Arun

 

 
1 Comment
robyn_hu
Advisor
Advisor
0 Kudos
Hi Chembra,

Thanks for your informational blog. 🙂

Since CE2111, app "Create Sales Documents - Automatic Extraction" is changed to customer managed Scenario SAP_COM_1199. It can simplify the activation process.

Related blog: Create Sales Orders – Automatic Extraction (II): One-Click Setup for SAP S/4HANA Cloud

 

Best Regards,

Robyn
Labels in this area