cancel
Showing results for 
Search instead for 
Did you mean: 

ac_container and actor_tab

Former Member
0 Kudos

Hi Experts,

     

          How to use AC_CONTAINER & ACTOR_TAB tables in RULE in workflow.

I came to know that ac_container is for Input and actor_tab is for output. Can you please explore about these 2 tables.

If possible give me an example

Regards

Krishhna

Accepted Solutions (1)

Accepted Solutions (1)

bpawanchand
Active Contributor
0 Kudos

Hi

AC_CONTAINER will have all the container elements that you want to make use in determining the approves you will have all those elements populated in this importing table parameter.

you can access the container elements by making use of MACROS

SWC_GET_ELEMENT <CONTAINER> <ELEMENT NAME> <VARIABLE TO HOLD VALUE>

ACTOR_TAB is some thing you populate the agents based on the object type

like

OBJECTYPE -  US

OBJID = <SAPUSERNAME>

OBJTYPE - "S"

OBJID = <POSITION ID>

For example you can check the rule 168 from PFAC transaction

Regards

Pavan

Message was edited by: Pavan Bhamidipati

Former Member
0 Kudos

Hi Pavan,

   When I am giving the input into the ac_container, it is not taking values ( I checked in the debugging )

How I can resolve this .,.

and

what is the Object Type = 'US'.. ?

anjan_paul
Active Contributor
0 Kudos

Hi,

  How you ceate Rule.

You  have to create Element suppose salesorder.

Then you write in the function module

SWC_GET_ELEMENT AC_CONTAINER 'salesorder'  sales_order.

And US means USER type.

Check the Rule no 00000168 in PFAC transaction.

bpawanchand
Active Contributor
0 Kudos

Hi

You should not give any input to the function module you have to assign the rule in the Workflow step which you want to send for user action.. You cannot populate the ac_container parameter. You have to define the binding from workflow container to rule container.

If you are looking to debug  function module from se37 then what you can do is click CTRL+F7 and it opens in debug mode then you try to chnage the values of the container elements in the debug mode.

US is User

P is Person Pernr

S = Position

O = Organization

C = Job

Regards

Pavan

Answers (1)

Answers (1)

anjan_paul
Active Contributor

Hi,

AC_CONTAINER & ACTOR_TAB both are use for output. Nothing is for input.

If you want to pass input then you have to use like PAVAN mention.

Former Member
0 Kudos

In the SAP Press book SAP Practical Workflow 2nd Edition, on page 430 [Agent Determination Rules], it says about AC_CONTAINER, that it is the incoming container, and about ACTOR_TAB, that it is the outgoing list of agents [in agent format].

So, either the affirmation above is not true, or AC_CONTAINER and ACTOR_TAB change incoming and outgoing roles depending on the context in the WF where they are used.   I am not 100% sure as I am learning WF as I type, but wanted to share what we found just in case our comment is correct and the uniqueness of incoming/outgoing role for those objects is applicable anywhere in WF.

For now, we know that for rules is what we wrote above.

Regards,

Juan

PS.  Late answer, but who knows who may find the same answer in the future, and needs to get a clearer picture.


Former Member
0 Kudos

Thanks Juan for your better suggestion.

Regards,

Murali Krishna.