SAP XI/PI – Invoice Attachment Transfer from ARIBA to VIM

Introduction:

As part of Ariba Supplier Invoice process the documents attached to the Invoice in Ariba Network system should be sent to VIM system through PI Integration and able to open attachment from VIM workplace transaction /OPT/VIM_WP.

VIM only accepts PDF Invoices documents from Ariba network which would enable them to supply products/materials/services accurately. Ariba cloud integration version CI9 onwards Ariba has introduced the document transfer feature and accepts BASE64 Encoded data.

PI Mappings and UDF’s Used:

PI mappings for attachment fields in IDOC

Below UDF’s are used in PI Mappings

1. GETATTACHMENTATTRIBUTES

2. GETATTACHMENTCONTENT

3. SPLITATTACHMENTCONTENT

S/4HANA Configurations:

Below are the detailed configuration steps to be followed to enable the document transfer feature.

Step 1: Go to t-code OAC2 and create custom document types starts with Z as shown below

Step 2: Then go to t-code OAC3 and link these custom document types to Business object

Object Type: /OPT/V1001
Document Type: Z_DOC
Link Status: X
Link Status: X
Storage System: CA (It is ‘MA’ as per guide lines might change client to client, Basis created storage system name as CA)
Link: TOA01
Retention per: Blank or zero

BASIS will perform above steps, but technical team need to provide inputs to BASIS.

Step 3: To handle invoice attachments there is one standard IDOC extension /ARBA/INVOICE provided by Ariba.

Configure extension /ARBA/INVOICE in WE81 against message type INVOIC.

VIM Class Enhancement to handle ARIBA Documents:

Once IDoc generated successfully; Registration ID created in VIM against IDoc as shown below.

The same registration ID (ex:344) should appear in VIM inbound work place tcode /OTX/PF03_WP if VIM process code is configured in WE20 partner profile.

Then goto tcode /OTX/PF03_WP and submit registration ID DP document will be created in VIM work place.

There is standard VIM class /OTX/PS03_CL_VIM_MODULE_IDOPDF method PROCESS_MODULE which will trigger for archiving standard Ariba document enhanced the same method to archive custom document attached from Ariba network.

Reading attachment content from IDOC and place it in content repository CA manually how the same process happening for standard Ariba document generates automatically for all Ariba Invoices.

Here you can view the attached documents from ARIBA. VIM supports only PDF documents.