Application Development and Automation 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: 
Read only

salv - Popup

Former Member
0 Likes
7,046

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

3 REPLIES 3
Read only

MarcinPciak
Active Contributor
0 Likes
3,359

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

Read only

jrlopez
Explorer
3,359

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

Read only

uwe_schieferstein
Active Contributor
0 Likes
3,359

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