Skip to Content
author's profile photo Former Member
Former Member

open dataset

hi all,

i am doing a program which has to save the text file in the application server. can u tell me how to locate the file after it is been saved to the server. so that i can check whether it is saved correctly or not.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Oct 10, 2005 at 05:27 AM

    Goto transaction <b>AL11</b> then choose the file path u gave example

    interface/...

    U can go and check like this.

    Also sample code for downloading to unix

    DATA: v_filepht LIKE FILENAME-FILEINTERN, "Physical file for p_fnam2
    
    * Open the file in application server
      OPEN DATASET v_filepht FOR OUTPUT IN TEXT MODE.
      IF sy-subrc <> 0.
        MESSAGE s185 WITH v_filepht.           " File opening error
        LEAVE LIST-PROCESSING.
    
      ENDIF.
    
       LOOP AT i_logfile INTO w_logfile.
        TRANSFER w_logfile TO v_filepht.
        CLEAR w_logfile.
    
      ENDLOOP.
    
       IF sy-subrc = 0.
        WRITE:/ text-055, v_filepht, text-056. " File successfully created
      ELSE.
        WRITE:/ text-057, v_filepht.           " Error creating file
      ENDIF.
    
     * Closing the file
    
      CLOSE DATASET v_filepht.

    Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 10, 2005 at 05:29 AM

    Hi,

    fm EPS_GET_DIRECTORY_LISTING

    or fm EPS_GET_FILE_ATTRIBUTES

    regards Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2005 at 10:25 AM

    hi all,

    first of all i am trying to print the values in presentation server. i have to save the values in a .txt file. i been able to get the values in a text file but i am not able to get the tabs. and also the titles should be aligned. can somebody help me in this.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2005 at 12:04 PM

    HI Ateeq

    to find a file on applicatoin server (the server it self) you can use some function module eg.

    F4_DXFILENAME_TOPRECURSION

    F4_FILENAME_SERVER

    bye enzo

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.