2008 Jun 02 10:36 AM
Hi all...
in module pool screen.....
How can i make one input field as "input not possible" for one perticuler condition met??
ex: iam having one input field in my screen.... so i can enter the values for it.... similer ly iam also having another one... here if i enter value in the second one and push the pushbotton to do some caluclation part.
then my first input field has to appear but in no input possible mode...
Thank you,
Naveen
2008 Jun 03 5:56 AM
Hi,
You said you have two fields on your screen and a pushbutton...
So You can do like this....
**********************************
if sy-datar = 'X'.
loop at screen.
if screen-name eq 'FIELD1'.
screen-input = 0.
endif.
Modify screen.
Endloop.
Endif.
*************************************
Or you can also do like this....
*****************************************
If sy-ucomm = 'PUSHBUTTON'.
loop at screen.
if screen-name eq 'FIELD1'.
screen-input = 0.
endif.
Modify screen.
Endloop.
Endif.
*********************************
here PUSHBUTTON is the Fcode for the Pushbutton and FIELD1 is the screen name of the field which has to get diabled.
Reward if helpful.
Regards,
Syed
Hi all...
in module pool screen.....
How can i make one input field as "input not possible" for one perticuler condition met??
ex: iam having one input field in my screen.... so i can enter the values for it.... similer ly iam also having another one... here if i enter value in the second one and push the pushbotton to do some caluclation part.
then my first input field has to appear but in no input possible mode...
Thank you,
Naveen
2008 Jun 02 11:17 AM
Hi,
Try this code:
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
if <condition for no input>
IF screen-name = <Field name>
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDIF.
endloop.
Reward points if helpful.
Regards,
Mukul
2008 Jun 03 4:33 AM
try to put code after ur conditions are met .
Loop at screen.
if screen-name = <Fieldname> and screen-group1 = <group name>.
screen-input = 0.
modify screen.
endif.
endloop.
2008 Jun 03 5:56 AM
Hi,
You said you have two fields on your screen and a pushbutton...
So You can do like this....
**********************************
if sy-datar = 'X'.
loop at screen.
if screen-name eq 'FIELD1'.
screen-input = 0.
endif.
Modify screen.
Endloop.
Endif.
*************************************
Or you can also do like this....
*****************************************
If sy-ucomm = 'PUSHBUTTON'.
loop at screen.
if screen-name eq 'FIELD1'.
screen-input = 0.
endif.
Modify screen.
Endloop.
Endif.
*********************************
here PUSHBUTTON is the Fcode for the Pushbutton and FIELD1 is the screen name of the field which has to get diabled.
Reward if helpful.
Regards,
Syed
2008 Jun 03 10:40 AM
Hi,
Here's an example,
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
refresh s_mtpos.
IF screen-name = 'S_MTPOS-LOW' OR screen-name = 'S_MTPOS-HIGH'.
screen-output = 1.
screen-input = 0.
MODIFY SCREEN.
CLEAR screen-name.
ENDIF.
Regards,
Pritha.
Reward if useful.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |