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

DATA TRANSFER - How to get a SINGLE SPACE in the downloaded file from UNIX?

Hi Experts,

Am sending data from SAP to UNIX/ Application server and text file on desk top as well.

So, I am keeping a single character just SPACE at the END of each record.

Then, When I see the downloaded text file, I found a SINGLE SPACE at the end of each record, fine.

Then, by using CG3Y t code, I downloaded the UNIX file to my desk top.

But, When I see this UNIX downloaded file from UNIX, I did NOT find any SPACE at the end of each record!!!

Am doing every thing same in both cases.

So,

1 - Why its happening in case of UNIX file?

2 - How to get a SINGLE SPACE at the END in the downloaded file from UNIX?

thanq

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on May 19, 2008 at 09:32 PM

    concatenate with a space at the end.. in unix I doubt if you would be able to see the space..

    generally ppl use page breaker or line feed at the end of each row.

    data: vl_feed type X value '/OD'.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I don't know if this works:

      perform SET_TRAIL_BLANKS(saplgrap) using 'X'.

      perform SET_FIXLEN(saplgrap) using '0' '060'. "put length of your line from-to

      ... download ...

      It will put space at the end of your line, according to the length.

      Hope it works,

      Chang

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.