cancel
Showing results for 
Search instead for 
Did you mean: 

How to get TEXT field in Maint. notification and transfer it to a container

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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.