Application Development 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: 

Help In File Downloading.

Former Member
0 Kudos

Hi All,

I'm stuck up with a problem in File Download.

Quite a lengthy question but please do read.

I'm converting spools to PDF's and i want to download all the files to Desktop(Presentation Server).

For this the file names are build dynamically.

The file path i.e. only the directory path we're passing as a parameter. But now the user wants F4 help for that parameter just like the file dialog box. But when we use file dialog box it is mandatory to give file names also right. But i don't want to give file name. Just i want to stop at that particular directory in which i want to store the files and pick that path from Dialog box.

Do you have any pointers reagrding this???

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Phani,

If you are providing the F4 help, let the user enter '' in the place for file name. You can do a string manipulation and take off the '' mark and then pass the folder path so that you can download with your dynamically generated name. Here you should explain it to the user that since this is a mandatory field he/she has to enter the '*' mark and the file name will be generated with the dynamic name generated programmatically as entered.

Cheers

JK

2 REPLIES 2

Former Member
0 Kudos

Hi Phani,

If you are providing the F4 help, let the user enter '' in the place for file name. You can do a string manipulation and take off the '' mark and then pass the folder path so that you can download with your dynamically generated name. Here you should explain it to the user that since this is a mandatory field he/she has to enter the '*' mark and the file name will be generated with the dynamic name generated programmatically as entered.

Cheers

JK

0 Kudos

you can use the following method for the same

CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE (you can also set the default folder to start with)

you can call this method

at selection-screen on value request for <parameter> .

Regards

Raja