Application Development and Automation 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: 
Read only

Formatting

Former Member
0 Likes
1,153

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
Read only

Former Member
0 Likes
1,124

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

Read only

Former Member
0 Likes
1,124

Hi jyoti:

Example:

report zrmm0001 LINE-SIZE 40.

Read only

0 Likes
1,124

where can i get this report ?

Also, Arun how to proceed for ur solution ?

Read only

Former Member
0 Likes
1,124
Write:/001 itab-field+0(40),
         /001 itab-field+41(80).

Hope this will oslve ur problem.

Reward if this helsp.

Read only

Former Member
0 Likes
1,124

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

Read only

Former Member
0 Likes
1,124

Jyoti,

Take your first field position.

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

/10 field+41(80).

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,124

Hi

you can use :

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

/001 itab-field+41(80).

Regards,

kumar

Read only

Former Member
0 Likes
1,124

reviewed n answered .. using <field symbol>