on 07-30-2009 1:53 PM
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...
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
*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 =
* .
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.