on 08-20-2007 10:16 AM
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 ZAFVC_AGNT, 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.
Is there a way to retrieve the distinct values by forming a structure?
Thanks,
Anand
Yes. Create a structure (either in dictionary or internally in your program) where the elements have the same types and ordering as the object type. Then simply move the contents of the key (e.g. a variable of type SWOTOBJID-OBJKEY) to your variable which has the structured type corresponding to the key fields.
That should be it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes Kjetil,
I was able to find those functions.
The function SWO_CREATE creates the object of the desired type for the given key and returns the handle to the same.
Now the modules SWC_ELEMENT_GET, SWC_TABLE_GET can be used to retrieve the values for the object that is created above using SWO_CREATE.
or else, the INCLUDE <CNTN01> Can be used, that contains macros to achieve this.
Thanks,
Anand
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.