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: 

ALV OO; how to open detail popup on button click

Former Member

Hi guys!

Can someone help me out with the following problem

I have a ALV OO table (like se16n), when i click on a button i want to get the details of this row in a seperate popup (like se16n)

in this popup the row should be editable.

does anyone have an example for this.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

ok, I'm clear with that

the thing i want to know is where i can set the "display mode" of the alv.

So usually the alv is display as a table.

i want to display it in a list (like the popup in se16n)

7 REPLIES 7

former_member188685
Active Contributor
0 Kudos

This you can do with the Help of DOUBLE_CLICK event, here you need to call another ALV grid OO , and Make the cells editable which ever you want...

If you have any confusion let me know...

Former Member
0 Kudos

thanks!

and where can you set the layout of the alvgrid. I know the gs_layout options, but can't find the setting that i looks like the se16n popup (there the alv detail is showed in a list, not in a table)

thanks

0 Kudos

There is no specific option for this.., In SE16N they are handling the DOUBLE_CLICK event and in that they are calling the Function SE16N_SHOW_GRID_LINE to get the Details.

Former Member
0 Kudos

yes i know,

but SE16n_show_grid_line

is not possible to use for me, because i need to edit this content.

Thats why i want to know if it is possilble to display a ALV like this.

0 Kudos

Refer my First post, in the DOUBLE_CLICK event , you need to call another ALV or Table control screen , you can make them editable. The only option i can see..

Former Member
0 Kudos

ok, I'm clear with that

the thing i want to know is where i can set the "display mode" of the alv.

So usually the alv is display as a table.

i want to display it in a list (like the popup in se16n)

0 Kudos

You can use Dialog box for this. if not you can call the screen with starting at and ending at addition.

report  ztest_dialog_alv.

data dialogbox type ref to cl_gui_dialogbox_container.
data: grid type ref to cl_gui_alv_grid.
data: container type ref to cl_gui_container.

data: it_flight type sflight_tab1.


select * from sflight
into table it_flight
up to 20 rows.

call screen 100 .

module status_0100 output.
  set pf-status 'STATUS'.
  if dialogbox is initial.
    create object dialogbox
      exporting
        width   = 540
        height  = 100
        top     = 150
        left    = 150
        repid   = sy-repid
        dynnr   = sy-dynnr.

    if grid is initial.
      create object grid
      exporting
      i_parent = dialogbox.
    endif.

    call method grid->set_table_for_first_display(
       exporting
         i_structure_name              = 'SFLIGHT'
       changing
         it_outtab                     = it_flight
       exceptions
         invalid_parameter_combination = 1
         program_error                 = 2
         too_many_lines                = 3
            ).
    if sy-subrc ne  0.
      message id sy-msgid type sy-msgty number sy-msgno
                 with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.


  endif.

endmodule.                 " STATUS_0100  OUTPUT