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

Re: unable to trigger the workflow through event programatically

$
0
0

Hi Rangerlet,

 

What ever parameter your are going to pass from program to WF Make sure your are following the below steps.

 

1) Build the FM (SAP_WAPI_CREATE_EVENT) Input container with your parameters.

 

 

Eg:  Declare one internal table and work area (IT_TAB, WA_TAB)  of type SWR_CONT (Input_container type).

 

Build your  parameters:

 

WA_TAB-ELEMENT = 'PARAMETER NAME'.

WA_TAB-VALUE     = PARAMETER VALUE.

 

APPEND WA_TAB INTO IT_TAB.

 

Pass this IT_TAB to INPUT_CONTAINER OF FM (SAP_WAPI_CREATE_EVENT)

 

 

Below is the main to step to pass the parameter value from ABAP PROGRAM TO EVENT

 

What ever parameter your are passing to IT_TAB will create the same in EVENT PARAMETERS (CASE SENSITIVE).

 

eg:  If you pass  LV_ebeln from program same should be in EVENT LV_ebeln.

      Else data wont be captured.

 

Below is the step to pass the parameter value from EVENT TO WORKFLOW

 

Create similar parameter data type in WF container and in the Header section give your BOR/CLASS and your EVENT then click on binding it will show EVENT PARAMETER (left side) and Workflow container parameter (RIGHT SIDE) now bind these things by this your passing the parameter value from ABAP PROGRAM TO EVENT (BOR EVENT) and then TO Workflow.

 

Hope this would solve your problem. Reward if helpful.

 

Thanks,

 

Anand


Viewing all articles
Browse latest Browse all 2801

Trending Articles



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