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

Function module to populate both App server and Presentation server paths

Former Member
0 Likes
643

Hi,

Can any one tell me the Function module to populate a window where i can select a file either from Application server or presentation server.

Thanks in Advance,

Regards,

Somesh

5 REPLIES 5
Read only

Former Member
0 Likes
597
 CALL METHOD cl_gui_frontend_services=>file_open_dialog
    EXPORTING
      window_title      = 'Select File'
      default_filename  = '*.xls'
      initial_directory = 'C:'
      multiselection    = ' '  "No multiple selection
    CHANGING
      file_table        = it_tabemp
      rc                = gd_subrcemp.

for presentation server and

FM <b>'/SAPDMC/LSM_F4_FRONTEND_FILE'</b> for application server ..

Regards,

Santosh

Read only

Former Member
0 Likes
597

Use the function module F4_FILENAME to select a file on the presentation server.

Read only

Former Member
0 Likes
597

for presentation server use -

KD_GET_FILENAME_ON_F4

Read only

Former Member
0 Likes
597

Hi somesh,

1. F4_DXFILENAME_TOPRECURSION

<b>2. This fm will provided a POPUP Window

with BUTTONS to CHOOSE

from 'Application Server' OR 'Presenetation Server'.</b>

regards,

amit m.

Read only

Clemenss
Active Contributor
0 Likes
597

Hi,

useful hints have been given.

There is no way of selecting server or client file with the same functionality because the way of file access will be different: Presentation server (client) is handled via SAPGUI up- and download; Application server accesses files as datasets with open and transfer directly.

Regards,

Clemens