Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting lead selection in SRM PO CHANGE BADI

matteo_montalto
Contributor
0 Kudos
107

Hello all gurus,

in SAP SRM 7 is possible to cut & paste item position. The procedure is quite simple: the user can select an item (1), click on "Cut", then select another line (2) and press "Paste".

This operation triggers the CHANGE badi for PO in which a single item is passed, which is the one that was "cutted".

My task is now to get the line (2) in the change badi, in order to know where the line (1) will be copied.

I can easily get all the items of the order via a getdetail () call; I obtain the item situation before the copy.

How can I retrieve information about the lead selection currently active ?

Waiting for your help, best regards

M.

1 REPLY 1

matteo_montalto
Contributor
0 Kudos
59

Ok, I realized I can't access from BADI to the WDA "upper" level. The only workaround found is to propagate info via additional fields from the WDA to the lower processing structures.