Skip to Content
author's profile photo Former Member
Former Member

Exits for Saving without changes in VA02

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2011 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Posted on Aug 16, 2011 at 10: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 16, 2011 at 10:03 AM

    Hi

    Try USEREXIT_SAVE_DOCUMENT_PREPARE

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 16, 2011 at 03:26 PM

    Hi Jeff,

    As Eduardo told you can check with USEREXIT_SAVE_DOCUMENT_PREPARE .

    Regards,

    Madhu.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 11, 2011 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.