Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting

Former Member
0 Kudos
78

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

8 REPLIES 8

Former Member
0 Kudos
49

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

Former Member
0 Kudos
49

Hi jyoti:

Example:

report zrmm0001 LINE-SIZE 40.

0 Kudos
49

where can i get this report ?

Also, Arun how to proceed for ur solution ?

Former Member
0 Kudos
49
Write:/001 itab-field+0(40),
         /001 itab-field+41(80).

Hope this will oslve ur problem.

Reward if this helsp.

Former Member
0 Kudos
49

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

Former Member
0 Kudos
49

Jyoti,

Take your first field position.

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

/10 field+41(80).

sreeramkumar_madisetty
Active Contributor
0 Kudos
49

Hi

you can use :

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

/001 itab-field+41(80).

Regards,

kumar

Former Member
0 Kudos
49

reviewed n answered .. using <field symbol>