Skip to Content
Author's profile photo Joe Dutra

Mapping Incoterms information on Ariba BSAO Adapter

Objective

Currently, the standard Add On OOTB functionality does not display the IncoTerm information sent by ECC.

It is outputted in the PO XML, as this is an OOTB functionality, but the information is not being displayed on the PO.

XML Output:

 

In the PO, the information is not displayed:

 

This blog’s intention is to provide a code fix at header level to override this issue in the AddOn.

 

Code to fix the problem

The following code must be copied and pasted in method IF_ARBERP_BADI_OUTB_MAP~MAP_BUS2012_TO_ORDR_OUT.

Attention: This will map a header level Incoterm to Header level extrinsics. This will not work if the customer’s requirement is to send to the AN item level Incoterms information.

    DATA: it_extrinsic TYPE LINE OF arberp_xordr_t_extrinsic.

    it_extrinsic-name = 'incoTerm'.
    it_extrinsic-content = cs_ordr-request-order_request-order_request_header-terms_of_delivery-transport_terms-content.  "Incoterms CODE
    APPEND it_extrinsic TO cs_ordr-request-order_request-order_request_header-extrinsic.
    CLEAR it_extrinsic.

    it_extrinsic-name = 'incoTermDesc'.
    it_extrinsic-content = cs_ordr-request-order_request-order_request_header-terms_of_delivery-transport_terms-value. "Incoterms Description
    APPEND it_extrinsic TO cs_ordr-request-order_request-order_request_header-extrinsic.
    CLEAR it_extrinsic.

    it_extrinsic-name = 'incoTermLocation'.
    it_extrinsic-content = cs_ordr-request-order_request-order_request_header-terms_of_delivery-address-name-content. "Incoterms Location
    APPEND it_extrinsic TO cs_ordr-request-order_request-order_request_header-extrinsic.
    CLEAR it_extrinsic.

 

Result

After adding the code above, incoterm information is now sent in Extrinsic

 

And now it is correctly displayed in the PO.

 

Credits

Thank you Former Member for creating this guide!

https://www.linkedin.com/in/edilsonaraujo/

 

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.