Application Development 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: 

convertion of ALV Grid diplay to bsaic list

Former Member
0 Kudos

HI All

Is there any Function Module that converts the ALV GRID display to Basic list display?

i need to and some functionality to the existing program so i cannot change the program.

Can any one help me out.it is an urgent Requirement

1 ACCEPTED SOLUTION

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

use ALV Method : set_ready_for_input for this.

Code :

DATA : g_grid TYPE REF TO cl_gui_alv_grid.

 IF g_grid->is_ready_for_input( ) EQ 0.
* set edit enabled cells ready for input
    CALL METHOD g_grid->set_ready_for_input
      EXPORTING
        i_ready_for_input = 1.

  ELSE.
* lock edit enabled cells against input
    CALL METHOD g_grid->set_ready_for_input
      EXPORTING
        i_ready_for_input = 0.
  ENDIF.

Regards

Appana

3 REPLIES 3

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

use ALV Method : set_ready_for_input for this.

Code :

DATA : g_grid TYPE REF TO cl_gui_alv_grid.

 IF g_grid->is_ready_for_input( ) EQ 0.
* set edit enabled cells ready for input
    CALL METHOD g_grid->set_ready_for_input
      EXPORTING
        i_ready_for_input = 1.

  ELSE.
* lock edit enabled cells against input
    CALL METHOD g_grid->set_ready_for_input
      EXPORTING
        i_ready_for_input = 0.
  ENDIF.

Regards

Appana

uwe_schieferstein
Active Contributor
0 Kudos

Hello Vijay

Function group SLVC contains the function module LVC_TRANSFER_TO_SLIS by which you can convert from the Grid control structure (LVC_...) to the old-fashioned SLIS_... structure.

While it is obvious how the standard structures are converted I cannot tell anything about the TABLES parameter IT_DATA.

Nevertheless, hope I could help.

Regards

Uwe

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

This can be done easily by the user when viewing the ALV. If the user simply, clicks the "Print Preivew" button, this will automatically convert it to a list display. The button is on the ALV grid toolbar. No changes needed for your program.

Regards,

Rich Heilman