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: 

Report program with detail list and GUI status.

Former Member
0 Kudos

Hi,

I am working on type 1 program (report) and want to use detail lists.

I want to use a GUI status and want to use AT LINE-SELECTION. But AT LINE-SELECTION does not work when I use a GUI status.

How do I achieve this?

Thanks.

1 ACCEPTED SOLUTION

0 Kudos

Goto GUI status and enable the F2 function key and assign the event PICK in that

Regards

Farzan

3 REPLIES 3

0 Kudos

Goto GUI status and enable the F2 function key and assign the event PICK in that

Regards

Farzan

Mohamed_Mukhtar
Active Contributor
0 Kudos

Hi Kumar ,

You cant use AT USER-COMMAND and AT LINE SELECTION events simultaneously in an interavtive report..

Regards.

asik_shameem
Active Contributor
0 Kudos

Hi

In the secondary windows, it is not possible to have GUI Status.

If you need like that, you should go for ALV Reports.

Here, You can have GUI Status only in the selection-screen as below..

REPORT  zak014  LINE-SIZE 60 LINE-COUNT 20(2).

TABLES: sscrfields.

* Appliction Tool Bar Elements
SELECTION-SCREEN FUNCTION KEY 1.

SELECTION-SCREEN FUNCTION KEY 2.

* Selection Screen
PARAMETERS: matnr TYPE matnr.

INITIALIZATION.
  sscrfields-functxt_01 = 'TEST1'.
  sscrfields-functxt_02 = 'TEST2'.


START-OF-SELECTION.
  WRITE:/20 'CLICK HERE TO NAVIGATE'.

AT LINE-SELECTION.

  WINDOW STARTING AT 5  5
         ENDING   AT 50 18.

  CASE sy-lsind.
    WHEN 1.
      WRITE:/ 'This is First window'.
    WHEN 2.
      WRITE:/ 'This is second'.
  ENDCASE.

TOP-OF-PAGE.
  WRITE:/5 'LINE SELECTION'.