cancel
Showing results for 
Search instead for 
Did you mean: 

Get current Process List in SRM7.0

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Compare the authorization of your id and approver's id in Q.

regards,

Naveen

Former Member
0 Kudos

on providing SAP_ALL to Approver ID it's working.

What specific object autho. to be provided.?

Former Member
0 Kudos

Place a trace on the id and you will know the exact object.

Regards,

Naveen