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

report format

Former Member
0 Likes
807

hi friends,

I have a report creating a test file. I am also writing the text file. Below is the code and I am successfully getting it.

LOOP AT it_outfile.

write : / it_outfile.

ENDLOOP.

the results in the outfile varies for each line.

The first line starts with 0001, second 0002, 0003, and so on till 0009.

When it hits 0004 i have the invoice number followed,

000499999999.

I want the invoice number to be coloured.

Can anyone suggest me as what should be done?

Madhu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
708

Hi,

Try this..

LOOP AT it_outfile.

write : / it_outfile(4),

<b> it_outfile+4(10) color col_total,</b>

it_outfile+14.

ENDLOOP.

Thanks,

Naren

5 REPLIES 5
Read only

raja_thangamani
Active Contributor
0 Likes
708

To Display color:

<b>Option #1</b>


Format color 1.
Write / 'TEST'.
 
format color 3 .
Write / 'test'.

<b>Option #2:</b>


write:/49 ' '.
format color col_heading.
write: 50 'Heading'.
format reset

Raja T

Message was edited by:

Raja Thangamani

Read only

Former Member
0 Likes
708

Hi Madhu,

Please check demo program DEMO_LIST_FORMAT_COLOR_2.

Hope this will help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
709

Hi,

Try this..

LOOP AT it_outfile.

write : / it_outfile(4),

<b> it_outfile+4(10) color col_total,</b>

it_outfile+14.

ENDLOOP.

Thanks,

Naren

Read only

0 Likes
708

Thanks Everyone.

Got it.

Madhu.

Read only

Former Member
0 Likes
708

You should write the individual fields using the format option.

Rob