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 Grid with oops

Former Member
0 Likes
558

hi,

can anyone give the simple example to display the alv grid using oops....give the source code...

thanks

hi,

can anyone give the simple example to display the alv grid using oops....give the source code...

thanks

4 REPLIES 4
Read only

Former Member
0 Likes
530

Hi

U can find the sample in the programs BCALV*, the program BCALV_GRID_DEMO shows the most simple alv grid program.

Max

Read only

prasanth_kasturi
Active Contributor
0 Likes
530

hi,

check this link there is step by step procedure

http://abapreports.blogspot.com/2008/06/alv-grid-display-with-oops.html

regards

prasanth

Read only

Former Member
0 Likes
530

DATA: ok_code LIKE sy-ucomm,

g_container TYPE scrfname VALUE 'MY_CONTAINER',

grid1 TYPE REF TO cl_gui_alv_grid,

g_custom_container TYPE REF TO cl_gui_custom_container.

START-OF-SELECTION.

call screen 100.

MODULE status_0100 OUTPUT.

IF g_custom_container IS INITIAL.

CREATE OBJECT g_custom_container

EXPORTING

container_name = g_container.

CREATE OBJECT grid1

EXPORTING

i_parent = g_custom_container.

CALL METHOD grid1->set_table_for_first_display

EXPORTING

is_layout = gs_layout

it_toolbar_excluding = lt_excluding

CHANGING

it_fieldcatalog = i_fcat

it_outtab = i_final[].

  • CALL METHOD grid1->check_changed_data.

ENDIF.

ENDMODULE.

rewards if its usefull

Read only

Former Member
0 Likes
530

Hi Priya,

Go throuugh this document[ Link .

ALV Using Classes [http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf].

If Found Help Full Do reward.

Regards.

Eshwar.