on 05-14-2009 9:32 AM
Hi,everyone.
I'm writing a report program which can trigger a workflow .
The workflow is used to change the documnt's status.
Can someone give me some advice how can I pass the document id to the workflow.
I'm waiting for your help.
Thank you.
I'm writing a report program which can trigger a workflow .
How you are trying to trigger the WF i mean by using start workflow funcitons or by raising any event.
If you are staring the workflow by using FM like
SAP_WAPI_START_WORKFLOW
EWW_WORKFLOW_START e.t.c
then you will have a parameter in the tables parameter with the name like container check the type of that container declare in your report. and fill that table with tha values tha you want to pass to the workflow.
like the below snippet.
DATA: lt_cont TYPE STANDARD TABLE OF swr_cont,
DATA: ls_cont TYPE swr_cont.
ls_cont-element = 'PERNR'.
ls_cont-value = <varible name whioch will hold the value of the pernr>
APPEND ls_cont TO lt_cont.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks.
I have solved this problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you need to use the FM : swe_event_create
pass the follwoing parameters
OBJTYPE Object type u created in swo1
OBJKEY Object key like material number
EVENT event name which u have created
If any . let me know
Regards ,
kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.