can we write any interective or classical reports in alv
reports if yes how?

Answer Posted / p.lokesh

Yes, we can generate both classical and Interactive reportS
in ALV..

For classical report in ALV..
Type-pools : slis.

DATA : it_Fcat type slis_T_fieldcat_Alv
wa_fcat type slis_fieldcat_Alv.

Data : itab type standard table of (SOme Structure)
wa like line ot itab.

Start-of-selection.
Select.....

after readig data from database....

we use FM REUSE_ALV_FIELDCATALOG_MERGE

After that We display the Output

We use FM : REUSE_ALV_GRID_DISPLAY ( for Grid Format)
OR
REUSE_ALV_LIST_DISPLAY(for list format)
*****
*&----INTERACITVE ALV*******
We take two Internal tables ...
Data : itab type standard table of ty_marc (Type structure)
itab1 type standard table of ty_mara(TYPE structure)

data : it_fcat type slis_t_fieldcat_alv,
t_Event type slis_t_event,
t_listheader type slis_t_listheader.

we use FM : REUSE_ALV_GET_EVENT
This is function Module is used to catch the EVENTs like
TOP-OF-PAGE and END-OF-PAGE, USER_COMMAND....etc

For interactive Report:
we will give form like

Form User_Command Using ucomm like Sy-ucomm
selfld type SLIS_SELFIELD,

*& we'll call this Subroutine in the FM GRID DISPLAY..

case ucomm.

when '&IC1'. " this is FunctionCode which catchs when
user do some actions.
READ TABLE Itab INTO WA_tab INDEX RS_SELFIELD-TABINDEX.
perform buildcatlog.
perform DataRetrieval.l
Perform Listdisplay.
Perfrom Dispaly.

endcase.

THIS IS HOW WE DO INTERACTIVE ALV...
I THINK THIS WIIL U IN DOING CLASSICAL AND INTERACTIVE
ALV..

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What functions does a data dictionary perform ?

565


What are the features of abap/4 dictionary? : abap data dictionary

590


Hi,have Good Command in SAP ABAP, ABAP WEBDYNPRO now i want to learn sap IS utilities.. can u plz suggest me is it useful r not? If not can i learn BI? Is ABAP with BI have gud future?

1547


What do you mean by cluster tables in sap abap? Also explain what do you mean by table cluster? : abap data dictionary

520


What is a maintenance view? : abap data dictionary

577






What are types of select statements?

579


What is the difference between data elements and domains? : abap data dictionary

588


Explain the call transaction method? : abap bdc

590


What is the BAPI_CUSTMATINFO_GETDETAILM used for? what is the input and output of this bapi.

2861


What is a table attribute? : abap data dictionary

566


What is sap script? Describe its components.

599


Explain the difference between tables and structures?

483


Of the two call transaction and session method, which is faster?

698


What are the differences between a database index and a match code? : abap data dictionary

654


How to debug a sapscript?

604