08-16-2011 10:57 AM
Dear Experts,
I have an existing enhancement in USEREXIT_NUMBER_RANGE which will display a customized window.
It works fine in VA02 after changing some information and save. The window will appear after save.
The problem is, the user want the window to be appear when SAVE button is clicked in VA02 eventhough no changes has been made.
It appears that, the user must made some changes in VA02 and save, only then the USEREXIT_NUMBER_RANGE will be triggered and display the customized window.
Is there any exist or badi that I can use to display the customized window when the user clicks SAVE button, eventhough no changes has been made?
08-23-2011 2:51 PM
I m afraid u have no direct way to go but do some enhancements by calling the pop up stuff by tracing the include form where ok code is handled.
once done call the pop up get the data store them in system memory and do the usual stuff in user exit
08-16-2011 11:03 AM
Hi
Please, see SAP Note 178328 - Problems due to incorrect user exits in SD to understand how to works this kind of userexits.
REgards
Eduardo
PD: Sorry, I forgot it. Try with USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ
Edited by: E_Hinojosa on Aug 16, 2011 12:04 PM
08-16-2011 11:03 AM
08-18-2011 2:28 AM
Hi Max,
I tried putting a break-point there at USEREXIT_SAVE_DOCUMENT_PREPARE, but it didnt get triggered if I SAVE without changing anything in VA02.
08-18-2011 3:37 AM
Go to CL_EXITHANDLER class. In method GET_INSTANCE put s breakipoint following the process that that gets exit name. When you run your process it will break here and give you the name of every exit iand BADI it finds.
08-24-2011 7:57 AM
Hi
Try to use USEREXIT_CHECK_VBAK in MV45AFZB, but set a filter as this:
IF sy-ucomm = 'SICH'.
"your code
ENDIF.
I hope this helps you
Regards
Eduardo
08-16-2011 4:26 PM
Hi Jeff,
As Eduardo told you can check with USEREXIT_SAVE_DOCUMENT_PREPARE .
Regards,
Madhu.
08-23-2011 2:51 PM
I m afraid u have no direct way to go but do some enhancements by calling the pop up stuff by tracing the include form where ok code is handled.
once done call the pop up get the data store them in system memory and do the usual stuff in user exit
08-24-2011 8:13 AM
Hi All,
Thanks for your reply, and I have solved the issue.
I done it by manupulating the variable which handles the saving. Before the system checks whether is there any changes done by the user, I'll check if the Transaction Code is 'VA02', then change the variable that stores change indicator to 'X', forcing the system to run the routine(s) when changes has been made before save.
12-11-2011 5:32 PM
Hello,
I am facing same scenario. Please can you tell me how did you solve it, where I should change the program to check Whether sales order is changed or not.
Thanks for your reply