cancel
Showing results for 
Search instead for 
Did you mean: 

Debug Help bbp_create_req_back

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

yann_bouillut
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Yann, thanks again for another very helpful answer!

Former Member
0 Kudos

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.

Answers (0)