Skip to Content
0

Unable to trigger workflow on status NOPR in tcode iqs1.

May 05 at 09:27 AM

49

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Anjan Paul May 07 at 10:26 AM
1

Hi,

Please check with assigned in BSVW with BUS7050 instead of ZBUS7050 . And this custom BO must be assigned to standard one.

Thanks .

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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

capture.png (42.9 kB)
0

You should be binding the business object BUS7050, not ZBUS7050.
And please be sure you have done the delegation via transaction SWo1.

Sue

0
reshma raman May 05 at 09:31 AM
0

capture.pngcapture.png

Swetypv configurationcapture.png

I have created business object ZBUS7050 with event ZTRIGGER using standard object BUS7050 .But workflow not triggering


capture.png (25.1 kB)
capture.png (16.1 kB)
capture.png (18.6 kB)
Share
10 |10000 characters needed characters left characters exceeded
Susan Keohan
May 05 at 11:14 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
reshma raman May 05 at 11:29 AM
0

I turned on event trace in SWELS and no event trace is generated.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

0