Application Development and Automation 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: 
Read only

differece between the two user exits

Former Member
0 Likes
718

hello gurus,

can anyone explain the difference between the two user exits..

FORM USEREXIT_SAVE_DOCUMENT_PREPARE

FORM USEREXIT_SAVE_DOCUMENT

i was asked 'what is the difference between a user exit and an enhancement'

can anyone explain this.....

and one more when it comes to sales and distribution how one can know whether a document is succesfully posted or not...

thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
571

this will trigger before save : FORM USEREXIT_SAVE_DOCUMENT_PREPARE

this will trigger when you click on save button in sales order

FORM USEREXIT_SAVE_DOCUMENT

4 REPLIES 4
Read only

Former Member
0 Likes
572

this will trigger before save : FORM USEREXIT_SAVE_DOCUMENT_PREPARE

this will trigger when you click on save button in sales order

FORM USEREXIT_SAVE_DOCUMENT

Read only

Former Member
0 Likes
571

Go to MV45AFZZ in SE38 and search for these subroutines. You will find the documentation as part of the subroutine. When you get a message that document number xxxx is created, then you know that the document is created successfully.

Read only

Former Member
0 Likes
571

Hi Ramu,

<b>1.</b> USEREXIT_SAVE_DOCUMENT_PREPARE . : If you want to make the validation you use this user exit and this is the last time to do the changes.

USEREXIT_SAVE_DOCUMENT : If you want ot modify the code then you can use it for this userexit.

<b>2.</b> User exit is a form of enhancement. There are other types of enhancements also like BADI's.

<b>3.</b>Look at CDHDR and CDPOS table. If you find your sales document number in these tables, it means that the document has been posted.

Reward if useful.

Regards

Aneesh.

Read only

Former Member
0 Likes
571

USEREXIT_SAVE_DOCUMENT

This userexit can be used to save data in additional tables when a document is saved.

USEREXIT_SAVE_DOCUMENT_PREPARE

This userexit can be used for changes or checks, before a document is saved.

A user exit is nothing but an enhancement. In order to code in a user exit, you first

have to create and activate a project with the enhancements. Look at CMOD and SMOD transactions.

Sales document posted message will appear on the status bar whenever it is posted.

Rgds,

Naren