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
What is retro active accounting
How do you backup Sapscript layout sets? Can you download and upload? How?
Explain what is step-loop? Explain all the steps?
What are different data types in abap/4?
What is sap luw or update transaction?
How the Sy-Mandt value gets updated in the table and Is this having any foreign key relationship.
What are the Synchronous and asynchronous methods in bdc ?
What is a table pool? : abap data dictionary
What is an rfc?
What is the syntax for ‘call transaction’?
What are the two statements which are required in an abap program to output an icon using a write statement?
What is the difference between synchronous and asynchronous updates?
Can a constructor be declared private? If yes then in which scenario?
Explain the advantage of structures?
How to handle errors in call transaction bdc method without using bdcmsgcoll internal table? : abap bdc