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

Issue in trasfering records to file using Transfer (in Binary mode)

Hi all,

I am using a trasfer statement to write the contents of internal table onto a file in Apllication server.

My code is

   LOOP AT i_file.
       TRANSFER  i_file-rec_data TO i_pf_names-v_name.
   ENDLOOP

I am opening the file in binary mode.Its not writing the second record totally. Each of my record is 432 characters in length. Irrespective of no. of records in my internal table its writing only 1 rec completely and half of second record.

I am aware that opening a file in binary mode ignores the line breaks.

So, opening in binary mode should write 1000 characters. Its writing 511 characters and stopping. Its not writing further records though my internal table is having records.

Can you please help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 22, 2009 at 07:03 AM

    Hi,

    If you are viewing the application server file in AL11, you wont be able to view the total length of the file even though it is written. To confirm this use the transaction CG3Y and download the application server to presentation server and check if the whole of the record is written

    Regards,

    Vikranth

    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.