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: 

file saving in presentation server

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

For F4 help below are the FM:

F4_FILENAME : Presentation Server

F4_FILENAME_SERVER: Application server

Regards

Shiva

Former Member
0 Kudos

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

0 Kudos

thanks for ur idea Vijay...but it didn't work

0 Kudos

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

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi

Use the Transactions : CG3Y/CG3Z.

Regards,

Sreeram

Former Member
0 Kudos

Hi Niti,

Use the followwing method:

PARAMETERS: p_path(50) TYPE c LOWER CASE DEFAULT 'XYZ'.

hope this may solve ur issue.

Regards,

santosh

SuhaSaha
Advisor
Advisor
0 Kudos

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