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

Selection-screen validation on file names.

Former Member
0 Likes
669

Hi All,

In my selection-screen I have provision to pick 4 files from Presentation server.

Now I want to validate that 4 file's path and names.

Suppose by mistake user entered 1 in another so that my program must handle this for not going further and have to through error message.

Any suggestions please... or is there any FM to validate the file name.

Thanks,

Deepak.

Hi All,

In my selection-screen I have provision to pick 4 files from Presentation server.

Now I want to validate that 4 file's path and names.

Suppose by mistake user entered 1 in another so that my program must handle this for not going further and have to through error message.

Any suggestions please... or is there any FM to validate the file name.

Thanks,

Deepak.

4 REPLIES 4
Read only

Former Member
0 Likes
490

Hi

You can declare the file as <b>RLGRAP-FILE</b>NAME or like below

  • Paramters

PARAMETERS: p_file LIKE <b>ibipparms-path</b>. " Filename

  • At selection-screen on Value Request for file Name

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

  • Get the F4 Values for the File

CALL FUNCTION 'F4_FILENAME'

EXPORTING

program_name = syst-cprog

dynpro_number = syst-dynnr

IMPORTING

file_name = p_file.

when you decalre like above it will take care of that format

Reward points if useful

Regards

Anji

Read only

0 Likes
490

Hi,

Thanks for your reply.

I have p_file1, p_file2, p_file3, p_file4 in my selection screen for upload.

Now i need to validate so that file1 shouldnt entered in file2 or file3 or file4 and similarly for all others. This must aplicable for F4 functionality also. Right now I have F4 functionality.

It shouldnt pick one in other fields.

Thanks,

Deepak.

Read only

0 Likes
490

Just compare the file name with on another.

Read only

Former Member
0 Likes
490

Hi,

Check these links...

Regards,

Omkar.