Skip to Content

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

Writing List Header

Hi all,

Iam using something as follows for writing a list out.

I want to write 2 lines of some header details(dynamic text) above the following table output using "write".Is that possible.....

LOOP AT itab.
  WRITE: /1(1)'|', 2(20) itab-Text1 CENTERED,22(1)'|', 23(12) itab-text2 CENTERED, 35(1)'|', 36(8) itab-text3 CENTERED, 44(1) '|', 45(10) itab-text4 LEFT-JUSTIFIED, 55(1) '|'.
ENDLOOP.
WRITE:   /1(55) sy-uline.

TOP-OF-PAGE.
WRITE:  1(1)'|', 2(20)'TEXT1' CENTERED COLOR 1,22(1)'|', 23(12)'TEXT2' CENTERED COLOR 1, 35(1)'|', 36(8)'TEXT3' CENTERED COLOR 1, 44(1) '|', 45(10)'TEXT4' CENTERED COLOR 1, 55(1) '|',
        /1(55) sy-uline.

Thanks

P

Edited by: pazzuzu on Apr 7, 2010 2:46 PM

Former Member
Not what you were looking for? View more on this topic or Ask a question