‎2007 Jan 03 9:40 PM
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.
‎2007 Jan 03 9:44 PM
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
‎2007 Jan 03 9:43 PM
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
‎2007 Jan 03 9:44 PM
Hi Madhu,
Please check demo program DEMO_LIST_FORMAT_COLOR_2.
Hope this will help.
Regards,
Ferry Lianto
‎2007 Jan 03 9:44 PM
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
‎2007 Jan 03 9:51 PM
‎2007 Jan 03 9:45 PM
You should write the individual fields using the format option.
Rob