on 04-14-2006 6:31 PM
Hello Friends, I need a little help here. I am trying to populate the trackingno field from SRM to R/3 on the PR/PO.
Here is a snipet of my code which is in a loop. Everything else works except trackingno:
data:
ls_header TYPE bbp_pds_sc_header_d
MOVE ls_header-object_id TO req_items_wa-trackingno.
MODIFY req_items
FROM req_items_wa
TRANSPORTING trackingno
Any ideas? Also, does anyone have step by step instructions on debugging this badi? Thanks in advance.
Hi Jocelyne,
Here is a extract code for ECS badi to move at least (others fields in my project) the catalogue ID into the tracking number field :
if ls_item-catalogid eq c_dummy.
ls_bapi_poitem-TRACKINGNO = c_noncat.
endif.
ls_bapi_poitem-GR_BASEDIV = ' '.
modify ct_bapi_poitem from ls_bapi_poitem index lv_tabix
transporting UNLIMITED_DLV TRACKINGNO GR_BASEDIV.
Kind regards,
Yann
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
to debug back-end related Badi is some thing different then other Badi. i used to debug back-end badi like this. i hard code break-boint 'user-name' in bbp_create_req_back implementation.
we have a method 'TRANSFER' in BUS2121. after u create the SC which will wait for approval goto SWO1 and execute this method, here first time only bebug mode will gets call if you try 2nd time it won't trigger. so write your all coding and but the hard code break point while SC waiting for Approval goto SWO1 with BUS2121 and execute TRANSFER method u will get into debug mode.
thank you,
regards,
john.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.