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: 

F4_FILENAME_SERVER is not returning any value

Former Member
0 Kudos

Dear All,

I want a popup for the application server from where I can select file for further processing. I have used F4_FILENAME_SERVER, but the function module is not working. It is giving a popup with the filenames but after selection of a particular file if I select the check button, it is not returning anything (coming blank). Please can you suggest anything on this.

Thanks and regards,

Atanu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try using FM: /SAPDMC/LSM_F4_SERVER_FILE


*** Display Directories on the Application Server
     CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
          EXPORTING
            DIRECTORY         = <directory_name>
*   filemask               = ''
         IMPORTING
            SERVERFILE        = P_FILE
         EXCEPTIONS
            CANCELLED_BY_USER = 1
            OTHERS            = 2.
     IF SY-SUBRC <> 0.
        MESSAGE W016 WITH P_FILE.
     ENDIF.

Kind Regards

Eswar

3 REPLIES 3

Former Member
0 Kudos

Please can anyone suggest if there is any other function module available.

Thanks and regards,

Atanu

Former Member
0 Kudos

Try using FM: /SAPDMC/LSM_F4_SERVER_FILE


*** Display Directories on the Application Server
     CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
          EXPORTING
            DIRECTORY         = <directory_name>
*   filemask               = ''
         IMPORTING
            SERVERFILE        = P_FILE
         EXCEPTIONS
            CANCELLED_BY_USER = 1
            OTHERS            = 2.
     IF SY-SUBRC <> 0.
        MESSAGE W016 WITH P_FILE.
     ENDIF.

Kind Regards

Eswar

Former Member
0 Kudos

Hi atanu,

1. use the FM F4_DXFILENAME_TOPRECURSION

2. Give the parameter I_LOCATION_FLAG = 'A' (for application server)

regards,

amit m.