‎2008 Mar 17 5:13 AM
hi,
i made a program with two radio buttons to call two screens at different outposition ... but i m not getting the desired output ...
my req is that when user press R1 screen 101 is displayed at the desired position on the screen and when he press R2 screen 102 is displayed at desired location ... i wrote this program .... plz c n correct it .
selection-screen : begin of screen 101.
write:'hi'.
selection-screen end of screen 101.
selection-screen begin of screen 102.
write:/ 'bye'.
selection-screen end of screen 102.
parameters: r101 radiobutton group r ,
r102 radiobutton group r .
if r101 = 'X'.
Call screen 101." starting at 10 5
ending at 50 15.
endif.
if r102 = 'X' .
Call screen 102 ."starting at 20 10
ending at 80 20.
endif.
the output is coming hi
bye.
irrespective of the radiobutton i choose.
‎2008 Mar 17 5:16 AM
Hi,
Have one radiobutton as default.
Either r101 or r102.
Regards,
Ramya
‎2008 Mar 17 5:17 AM
Refer the following:
selection-screen : begin of screen 101.
write:'hi'.
selection-screen end of screen 101.
selection-screen begin of screen 102.
write:/ 'bye'.
selection-screen end of screen 102.
parameters: r101 radiobutton group r ,
r102 radiobutton group r .
if r101 = 'X'.
Call screen selection-screen 101." starting at 10 5
ending at 50 15.
endif.
if r102 = 'X' .
Call screen selection-screen 102 ."starting at 20 10
ending at 80 20.
endif.
CALL SELECTION-SCREEN
Syntax
CALL SELECTION-SCREEN dynnr
[STARTING AT col1 lin1
[ENDING AT col2 lin2]]
[USING SELECTION-SET variant].
Extras:
1. ... STARTING AT col1 lin1 [ENDING AT col2 lin2]
2. ... USING SELECTION-SET variant
Effect
This statement calls the Selection Screen with the Dynpro-Number specified in dynnr and starts the Selection Screen Processing. For dynnr a data object of the type n and the length 4 is expected.
The statement CALL SELECTION-SCREEN accesses the selection screens of the respective Main Program of the current program group and these work with the parameters and selection screens of the main program and trigger the selection screen processing in the main program. The main program is generally the current program, except for the case when calling a selection screen in an externally called subprogram. An uncatchable exception occurs if the specified selection screen is not contained in the main program of the program group.
You can call any selection screen of the main program, particularly the standard selection screen. Default setting is the display of the selection screen in the window of the preceding screen.
Notes
The statement CALL SCREEN is not to be used to call selection screens, as otherwise the proper execution of the selection screen processing cannot be guaranteed.
If the called selection screen is displayed in a dialog window, we recommend that you use the addition AS WINDOW when specifying the selection screen.
Addition 1
... STARTING AT col1 lin1 [ENDING AT col2 lin2]
Effect
With the addition STARTING AT, you create a modal dialog box and the selection screen is displayed in it. The upper left corner of the dialog box is determined by the values in col1 and lin1 for column and row. These values refer to the window with the Pop-up-Level 0. The lower right corner is either set automatically or can be specified in col2 and lin2 after ENDING AT. For col1, lin1, col2 and lin2, data objects of the type i are expected. The values of col1, lin1 should be smaller than col2, lin2; Otherwise the behavior will be undefined.
‎2008 Mar 17 5:18 AM
Hi,
Create two screens 101 and 102 in SE80 for the Program.
PARAMETERS: R101 RADIOBUTTON GROUP R ,
R102 RADIOBUTTON GROUP R .
IF R101 = 'X'.
CALL SCREEN 101." starting at 10 5ending at 50 15.
ENDIF.
IF R102 = 'X' .
CALL SCREEN 102 ."starting at 20 10\ending at 80 20.
ENDIF.
.and then execute ur coding.
Regards,
Balakumar.G.
Rewards Points if Helpful.
‎2008 Mar 17 5:19 AM
Hi,
Check...
When R1 = 'X'.
Call screen 100 starting at 50 50 ending at 100 100.
When R2 = 'X'.
Call screen 101 starting at 50 50 ending at 100 100.
Regards
Ak
‎2008 Mar 17 5:20 AM
Check whether u created subscreens corrctly or not
U have to starting at and ending at additions to fullfill ur requirements
‎2008 Mar 17 5:24 AM
Hi,
see this code.
selection-screen : begin of screen 101.
PARAMETERS:Hi.
selection-screen end of screen 101.
selection-screen begin of screen 102.
PARAMETERS:Bye.
selection-screen end of screen 102.
parameters: r101 radiobutton group r ,
r102 radiobutton group r .
AT SELECTION-SCREEN.
if r101 = 'X'.
Call SELECTION-SCREEN 101 starting at 10 5
ending at 50 15.
endif.
if r102 = 'X' .
Call SELECTION-SCREEN 102 starting at 20 10
ending at 80 20.
endif.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'HI' or screen-name = 'BYE'.
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
rgds,
bharat.
‎2008 Mar 17 5:25 AM
Hi,
Check the foll code....
SELECTION-SCREEN : BEGIN OF SCREEN 101.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (50) text1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 101.
SELECTION-SCREEN BEGIN OF SCREEN 102.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (50) text2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 102.
PARAMETERS: r101 RADIOBUTTON GROUP r ,
r102 RADIOBUTTON GROUP r .
INITIALIZATION.
MOVE: 'Hi' TO text1,
'Bye' TO text2.
AT SELECTION-SCREEN.
IF r101 = 'X'.
CALL SELECTION-SCREEN 101 STARTING AT 10 5
ENDING AT 50 15.
ENDIF.
IF r102 = 'X' .
CALL SELECTION-SCREEN 102 STARTING AT 20 10
ENDING AT 80 20.
ENDIF.
‎2008 Mar 17 5:29 AM
hi
First Go thru Screen Programming Documentation.. What u done is on Selection screen.. but ur requirements is to do with sub-screen and Screen designing,,
Check Call screen Syntax.. it s used for only screens designed on screen painter not selection screen.. Goto Se51 transaction and design screen or use Radio button in selection screen and subsccreen