cancel
Showing results for 
Search instead for 
Did you mean: 

Error in sale order

Former Member
0 Kudos

Hi friends,

I need a check in sale order (warning or error) where if a condition (ex:zp02) value is zero in sale order while saving.

Can anyone help me out for this setting.

Regards

Rama rao

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor
0 Kudos

Dear rama rao

User exits in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE

thanks

G. Lakshmipathi

Answers (4)

Answers (4)

former_member204513
Active Contributor
0 Kudos

Hi Ramarao,

Try with these user exits with help of ABAPer

The program MV45AFZZ

USEREXIT_SAVE_DOCUMENT

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.

USEREXIT_SAVE_DOCUMENT_PREPARE

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.

I hope it will help you,

Regards,

Murali.

Former Member
0 Kudos

Hi,

You can use user exit SAVE_DOCUMENT_PREPARE in program MV45AFZZ to check this condition.

Reward points of useful

Regards,

Amrish Purohit

Former Member
0 Kudos

Use the USEREXIT_SAVE_DOCUMENT_PREPARE in include program MV45AFZZ.

Former Member
0 Kudos

Hi,

U can probably use a BADI or a User exit during the saving process to check the value.

Cheerzz..

Subbz..