01-09-2008 10:19 AM
hi friends,
i want badi/userexit which triggers when save button is clicked in va01 tcode.
Thanks,
Gaurav
01-09-2008 10:24 AM
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.
01-09-2008 10:46 AM
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
01-09-2008 11:44 AM
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.
01-09-2008 2:33 PM
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.
01-09-2008 4:15 PM
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