2008 Apr 24 3:15 PM
hi all,
my requirement is the document number(BLART) in the selection screen should accept only kd,ka,kg,kc and space only other than that it should throw eeror.
hi all,
my requirement is the document number(BLART) in the selection screen should accept only kd,ka,kg,kc and space only other than that it should throw eeror.
2008 Apr 24 3:24 PM
ranges: r_blart for blart.
r_blart-low = 'KD'
r_blart-sign = 'I'.
r_blart-option = 'EQ'.
append r_blart.
r_blart-low = 'KA'
r_blart-sign = 'I'.
r_blart-option = 'EQ'.
append r_blart.
r_blart-low = 'KC'
r_blart-sign = 'I'.
r_blart-option = 'EQ'.
append r_blart.
if not p_blart in r_blart.
message e001 with 'Error'.
endif.
2008 Apr 24 3:35 PM
Hi,
You can do this at selection-screen event.
parameters : sp_blart like bsis-blart.
at selection-screen output.
if not sp_blart is initial.
if sp_blart = 'KD' or sp_blart = 'KA' sp_blart = 'KG' or sp_blart = 'KC' or sp_blart = ''.
if sy-subrc NE 0.
message 'Document type not allowed' type 'E'.
endif.
endif.
endif.
Thanks,
Sriram Ponna.
2008 Apr 24 3:58 PM
Try this:
AT SELECTION-SCREEN ON p_blart.
IFp_blart NE 'KD' AND p_blart NE 'KG' AND p_blart NE 'KC' AND p_blart NE 'KA'
MESSAGE e398(00) WITH text-001.
ENDIF.
Thanks,
SKJ
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |