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

BAPI_RESERVATION_CREATE1 - Workflow related

Former Member
0 Likes
4,004

Hi,

We have created a program that uses BAPI BAPI_RESERVATION_CREATE1, which successfully creates the reservation. However, the workflow that gets triggered when a reservation is created via transaction MB21 is not triggered when the BAPI is called ... Any ideas on how to resolve this will be appreciated.

Many Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,692

Hey,

You need to check the event trace after transaction MB21 and after executing the program which implements the BAPI call.

Switch on the trace using transaction SWELS. Execute transaction MB21 and then SWEL to check the trace. Note down the events triggered.

Execute the program and check the event trace. If the trace does not display any events it means that the BAPI is not generating any events. If you want the workflow to be triggered after the BAPI's successful run then you need to create this event in your program using the function SWE_EVENT_CREATE.

-Kiran

*Please reward useful answers

3 REPLIES 3
Read only

Former Member
0 Likes
2,692

Hi Poonam,

I think the std sap triggers a event in the workflow. Think you will have to trigger the even from your bapi program.

I am not a workflow consultant but u can take a look at the event linkages in SWE2 tcode.

Btw i think if BAPI is calling std SAP then it should trigger the event. Not sure... though.

Check if this gives u some pointers..

Cheers

VJ

Read only

Former Member
0 Likes
2,693

Hey,

You need to check the event trace after transaction MB21 and after executing the program which implements the BAPI call.

Switch on the trace using transaction SWELS. Execute transaction MB21 and then SWEL to check the trace. Note down the events triggered.

Execute the program and check the event trace. If the trace does not display any events it means that the BAPI is not generating any events. If you want the workflow to be triggered after the BAPI's successful run then you need to create this event in your program using the function SWE_EVENT_CREATE.

-Kiran

*Please reward useful answers

Read only

taher123
Explorer
0 Likes
1,634

hello

i want to make program for reservation with BAPI_RESERVATION_CREATE1 function.