on 11-28-2008 10:15 AM
Hi Friends,
I have a requirement to trigger a workflow after creating a transport request. Standard transport workflow is not suitable for my requirement.
I tried to find exits or badis or enchancement. But, could not find any relevat.
Anyway I have to create a custom workflow by enchancing standard BO 'CTREQUEST' (Events and methods).
Main problem is how to trigger it ??
Your ideas a highly appreciated.
Thanks in advance.
Hi SR,
Check out the Tcode SM62/SM64.
You can Create a Event in the SM62
but you need to raise this event in a program using the function BP_RAISE_EVENT
The following example may help:
eventid = 'ZYPAYEVNT'.(name of the event)
eventparm = 'SUCCESS'.(identification of the event)
FORM RAISE_EVNT.
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
EVENTID = EVENTID
EVENTPARM = EVENTPARM
TARGET_INSTANCE = ' '
EXCEPTIONS
BAD_EVENTID = 1.
ENDFORM. " RAISE_EVNT
I hope this will help you.
regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
go through the link
thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can start any custom workflow by using the FM
"SAP_WAPI_START_WORKFLOW".
or by using your own event you can trigger the workflow.
Regards
SM Nizamudeen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello SR,
As, I looked at the Transport program there are no Enhancement Spots existing. But, you can try digging into it.
My suggestion, is to trigger it using SWEC. All the transport entries are stored in E070 & E070A Tables.
E070 has the status change and you can use it as change document to trigger the custom event of BO CTREQUEST .
Thanks,
Sudhir.
Hi SR,
I guess this one should help you solve your problem
CTS_REQUEST_CHECK -> request checks.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try the following BADi and user-exits.
CTS_EXPORT_FEEDBACK -> feedback after export of a transport request.
CTS_IMPORT_FEEDBACK -> feedback after import of a transport request.
CTS_INT_REQUEST_CHECK -> internal: request checks.
CTS_REQUEST_CHECK -> request checks.
CTS_TASKDOC_TEMPLATE -> determine template for the task documentation.
let me know if it works.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check out this sample code below.
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
EXPORTING
objtype = 'CTREQUEST'
objkey = swe_objkey
event = 'ZCREATED'
CREATOR = ' '
TAKE_WORKITEM_REQUESTER = ' '
START_WITH_DELAY = ' '
START_RECFB_SYNCHRON = ' '
IMPORTING
EVENT_ID =
TABLES
EVENT_CONTAINER =
*
*EXCEPTIONS
*objtype_not_found = 1
*OTHERS = 2.
*ENDIF.
ENDFUNCTION.
Write this code within the badi.
This should work
Hello,
You can create your object copy as delegated of the standard one, so you can use the standar event that is sent normally in the creation to start your workflow.
Hope it helps,.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.