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
Explain the Importance of pa20? : abap hr
Explain how many types of tables exist and what are they in data dictionary?
What are the two ways of producing a list within a transaction?
What was the requirement of IDoc in your project? How it was working?
What is function group?
What are the differences between interactive and drill down reports?
What is occurs in internal table?
In selection screen I have three fields, plant mat no and material group. If I input plant how do I get the mat no and material group based on plant dynamically?
What is the t-code for transaction recorder? : abap bdc
what is call back in alv?
Does the call transaction method allow multiple transactions to be processed by sap? : abap bdc
What are the two statements which are required in an abap program to output an icon using a write statement?
What happens when you post goods issue after delivery? How does the inventory get reduced after the delivery?
In tm, if a group of employees gets 10 days of annual leave, what will be the time evaluation status? : sap abap hr
how to create view in bdc..??