Skip to Content
avatar image
Former Member

Mapping of SRM PO fields to ERP PO feilds

Hi Gurus,

How can I map SRM PO feilds to ERP PO feilds?

Thanks for the help in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 03, 2013 at 09:29 PM

    Hello,

    BAdI BBP_ECS_PO_OUT_BADI is called in SRM side before PO is transferred to ECC.

    Perhaps you can use it to map your fields.

    Regards,

    Ricardo

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 03, 2013 at 01:40 PM

    Hi Lethabo,

    You may not be able to do it with all flexibilities you want to have as the header and item fields are properly mapped as per standard process. The BAPI processes the SRM PO into ECC to create ECC PO.

    You can understand how complex can be the scenarios if SAP allows independent mapping of these fields at header and item level.

    Though, SAP also gives you enough tools to play with the customised fields, the way those are handled in the system have a look at BBP_CUF_BADI BADI and make out if this is helpful.

    You can also play with the DOC_CHANGE BADI to copy item data into header or vice versa.

    Note: Please award points if helpful.

    Regards,

    Ravi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Step 1

      CI_EKPODB

      Enhanced custom include CI_EKPODB with custom field ZXX_XXto update purchase order table EKPO in ECC


      RFC BBP_PO_INBOUND is responsible for mapping purchase order details from SRM to ECC. Mapping of customer fields from SRM to ECC happens in RFC BBP_PO_INBOUND through BAPI structure BAPI_TE_MEPOITEM.This BAPI structure have CI_EKPODB where custom field ZXX_XXis added. Custom Include structure CI_EKPODB is also part of database table EKPO responsible for updating to database table in ECC.


      Table parameter CUSTOMER_FIELDS of associated type BBPS_IF_CUSTOMER_FIELDS in RFC BBP_PO_INBOUND derives custom enhanced fields from SRM.  Field ‘FIELDNAME’ of the structure BBPS_IF_CUSTOMER_FIELDS will be having custom field name ZXX_XXand field ‘CONTAINER’ will be holding the value of field ZXX_XX from SRM.

      Step 2:

      CI_EKPODBX


      Enhanced custom include CI_EKPODBX with custom field ZXX_XX o update purchase order table EKPO in ECC


      Mapping of customer fields from SRM to ECC happens in RFC BBP_PO_INBOUND through BAPI extension structure BAPI_TE_MEPOITEMX. This BAPI structure have CI_EKPODBX where custom field ZXX_XXis added.


      In ECC system, RFC BBP_PO_INBOUND is responsible for updating purchase order details. This RFC requires so-called extension(X) structures to transfer the customer fields. These X structures enforce the transfer of a customer field, in the same way as it is transferred to the interface of the BAPIs.

      Regards

      Paris

  • Oct 04, 2013 at 06:57 AM

    Hi,

    If you are on Classic Scenario, BADI BBP_CREATE_BE_PO_NEW would help you.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded