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

Will the BAPI call execute Userexits

Former Member
0 Likes
1,256

Hello,

I want to know if I am using a BAPI (Sales order creation) will it execute the user-exit code or not.

If not why not?

Please confirm.

Rgds

Ank.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
849

Hi,

If your userexit is activated, it will be definitely called. Userexits works like a 'hook' in a normal process. You can call BAPI function module in user exits with proper coding. As you must be knowing few userexits are called more than once during the same process.

<b>Reward points</b>

Regards

4 REPLIES 4
Read only

Former Member
0 Likes
850

Hi,

If your userexit is activated, it will be definitely called. Userexits works like a 'hook' in a normal process. You can call BAPI function module in user exits with proper coding. As you must be knowing few userexits are called more than once during the same process.

<b>Reward points</b>

Regards

Read only

0 Likes
849

But in my case when users are submitting the orders using Webservice the user exit is not working. where as when I create the orders manually (in R/3) user exit is working as per the design...

Read only

0 Likes
849

Hi

Hi,

If your are Using SD BAPI say for example --> BAPI_SALESORDER_CHANGE

you need to fire an explicit BAPI_TRANSACTION_COMMIT .

Please note :

{

The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

}

<b>Reward points</b>

Regards

Read only

Former Member
0 Likes
849

Hi Ankur,

It will surely execute the Exit as thats an enhancement to the application process and not just mere to the screen. So when you use BAPI to create Sales order the same program will be used to run the bussiness process without the user interface.

Hope this answers your query.

regards,

Vikas

<b>Encourage by rewarding points if helpful.</b>