on 03-17-2009 12:35 PM
Hi all,
I would like call the FM bbp_pdh_wfl_start_now in a step. How I can do it?
What paramaters are filled in this function? Which values?
Many thanks.
Regards,
David.
Hello
here are the parameters
*" IMPORTING
*" VALUE(IV_OBJECT_ID_SC) TYPE CRMD_ORDERADM_H-OBJECT_ID OPTIONAL
*" VALUE(IV_START_TASK) TYPE SWD_STEP_T OPTIONAL
*" VALUE(IV_START_WORKITEM_ID) TYPE SWR_STRUCT-WORKITEMID OPTIONAL
*" VALUE(IV_PARK) TYPE CHAR1
*" VALUE(IV_START_ALL_REV) TYPE BOOLEAN
*" VALUE(IV_OBJECT_TYPE) LIKE CRMD_ORDERADM_H-OBJECT_TYPE
*" VALUE(IV_GUID) TYPE BBP_GUID_32 OPTIONAL
*" VALUE(IV_USER) LIKE SYST-UNAME OPTIONAL
the names of the parameters speaking for itself... Which one do you want to in details?
Regards,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
To call a FM from a workflow you need to make use of BO method.
1. Go to t-code SWO1, Create a BO method in a Z BO.
2. Add a call FM in the method and call bbp_pdh_wfl_start_now function module.
3 . Pass the import parameters to the FM and fetch the return parameters in BO method attributes. Check the FM in SE37 to find the mandatory input parameters. Refer to the where-used list for more details of the value to be passed.
4. Then use the code:
swc_set_element container 'xxx' yyy
to set the value of the output parameters that can be accessed in the workflow.
5. In t-code SWDD, in the workflow Activity task, make a call to this BO method and create parameters to accept the BO output values.
6. Make the necessary binding between the task container and method container.
Hope this helps!
Regards,
Saumya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can call the FM that you have mentioned in the Business Object Method do loike this
Create a Z Business Object and a method inside it, Inside the method call the FM that you have mentioned.
Pass all the parameters that are necessary from workflow->task->method and set back the result to task and from task to workflow
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.