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

USEREXIT_SAVE_DOCUMENT_PREPARE

Hello gursus,,

procedure for using the USEREXIT_SAVE_DOCUMENT_PREPARE.

What should be logic?

rqt is that before saving the document i want to check one particular field to be maintained.

so what logic should be written and can any one explain the process?

Thanks and Regards

Sameer

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 10:47 AM

    Hi

    To make sure that one should maintain field before saving the doc , this can be very well done by screen variant and hence no need to go for user exit.

    Goto Tcode SHD0 Enter ur transaction code ( suppose sales order creation Va01)

    then enter Trnasaction Varinat and execute . U will find Name of screen varaint some thing like BUSxx etc select the one double click on it and find ur field and make it required .

    Hope this help

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 10:51 AM

    You can very well do that using Incompletion procedure at sales order header or at item category level.No need for any development.

    If at all you want to use the user exit, you just give the logic to the developer and he should be able to code it.

    Hope this helps you

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 01:17 PM

    Hi Sameer,

    This user exit form is definately the right one.

    You can read here many of the structures/tables found in include MV45ATOP and see if in one of these you have your field that you need to maintain. If you don't want to update, you can eventually give an error message of type "message xx(yyy) with 'text'". xx could be for example 'cj', yyy could be '001' and text could be 'can't save'.

    Good luck,

    John.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 01:47 PM

    Hi Sameer,

    Yes., you can use that uerexit, if the system has to check for the value in that field and behave differently based on the value determined in that specific field.

    your requirement is not clear and vague. The coding within the userexit will be done by the ABAPers if you can clearly explain your requirement to them.

    Thanks,

    Ravi

    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.