2008 Mar 24 7:20 AM
hi,
i have declared selection option as below.
PARAMETERS : p_newko LIKE rf05a-newko OBLIGATORY DEFAULT '0000165016'.
i want to make this field non editable i.e. user shuld not change this. can u tell me how to do this ??
2008 Mar 24 7:22 AM
hi,
write like this
PARAMETERS : p_newko LIKE rf05a-newko DEFAULT '0000165016' MODIF ID SC1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
if helpful give reward points.
regards,
pankaj vashista
Hi Santosh,
If you want to display default value and the user should not change the default value then no need of giving obligatory.
try this code...
PARAMETERS : p_newko LIKE rf05a-newko DEFAULT '0000165016' MODIF ID SC1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
<b>REWARD IF USEFUL</b>
regards,
sunil kairam.
Edited by: sunil kairam on Mar 24, 2008 1:02 PM
2008 Mar 24 7:22 AM
hi,
write like this
PARAMETERS : p_newko LIKE rf05a-newko DEFAULT '0000165016' MODIF ID SC1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
if helpful give reward points.
regards,
pankaj vashista
2008 Mar 24 7:30 AM
Hi,
Check this code.
At selection-screen ouput.
Loop at screen.
if screen-name = 'P_NEWKO'.
screen-input = 1.
modify screen.
endif.
enloop.
Reward if helpful.
Regards.
Either its screen-input = 1 or screen-input = 0.
Check both.
Edited by: Akshay Raj on Mar 24, 2008 8:31 AM
2008 Mar 24 7:30 AM
Hi Santosh,
If you want to display default value and the user should not change the default value then no need of giving obligatory.
try this code...
PARAMETERS : p_newko LIKE rf05a-newko DEFAULT '0000165016' MODIF ID SC1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
<b>REWARD IF USEFUL</b>
regards,
sunil kairam.
Edited by: sunil kairam on Mar 24, 2008 1:02 PM
2008 Mar 24 7:31 AM
Hi Santosh..
may be it is useful...
Assign parameter to a screen group...like below way..
PARAMETERS <p>.. MODIF ID <key> ....
after that u use below events and code like that..
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'SCREENGROUP NAME'.
SCREEN-editable = '1'.
MODIFY SCREEN.
ENDIF.
if u want other options on selection screen like editable/noneditable, intensified..etc see SCREEN table in SE11.
thanks..
2008 Mar 24 7:33 AM
Hi Santhosh,
if u want to disable the text field u need to modify it using the following code
At selection-screen ouput.
Loop at screen.
if screen-name = 'P_NEWKO'.
screen-invisible = 1.
modify screen.
endif.
enloop.
Thanks
Ganesh
2008 Mar 24 8:53 AM
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |