on 11-08-2013 11:03 AM
Hi all Experts,
in our scenario there's a recurrent check and I'd like, with your help, to find an efficient way to perform it.
The check is: has an Outline any subordered position (say, service) under itself?
Given that mostly of the times we have only the Outline/lead selection, what's the best way to gain such information?
The most obvious approach is:
- get a getdetail() of the document;
- search for subposition of our Outline (according to the way the Hierarchy has been implemented, off course).
But this is quite inefficient as we need a getdetail() with item data to perform such a check.
I didn't find any facility method nor information on how to perform such a control in a "smart" way.
Hi Matteo,
lo_sc->/SAPSRM/IF_PDO_ITEM_LIST~GET_ITEM_HIERARCHY()->GET_SUB_TREE()
with IV_ITEM_GUID = <<your item guid>>
Regards
Konstantin
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.