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

Regarding spaces in the last in of TXT file in the outbound interface

Hi ,

I am doing one outbound file, which will have 100 characters length, But last 25 characted i have to fill spaces. When i m trying to fill those 25 chatacters with spaces its not working, i tryed by creating a variabnle of 25 chracted space, still it is not working. Here below i gave the example program....

data: wa_detailed(100) type c.

**************

***********************

wa_detailed+0(1) = 'suresh'.

wa_detailed+70(5) = 'welcom'.

wa_detailed+75(25) = ' ',.

append wa_detailed into ist_download.

This is my program, i m unable to fill those spaces.

can any one respond asap.

Thanks,

Suresh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2006 at 12:01 PM

    Are you downloading the file using GUI_DOWNLOAD ?

    If so there is a parameter TRUNC_TRAILING_BLANKS_EOR = SPACE (set it to space)

    and TRUNC_TRAILING_BLANKS = 'X' (set is X)

    Message was edited by: Anurag Bankley

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2006 at 11:44 AM

    It may not be possible to append spaces in any of the variable. E.g. if you look at write statement, it does not allow us to write spaces. Instead, you can have an end of file character like '$' which is placed at 101st position. Look at the below code:

    wa_detailed+0(1) = 'suresh'.

    wa_detailed+70(5) = 'welcom'.

    wa_detailed+100(1) = '$'.

    This way you can transfer first 100 characters to the outbound file.

    Let me know if you have any further queries.

    Don't forget to mark helpful answers!

    Gaurav Parmar.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 20, 2006 at 11:51 AM

    hi,

    use:

    CONSTANTS: C_RECLEN(04) VALUE 100.

    transfer ... length C_RECLEN.

    A.

    Message was edited by: Andreas Mann

    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.