Skip to Content
0
Former Member
Apr 19, 2007 at 07:25 PM

F4_FILENAME - For selecting a local file from a Selection-Screen

316 Views

This code in ERP will allow me to drill down to my local drive to select a file:

However, anybody know a similar Function Module in BW to do this?

F4_Filename does not exist, at least in our BW environment.

Thank-You.

PARAMETER: p_locat LIKE rlgrap-filename

DEFAULT '/interfaces_r3/inbound/archive/RGIS/RGISTOSAP.TXT.20061008'.

***************************************************************************

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_locat.

PERFORM get_file USING p_locat.

***************************************************************************

form get_file using p_locat.

DATA: v_file LIKE ibipparms-path.

MOVE: p_locat TO v_file.

DATA: v_repid LIKE syst-repid,

v_dynnr LIKE syst-dynnr.

v_repid = syst-repid.

v_dynnr = syst-dynnr.

CALL FUNCTION 'F4_FILENAME'

EXPORTING

program_name = v_repid

dynpro_number = v_dynnr

  • field_name = field

IMPORTING

file_name = v_file.

MOVE: v_file TO p_locat.