cancel
Showing results for 
Search instead for 
Did you mean: 

issue with custom event triggering in sap workflow

bala_krishna007
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

GauthamV
Active Contributor
0 Kudos

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.

bala_krishna007
Participant
0 Kudos

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

keohanster
Active Contributor
0 Kudos

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?

bala_krishna007
Participant
0 Kudos

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

keohanster
Active Contributor

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!

bala_krishna007
Participant
0 Kudos

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

keohanster
Active Contributor
0 Kudos

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.

bala_krishna007
Participant
0 Kudos

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

keohanster
Active Contributor
0 Kudos

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.

bala_krishna007
Participant
0 Kudos

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

keohanster
Active Contributor
0 Kudos

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.

egor_malov
Contributor
0 Kudos

Hi, Balakrishna,

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

bala_krishna007
Participant
0 Kudos

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