‎2007 Jul 24 8:01 AM
Hi,
do parameters & select-options can be used in module pool program?
‎2007 Jul 24 8:09 AM
Hi,
if you mean using 'screen builder', then 'no'.
put you can have an executable program with the select-option and parameters and then from there, you can CALL SCREEN.
Lata
‎2007 Jul 24 8:12 AM
‎2007 Jul 24 8:13 AM
Hi,
you can also used FM COMPLEX_SELECTIONS_DIALOG to achieve this.
If the number of parameters/select-options are more its better to go with the method .
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.
<b>Reward points</b>
Regards
‎2007 Jul 24 8:18 AM
Hello,
In module one can create input parameters from user by "Parameters" and "select options" if and only if you define it within a screen block ,i.e:Please see the example code below with screen 100(you can use your own screen number provided you dont intend to use it again in the module pool)
tables:PA0001. "Declaration
SELECTION-SCREEN BEGIN OF SCREEN 100. "Start of screen block
PARAMETERS PARM(5). "Parameters
SELECT-OPTIONS SEL FOR PA0001-PERNR. "Select options
SELECTION-SCREEN END OF SCREEN 100. "end of screen block
You need not creat the screen 100 separately.Even if you try,an error saying screen exists will come.
when the transaction code(t-Code) is assigned to the module pool the screen(100)needs to be assigned so that you can view the screen 100 where parameters and select options are used
Hope this answers your query
Reward points if useful...
Regards
Byju
‎2007 Jul 24 8:21 AM
hi
U cant use parameters and select options stmts in MPP but
u can use I/O fields text boxes for this purpose by writing the suitable code