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

Userexits in BAPI

Former Member
0 Likes
567

Hi All,

I am trying to write a piece of code in one of the sales order user exits.

However this needs to be triggered in during BAPI_SLAES_ORDER_CHANGE when i am trying to debug it the breakpoint is not triggered in the userexit which i am planning to write the code.

is there any special way of doing it or iam testing it wrong.

Regards,

Kishore Yerra.

4 REPLIES 4
Read only

Former Member
0 Likes
524

before modification of user exits u should have conformed the user exit should be in inactive mode all of its user exits.

write BREAK POINT within the block of include program which is used for that user exits.

Read only

0 Likes
524

Hi,

Where do we set whether the user exit is active/inactive ?

And i have tried using break-point still it didnt work.

Regards,

Kishore Yerra.

Read only

0 Likes
524

Hello Kishore,

Your enhancement shound be asigned to a project and that project needs to be activated.

You can create the project in CMOD T-code.

Thanks,

Greetson

Read only

0 Likes
524

Hello Kishore,

Also you need to make sure the place you are putting your code is calling from the Transaction point of view. BAPI and Transaction will execute the same set of include.

Also we need to make sure that there is no hardcoded code checking for the transaction code example :

If SY-TCODE EQ 'VA01' or 'SY-TCODE EQ VA02' etc...

If this is the case then from the BAPI point of view the SY-TCODE will be initial.

Hope this helps.

Thanks,

Greetson