08-24-2006 10:47 AM
Hi Friends,
How to create ALV report without using Function Modules.
Kindly explian with a simple example.
TIA.
MarK K
08-24-2006 10:52 AM
hi Mark,
ALV report creation without using FM is Normal Report with write statements for displaying ..
Regards,
Santosh
08-24-2006 10:52 AM
08-24-2006 10:53 AM
08-24-2006 10:53 AM
Hi Mark,
You can use the FM 'REUSE_ALV_LIST_DISPLAY'
Its pretty straight forward. see the documentation for that. I think you just need to pass internal table.
Regards.
Shabbar
08-24-2006 10:53 AM
Hi,
Without Function modules, you can make use of the classes/methods to build ALV,
Refer the following code,
CREATE OBJECT LV_ALV_GRID
EXPORTING
I_PARENT = CL_GUI_CONTAINER=>SCREEN0.
CALL METHOD LV_ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = LT_LAYOUT
CHANGING
IT_OUTTAB = LT_FINAL[]
IT_FIELDCATALOG = LT_FIELDCAT[].
CALL SCREEN 500.
After constructing the field catalog, this will be called to display the output,
Hope this helps,
Rgds,
08-24-2006 10:57 AM
Hi,
Then use cl_gui_alv_grid class.
Check the help on the class.
http://help.sap.com/saphelp_47x200/helpdata/en/c5/3bd1369f2d280ee10000009b38f889/frameset.htm
and also refer the sample Programs BCALV_EDIT_01 to BCALV_EDIT_06.
Regards
vijay