Skip to Content
avatar image
Former Member

Enhancement To avoid change to the qty field in MB22for particular movement type.

Hi Experts,

Requirement:

We require to avoid changes to the quantity and storage location field in MB22 for a particular movement type only. We have used the enhancement (Exit:MBCF0007) and system displays an error message when user edits the quantity and storage location field. After system displays the error message the transaction is still completed and document saved. Please let us know how to avoid the document from being saved.

Pl refer below coding that i used for the same.

IF TI_RESB_OLD-BWART = '941'.
CLEAR: TI_RESB_NEW-ERFMG.
TI_RESB_NEW-ERFMG = TI_RESB_OLD-ERFMG.
MESSAGE 'Qty Change Restricted in MB22' TYPE 'E'.

Thank You.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers