Application Development 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: 

alv in basic list?

shahid
Product and Topic Expert
Product and Topic Expert
0 Kudos

we can display a classical report as a basic list. can we display an alv as the secondary list for that classical report?

5 REPLIES 5

Former Member
0 Kudos

sure.

First display in alv list and provide hot spot on the data of alv list and secondary display in alv grid.

Former Member
0 Kudos

hi shahid,

yes we can do that by validating system field sy-lsind.

if the sy-lsind eq 1.

then yoou can call the ALV function modules to create ALV report for Secondary lists...

<b>Reward points if useful</b>

cheers,

Chandra

Former Member
0 Kudos

Basic list is nothing but by default first list get created in classic report

When you are talking about classic reports it will have single list only

but if you want to go for second list you need to go with interactive list report

in which you can display maximum 30 lists.

Rewards if useful...............

Minal

shahid
Product and Topic Expert
Product and Topic Expert
0 Kudos

my point is i already displayed a report in the basic list... now they want to see fields in a sort ...i cant satisfy thier requirement using at new , at last or sort commands..so i though of displaying aan lav...just want to confirm if i use sy-lsind and then call the alv fun mod can we display tht alv or not...

Former Member
0 Kudos

Hi,

u can display.

<b>example:</b>

TABLES:MARA.

DATA ITAB LIKE MARA OCCURS 0 WITH HEADER LINE.

DATA JTAB LIKE MARA OCCURS 0 WITH HEADER LINE.

SEt PF-STATUS 'MENU'.

SELECT * FROM MARA INTO ITAB UP TO 25 ROWS.

write:/ itab-matnr.

hide itab-matnr.

ENDSELECT.

at LINE-SELECTION.

CASE sy-lsind.

WHEN 1.

refresh itab.

SELECT * FROM MARA INTO table JTAB UP TO 25 ROWS

where matnr = itab-matnr.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = SY-REPID

I_STRUCTURE_NAME = 'MARA'

I_DEFAULT = 'X'

I_SAVE = 'A'

TABLES

T_OUTTAB = JTAB.

ENDCASE.

rgds,

bharat.