Skip to Content
0
Former Member
Sep 06, 2012 at 02:33 PM

Get current Process List in SRM7.0

18 Views

on Executing the method

TRY.

CALL METHOD /SAPSRM/CL_WF_APV_FACADE=>GET_CURRENT_PROCESS_LEVEL
EXPORTING
IV_DOCUMENT_GUID = P_PW_HEADER-SC_GUID
IV_RESOLVE_AGENTS = ABAP_TRUE
IMPORTING
ES_PROCESS_LEVEL = LW_APPROVER_SEQ.
CATCH /SAPSRM/CX_WF_NOT_FOUND .
ENDTRY.

In QA client .

On executing std. Classes from my ID . I am getting the out list of agent for SC.

But on Executing same std. Class with Approver id does not give the list of agent.

LT_DECISION = LW_APPROVER_SEQ-DECISIONSET_LIST.

READ TABLE LT_DECISION INTO LW_DECISION WITH KEY STATUS = 'OPEN'.
IF SYST-SUBRC = 0.
LT_AGENT_LIST[] = LW_DECISION-AGENT_LIST.

here LT_AGENT_LIST is initial.

from Approve iD.

But from ID it giving List.

How.??

In Dev. Client Approver id is also proving the list of agent.