Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9656

SAP_WAPI_CREATE_EVENT NOT PASSING DATA TO WORKFLOW TEMPLATE CONTAINER

$
0
0

Hi Everyone,

 

Iam using FM 'SAP_WAPI_CREATE_EVENT' in a BAdi to trigger Workflow for posting the Goods Receipt through MIGO transaction.

BO iam using is : 'MKPF' and event is 'CREATED' and key is the Concatenation of MBLNR and YEAR.

Workflow is getting triggered when iam checking Workflow LOG..But iam passing some VALUES in Table Parameter(INPUT_CONTAINER) to get collected in WORKFLOW CONTAINER which is not happening.

 

Below is the Code iam using for triggering the workflow:

CONCATENATE 'US' wa_wfgr-approver INTO l_approver.

CLEAR: wa_input_cont.
REFRESH: ist_input_cont.
wa_input_cont
-element = 'MAT_DOC'.
wa_input_cont
-value = wa_mseg-mblnr.
APPEND wa_input_cont TO ist_input_cont.
CLEAR: wa_input_cont.

wa_input_cont
-element = 'MJAHR'.
wa_input_cont
-value = wa_mseg-mjahr.
APPEND wa_input_cont TO ist_input_cont.
CLEAR: wa_input_cont.

wa_input_cont
-element = 'FIRST_AGENT'.
wa_input_cont
-value = l_approver.
APPEND wa_input_cont TO ist_input_cont.
CLEAR: wa_input_cont.

wa_input_cont
-element = 'PLANT'.
wa_input_cont
-value = wa_mseg-werks.
APPEND wa_input_cont TO ist_input_cont.
CLEAR: wa_input_cont.

wa_input_cont
-element = 'BSART'.
wa_input_cont
-value = l_bsart .
APPEND wa_input_cont TO ist_input_cont.
CLEAR: wa_input_cont.

 

 

 

CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'

EXPORTING
               object_type  
= 'MKPF'
               object_key   
= l_display
               event             = 'CREATED'
*             commit_work = 'X'

IMPORTING
               return_code
= rc
               event_id     
= EVENT_ID

TABLES
               input_container  
= ist_input_cont
               message_lines  
= mess_lines
               message_struct 
= mess_struct.

 

I Checked the Linkage in SWE2,it is there.

Pls Suggest..


Viewing all articles
Browse latest Browse all 9656

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>