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

Multiple selection screens with status gui

Former Member
0 Likes
917

Hi,

I want to make a report with two selection screens and i should create a status gui for these two.

So, I've tried to do, the following:



* FIRST SCREEN
SELECTION-SCREEN BEGIN OF BLOCK bk WITH FRAME.

PARAMETERS: pa(200) TYPE c.

SELECT-OPTIONS: so FOR sflight-carrid.


SELECTION-SCREEN END OF BLOCK bk.
* /FIRST SCREEN

* SECOND SCREEN
SELECTION-SCREEN BEGIN OF SCREEN 2000.

SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME.
PARAMETERS: pa2(200) TYPE c.
SELECTION-SCREEN END OF BLOCK bk1.

SELECTION-SCREEN END OF SCREEN 2000.
* /SECOND SCREEN

AT SELECTION-SCREEN OUTPUT.
  SET PF-STATUS 'Z_STAT'.
  SET TITLEBAR 'COISO'.

AT SELECTION-SCREEN.

  IF sy-dynnr EQ '1000'.
    CASE sy-ucomm.
      WHEN 'BACK' OR 'EXIT' OR 'CANC'.
        LEAVE TO SCREEN 0.
      WHEN 'EXECUTAR'.
        CALL SELECTION-SCREEN 2000.
        IF sy-subrc <> 0.
          LEAVE TO SCREEN 1000.
        ENDIF.
    ENDCASE.

The problem is that on the first selection screen i have the status gui that I've created, but when i use CALL SELECTION-SCREEN 2000

the status gui (Z_STAT) is not assigned with the screen 2000.

Is this possible? If yes how, and how can i capture which button on status gui of screen 2000 was clicked, because the field sy-ucomm after the call selection-screen 2000 is not updated?

Regards,

Pedro Bessa

Hi,

I want to make a report with two selection screens and i should create a status gui for these two.

So, I've tried to do, the following:



* FIRST SCREEN
SELECTION-SCREEN BEGIN OF BLOCK bk WITH FRAME.

PARAMETERS: pa(200) TYPE c.

SELECT-OPTIONS: so FOR sflight-carrid.


SELECTION-SCREEN END OF BLOCK bk.
* /FIRST SCREEN

* SECOND SCREEN
SELECTION-SCREEN BEGIN OF SCREEN 2000.

SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME.
PARAMETERS: pa2(200) TYPE c.
SELECTION-SCREEN END OF BLOCK bk1.

SELECTION-SCREEN END OF SCREEN 2000.
* /SECOND SCREEN

AT SELECTION-SCREEN OUTPUT.
  SET PF-STATUS 'Z_STAT'.
  SET TITLEBAR 'COISO'.

AT SELECTION-SCREEN.

  IF sy-dynnr EQ '1000'.
    CASE sy-ucomm.
      WHEN 'BACK' OR 'EXIT' OR 'CANC'.
        LEAVE TO SCREEN 0.
      WHEN 'EXECUTAR'.
        CALL SELECTION-SCREEN 2000.
        IF sy-subrc <> 0.
          LEAVE TO SCREEN 1000.
        ENDIF.
    ENDCASE.

The problem is that on the first selection screen i have the status gui that I've created, but when i use CALL SELECTION-SCREEN 2000

the status gui (Z_STAT) is not assigned with the screen 2000.

Is this possible? If yes how, and how can i capture which button on status gui of screen 2000 was clicked, because the field sy-ucomm after the call selection-screen 2000 is not updated?

Regards,

Pedro Bessa

3 REPLIES 3
Read only

Former Member
0 Likes
727

You cannot assign GUI-Status of a program to another.

Make a copy and the assign it to second screen.

Read only

Former Member
0 Likes
727

Uses:

TABLES:SSCRFIELDS. " Use tables statement and the structure

SSCRFIELDS-UCOMM " Will hold the sy-ucomm value.

Just double click on the screen 2000 and create PF-status in the PBO of the screen.

Regards,

Gurpreet

Read only

0 Likes
727

harsh bhalla,

its the same report. with two selection-screens. Can't i have status gui for both of them?

Gurpreet Singh,

I have a selection screen. Not a screen. Can a have a pbo for a selection-screen? or one for each selection-screen?

The table SSCRFIELDS and the field sy-ucomm stays with the value from the first selection-screen.

Regards,

Pedro Bessa