2007 Aug 22 7:52 AM
Hi,
AT SELECTION-SCREEN.
CASE sscrfields-ucomm.
WHEN'FC01'.
CALL SELECTION-SCREEN 123 STARTING AT 20 5.
WHEN 'CRET'.------1)
CALL SELECTION-SCREEN 132 STARTING AT 19 10 ending at 100 10.
WHEN 'CRET'. -
2)
perform get_data.
ENDCASE.
The problem is when i click screen 132 execute it is always going to screen123 ,means only first CRET function is working but it is not going to second CRET, how to do this?
Hi,
AT SELECTION-SCREEN.
CASE sscrfields-ucomm.
WHEN'FC01'.
CALL SELECTION-SCREEN 123 STARTING AT 20 5.
WHEN 'CRET'.------1)
CALL SELECTION-SCREEN 132 STARTING AT 19 10 ending at 100 10.
WHEN 'CRET'. -
2)
perform get_data.
ENDCASE.
The problem is when i click screen 132 execute it is always going to screen123 ,means only first CRET function is working but it is not going to second CRET, how to do this?
2007 Aug 22 8:01 AM
Hi,
AT SELECTION-SCREEN.
CASE sscrfields-ucomm.
WHEN'FC01'.
CALL SELECTION-SCREEN 123 STARTING AT 20 5.
WHEN 'CRET'.------1)
CALL SELECTION-SCREEN 132 STARTING AT 19 10 ending at 100 10.
perform get_data.
ENDCASE.
Use appropriate condionalising (using IF statements, flags) to meet your requirement.
Regards,
Sandeep.
2007 Aug 22 8:13 AM
Hi Sandeep,
when i click the second screen execute again it will go to
CASE sscrfields-ucomm.
so the first CRET is only displayed all the time,it is coming recursively , i kept flags n conditions also
2007 Aug 22 8:19 AM
check the value of <b>sy-dynnr</b> to know which selection-screen has triggered the AT SELECTION SCREEN event
AT SELECTION-SCREEN
IF sy-dynnr EQ '0132'.
CASE sy-ucomm.
WHEN 'CRET'.
perform get_data.
ENDCASE.
ELSEIF sy-dynnr EQ '0123'.
CASE sy-ucomm.
WHEN 'CRET'.
CALL SELECTION-SCREEN 123....
ENDCASE.
ENDIF.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |