Skip to Content
avatar image
Former Member

application server

Hi Gurus,

I am working for implementation proj in SAP ecc 6.0.

i just want to understand the purpose of the function module '/SAPDMC/LSM_F4_SERVER_FILE'.

Now i am working on a program which uses apacheta interface and checks for the duplicate invoices present in input file.

also I am not able to open the dataset from application server.

Give me the exact path to open a file from application server.

I also tried cg3y.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Sep 04, 2008 at 08:40 AM

    Padmini

    Have you tried to open it through AL11... ??

    Thanks

    Amol Lohade

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 08:44 AM

    Hi,

    This FM will give you the path of files on the application server as a F4 help.

    Regards,

    Rama.P

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 08:49 AM

    Hi,

    I hope the below link will help you.

    Reading file from application server and storing back in text format

    Thanks,

    Khushboo.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 04, 2008 at 08:52 AM

    Hi

    Try in the following folders

    application server folder: /usr/sap/trans/data/ and /usr/sap/trans/cofiles/

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 08:55 AM

    Hi Padmini,

    Goto to tcode AL11. Check the directory, where the file is present on Application sever. Suppose that you have a file "test.xls" on Application server and suppose it is stored in directory with path as '.\'. Now use this path in OPEN DATASET.

    Now check this sample code

    REPORT  z_file.
    
    DATA: fname(50),
          w_line TYPE i,
          w_char(90),
          w_file(90).
    
    DATA: BEGIN OF fs_tab,
            field(90) TYPE c,
          END OF fs_tab.
    DATA:
      t_tab LIKE
      TABLE OF
            fs_tab.
    
    fname = '.\test.xls'.
    OPEN DATASET fname FOR INPUT IN BINARY MODE. " ENCODING DEFAULT.
      READ DATASET fname INTO w_char.
      fs_tab-field = w_char.
      INSERT fs_tab INTO t_tab INDEX 1.
    
    IF sy-subrc EQ 0.
      WRITE: / 'Data Read'.
    ELSE.
      WRITE: / 'Data could not be read'.
    ENDIF.
    CLOSE DATASET fname.
    LOOP AT t_tab INTO fs_tab.
      WRITE: / fs_tab-field.
    ENDLOOP.
    

    Regards

    Abhijeet

    Add comment
    10|10000 characters needed characters exceeded