Skip to Content
1
Former Member
Aug 01, 2007 at 12:40 AM

Update Custom Fields on PO Header - BBP_ECS_PO_OUT_BADI

84 Views

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.