on 10-21-2008 3:43 AM
Hi there!
May I know the steps on passing a value of the Text field VIQMFE-FETXT to a container so that I could use it for the Expression in the Workflow notification?
Please guide me on this.
Thanks a lot!
Regards,
Reymar
Assuming you are capturing the value in a method and pass it to the workflow, the path would be
Method -> Task -> Workflow
- So as you see, you have the value in the method already and would need 2 hops for it to reach workflow.
- Hence you need to create 2 container elements, one in the task and another in the workflow, each of same type as the value.
- Once done use macro SWC_SET_ELEMENT in your method to set the value.
- You will also be required to link them. For this you need to do binding between 1) method and task and 2) Task and workflow.
- The direction on binding will determine which way you want to pass data.
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Reymar,
to pass values to Custom WF.
use below code:
**************include
INCLUDE <cntn01>.
*********************************container declaration
swc_container lt_event_container.
swc_create_container lt_event_container.
*******************************filling container
swc_set_element
lt_event_container
'ZEMPNO' wa_req-pernr.
swc_set_table
lt_event_container
'ZUSER' zagents.
***********************here ZEMPNO , ZUSER , ZEMAIL is WF container Elements.
**************calling WF and pass values to WF using container
CALL FUNCTION 'EWW_WORKFLOW_START'
EXPORTING
x_task = 'WS96900063'
X_START_DATE = NO_DATE
X_START_TIME = NO_TIME
IMPORTING
Y_WORKFLOW_ID =
TABLES
x_container = lt_event_container
X_AGENTS =
EXCEPTIONS
invalid_task = 1
no_active_plvar = 2
start_failed = 3
general_error = 4
OTHERS = 5
.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Hope it works!!
Regards,
Purvesh.
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 | |
10 | |
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.