Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Disable filepath parameter in a report

Former Member
0 Likes
735

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
610

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,

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...

3 REPLIES 3
Read only

rainer_hbenthal
Active Contributor
0 Likes
610

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.

Read only

Former Member
0 Likes
611

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...

Read only

Former Member
0 Likes
610

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.