Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Workflow Container Data

anand_nidamanuru
Active Participant
0 Kudos

Hi All,

I have a workflow setup in our system. I have to read its container data.

The container contains a BOR Object of type EXAMPLE_OBJ, whose data is like

1) Routing number

2) Counter

3) Agent

4) Event Key

5) Object id

I have used SWW_WI_CONT_READ_SINGLE_OBJECT, SAP_WAPI_READ_CONTAINER to read the container data.

When ever I read the container, I am able to read the object type, but the object data is always concatenated in the form of a char of length 70.

All the fields Routing number, counter, agent, event,... are concatenated and put into a char of length 70. Instead of this, if I know the object type (EXAMPLE_OBJ), is there a way to get values seperately instead of concatenated form?

Is there a way to retrieve the distinct values by forming a structure?

Thanks,

Anand

1 ACCEPTED SOLUTION

former_member186746
Active Contributor
0 Kudos

Hi,

you should instantiate the business object in your abap.

what you do is include <cntn01> in your program, then with the key of the business object you can use macro swc_create_object and then with macro swc_get_element for single attributes and swc_get_table for multiline.

also check the workflow forum and its wiki for more info on this subject.

Kind regards, Rob Dielemans

2 REPLIES 2

former_member186746
Active Contributor
0 Kudos

Hi,

you should instantiate the business object in your abap.

what you do is include <cntn01> in your program, then with the key of the business object you can use macro swc_create_object and then with macro swc_get_element for single attributes and swc_get_table for multiline.

also check the workflow forum and its wiki for more info on this subject.

Kind regards, Rob Dielemans

0 Kudos

Thanks Rob,

This is helpful.