2010 Jul 11 8:39 PM
Hi,
at first, sorry for asking, but i can't find any threads about this.
Does anyone know, if it's possible to get a popup with salv? i dont want to use reuse and the old ones. in my book "Official ABAP Programming Guidelines" you can see a old popup-list and an new one, but no syntax.
if anyone can help me, thanks. i only will find a way to generate a new liked popup.
marc
Hi,
at first, sorry for asking, but i can't find any threads about this.
Does anyone know, if it's possible to get a popup with salv? i dont want to use reuse and the old ones. in my book "Official ABAP Programming Guidelines" you can see a old popup-list and an new one, but no syntax.
if anyone can help me, thanks. i only will find a way to generate a new liked popup.
marc
2010 Jul 12 8:44 AM
Yes:
- create a dynpro as modal dialog box
- create custom container in it
- in PBO create SALV and display it
CALL SCREEN 100 STARTING AT 10 10 ENDING AT 100 70.
MODULE pbo OUTPUT.
DATA it_sflight TYPE TABLE OF sflight.
DATA r_salv TYPE REF TO cl_salv_table.
SELECT * FROM sflight UP TO 10 ROWS INTO TABLE it_sflight.
DATA r_custom_cont TYPE REF TO cl_gui_custom_container.
CREATE OBJECT r_custom_cont
EXPORTING
container_name = 'CUSTOM_CONT'.
TRY.
CALL METHOD cl_salv_table=>factory
EXPORTING
r_container = r_custom_cont
IMPORTING
r_salv_table = r_salv
CHANGING
t_table = it_sflight.
r_salv->display( ).
CATCH cx_salv_msg .
ENDTRY.
ENDMODULE.
Regards
Marcin
2010 Dec 28 9:49 AM
Hi Marc,
There is a demo report (SALV_DEMO_TABLE_POPUP) that shows how to put an SALV into a pop up window. The code in question is:
*... §4.1 set the size and position of the Popup via coordinates
gr_table->set_screen_popup(
start_column = 1
end_column = 100
start_line = 1
end_line = 20 ).
Regards,
José Raúl López
2010 Dec 28 12:57 PM
Hello Marc
You may have missed the following blog:
[Against All Odds - Programming of Communicating (S)ALV Grid Controls|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/21504] [original link is broken] [original link is broken] [original link is broken];
Regards
Uwe
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |