cancel
Showing results for 
Search instead for 
Did you mean: 

Custom PO header field to R3

Former Member
0 Kudos

Hi all,

We are trying to take custom SRM PO header fields to R3 Custom header fields for this we have implemented the BADI BBP_ECS_PO_OUT_BADI and Mapped the fields using BBP_CUFMAP table.Attached below is the code for BADI implementation :

ls_cust-refobject = 'POHEADER'.

ls_cust-fieldname = 'ZZSRM_PCNUM'.

ls_cust-REFFIELD1 = 'PO_HEADER'.

  • ls_cust-REFVAL1 = is_HEADER-ZZSRM_PCNUM.

ls_cust-REFVAL1 = is_header-OBJECT_ID. "CS_BAPI_POHEADER-po_number. "is_header-guid.

ls_cust-container = is_header-zzsrm_pcnum.

ls_cust-type = 'C'.

modify ct_bapi_customer_fields from ls_cust transporting refobject REFFIELD1 REFVAL1 container type where fieldname = ls_cust-fieldname.

clear ls_cust.

we have tried by passing the value OBJECT_ID to ls_cust-REFVAL1 as well we tries by passing GUID it is not working. what exact field need to be passed for REFVAL1 to get the custom data to R3.

Has any one achieved this one...please help.

Thank you,

Smita

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

This is not the correct approach.

You want to pass data from SRM to R/3 or vice-versa.

Please explain your requirement in detail.

Regards

- Atul