2008 Apr 01 9:23 AM
Hi Experts,
I have two fields on the selection screen
1) paramter
2) File-path
After selecting the text file from the file path( i.e C:/ document and Settings/desktop/test1.txt/) , the path should be grayed out so that no one can change the path.
Help me in this regard.
Thanks
2008 Apr 01 9:28 AM
Hi,
at selection-screen output.
if path is not initial.
loop at screen.
if screen-name = 'PATH'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
endloop.
endif.
Regards,
V.Balaji
Reward if Usefull...
Hi Experts,
I have two fields on the selection screen
1) paramter
2) File-path
After selecting the text file from the file path( i.e C:/ document and Settings/desktop/test1.txt/) , the path should be grayed out so that no one can change the path.
Help me in this regard.
Thanks
2008 Apr 01 9:26 AM
Why do you want the user to edit this field?`Maybe he mistyped something and then he is not able to correct that and have to restart the transaction again. I cannot see a sense of doing that.
2008 Apr 01 9:28 AM
Hi,
at selection-screen output.
if path is not initial.
loop at screen.
if screen-name = 'PATH'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
endloop.
endif.
Regards,
V.Balaji
Reward if Usefull...
2008 Apr 01 9:37 AM
Hi,
I agree with Rainer's answer. However check the below code.
parameters: p_file like rlgrap-filename.
at selection-screen on value-request for p_file.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
FILE_NAME = p_file.
at selection-screen output.
loop at screen.
if screen-name = 'P_FILE'.
if not p_file is initial.
screen-input = 0.
endif.
endif.
modify screen.
endloop.
Note: You need to press ENTER key.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |