09-23-2008 9:52 AM
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.
09-23-2008 10:53 AM
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)
09-23-2008 10:34 AM
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...
09-23-2008 10:37 AM
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
09-23-2008 10:47 AM
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.
09-23-2008 10:49 AM
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.
09-23-2008 10:51 AM
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..
09-23-2008 10:53 AM
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)
09-23-2008 11:02 AM
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