Application Development 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: 

badi/userexit for va01,when save button is clicked

Former Member
0 Kudos

hi friends,

i want badi/userexit which triggers when save button is clicked in va01 tcode.

Thanks,

Gaurav

5 REPLIES 5

Former Member
0 Kudos

Hi,

Try the exits:

EXIT_SAPMV45A_003 and EXIT_SAPMV45A_002.This is under the enhancement V45A0002.

Pls reward points if this helps.

Regards,

Renjith Michael.

0 Kudos

hi,

thanks for reply.

My requirement is when save button is clicked.

One check should be made for customer if it is blocked or not,if it is blocked,then i have to stop the transaction.That field is in kna1-cassd

Thanks,

Gaurav

0 Kudos

Hello,

You can debug the standard code ( /h before pressing save button) searching for user-exits or badis.

Set breakpoints in statements. For example if you are looking for call customer-fuction, click on:

Breakpoint --> Breakpoint at --> Breakpoint at Statement

and then here write: CALL CUSTOMER-FUNCTION

Then pressing F8 it will go directly to the next breakpoint (user exit for this transaction).

I hope it will help you.

former_member183879
Active Contributor
0 Kudos

The user exit USEREXIT_SAVE_DOCUMENT in the form BELEG-SICHERN before the COMMIT command will help you.

When you click the save button, this routine is accessible.

You can also try the exit USEREXIT_SAVE_DOCUMENT_PREPARE in the form BELEG_SICHERN

Hope this helps you

Pls reward if it helps.

Former Member
0 Kudos

Hi,

Go to se38 and give the program name MV45AFZZ.

You will find many subroutines (user-exit's). In that you have 2 userexit's. USEREXIT_SAVE_DOCUMENT and USEREXIT_SAVE_DOCUMENT_PREPARE.

USEREXIT_SAVE_DOCUMENT - This form will get triggered before the SAVE.

USEREXIT_SAVE_DOCUMENT_PREPARE - This form will get triggered at the time of SAVE.

Please reward if helpful.

Thanks,

Ananth