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

Formatting

Hi,

In classical reporting, one field is of length 80 but my target field is of 40 length.

I want the rest 40 characters in second line. How to go for it?

Regards,

Jyoti

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 07:08 AM

    Hi Jyoti ,

    What yuo can do is when you print the first line check the lenght of your feild , if it is greater than 40 , then set a flag and once the prinitng the first line is done , check the status of the flag , if it is set the print the portion of the variable which has not been printed.

    Do revert back in case you want further information

    Regards

    Arun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 07:09 AM

    Hi jyoti:

    Example:

    report zrmm0001 LINE-SIZE 40.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 26, 2007 at 07:10 AM
    Write:/001 itab-field+0(40),
             /001 itab-field+41(80).

    Hope this will oslve ur problem.

    Reward if this helsp.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 08:17 AM

    Hi ,

    Could you pleas send me your code so that i can give you a better ans.

    When you say your target feild , does that mean that you are moving the data from one internal table to another.

    Please explain your requirement a bit more in detail.

    Regards

    Arun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 08:20 AM

    Jyoti,

    Take your first field position.

    Ex : Write:/10 field+0(40),

    /10 field+41(80).

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 26, 2007 at 08:24 AM

    Hi

    you can use :

    Write:/001 itab-field+0(40),

    /001 itab-field+41(80).

    Regards,

    kumar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 10:49 AM

    reviewed n answered .. using <field symbol>

    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.