‎2007 Sep 17 5:50 AM
we can display a classical report as a basic list. can we display an alv as the secondary list for that classical report?
‎2007 Sep 17 5:55 AM
sure.
First display in alv list and provide hot spot on the data of alv list and secondary display in alv grid.
‎2007 Sep 17 5:57 AM
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
‎2007 Sep 17 5:57 AM
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
‎2007 Sep 17 6:02 AM
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...
‎2007 Sep 17 6:00 AM
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.