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

Application Category?

920


Name some data dictionary objects?

559


What are the attributes of a field that can be activated or deactivated during runtime?

566


Explain what is the significance of hide?

534


What are the dynapro keywords?

669






What is a subscreen? How can we use a subscreen?

566


What are smart forms?

591


Explain sap abap 3-tier architecture?

737


How to use messages in lists?

608


What are the main events of which are used for logical database?

602


What are the 2 other types of views, which are not allowed in release 3.0?

628


What are the types of views? : sap abap data dictionary

644


Can we create a gui status in a program from the object browser?

580


How to read files and process BDC's automatically ?

1538


What are data classes? What are the various data classes available for selection? : abap data dictionary

559