Which and How will you use function module for ALV
Interactive report?

Answer Posted / c. mitra

one function to display simple ALV program.
REUSE_ALV_LIST_DISPLAY or REUSE_ALV_GRID_DISPLAY.
for logo
REUSE_ALV_COMMENTARY_WRITE function module are used.
first we have to assign
TYPE-POOLS: SLIS.

then we have create internal table of type SLIS_T_FIELDCAT_ALV
and work are type SLIS_FIELDCAT_ALV.

then after your process means after retrive of data we have
create columns assign field name , coulmn name no of column
as example.
**clear wa_fieldcatalog.
**
**wa_fieldcatalog-col_pos = 6.
**wa_fieldcatalog-fieldname = 'LIFNR'.
**WA_FIELDCATALOG-tabname = 'IT_FINAL'.
**WA_FIELDCATALOG-seltext_l = 'VENDOR A/C NO'.
**APPEND WA_FIELDCATALOG TO IT_FIELDCATALOG.
after this form layout as your necessary.
call function module REUSE_ALV_LIST_DISPLAY or
REUSE_ALV_GRID_DISPLAY.

in that
i_callback_program = sy-repid i.e the prgname.
is_layout = work area of slis_layout_alv.
it_fieldcat = internal table type slis_t_fieldcat_alv
t_outtab = internal table where retieve data are stored.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are subroutines? : abap modularization

629


What are the steps to be followed to set lockobjects? : sap abap data dictionary

627


Can we call reports and transactions from interactive reporting lists?

628


How would you suppress the display of a parameter on the selection screen?

568


What are the dynamic actions and how to configure it? : sap abap hr

589






Differentiate between abap memory and sap memory?

641


What happens Update command is used without where clause ?

626


What are the events in screen programming?

624


Does sap handle multiple currencies?

609


What does an exec sql statement do in abap? What is the disadvantage of using it?

688


What is roles and responsibilities of sap hr consultants? : sap abap hr

580


What will exactly the hide statement do?

574


Explain how do you use structures in the abap programs?

543


What are the list of screen elements?

531


What are the properties of selection screen?

565