cancel
Showing results for 
Search instead for 
Did you mean: 

Update Custom Fields on PO Header - BBP_ECS_PO_OUT_BADI

Former Member
0 Kudos

Hi,

I am using BBP_ECS_PO_OUT_BADI to update custom fields at PO Header.

I have added the field in the structures INCL_EEW_PD_HEADER_CSF_PO, INCL_EEW_PD_HEADER_CSF, INCL_EEW_PD_HEADER_CSF_CONF, INCL_EEW_PD_HEADER_CSF_INV.

The following is the code i used.

*-------

gs_cust-refobject = 'POHEADER'.

gs_cust-fieldname = 'ZZWORK_ORDER'.

gs_cust-REFFIELD1 = 'PO_HEADER'.

gs_cust-refval1 = CS_BAPI_POHEADER-PO_NUMBER.

gs_cust-container = IS_HEADER-ZZWORK_ORDER.

gs_cust-type = 'C'.

append gs_cust to CT_BAPI_CUSTOMER_FIELDS.

*----


I have also done the mapping in BBP_CUFMAP for the SRM and R/3 fields.

I have Enhanced the structres CI_EKKODB and CI_EKKODBX structures with custom field of same name.

The custom fields data on PO Header is getting updated in R/3.

Please help.

Thanks,

Raghu.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Enhancing structures INCL_EEW_PD_HEADER_CSF and INCL_EEW_PD_HEADER_CSF_PO are enough at SRM side .

Your code and other settings look okay

Please ensure , the data elements/ name of custom fields are same at both sides.

The best bet is use BBP_PD_PO_TRANSFER_EXEC and debug from SRM to R/3 (create a RFC dest with you id) and find out where are you going wrong.

-alok