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 FM BAPI_SALESORDER_CHANGE

Former Member
0 Likes
974

Dear all,

I'm using BAPI FM BAPI_SALESORDER_CHANGE to perform Sales order change. But i realize the BAPI is going through the coding defined in user-exit FORM userexit_save_document_prepare in program MV45AFZZ.

I need to bypass the coding in the user-exit, could you please comment if there is a way to do that. FYI I'm in 4.7

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
839

I dont think there is any way to deactiavte the User Exits, You have to Comment out the code in User Exit if you dont need.

Dear all,

I'm using BAPI FM BAPI_SALESORDER_CHANGE to perform Sales order change. But i realize the BAPI is going through the coding defined in user-exit FORM userexit_save_document_prepare in program MV45AFZZ.

I need to bypass the coding in the user-exit, could you please comment if there is a way to do that. FYI I'm in 4.7

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
839

Hi,

The BAPI will definitely go through the user exits because basically it is just a method of the business object sales order and hence logically it should go through the userexits.

Why do you want to bypass the user exits?

Incase you want to then code the logic in the user exit itself to bypass the same.

Regards,

Ankur Parab

Read only

Former Member
0 Likes
840

I dont think there is any way to deactiavte the User Exits, You have to Comment out the code in User Exit if you dont need.

Read only

0 Likes
839

Hi,

You can also set a memory variable when calling userexit from normal transaction to differentiate between call of user exit from BAPI. In userexit you can then check if it's called from BAPI skip the code else execute it.

KR Jaideep,