on 10-21-2008 7:28 AM
Hi,
Can someone guide me in how to create a event parameter step by step?
Also tell me how can i pass that value from User-exit to event parameter?
Thanks,
Raj
i got it. SWO1-Event-Parameter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Raj,
You can create event parameter with the help of
1.)Classes
2.)BOR(Buisness Object Repository)
CLASSES
Go to SE24 -> Go to your object type -> choose event tab ->make any event (z type )->here comes the parameter tab -> make your parameters and fill all the entries like type,associated type,default value,description -> save it.
With BOR
Go to swo1 -> give your object type (any z or y type)-> go to events -> go to parameters tab given above ->
click on create ->it will ask two options i.e Create with ABAP Dictionary field proposals (yes or no )
and fill the appropriate entries and save it.
I think it will help you.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
swc_set_table
lt_event_container
'ZMAIL' it_TEXT1.
***********************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 |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.