Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

query for select statement

Former Member
0 Likes
671

Dear all

is there any option in select statement to automatically generate serial number respect of data.

for eg.

1 101100110 shetal trade

2 1110001178 CHEMICAL SOAP WORKS

3..

4..

i don't want to use loop (sy-tabix) ..

thanks,

Abhi

5 REPLIES 5
Read only

Former Member
0 Likes
642

Hi abhilash,,

Pls ellaborate your question .its still not clear.

regards,

ajit.

Read only

Former Member
0 Likes
642

Hi,

You can select data from dbtable using select, and fill the internal table with corresponding data. You cannot generate serial number while selecting data from the dbtable and fill in it in the internal table, to achieve this you have to write separate logic.

Regards,

George

Read only

former_member188827
Active Contributor
0 Likes
642

no select statement itself cannot return serial numbers.if you use select endselect structure then you can use any variable to display serial number..

select ,,,,,,,from ....into....where.....

count = count + 1.

write:/ count,......

endselect.

Read only

Former Member
0 Likes
642

Hi ,

i don't want to use loop (sy-tabix) ..

any particular reason for this ?

as u cannot automatically generate serial number, u have to go for loop....endloop.

Thanks

Karthik

Read only

Former Member
0 Likes
642

solved