mustafayalcin.com

Tag: ALV

How to Refresh ALV List?

by on Şub.21, 2009, under SAP

In ALV, to refresh the table you have to call the method “refresh_table_display”.  It has the syntax very similar to creating the table. It has two parameters. In the first one, you can mention if you want to refresh only the data (the icons are not refreshed) or if you want to refresh only the icons around the grid (the data is not refreshed – this option is mostly not used in day to day applications).

the syntax is :

call method grid (name of grid )->refresh_table_display

exporting

IS_STABLE = (THIS IS FOR DATA REFRESHING)

I_SOFT_REFRESH = (THIS IS FOR ICON REFRESHING).

How to Refresh ALV List? için yorumlar kapalı :, , , , , , , more...

Creating an ALV Grid in 3 lines

by on Oca.21, 2009, under SAP

DATA: l_alv      TYPE REF TO   cl_gui_alv_grid,
         lt_sflight TYPE TABLE OF sflight.
SELECT * FROM sflight INTO TABLE lt_sflight.
* automatically use the full screen to display the grid,
* NO CONTAINER DEFINITION IS REQUIRED !
CREATE OBJECT l_alv EXPORTING i_parent = cl_gui_container=>screen0.
CALL METHOD l_alv->set_table_for_first_display
     EXPORTING i_structure_name = ‘SFLIGHT’
     CHANGING  it_outtab        = lt_sflight.
* You have to create an EMPTY screen
CALL SCREEN 100.

Creating an ALV Grid in 3 lines için yorumlar kapalı :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...