on 2018 May 05 10:27 AM
I have created ZBUS7050 business object by using standard BUS7050. I have created custom workflow . I want workflow to be triggered when the status is NOPR in tcode iqs1.
I have done configuartion in bsvw and swetypv . But workflow is not triggering . I am not able to trigger function module SWW_WI_CREATE_VIA_EVENT_IBF.
Hi,
Please check with assigned in BSVW with BUS7050 instead of ZBUS7050 . And this custom BO must be assigned to standard one.
Thanks .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Workflow event was getting triggered with configuration in BSVW.
My requirement is to trigger workflow when status is NOPR in tcode iqs1.
I used function module SAP_WAPI_CREATE_EVENT in BADI NOTIF_EVENT_post to trigger workflow event .
lv_object = is_new_viqmel-qmnum.
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
EXPORTING
object_type = 'ZBUS7050'
object_key = lv_object
EVENT = 'ZTRIGGER_WF'
COMMIT_WORK = 'X'
EVENT_LANGUAGE = SY-LANGU
LANGUAGE = SY-LANGU
USER = SY-UNAME
* IFS_XML_CONTAINER =
IMPORTING
RETURN_CODE = lv_cod
EVENT_ID = lv_EVENT_ID
TABLES
INPUT_CONTAINER = lt_cont
MESSAGE_LINES = lt_messag
MESSAGE_STRUCT = lt_stru
.
COMMIT WORK.
After binding workflow template and business object ZBUS7050,workflow is not triggering .
Kindly checkcapture.png
I turned on event trace in SWELS and no event trace is generated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There should be entries in the event trace when other things are done in the system. So if there is other activity going on in your system (for example, FIPP posted) you'll see entries there. The event trace is not tricky - it just records a lot of activity that takes place in your system.
You'll need to review your configuration of the event from BSWV.
Hi Reshma,
You can quickly tell if an event is being raised by turning on the Event Trace (tx SWELS I think, or maybe SWEL). Then run your transaction, and switch the status on your object to NOPR and save. When you go to display the event trace, you should see an entry for the object you just touch. Any error messages should help you further.
Have you tried using SWUD? Workflow Diagnostic transaction? It's a good tool for everyone to have in their toolbox - so here is a link to the Wiki - https://wiki.scn.sap.com/wiki/display/SI/Workflow+Diagnostics+and+SWUD
Good luck,
Sue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
capture.pngcapture.png
Swetypv configurationcapture.png
I have created business object ZBUS7050 with event ZTRIGGER using standard object BUS7050 .But workflow not triggering
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.