Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Triggering workflow when Purchase Requisition is released/created

Former Member
0 Likes
2,025

What user exit I need to trigger "Release" event for Purchase requisition (BUS2105) Object.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,190

You want to trigger the purchase requistion release event once the purchase requisition is created..Is this your requirement??

THanks,

Naren

What user exit I need to trigger "Release" event for Purchase requisition (BUS2105) Object.

6 REPLIES 6
Read only

Former Member
0 Likes
1,190

Hi,

you can simply create events either using SAP_WAPI_CREATE_EVENT or

SWE_EVENT_CREATE

These both are online documented And I believe that the first one is now preferred.

Kind reghards, rob Dielemans

Read only

0 Likes
1,190

I want the event to be trigger when Purchasing requisiiton is created/released from the application, so I need to put the code in a user exit for the application. I am looking for the user exit where I can add code to trigger the event.

Read only

Former Member
0 Likes
1,191

You want to trigger the purchase requistion release event once the purchase requisition is created..Is this your requirement??

THanks,

Naren

Read only

0 Likes
1,190

Hi

If you are looking into whcih exit would work,

I mean when the PR is created you need to add your code into the "EXIT_SAPLMEREQ_008" for the workflow to be triggered

Using the any of the following FM

'SWE_EVENT_CREATE' or "SAP_WAPI_CREATE_EVENT"

Read only

Former Member
0 Likes
1,190

Hi ,

I think coresponding events are triggered by SAP automatically when you release/create a PR. What you need to do is just do Event Type Linkage of those events with your Workflow .

For this you can use transaction SWETYPV .

Please let me know if it works .

Regards

Saurabh

Read only

0 Likes
1,190

I am not sure the application triggers the event when PR is created/released. I tried it in one of the sandbox system and it did not trigger the event. When I tried it in diagnostin mode ( Manual triggering ) it worked.

Thanks for all your answers, they were great.

- Vijay