Skip to Content
0
Former Member
Jan 18, 2012 at 01:27 PM

get statuses of SC items - SAP SRM system

94 Views

Hello guys

I would like to ask you for help.

Let suppose following situation in SAP SRM system

Approver received SC (shopping cart) with 2 items for approval. He marked first item as rejected, second one as approved. Then clicked submit.

I need to add a piece of a code to the code which handle click on the button submit. In this code I need to know which items were rejected. I tried to insert the code to implementation of the interface method

IF_EX_BBP_DOC_CHANGE_BADI~BBP_SC_CHANGE.

I used method

/sapsrm/cl_pdo_factory_sc_adv=>get_instance

which returns object

ro_instance

and then I called object's method

/sapsrm/if_pdo_do_apv_ext~get_process_info

which return structure

ls_wf_info

In this structure I was only able to find requested information (states for each item of SC) only when no operation was done on SC (it means only after code, which handle clicking on submit button, was executed).

Can somebody help me how to get information for each item of SC?

Edited by: jozef.gloncak on Jan 18, 2012 2:28 PM