2010 Aug 27 11:40 AM
Hi all,
I have created a simple report in which on selection screen i have the following requirement.
select-options: s_matnr for mara-matnr.
then in next line at begining i have to provide a radio button for xplant status and also in the same line there should be a parameter like option in so that user can select the values from MARA-MSTAE.
and in next line again a radiobutton in the begining itself and then a parameter for MARC-DISMM.
and in line below to this paramters: p_werks type marc-werks.
when first radio button is checked only xplant status's value should be entered and MARC-DISMM as well as marc-werks should be invisible and when second radio button is selected, MARA-MSTAE should be invisible.
plz help me to acheive this.
Regards,
Ashmita Singh
2010 Aug 27 11:47 AM
My help: use the search function. There are enough threads regarding manipulating selection screens,
Hi all,
I have created a simple report in which on selection screen i have the following requirement.
select-options: s_matnr for mara-matnr.
then in next line at begining i have to provide a radio button for xplant status and also in the same line there should be a parameter like option in so that user can select the values from MARA-MSTAE.
and in next line again a radiobutton in the begining itself and then a parameter for MARC-DISMM.
and in line below to this paramters: p_werks type marc-werks.
when first radio button is checked only xplant status's value should be entered and MARC-DISMM as well as marc-werks should be invisible and when second radio button is selected, MARA-MSTAE should be invisible.
plz help me to acheive this.
Regards,
Ashmita Singh
2010 Aug 27 11:47 AM
My help: use the search function. There are enough threads regarding manipulating selection screens,
2010 Aug 27 11:56 AM
Hi,
It's very basic selection screen programming, try to search first before posting.
parameters:p1(10) TYPE C MODIF ID AB,
p2(10) TYPE C MODIF ID XY.
.........
AT SELECTION-SCREEN OUTPUT.
IF RAD1 = 'X'.
LOOP AT SCREEN.
CHECK SCREEN-GROUP1 = 'XY'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
Regards,
Harsh.
Edited by: Harsh Saxena on Aug 27, 2010 4:26 PM
2010 Aug 27 11:59 AM
Take reference of belwo code
PARAMETERS: rad1 RADIOBUTTON GROUP vdo DEFAULT 'X',
rad2 RADIOBUTTON GROUP vdo MODIF ID vdo.
AT SELECTION-SCREEN.
LOOP AT SCREEN.
CHECK screen-group1 EQ 'VDO'.
screen-invisible = '1'.
MODIFY screen.
ENDLOOP.
2010 Aug 27 12:01 PM
Hi,
Only thing is you need to use At SELCTION-SCREEN even at here. When ever you selected one radio buttin that corresponding field should be visible.
search for selection screen designs, you will get many threads.
Regards,
Vamsi Krishna
2010 Aug 27 12:02 PM
it will be like this :
selection-screen begin of block b1 with frame title text-001.
select-options: s_matnr for mara-matnr modif id mat.
selection-screen begin of line.
parameter: rd1 radiobutton group rd user-command ua default 'X' modif id mm1.
PARAMETER : p_mstme like MARA-MSTAE modif id mst.
selection-screen comment 3(20) text-005 modif id mm1.
parameter: rd2 radiobutton group rd modif id mm2.
PARAMETER : p_mstme like MARA-DISMM modif id dis.
selection-screen comment 26(25) text-006 modif id mm2.
selection-screen end of line.
PARAMETER : p_werks like MARc-werks modif id wer.
selection-screen: end of block b1.
The modif id's that i have used u can use them in
loop at screen...............endloop.
to show the parameters when required.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |