2007 Jun 04 10:42 AM
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.
2007 Jun 04 10:48 AM
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
2007 Jun 04 10:53 AM
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.
2007 Jun 04 10:58 AM
2007 Jun 04 10:52 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |