cancel
Showing results for 
Search instead for 
Did you mean: 

R3 field is not populated????

Former Member
0 Kudos

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....

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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