Show TOC

Process documentationeDocument Processing Using Full Solution

 

The eDocument Full solution allows you to create eDocuments based on source documents previously created in other SAP applications, such as Financial Accounting (FI) or Sales and Distribution (SD). The system uses the Application Interface Framework (AIF) to map the transactional data to the required XML format.

For this solution, you use the SAP HANA Cloud Integration platform (HCI) to establish communication with the external system by using Web services to send data from SAP ERP/SAP AIF and to receive data from the external systems. HCI also formats the data to comply with the Web service parameters, signs the document digitally, and establishes a secure connection using SSL.

Prerequisites

For the country you are implementing, you have done the following:

  1. You have made the Customizing settings required for SAP ERP.

  2. You have made the settings required for AIF.

  3. You have made the settings required for HCI

For more information, refer to country-specific settings for your country.

Process

The processing of the eDocument when using the eDocument Full solution is depicted in the following figure:

  1. You create the source document using an SAP application, such as in FI or in SD. Once you save the source document, the system creates an instance of the eDocument in the database.

  2. You submit the eDocument by running the Create and Submit eDocuments ( EDOC_COCKPITtransaction).

    For more information, see the application help documentation directly in the report.

  3. The system retrieves the eDocument from the database and calls the interface connector to deploy the eDocument Interface connector BAdI (EDOC_INTERFACE_CONNECTOR). This BAdI calls the AIF_PROXY interface type that enables the system to connect to AIF.

  4. AIF maps the transactional data into the required XML format and saves the XML files.

  5. The system calls HCI via an ABAP Proxy and establishes communication with the tax authorities’ or business partners’ systems.

  6. HCI processes the XML to comply with the official communication requirements (such as encoding and digitally signing the eDocument) and triggers the corresponding Web services for sending the XML file over to the external system.

  7. HCI receives information regarding the status of the request back from the external systems, transforms it into a consumable format (by decoding and mapping the result) and forwards that together with the signed eDocument (if applicable) to AIF and to the SAP system.

  8. The system updates the eDocument in the database with information sent back from the external systems.

More Information

For more information about AIF, see the application help at http://www.help.sap.comInformation published on SAP site under Start of the navigation path Technology Platform Next navigation step SAP Application Interface Framework 3.0 Next navigation step Application Help (English) End of the navigation path.

For more information about HCI, see on the SAP Help Portal at http:// help.sap.comInformation published on SAP site under Start of the navigation path Technology Platform Next navigation step SAP HANA Cloud Integration for data services End of the navigation path.