on 05-27-2016 11:32 AM
Hi All,
Any Idea how do we get Container values to Internal table?
I will get container values using SAP_WAPI_READ_CONTAINER. The data will come into SIMPLE_CONTAINER.
From SIMPLE_CONTAINER I want to get data to my internal table which has Element structures.
It is just like reverse result of CALL FUNCTION 'SWC_TABLE_SET'.
Thanks.
HI
If you want the exact opposite do use function SWC_TABLE_GET.
Regards
Stephane
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check the below Code snippet..It will be help full
DATA gt_container TYPE TABLE OF swr_cont.
CALL FUNCTION 'SAP_WAPI_READ_CONTAINER'
EXPORTING
workitem_id = xxxxxxx "pass the work item
* LANGUAGE = SY-LANGU
* USER = SY-UNAME
* BUFFERED_ACCESS = 'X'
* IMPORTING
* RETURN_CODE =
* IFS_XML_CONTAINER =
* IFS_XML_CONTAINER_SCHEMA =
TABLES
simple_container = gt_container
* MESSAGE_LINES =
* MESSAGE_STRUCT =
* SUBCONTAINER_BOR_OBJECTS =
* SUBCONTAINER_ALL_OBJECTS =
.
LOOP AT gt_container INTO DATA(gs_container).
ENDLOOP.
In gt_container we have Element and Value.
Element is the Field name in the work flow container and Value Contains the Value of the Field.
for example
Matnr(element) 123459(value)
Thanks & Regards
@Surendra@
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.