2009 Mar 31 10:34 AM
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
2009 Mar 31 10:43 AM
You cannot assign GUI-Status of a program to another.
Make a copy and the assign it to second screen.
2009 Mar 31 10:51 AM
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
2009 Mar 31 6:00 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |