FTP server file path

Hi Experts,
I need to place the file in "C:/CacheSys/PI" in FTP server.
what is the target directory i must specify in Communication channel.
Kind Regards,
kiran

Hi
you can use the same name in the target directory.
but the folder that you create should be on the same path.
C:/CacheSys/PI
go to c: dir , then go to Cachesys then go to PI and put the file in this folder.
if you still face the problem please reply me back.
Thanks
Rinku

Similar Messages

  • In FTP server file not storing in proper order when 'FTP_R3_TO_SERVER'

    Dear ,
    when i used FTP_R3_TO_SERVER to download data in FTP server 
    i checked in FTP server  file is not storing in proper order in FTP server . plz help how to get the file in proper order .it urgent . full points must be given. i given code below .
    DATA : BEGIN OF iresult OCCURS 5,
    rec(450),
    END OF iresult ,
    DATA :
    dest LIKE rfcdes-rfcdest VALUE 'SAPFTP',
    compress TYPE c VALUE 'N',
    host(64) TYPE c.
    DATA: hdl TYPE i.
    DATA: BEGIN OF result OCCURS 0,
    line(100) TYPE c,
    END OF result.
    DATA : key TYPE i VALUE 26101957 ,
    dstlen TYPE i,
    blob_length TYPE i.
    host = p_host  .
    DESCRIBE FIELD p_password LENGTH dstlen IN CHARACTER MODE.
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
    ID 'SOURCE' FIELD p_password ID 'KEY' FIELD key
    ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD p_password
    ID 'DSTLEN' FIELD dstlen.
    CALL FUNCTION 'FTP_CONNECT'
    EXPORTING
    user = p_user
    password = p_password
    host = host
    rfc_destination = dest
    IMPORTING
    handle = hdl
    EXCEPTIONS
    not_connected = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    CONCATENATE 'cd' ftppath INTO ftppath SEPARATED BY space .
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    handle = hdl
    command = ftppath
    TABLES
    data = result
    EXCEPTIONS
    command_error = 1
    tcpip_error = 2.
    IF sy-subrc = 0 .
    CLEAR result .
    REFRESH result .
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    handle = hdl
    command = 'ascii'
    TABLES
    data = result
    EXCEPTIONS
    command_error = 1
    tcpip_error = 2.
    IF sy-subrc = 0 .
    DESCRIBE TABLE iresult LINES lines.
    blob_length = lines * width .
    clear : lines.
    Delete the existing file
    CONCATENATE 'del' ftpfile INTO delfile SEPARATED BY SPACE.
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    handle = hdl
    command = delfile
    TABLES
    data = result
    EXCEPTIONS
    command_error = 1
    tcpip_error = 2.
    *End of deleting the existing file
    CALL FUNCTION 'FTP_R3_TO_SERVER'
    EXPORTING
    handle = hdl
    fname = ftpfile
    blob_length = blob_length
    TABLES
    blob = iresult
    EXCEPTIONS
    TCPIP_ERROR = 1
    COMMAND_ERROR = 2
    DATA_ERROR = 3
    OTHERS = 4.
    IF sy-subrc 0 .
    WRITE 'Error in writing file to ftp' .
    ELSE.
    WRITE 'File downloaded on the ftp server successfully'.
    ENDIF.
    ENDIF.
    ELSE.
    WRITE : 'Path on ftp not found : ' , ftppath .
    ENDIF.
    CALL FUNCTION 'FTP_DISCONNECT'
    EXPORTING
    handle = hdl.
    CALL FUNCTION 'RFC_CONNECTION_CLOSE'
    EXPORTING
    destination = 'SAPFTP'
    EXCEPTIONS
    OTHERS = 1.
    ELSE.
    WRITE 'Could not connect to ftp' .
    ENDIF.
    ENDFORM. " FTPFINANCEACCESS_DOWNLOAD
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF screen-name = 'PASSWORD'.
    screen-invisible = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    Edited by: manoj kv on Feb 27, 2008 12:55 PM
    Edited by: manoj kv on Feb 28, 2008 5:37 AM
    Edited by: manoj kv on Feb 28, 2008 5:39 AM
    Edited by: manoj kv on Mar 5, 2008 2:15 PM
    Edited by: manoj kv on Mar 7, 2008 12:51 PM

    Hello,
    Did you try to put 'X' to the parameter CHARACTER_MODE.
    Hope it will help you
    Olivier

  • Application server file path vaidation

    I have written the code for application server file path validation.
      DATA : l_fname TYPE filename-fileintern." type c.
      DATA : l_filpath TYPE filename-fileintern,
             l_filname(40) TYPE c.
    PARAMETER : p_sucfil LIKE rfpdo-rfbifile OBLIGATORY. " rlgrap-filename
    AT SELECTION-SCREEN ON p_sucfil.
    l_fname = p_sucfil.
    CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
      CLIENT                        = SY-MANDT
        logical_filename              = l_fname
       OPERATING_SYSTEM              = SY-OPSYS
      PARAMETER_1                   = ' '
      PARAMETER_2                   = ' '
      PARAMETER_3                   = ' '
      USE_PRESENTATION_SERVER       = ' '
       WITH_FILE_EXTENSION           = 'X'
      USE_BUFFER                    = ' '
      ELEMINATE_BLANKS              = 'X'
    IMPORTING
      EMERGENCY_FLAG                =
      FILE_FORMAT                   =
       FILE_NAME                     = l_filpath
    EXCEPTIONS
       FILE_NOT_FOUND                = 1
       OTHERS                        = 2
    IF sy-subrc <> 0.
      message 'Invalid file name' type 'E'.
    ENDIF.
    But always i will get Invalid file name.
    Y is it so.
    pls help me.

    Praveen,
    I have checked ur code and I found that if i give a logical file name from
    tran. FILE under folder 'Logical file name definition, cross client' then ur code works. Pl. check.
    Regards,
    Joy.
    DATA : l_fname TYPE filename-fileintern." type c.
    DATA : l_filpath TYPE filename-fileintern,
    l_filname(40) TYPE c.
    PARAMETER : p_sucfil LIKE rfpdo-rfbifile OBLIGATORY. " rlgrap-filename
    AT SELECTION-SCREEN ON p_sucfil.
      l_fname = p_sucfil.
      CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
      logical_filename = l_fname
    operating_system = sy-opsys
      with_file_extension = 'X'
      IMPORTING
      file_name = l_filpath
      EXCEPTIONS
      file_not_found = 1
      OTHERS = 2
      IF sy-subrc <> 0.
        MESSAGE 'Invalid file name' TYPE 'E'.
      ENDIF.

  • How to give the application server file path in the module pool programming

    Hi,
         Could somebody help me how to provide the application server file path in module pool programming once the logo is uploaded to sap system.
      For eg I have imported a logo name ‘owens’ into sap system by using transaction ‘se78’; now I need to call the path in the below url,
    if container2 is initial.
    CREATE OBJECT CONTAINER2
      EXPORTING
        CONTAINER_NAME              = 'PICTURE_CONTAINER2'.
    CREATE OBJECT PICTURE2
      EXPORTING
        PARENT = CONTAINER2.
    CALL METHOD PICTURE2->SET_DISPLAY_MODE
      EXPORTING
        DISPLAY_MODE = CL_GUI_PICTURE=>display_mode_fit_center
      EXCEPTIONS
        ERROR        = 1.
    CALL METHOD PICTURE2->LOAD_PICTURE_FROM_URL
      EXPORTING
        URL    = " ? "
      EXCEPTIONS
        ERROR  = 1
        Others = 2.
    endif.
    Thanks in advance
    Deepu

    hi Deepu,
    Use FM '/SAPDMC/LSM_F4_FRONTEND_FILE' for fetching the data from the application server path/presentation server path
    Regards,
    Santosh

  • Regarding Application server file path browsing

    Hi All,
    I have a issue regarding Application Server File Path browsing.
    Actually in my selection-screen i will declare a parameter as <b>Application Server File Path</b> now when i press F4 in that field it should be able to browse through <b>Application Server Path's</b>.
    Just like <b>F4_FILENAME</b> in the case of <b>Presentation Server File Path</b> Browsing.
    Can anybody solve my issue.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    Hi Shaik,
    Just copy and paste:
    Here is the code for retrieving list of files contained within specific Application server directory(SAP).
    PARAMETER: p_fdir type pfeflnamel DEFAULT '/usr/sap/tmp'.
    data: begin of it_filedir occurs 10.
    include structure salfldir.
    data: end of it_filedir.
    START-OF-SELECTION.
    Get Current Directory Listing for OUT Dir
    call function 'RZL_READ_DIR_LOCAL'
    exporting
    name = p_fdir
    tables
    file_tbl = it_filedir.
    List of files are contained within table it_filedir
    loop at it_filedir.
    write: / it_filedir-NAME.
    endloop.
    Hope this will help you.
    Let me know incase of any concerns.
    EDIT:
    There are few FM for ur refernce :
    RZL_READ_DIR_LOCAL
    SUBST_GET_FILE_LIST Return table with file list for the given directory (pattern allowed)
    F4_DXFILENAME_TOPRECURSION Popup to select one file from the given application server directory
    TH_SERVER_LIST Returns list of application servers.
    EPS_GET_DIRECTORY_LISTING – Lists filenames from the application server .
    Cheers
    Sunny
    Rewrd points, if found helpful
    Message was edited by: Sunny

  • Equalent of F4_filename function module for application server file path

    hi experts,
            i am using  cl_gui_frontend_services=>file_open_dialog
           for bring file path dynamically for user, in front end.
          same feature i want to give when i am trying upload file from application server.
      kindly provide me function module or class method, which will do it.
    thanks in advance
    regards,
    pavan

    Hi,
    Use FM F4_DXFILENAME_TOPRECURSION
    Sample code here
    report ztest.
    data : filename like DXFIELDS-LONGPATH.
    data : begin of itab occurs 0,
    a(200) type c,
    end of itab.
    CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
    EXPORTING
    I_LOCATION_FLAG = 'A'
    *I_SERVER = '?'
    *I_PATH =
    FILEMASK = '.*'
    *FILEOPERATION = 'R'
    IMPORTING
    *O_LOCATION_FLAG =
    *O_SERVER =
    O_PATH = filename
    *ABEND_FLAG =
    EXCEPTIONS
    RFC_ERROR = 1
    ERROR_WITH_GUI = 2
    OTHERS = 3
    break-point.
    open dataset filename for input in binary mode.
    while sy-subrc = 0.
    clear itab .
    read dataset filename into itab.
    append itab.
    endwhile.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    FILENAME = 'd:\abc.txt'
    FILETYPE = 'BIN'
    TABLES
    DATA_TAB = itab
    Regards,
    Satish

  • Validation and F4 help on an application server file path parameter

    Hi
    I have a field on a selection screen called File Path and it is for a download program where the user needs to specify the path for the download (NOT THE ACTUAL FILENAME).
    I am trying to find a function or method that allows a user to use F4 help to browse for a directory rather than a specific file. There are lots of posts out there asking this question but all of the answers point to functions that allow you to browse for a particular file rather than just the file path/directory.
    Does anyone know of a function that provides F4 help to browse for a file path on the Server (NOT PC). I would want the user to just be able to select the directory or path and have the path returned. They should not need to pick a specific file.
    F4_DXFILENAME_TOPRECURSION is a very good function but unfortunately it makes the user pick a file rather than just a directory.
    In addition to this, does anyone know of a function or method that allows you to then validate the path\directory that is entered?
    Thanks for your help
    Nicole

    Hi,
      You can try with the FM 'EPS_GET_DIRECTORY_LISTING'. With this Fm module you will get you the list of files of a particular path in an internal table. Then you can populate this internal table in F4 help.
    Hope this solves your problem. If any difficulty, come back to me about that.
    Below are some other FM related to application server directory. Hope these Helps.
    EPS_GET_DIRECTORY_LISTING
    EPS_GET_DIRECTORY_PATH
    EPS_GET_FILE_ATTRIBUTES
    EPS_GET_FTP_SYSTEM_INFO
    Regards,
    Shailesh Jadhav

  • Regarding Application server file path

    Hi All,
    please explain the process how to create logical file path in FILE t-code.

    Hi,
    logical file path
    The (platform-independent) logical file path is evaluated at runtime to get the (platform-dependent) physical path (see Assignment of Physical Paths to Logical Path).
    Two examples of this are:
    · Logical file path: BW_OLAP_CACHE
    Name: BW OLAP Cache
    · Logical file path: BW_OLAP_CACHE_SPAN
    Name: BW OLAP cache cross-application server
    Assignment of Physical Paths to Logical Path
    At runtime, the physical path assigned for the corresponding operating system platform is generated from the logical file path.
    Since the physical path is platform-dependent, the customer must set it her/himself. The closer the file is to the application server or, with the cross-application server cache mode, to the application server, the faster it can be found and read.
    Log(ical) path: BW_OLAP_CACHE
    Name: BW OLAP Cache
    Syntax group: UNIX (all Unix platforms)
    Phys(ical) path: /usr/ (Syntax group WINDOWS NT)
    In a heterogeneous system landscape (such as UNIX and Windows NT servers) all system-specific syntax groups must be maintained. Ensure that the definitions for the various syntax groups point to the same directory.
    5. Save your entries
    for detailed information
    Have a look at this links... i guess it explains what you are looking for...
    http://help.sap.com/saphelp_47x200/helpdata/en/8d/3e4ec2462a11d189000000e8323d3a/content.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/25/ab3a57df3b11d189fc0000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_sm40/helpdata/EN/8d/3e4ec2462a11d189000000e8323d3a/frameset.htm
    Regards,
    Raj.

  • FTP server file reader

    Hai,
    I want to read the files present in FTP server without downloading.
    Using (org.apache.commons.net.ftp.*); this package I can view the files and directories present in particular host and can even download.
    But I want to read the files in directories without downloading them for displaying the file contents in my JApplet.
    How can I achieve this?
    Waiting for reply...
    Dhurai

    this is the wrong forum for such q.

  • Multiple FTP server files for sender File adoptor

    Hi,
    we have a requirement to pick files from different FTP servers and send it as a proxy message to ECC.File structure format for both FTP server locations is same and I need to send as a same proxy message.
    Please let me know how to achieve this. Thanks.
    Regards,
    Rajesh

    Hi Rajesh,
    Here you are having two FTP Server to pick the files so that you need to create below list of objects.
    For two different FTP Server you need to create two different sender systems
    2 sender File channels
    2 sender agreements
    2 receiver determinations
    2 interface determinations(use single inbound interface in both interface determinations)
    2 receiver agreement
    If you want to use single sender then
    2 sender File channels
    2 sender agreements
    2 receiver determinations
    2 interface determinations(use single inbound interface in both interface determinations)
    1 receiver agreement
    thanks,
    madhu

  • SAP-XI Test Server File path

    Hi all,
      I am accessing the SAP-XI test server(Web Server
    Provided by SAP). In this I am going to do FILE->IDOC
    Scenario. Now which File path  I want to mention in File
    Adaptor to place the Source XML file?
    regards,
    Khaja.sk

    Hi Khaja,
    If you are placing ur file in the server itself then u can mention the file path as given below:
    D:/usr/sap/trans/tmp/sender
    Here the D: indicates the drive where ur server is installed.
    Within the given path sender is a folder created to hold the input file.
    Regards
    Neetu

  • Reading and transfering FTP server files

    Hi Everybody,
    I will be really thankful if anybody can guide me for following-
    1. How to read/access a file on FTP server ?
    2.How file on FTP sever can be downloaded on presentation server?
    Thanks.

    Hi ,
    Check Function Group SFTP from se80.
    Check this post.
    http://wiki.sdn.sap.com/wiki/display/ABAP/WorkingwithFTP+Server

  • Application server file path name separated by apace

    Hi All,
    I am writing files on application server. Below is my fie path.
    parameters: p_o_file  like rlgrap-filename default   '/xxx/tmp/app/outbound/1~lcxxxx~ACTUAL~periodfyyear~RR.txt'.
    data : mnthyear(12) type c,
             year(6) type c.
    case p_rpmax.
    when '010'.
    p_ryear = p_ryear - 1.
    concatenate 'FY' p_ryear into year.
    concatenate 'OCT' '-' year into mnthyear separated by space.
    replace 'periodfyyear' with mnthyear into p_o_file.
    In the report output I am getting the file name correctly.
    Output File: /dev/tmp/app/outbound/1~LC1000~ACTUAL~OCT - FY2013~RR.txt
    When checked in AL11, it is showing me the below file name
    1~LC1000~ACTUAL~OCT
    my file name is truncated after space.
    Can we create a file name with spaces? Awaiting your replies.
    Thanks,
    Haritha

    Pl find snipet..
    FORM save_file.
       DATA: lv_data TYPE string.
    *Move complete path to filename
       gv_file = '1~LC1000~ACTUAL~OCT - FY2013~RR.txt'.
    * Open the file in output mode
       OPEN DATASET gv_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
       IF sy-subrc NE 0.
         MESSAGE 'Unable to create file' TYPE 'I'.
         EXIT.
       ENDIF.
       LOOP AT gt_spfli INTO gwa_spfli.
         CONCATENATE gwa_spfli-carrid
                     gwa_spfli-connid
                     gwa_spfli-countryfr
                     gwa_spfli-cityfrom
                     gwa_spfli-airpfrom
                     gwa_spfli-countryto
                     gwa_spfli-cityto
                     gwa_spfli-airpto
                     gwa_spfli-arrtime
          INTO lv_data
          SEPARATED BY ','.
    *TRANSFER moves the above fields from workarea to file  with comma
    *delimited format
         TRANSFER lv_data TO gv_file.
         CLEAR: gwa_spfli.
       ENDLOOP.
    * close the file
       CLOSE DATASET gv_file.
    ENDFORM.

  • Server file path

    Using BlazeDS to call a JAVA service on the server via AMF doesn't invoke any servlet information.  How can I determine a path to a file on the server with an AMF call?  Is it possible?  The relative path will be something like...
    /downloads/edi/[FILENAME].pdf
    ...I just need to determine if the file actually exists.  Thanks for any help you can provide.

    Hi
    you can use the same name in the target directory.
    but the folder that you create should be on the same path.
    C:/CacheSys/PI
    go to c: dir , then go to Cachesys then go to PI and put the file in this folder.
    if you still face the problem please reply me back.
    Thanks
    Rinku

  • APPLICATION SERVER FILE PATH

    Friends to surf the flat file
      function module
    what we use is
    'KDGET_FILENAME_ON_F4'_
    like this what is the fuction module for application server?????

    Try:
    F4_DXFILENAME_TOPRECURSION
    PARAMETERS: f_app(128).
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR f_app.
    PERFORM get_fname_app.
    FORM get_fname_app.
    DATA: c_fnh_mask TYPE dxfields-filemask VALUE '.',
    search_dir TYPE dxfields-longpath VALUE '/sapglobal/users',
    file_path LIKE dxfields-longpath.
    CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
    EXPORTING
    i_location_flag = 'A'
    i_server = ' '
    i_path = search_dir
    filemask = c_fnh_mask
    fileoperation = 'R'
    IMPORTING
    o_path = file_path
    EXCEPTIONS
    rfc_error = 1
    OTHERS = 2.
    IF sy-subrc EQ 0.
    f_app = file_path.
    ENDIF.
    ENDFORM. "get_fname_app[/code]
    OR
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apath.
    CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
    IMPORTING
    serverfile = p_apath
    EXCEPTIONS
    canceled_by_user = 1
    OTHERS = 2.

Maybe you are looking for

  • How to get input fields based on selection

    Hi i have dropdown which cointains 1 to 10 numbers,as soon as we select 2 in dropdown 2 input fields should be displayed.can u please help me in solving this problem thanks kishore

  • AirPort Extreme and Printing

    I have a problem trying to print wirelessly through AirPort Extreme. I have an Epson Stylus D78 and am connecting the printer through a powered 4-port USB hub. All firmware is fully up to date and I am running Leopard 10.5.3. Can you please help me?

  • Custom Login page error

    HI, I am trying to modify the Apps login page. I just renamed the page AppsLocalLogin.jsp to xxxAppsLocalLogin.jsp and try to access from the server. This gives me error java.lang.RuntimeException: Cannot access oracle.app.fnd.sso Here .app. access t

  • Using fifos or indicators / varibles on cRio.

    I'm currently working on the classical "remote, non-distributed measurement of voltages using the 9205 module" application. I was just wondering if I need at all to use fifos to transfer data from the fpga to the host computer on the cRio-9004. I did

  • Creating an invoice from a delivery does not closes the delivery.

    I am creating an invoice using DI. The invoice is based on an already existing delivery note. The delivery is manually created from SBO. When I'm creating the invoice I transfer all items and expenses from the delivery to the invoice. case 1. The del