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

Former Member
0 Likes
351

Hi,

What is the function module to fetch files from system throught PARAMETERS, except 'UPLOAD' function moudle.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
331
report ztest.

PARAMETERS: p_file1 LIKE rlgrap-filename.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
  PERFORM get_file1.

start-of-selection.
*

FORM get_file1.
  CLEAR p_file1.
  CALL FUNCTION 'F4_FILENAME'
       IMPORTING
            file_name = p_file1.
ENDFORM.                                                    " get_file1

Hope this helps.

Best Regards, Murugesh AS

3 REPLIES 3
Read only

Former Member
0 Likes
331

Hi,

GUI_UPLOAD is a function module.. in new systems we have methods..

which version of SAP r u working on?

Thanks and Best Regards,

Vikas Bittera.

Read only

Former Member
0 Likes
332
report ztest.

PARAMETERS: p_file1 LIKE rlgrap-filename.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
  PERFORM get_file1.

start-of-selection.
*

FORM get_file1.
  CLEAR p_file1.
  CALL FUNCTION 'F4_FILENAME'
       IMPORTING
            file_name = p_file1.
ENDFORM.                                                    " get_file1

Hope this helps.

Best Regards, Murugesh AS

Read only

Former Member
0 Likes
331

For presentation server you could

GUI_UPLOAD

For application server

you will have ti use

OPEN DATA SET ....INPUT method... check SAP help

Regards,

Amit Raut