Skip to Content
0
Former Member
Apr 14, 2007 at 08:40 AM

Select-options input validation

76 Views

hi all,

I have problem with in my input validation... In the following code if i use multiple table names Its not reading the first table...Pls find the error in my code..

Ex: if i give mara,mard and ekko as tables in the multiple selections, output list it is not displaying the MARA table.

SELECT-OPTIONS : s_tname FOR dd02t-tabname no intervals.

AT SELECTION-SCREEN.

LOOP AT S_TNAME.

SELECT SINGLE * FROM dd02t INTO dd02t

WHERE TABNAME = s_tname-LOW

and DDLANGUAGE = sy-langu.

IF SY-SUBRC <> 0.

MESSAGE 'ERROR TABLE NAME' TYPE 'E'.

ENDIF.

ENDLOOP.

its very urgent....

Will give points for best answer.

Thanks,

KSR