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

Can I use a user exit when create documents via BAPI

Former Member
0 Likes
740

Hello my dear ABAP Guru´s

I'm a functional SD consultant and have the doubt about how can use a User Exit when create Sales Order using a BAPI?

the user exit will change the CeBe in each material, according reading from a Z table.. but the cretation of the sales order are created using the BAPI  /AFS/BAPI_SALESORD_CREATEFDATA

Thanks

Hello my dear ABAP Guru´s

I'm a functional SD consultant and have the doubt about how can use a User Exit when create Sales Order using a BAPI?

the user exit will change the CeBe in each material, according reading from a Z table.. but the cretation of the sales order are created using the BAPI  /AFS/BAPI_SALESORD_CREATEFDATA

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
685

You don't mention what user exit you are planning to use but as long as the user exit is not part of the screen handling, e.g. called in PAI/PBO, you should be fine. I am assuming here that the module specific BADI you mention calls the standard BAPI_SALESORD_CREATE_FROM_DATA/1/2 internally.

Read only

0 Likes
685

Hi Dave,

Please put the break point at required user-exit and try to create sales order using BAPI ,if break point triggers you can use that user exit otherwise not.

Thanks.