Skip to Content
0

issue with custom event triggering in sap workflow

Feb 20 at 11:36 AM

49

avatar image

Hi,

I have a custom event for an incoming invoice business object BUS2081 , I want to know where the custom event container values are filled from for one of the event binded values in workflow the value is not correct . i need to check that.

thanks,

balu

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

3 Answers

Egor Malov Feb 20 at 11:48 AM
0

Hi, Balakrishna,

There once was a similar question, please have a look: https://answers.sap.com/questions/277506/question-on-workflow-custom-events.html

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

hi,

thanks for your reply , but didnt help. for bus2081 there was a custom event created and need to know how the custom event container values are filled.

thanks,

balu

0
Susan Keohan
Feb 20 at 01:00 PM
0

You can use a Check Function in your event linkage to set container values - in your Check FM, call SAP_WAPI_CREATE_EVENT and fill your container before the call.

Have you checked transaction SWETYPV to see what the linkage shows for ZBUS2081?

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

Hi Susan Keohan,

thanks for your reply, i had checked the SWETYPV linkage and we are using receiver function module SWW_WI_CREATE_VIA_EVENT and the event linkage is also active so now how to check where the custom event containers are filled . please let me know .

thanks,

balu

0

Please read

https://wiki.scn.sap.com/wiki/display/SI/Workflow+Troubleshooting+and+Debugging

Pay particular attention to 3. SWU0 Tx: EVENT SIMULATION - you should be able to debug what is being passed to your workflow from there!

1

Hi,

thank you very much for the reply I had checked the link and I had checked the binding for the event and the workflow container and every thing is ok but the the purchasing group in the event container itself is wrong . where as for the PO for that corresponding MIR4 invoice the purcahsing org is correct. please suggest ?

thanks,

balu

0

Take a look at the docu for transaction SWUD. If you go here, you can choose 'Test Environment', enter your Workflow Template, and choose Container Monitor. Then you can start the workflow and see what is being passed in.

Every time the container is changed, you'll see the before and after values.

Otherwise, since you're talking about an invoice and a PO, I'd check how you are getting/storing the Purchasing Org in the various BOR Objects.

0

Hello Susan,

thanks again for the reply, yes I had seen the SWUD transaction where we can see the container monitor and how those values changes . But I want to debug the event and want to know how the values are filled in the event container.

The initial event container values are wrong before it got binded with workflwo container. so two questions like standard event created changed deleted how to know when this custom event is triggered I know using event create function modules but i want to know for an BO zbus2018 when the custom event will be triggeered is it when the invoice changed or created or deleted?

and how the custom event container values are filled.

thanks,

balu

0
Balakrishna t Krishna

I would debug where you are raising your event. You haven't told us how this event is defined or raised. Is it raised by another program or user exit? A BADI? Set a breakpoint in your BADI and debug.

0

Hi,

Its triggered some where in the badi when the incoming invoice is created , so the only option available is to recreate the incoming invoice by putting the debug on . Is that correct?

thanks,

balu

0

That would be my approach. See if you can find the place in your BADI where the event is being created and set a breakpoint there. Then you can examine the event parameters.

0
avatar image
Former Member Feb 22 at 05:02 AM
0

In your workflow, go to basic data - start events and check the binding defined.

In some cases, these values are populated from container values passed from the program where the workflow is triggered.

Regards,

Gautham.

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

Hi Gautham,

the custom event containers are filled when ever the incoming invoices are created . Want to know how to find out the point where the event containers are filled.

thanks,

balu

0