Skip to Content
author's profile photo
Former Member

Reading Workflow Container Data

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Posted on Aug 20, 2007 at 02:17 PM

    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

    Add comment
    10|10000 characters needed characters exceeded