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: 

Exits for Saving without changes in VA02

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

9 REPLIES 9

eduardo_hinojosa
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi

Try USEREXIT_SAVE_DOCUMENT_PREPARE

Max

0 Kudos

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.

0 Kudos

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.

0 Kudos

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

madhu_vadlamani
Active Contributor
0 Kudos

Hi Jeff,

As Eduardo told you can check with USEREXIT_SAVE_DOCUMENT_PREPARE .

Regards,

Madhu.

Former Member
0 Kudos

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

0 Kudos

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.

former_member418469
Participant
0 Kudos

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