Skip to Content
0
Former Member
Jan 04, 2007 at 05:36 AM

select statement

14 Views

Hi,

I have one problem in following coding.

the condition is like that

select-options: s_kunnr for kna1-kunnr,

s_name1 for kna1-name1.

if not s_kunnr is initial.

perform kunnr_data.

else.

perform name1_data.

endif.

if not s_kunnr is initial.

select * from kna1 into corresponding fields of table lt_kna1 for all entries in s_kunnr where kunnr = s_kunnr-low.

endif,

form kunnr_data.

*under this subroutine there are some condition & we are appending multiple entries in s_kunnr.

endform.

*actually we are getting problem in above select statement.

*suppose we have 50 entries in s_kunnr then what I have to use in where condition so that it will fetch all the records based s_kunnr(rembember s_kunnr having 50 entries).