on 04-02-2008 6:15 PM
We use SRM 6.0 with classic scenario and create POs 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
Problem solved by myself:
the corresponding field in the X-Structure has to be flagged for a successful transfer.
Joe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.