Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Pass value in container

Hi every body,

My problem is : how can I full my container in a report I m using my prg is .

DATA : KEY TYPE SWO_TYPEID.

DATA : LT_CONTAINER TYPE TABLE OF SWR_CONT,

WA_CONTAINER LIKE LINE OF LT_CONTAINER.

MOVE 'reg_mgr' TO WA_CONTAINER-ELEMENT.

MOVE 'K' TO WA_CONTAINER-VALUE.

APPEND WA_CONTAINER TO LT_CONTAINER.

KEY = '000000260001 X2009041020090410000'

CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'

EXPORTING

OBJECT_TYPE = 'ZTSM_ABS' "-----> This would be your BOR Name WS97100281 BUS1001

OBJECT_KEY = KEY

EVENT = 'CREATED'

COMMIT_WORK = 'X'

*EVENT_LANGUAGE = SY-LANGU

*LANGUAGE = SY-LANGU

*USER = SY-UNAME

*IFS_XML_CONTAINER =

*IMPORTING

*RETURN_CODE =

*EVENT_ID =

TABLES

INPUT_CONTAINER = LT_CONTAINER.

*MESSAGE_LINES =

*MESSAGE_STRUCT =

IF SY-SUBRC NE 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ELSE.

WRITE 'Event Triggered'.

ENDIF.

I wont pass the value in reg_mgr' to my workflow please help me out.

Issam

Former Member
Not what you were looking for? View more on this topic or Ask a question