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
How will you link form with the event driven in sap scripts?
In an abap/4 program how do you access data that exists on a presentation server vs on an application server?
How do you write a function module in sap?
What are the function modules used in a sap script driver program?
What are the types of the programming language used in the sap abap software?
What is the difference between tables and structures?
hi I am in training of functional module, i am unable to understand what exactly use of IDOC,BAPI,DIM and BIM. As LSMW and BDC methods are used for data conversion from legacy to sap. Might be it is silly question. please explain me
What are clustered tables?
How does the interface between the dynpro and the abap/4 modules take place?
Explain the advantages of different types of bdc's?
What are the prerequisites for creating foreign key relationship?
1)can any body tell the transport request number concept and 2)there are 3 screens in one screen u have uploaded the resume and second screen also u have done the same thing but when u are uploading the resume in third screen u got some error in somewhere else but whatever u have uploaded the resume in 1 and 2 should not
hi to all abap interview guys please notify this .. first if u have any doubts please go through google search or else please do debugging with some sample programs . but don't post even silly questions too. thanking you.
How do you send files to the legacy systems from SAP and vice versa? How does one know that the legacy files have come on to the SAP server you are working on?
How can we omit a leading sign and a leading zero in sapscript?