cancel
Showing results for 
Search instead for 
Did you mean: 

Reqmt No (Trackingno.) missing in PO line

Former Member
0 Kudos

We use SRM 6.0 with classic scenario and create PO’s in the backend (ERP 2.0).

I want to transfer the shopping cart no. into the order line field “Reqmt No”. To do this I implemented the following code into BADI BBP_CREATE_BE_PO_NEW:

  • get the shopping cart no. from header

READ TABLE is_sc_document-header INTO ls_header INDEX 1.

LOOP AT cs_po1_document-it_poitem INTO wa_bapiekpoc.

  • set reference no.

wa_bapiekpoc-trackingno = ls_header-object_id.

MODIFY cs_po1_document-it_poitem FROM wa_bapiekpoc.

ENDLOOP.

I debugged the BADI and it has successfully filled BAPI-field “Trackingno” in cs_po1_document”. But in the backend purchase order the shopping cart no. is never displayed. But if I fill BAPI-field “Preq_Name” (Name of requester) the content is display in order line field “Requisitioner”.

Does anyone know the reason or can help me to do this successfully?

Joe

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Problem solved by myself:

the corresponding field in the X-Structure has to be flagged for a successful transfer.

Joe