Skip to Content
author's profile photo
Former Member

Writing file on Application Server

Hi All,

We have a requirement to write a file on App server. The width of each of the records is around 350 characters. Using Transfer command I am able to write only 255 characters in a row. I tried using 'LENGTH 350 ' addition. Still everything beyond 255 char is getting chopped off. Any idea how to overcome this ? Is this a limitation of the server or any authorisation problem ?

Just as an addl info, the server is Unix based.

Thanks & regards

Amit

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    Sep 28, 2005 at 06:11 PM

    Hi

    No! You can see only the first 255 char, but that doesn't mean you can't write a file with a record longer 255 char.

    So I think the problem is only how you're seeing your file after downloading it.

    Max

    Message was edited by: max bianchi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Max is right. You can prove it by uploading it back into a program in look at the last 100 bytes of the internal table.

      Rob

  • author's profile photo
    Former Member
    Sep 29, 2005 at 04:06 AM

    I think there might be a bug the way you are using dataset.

    please if possible , can you paste the code.

    thanks

    surjit

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Sep 29, 2005 at 06:09 AM

    Hi Amit,

    The limit for the application server is 1032 bytes.

    Though the data is written to the server it is not visible.Hence, split the data into lengths of 255 and then write the file to application server, if you want them all to appear on the application server.

    Best Regards,

    Anjali

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Sep 29, 2005 at 01:59 PM

    Hi Amit,

    What is the data type and length of your field wa_csv-lv_csv ??

    Cheers.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Amit,

      Can we see so many chars (350) while debugging...I dont know.

      Amit...just give a try to this idea once to make sure everything is well.

      Try uploading the data in that string variable into an internal table with a field of length 350 and load that table in to file on the presentation server using gui_upload.

      Check the file and if it contains all chars then ok.

      Code a write statement showing contents of wa_csv-lv_csv on the list.

      Just trial and error. If it work with presentation server then there should be some limitations with the files on app server which I am not aware of.

      Thanks,