10-08-2007 11:19 AM
Dear friends,
I want to validate the sub-screen field.
from my main screen I am calling subscree which is having the dynamic select option.
I want to validate the subscreen select option field.
my code is like this:
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN: MATKL INCLUDING SY-REPID '3000'.
PROCESS AFTER INPUT.
CALL SUBSCREEN: MATKL.
MODULE USER_COMMAND_0200.
Under USER_COMMAND_0200 I have writen the validation code:
SELECT * FROM zmmsortseq INTO TABLE itab_mfg
WHERE matkl IN r_matkl.
IF sy-subrc NE 0.
MESSAGE e000(zm) WITH text-010.
ENDIF.
r_matkl is my subscreen select option.
One the error message will triger I want to enable the select option again but its displaying in grey mode.
Thanks,
Sridhar Patlola.
10-08-2007 11:23 AM
Hi Sridhar,
Give like this
IF sy-subrc NE 0.
MESSAGE <b>i000</b>(zm) WITH text-010.
ENDIF.
instead of e in the message give i then you will get it in change mode.
Regards
Haritha.
10-08-2007 11:36 AM
Hi Haritha,
Thanks for the replay.
Yes I have given the same and after i000 message called the same screen then its ok working fine but client need a error message not information message.
10-08-2007 11:44 AM
u cannot use select * for field validation .......
try using select single.............
SELECT single matkl FROM zmmsortseq INTO <variable of type matkl>
WHERE matkl IN r_matkl.
reward points if helpful........