SAP Database

ABAP Programs: Using colors

Print This Post Email This Post Written by admin on Nov 14th, 2007 | Filed under: ABAP Programs

REPORT ZSOURCE0807.

* Display the header using an appropriate color (grayish blue)
WRITE ‘Header’ COLOR COL_HEADING.

* Switch the standard color
FORMAT COLOR COL_TOTAL.

* Make the color less bright
WRITE / ‘total sum’ COLOR COL_TOTAL INTENSIFIED OFF.

* Using different colors
FORMAT COLOR COL_HEADING.
WRITE / ‘Header’.
FORMAT COLOR OFF.
SKIP.

WRITE: / ‘Key field’ COLOR COL_KEY,
‘Background’,
‘Negative’ COLOR COL_NEGATIVE,
/ ‘Total sum’ COLOR COL_TOTAL INTENSIFIED OFF.
———————
ABAPer, mail: abap.community@gmail.com http://abaplearner.blogspot.com

If you like this post, you may as well like these too:

  1. ABAP Programs: Internal flow of control (if, case, do, while) REPORT ZSOURCE0902. * Declarations for later useTABLES CUSTOMERS.DATA: COLOR(10) VALUE ‘yellow’, N(4) TYPE N VALUE ‘123′, P TYPE P, C4(4) VALUE ‘124′, C5(5) VALUE ‘00124′, SQUARE_NUMBER TYPE I, X...
  2. ABAP Programs: Customizing pages * suppress the standard header of a pageREPORT ZSOURCE0802 NO STANDARD PAGE HEADING.. * Define a counter for the output pageDATA COUNTER(9) TYPE N. * Start a new page...
  3. ABAP Programs: External flow of control (events) REPORT ZSOURCE0901. * Display a list of customersTABLES CUSTOMERS.SELECT * FROM CUSTOMERS. WRITE / CUSTOMERS-NAME.ENDSELECT. * Event for drill downAT LINE-SELECTION. WRITE: / ‘This line appears after drill-down’. ~~~~~...
  4. ABAP Programs: Tabular Lists REPORT ZSOURCE1706 NO STANDARD PAGE HEADING. CONSTANTS MY_LINE_SIZE TYPE I VALUE 40. DATA SQUARE TYPE I. NEW-PAGE LINE-SIZE MY_LINE_SIZE. ULINE. FORMAT COLOR COL_HEADING. WRITE: / SY-VLINE, ‘Numbers and their...
  5. ABAP Programs: Skipping lines REPORT ZSOURCE0803. WRITE ‘This string will appear on the first line.’.NEW-LINE.WRITE: ‘New line’, / ‘Yet another line’.SKIP 3.WRITE / ’skip 3 produces three empty lines.’. ~~~~~ End of post...



Leave a Reply

  • Help Support CRY