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

ABAP Query

Former Member
0 Likes
504

How can we create interactive ABAP Query?

How can we develop secondary lists in an ABAP Query?

3 REPLIES 3
Read only

Former Member
0 Likes
457

Please have a look at SQ01 & SQVI; you will some thoughts about it.

Regards,

Ramki.

Read only

prasanthi_chavala
Active Contributor
0 Likes
457

Hi,

By using event handlers we can create interactive abap queries.

Here is the sample code for creating secondary lists:

Tables: spfli.

Start-of-selection.

write: 'Basic-list:',sy-lsind.

Data itab like table of spfli with header line.

At line-selection.

case sy-lsind.

when 1.

select * from spfli into table itab.

loop at itab.

write: / itab-carrid,itab-connid.

endloop.

when 2.

write: 'list-level :',sy-lsind.

select.........

..........ur required code...

when others.

Leave program.

endcase.

Sy-lsind: It is a s/y variable which will carry the current list level.

This sy-lsind hold basic list which hold 20 sub-lists.

By seeing this code u will get some idea on creating secondary lists.

Cheers,

Prasanthi.

        • Reward helpful answers.