cancel
Showing results for 
Search instead for 
Did you mean: 

USEREXIT_SAVE_DOCUMENT_PREPARE

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member184555
Active Contributor
0 Kudos

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

johndeconinck
Participant
0 Kudos

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.

former_member183879
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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