on 05-31-2006 1:14 PM
Hi All,
I am facing problem in SRM BADI BBP_ECS_PO_OUT_BADI for PO details to be sent to R3...
i have written following code in SRM BADI....
data : ls_item type BBP_PDS_PO_ITEM_D,
ls_cust type BBPS_IF_CUSTOMER_FIELDS_PI.
loop at it_item into ls_item.
ls_cust-refobject = 'POITEM'.
ls_cust-fieldname = 'CATALOGID'.
ls_cust-REFFIELD1 = 'POITEM'.
ls_cust-REFVAL1 = '00001'.
ls_cust-container = ls_item-catalogid.
append ls_cust to ct_bapi_customer_fields.
endloop.
and maintained CUF fields in R3 BBP_CUFMAP as
PO Z CATALOGID ZSRM CATALOGID.
and didnot do any coding in R3 BADI...
the value is not populating in R3 filed zsrmcatalogid...
????
Thanks....
Hi,
If you don't do what I told you, I can not do anything more....
Your code should look like this:
loop at it_item into ls_item.
ls_cust-refobject = 'POITEM'.
ls_cust-fieldname = 'CATALOGID'.
ls_cust-REFFIELD1 = 'PO_ITEM'. <b>and not 'POITEM'</b>
ls_cust-REFVAL1 = ls_item-number_int. <b>and not a fixed value</b>
ls_cust-container = ls_item-catalogid.
append ls_cust to ct_bapi_customer_fields.
endloop.
For R/3 mapping table BBP_CUFMAP:
DOC_TYPE = PO
KEY_TYPE = Z
CUF_FIELD = CATALOGID
R3_FIELD = ZSRMCATALOGID
Rgds
Christophe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.