Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV

Former Member
0 Likes
727

Hi Friends,

How to create ALV report without using Function Modules.

Kindly explian with a simple example.

TIA.

MarK K

Hi Friends,

How to create ALV report without using Function Modules.

Kindly explian with a simple example.

TIA.

MarK K

6 REPLIES 6
Read only

Former Member
0 Likes
694

hi Mark,

ALV report creation without using FM is Normal Report with write statements for displaying ..

Regards,

Santosh

Read only

Former Member
0 Likes
694

You have to use either FM or OOPS to create ALV

Read only

0 Likes
694

You mean using OO controls thne pl check this

~Suresh

Read only

Former Member
0 Likes
694

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

Read only

Former Member
0 Likes
694

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,

Read only

Former Member
0 Likes
694

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