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: 

Difference between these two user exits..

Former Member
0 Kudos

Can someone tell me the difference between save_docuemnt and save_document_prepare user exit?

Thanks...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

These two are sales order form exits.

<b>USEREXIT_SAVE_DOCUMENT</b>

Use this user exit to fill user-specific statistics update tables.

The user exit is called up by the FORM routine BELEG-SICHERN before the COMMIT command.

Note

If a standard field is changed, the field r185d-dataloss is set to X. The system queries this indicator at the beginning of the safety routine. This is why this indicator must also be set during the maintenance of user-specific tables that are also to be saved.

<b>USEREXIT_SAVE_DOCUMENT_PREPARE</b>

Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.

The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.

1 REPLY 1

Former Member
0 Kudos

These two are sales order form exits.

<b>USEREXIT_SAVE_DOCUMENT</b>

Use this user exit to fill user-specific statistics update tables.

The user exit is called up by the FORM routine BELEG-SICHERN before the COMMIT command.

Note

If a standard field is changed, the field r185d-dataloss is set to X. The system queries this indicator at the beginning of the safety routine. This is why this indicator must also be set during the maintenance of user-specific tables that are also to be saved.

<b>USEREXIT_SAVE_DOCUMENT_PREPARE</b>

Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.

The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.