cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Table to Workflow Template

Former Member
0 Kudos

Hi All,

I'm using 'SAP_WAPI_START_WORKFLOW' for Triggering my Custom Workflow.

I need to pass Table to INPUT_Container. Direct Elements i can Pass directly in TABLES parameter ( INPUT_CONTAINER ) as name value pairs.

Thanks in Advance,

Rema

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi ,

I declared a Table of same type and passed the values and it is working. Element i passed as Container element and Value is my table.

SWC_SET_ELEMENT is giving dump in this case.

Thanks for all the help.

Rema.

Former Member
0 Kudos

Hello,

You can create a work area of the same structure as that of the table to be passed. Fill the workarea the same way as you fill an entry in the internal table. Pass the workarea directly through the function module.

Hope this will help.

Regards,

Samson

Former Member
0 Kudos

Hi,

I am taking one example here.

Supposse i have to pass possible agents(2-3 or more as per requirement) manually to workflow.

1)Define your container as follows(in your code):

swc_container lt_event_container.

swc_create_container lt_event_container.

2)Then declare workflow container element 'ZUSER' with necessary type(For my example structure type is 'SWHACTOR') or structure of that table and declare it as multiline and tick both import export parameters also.

3)then in your code fill table zagents (type SWHACTOR) fill this table & pass as below:

swc_set_table

lt_event_container

'ZUSER' zagents.

4)Don't forget to write this on top of your code. include<CNTN01>.

Hope magic Works!

Reply back.

Regards,

Purvesh Patel

Former Member
0 Kudos

I think you need to use Macros SWC_SET_TABLE Container to achieve your purpose.

Thanks

Arghadip