cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering a workflow from a adobe interactive form...

Former Member
0 Kudos

Hi,

I am new to SAP.

I hv to ceate a adobe form for creating CREDIT MEMO REQUEST...

on filling the data and submitting, it should trigger a workflow, in which, the approver may approve or reject..

if it is approved it should be updated in the database table

and if rejected it should go to the another person.

I know to create adobe forms.. On clicking the SUBMIT button in the form the workflow should be triggerd..

is there any standard wokflow for my requirement or should i create a new WF.

What is the code for triggering a workflow.... how to approach my requirement... can any one help on this please...

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I think you can check SE37 and SAP_WAPI_START_WORKFLOW and give a where used list and you will get lots of example.

Thanks

Arghadip

bpawanchand
Active Contributor
0 Kudos

If you can call the FM then you can make use of the FM SAP_WAPI_START_WORKFLOW under the button action handling method, by passing the workflow template

[Check this thread|;

Former Member
0 Kudos

whether the standard workflow WS20000009 will be sufficient for my requirement or should i create a new workflow...

bpawanchand
Active Contributor
0 Kudos

If you want to trigger the workflow as soon as the Credit memos is created then the WF temaplte that yo specified will be enough. all you have to do is actiavet the triggering events of the workflow template by accessing it from PFTC txn and make the workflow template as Genral task.

Even if you check the workflow template you have a subworkflow WS20000019 even you have to make it a general task and make sure you assign the right agent to it.

Former Member
0 Kudos

hi,

can anyone help me with the sample code for implementing calling the workflow using function module..

bpawanchand
Active Contributor
0 Kudos
*CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
*  EXPORTING
*    task                      = 'WSXXXXXXXXX'
**   LANGUAGE                  = SY-LANGU
**   DO_COMMIT                 = 'X'
**   USER                      = SY-UNAME
**   START_ASYNCHRONOUS        = ' '
**   DESIRED_START_DATE        =
**   DESIRED_START_TIME        =
**   DESIRED_START_ZONLO       = SY-ZONLO
**   IFS_XML_CONTAINER         =
* IMPORTING
*   return_code               = lv_retcode
**   WORKITEM_ID               =
**   NEW_STATUS                =
** TABLES
**   INPUT_CONTAINER           =
**   MESSAGE_LINES             =
**   MESSAGE_STRUCT            =
**   AGENTS                    =
*          .