on 05-19-2011 3:57 PM
Hello,
I am trying to trigger an email notification to user's SAP Inbox, if Outbound IDOC got failed. I wrote the below code in the processing FM, but, i am stucked at populating the CONTAINER parameter of this Task, pls. let me know How/with What I have to populate the CONTAINER parameter of this FM?
DATA: wa_input_container TYPE swr_cont,
wa_swr_messag TYPE swr_messag,
wa_swragent TYPE swragent.
* Fill Workflow element
wa_input_container-element = '_WI_OBJECT_ID' .
wa_input_container-value = wa_idoc_control-docnum.
APPEND wa_input_container TO itab_input_container.
* Fill Email body
wa_swr_messag-msg_type = 'E'.
wa_swr_messag-line = 'Error'.
APPEND wa_swr_messag TO itab_swr_messag.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
task = 'TS00007989'
language = sy-langu
user = sy-uname
start_asynchronous = 'X'
IMPORTING
return_code = v_sy_subrc
TABLES
input_container = itab_input_container
message_lines = itab_swr_messag
agents = itab_swragent.
ENDIF.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.