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: 

Displaying list in a dialog screen

Former Member
0 Kudos

Hi guys,

I would like to know if it is possible to display a normal list (i.e. built using 'write' statements) in a dialog screen. It is not an ALV.

Many thanks for your help

Sanjay

1 ACCEPTED SOLUTION

andreas_mann3
Active Contributor
0 Kudos

hi,

use command LEAVE TO LIST-PROCESSING (look F1)

example:

MODULE 0900 OUTPUT.

  SUPPRESS DIALOG.
  SET PF-STATUS 'SOP'.
  SET TITLEBAR 'SEL'.

  LEAVE TO LIST-PROCESSING.            " AND RETURN TO SCREEN DYNPRO.

  LOOP AT itab.

    WRITE: /     itab-bukrs.
...
 Endloop.

  CLEAR CODE.
ENDMODULE.                             " 0900  OUTPUT

Andreas

1 REPLY 1

andreas_mann3
Active Contributor
0 Kudos

hi,

use command LEAVE TO LIST-PROCESSING (look F1)

example:

MODULE 0900 OUTPUT.

  SUPPRESS DIALOG.
  SET PF-STATUS 'SOP'.
  SET TITLEBAR 'SEL'.

  LEAVE TO LIST-PROCESSING.            " AND RETURN TO SCREEN DYNPRO.

  LOOP AT itab.

    WRITE: /     itab-bukrs.
...
 Endloop.

  CLEAR CODE.
ENDMODULE.                             " 0900  OUTPUT

Andreas