Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Management
Viewing all articles
Browse latest Browse all 3160

Obtain all Approvers in FM and store them in WF main container

$
0
0

Hi Experts,

 

I need a help to format a container via FM(abap code).

 

I already searched at forum but I am not able to solve this situation.

The steps below already works fine.

 

1 – I need to send Mail to all approvers stored in specific rule (OOCU_RESP). To do this I created a SendMail step. It is OK. I have a specific area(multiline container) to receive all approvers (import/export/multiline) is checked. Next step: To get all approvers.

 

2 – To get them, I created a dummy previous step and assigned a Z… Function Module. Inside FM I called the RH_GET_ACTORS FM that return the actor_tab table. It is OK.

 

3 -  I am not getting to transfer the actor_tab neither to main container nor container of actual rule. I used the SWC_SET_TABLE but no success yet.The approvers’s data are format OK in actor_tab and administrators tables. I just need to transfer them to a specific container.

 

4 - The specific step where I call the FM has a General Step property. The containers has the same ref structure (TSWHACTOR).

 

 

See my FM abap code below:


  CALL FUNCTION 'RH_GET_ACTORS'
EXPORTING
act_object                = object
TABLES
actor_container           = ac_container1
actor_tab                 = administrators
EXCEPTIONS
no_active_plvar           =
0
no_actor_found            =
0
exception_of_role_raised  =
0
no_valid_agent_determined =
0
no_container              =
0
OTHERS                    = 0.
actor_tab[] = administrators[].

 

SWC_SET_TABLE ac_container1 'Actor_tab_r'  administrators.

 

Thanks in advance for help.

Valter Miranda


Viewing all articles
Browse latest Browse all 3160

Trending Articles