‎2006 May 23 6:50 AM
hi,
I need to have four fields as part of my layout that are select-options fields with multiple values entry options. Since layout doesnt have 'select-options" functionality, i defined it from the module pool program, ie: I wrote a selection screen in the PBO module. The problem is if i make any changes to the code, the layout changes back to the previuos format.
Is there any way in which i can combine selection-screen logic with my layout.
Thanks,
Sruthy
‎2006 May 23 6:57 AM
Hi Sruthy,
1. u can define a user-defd selection with "AS SUB-SCREEN" addition and call that user-defd subscreen in a subscreen placed in ur module pool screen
2. u can also set the user-defd selection screen with out "AS SUB-SCREEN" as the initial screen of the transaction attached to ur program.
3. u can also use the "COMPLEX_SELECTIONS_DIALOG" funciton module
‎2006 May 23 6:58 AM
‎2006 May 23 6:58 AM
HI
GOOD
Selection Screen Version
Only for Executable Programs
If you do not specify a selection screen version, the system automatically creates a selection screen based on the selection criteria of the logical database and the parameters and select-options statements in the program.
If you want to use a different selection screen of the logical database, enter a number in this field. The number must be smaller than 1000 and correspond to an additional selection screen of the logical database. The possible values help displays a list of available selection screens. You can also look in the selection include of the logical database (program DBxxxSEL, where xxx is the name of the logical database).
-
Tomislav
1. In the top include define the selection screen with
selection-screen begin of screen 9250 as subscreen.
SELECT-OPTIONS analyt FOR ztv_cc02-zd_mumla .
selection-screen end of screen 9250.
2. Using the screen painter create a subscreen area in
the main screen where you want to have this.
3. Then, in the screen flow logic code as follows:
PROCESS BEFORE OUTPUT.
MODULE STATUS_1000. etc
call subscreen SUB1 including 'PROGRAM NAME' '9250'.
PROCESS AFTER INPUT.
module exit at exit-command. etc.
call subscreen SUB1.
THANKS
MRUTYUN
‎2006 May 23 7:01 AM
‎2006 May 23 7:21 AM
Hi,
Please try the below code.
SELECTION-SCREEN BEGIN OF SCREEN 1020 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 3(5) TEXT-009.
SELECTION-SCREEN POSITION 10.
SELECT-OPTIONS : S_CORR FOR Table-field MATCHCODE OBJECT mcd.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 1020.
In module pool declare subscreen area and do the below.
PROCESS BEFORE OUTPUT.
MODULE STATUS_100.
CALL SUBSCREEN ANA_SCA
INCLUDING 'YHPRMAIN' '1020'.
PROCESS AFTER INPUT.
CALL SUBSCREEN ANA_SCA.
MODULE USER_COMMAND_100.
This will work only in 46C and greater versions.
Hope this will help you.
rgds,
latheesh
‎2006 May 23 7:32 AM
Hi,
If i have a subscreen as part of the layout, if i add pushbuttons to the layout, will it be a problem?
‎2006 May 23 7:36 AM
Hi Sruthy,
no, that won't be a problem, if u r placing the push button on the subscreen area then u've to handle the user-command in the main screen itself
‎2006 May 23 7:41 AM
Also put a pushbutton on ur screen with a FCODE. Evaluate it in the PAI.
‎2006 May 23 7:40 AM
Hi Sruthy,
Either you can follow the above said procedure or else u can call a FM 'COMPLEX_SELECTIONS_DIALOG' . It'll act as a range object.
In ur top include declare a range object.
Then populate that using your fields. U've to take to diff fields of the same type.
in ur selct stmt. u can use this range obj declred in ur top include.
Hope it'll help u .
If any more doubts, pls don't hesitate to post.
With regards
Pradipta K Mishra
‎2006 May 23 7:40 AM
can i place the pus-buttons from the layout and then call the subscreen as a part of the layout. Can i define a subscreen area in the layout and add extra functionality on the layout which are not from the selection screen.
‎2006 May 23 7:49 AM
Hi Sruthy,
u can do that u can place push buttons whereever u want, please check the standard program "demo_sel_screen_as_subscreen"