Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How To Add Colors?

Hi All,

I created a report which lists the line items in the form of a table. So now I need to add different colors to the header and footer of the list. How Do i achieve this? Please help me asap..

Thanks In Advance

Vicky

Tags:
Former Member
replied

You can do this using the FORMAT statement. See the following program.


report zrich_0001 .



do 7 times.

  case sy-index.
    when '1'.
      format color 1.
    when '2'.
      format color 2.
    when '3'.
      format color 3.
    when '4'.
      format color 4.
    when '5'.
      format color 5.
    when '6'.
      format color 6.
    when '7'.
      format color 7.
  endcase.

  format intensified on.
  write:/ sy-index, at 80 ' '.
  format intensified off.
  write:/ sy-index, at 80 ' '.

  format color off.

enddo.

Regards,

Rich Heilman

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question