cancel
Showing results for 
Search instead for 
Did you mean: 

Zfield doesnu2019t pass from ECC to SRM in badi BBP_BADI_EXTREQ_OUT.

Former Member
0 Kudos

Hi there.

We are customizing the plan-driven Procurement in SRM 5.5.

We implement badi in order to transfer Zfield from reservation (ECC document) to SC (SRM document). We want to populate header SC data (table BBP_PDHGP).

In order to do it we have previously followed these steps:

1. We add zfields to HEADER_CUST_IMP structure

2. We add zfields to BBPS_ER_SC_HEADER_CUST_C structure

If we run program BBP_EXTREQ_TRANSFER in debugging mode, we find that the problem appears in bapi BBP_BD_PDDOC_FROM_BAPI_MAPS. Structures IS_HEADER and IS_HEADER_CUST are populated correctly, but ES_HEADER is only filled up with IS_HEADER information, but not with IS_HEADER_CUST data.

Any suggest?

Thanks and regards.

Raúl.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If the zfield is not passed from R/3 to SRM,try this workaround:

Create the custom field in R/3 and populate the value for that field in R/3(manually/trhough transaction).

Instead of passing this field from R/3 to SRM,in SRM ,create a custom field at the SC header level(refer notes 672960 and 458591 ).Then in the badi "BBP_DOC_CHANGE_BADI",populate the value for that field using the SC no.Pass the SC no to the FM "BBP_PD_SC_GETDETAIL" and in the table ET_ITEM,in the fiel d"EXT_DEMID",you will get the backend reservation number from which this SC is created.Then make an RFC call to the backend using the FM "BAPI_RESERVATION_GETDETAIL" and fetch the value of the custom field in the R/3 backend reservation and accordingly populate in the SRM custom field.A bit tedious method but will work!

Hope this helps.

BR,

Disha.

Answers (0)