on 10-01-2008 6:44 AM
Dear All,
Pls tell me how to set ERROR MESSAGE for maintain schedule (ME38) for quantity change.
If change qty is less than actual then system allow otherwise system will show error message.
Abhinay
unsolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just an example... exit ZXM06U43
Data: i_eket TYPE eket.
IF sy-tcode = 'ME38' .
LOOP AT teket WHERE updkz = 'U' AND wemng > 0.
SELECT SINGLE *
from eket into i_eket
where ebeln = teket-ebeln AND
ebelp = teket-ebelp AND
etenr = teket-etenr.
IF teket-eindt NE i_eket-eindt.
IF sy-langu = 'x'.
MESSAGE ID 'ZZ' TYPE 'E' NUMBER '000' WITH 'You cannot change a schedule line already received.'.
ELSE.
MESSAGE ID 'ZZ' TYPE 'E' NUMBER '000' WITH 'You cannot change a schedule line already received.'.
ENDIF.
ELSE.
IF teket-menge > teket-wemng.
IF sy-langu = 'P'.
MESSAGE ID 'ZZ' TYPE 'E' NUMBER '000' WITH 'You cannot change a schedule line already received.'.
ELSE.
MESSAGE ID 'ZZ' TYPE 'E' NUMBER '000' WITH 'You cannot change a schedule line already received.'.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
Edited by: Eduardo Chagas on May 6, 2009 2:17 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
there are only two ways fot that. user exit or field exit.
if you need more details just let me know.
regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
not solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
not solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.