Skip to Content
0

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

Nov 12, 2017 at 02:00 PM

28

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers