09-11-2009 11:38 AM
*If user selects "Presentation Server"
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = lc_loc_flag_p
i_path = lv_filepath
fileoperation = lc_fileoperation
IMPORTING
o_path = lv_filepath.
I am using the code above to download my file to presentation server. my requirement is to prompt an default name IN THE SELECT FILE dialog box. but Iin this FM i am not getting the option to give this. kindly syggest how i can do that.
09-11-2009 11:46 AM
7 (6 unresolved)
It would be better if you close the previous threads and award points to those who helped you before expecting further help from this forum.
09-11-2009 11:47 AM
Hi,
For F4 help below are the FM:
F4_FILENAME : Presentation Server
F4_FILENAME_SERVER: Application server
Regards
Shiva
09-11-2009 11:49 AM
HI Nitin,
try this.
When you are declaring parameter then only you can put default name.
e.g.
Parameters : lv_filepath type rlgrap_filename default 'Name'.
Regards,
Vijay
09-11-2009 11:56 AM
09-11-2009 12:12 PM
Hi,
Try this..
PARAMETERS: p_erdat TYPE erdat DEFAULT sy-datum. ,
parameters: p_opfn type rlgrap-filename modif id app default '/usr/sap/tmp'.
This is for F4
call function '/SAPDMC/LSM_F4_SERVER_FILE'
exporting
filemask = 'X'
importing
serverfile = lv_fname
exceptions
canceled_by_user = 0
others = 0.
Regards
Ansari
09-11-2009 11:51 AM
09-11-2009 1:22 PM
Hi Niti,
Use the followwing method:
PARAMETERS: p_path(50) TYPE c LOWER CASE DEFAULT 'XYZ'.
hope this may solve ur issue.
Regards,
santosh
09-11-2009 1:27 PM
Hello Niti,
Use the method FILE_SAVE_DIALOG of the class CL_GUI_FRONTEND_SERVICES.
Here you can pass a value to the input param DEFAULT_EXTENSION, DEFAULT_FILE_NAME, INITIAL_DIRECTORY.
Else you can use the FM: GUI_FILE_SAVE_DIALOG, pass the reqd. values in DEFAULT_EXTENSION, DEFAULT_FILE_NAME & INITIAL_DIRECTORY.
Further details search in SDN.
BR,
Suhas