Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata

Author: Marcelo Ramos
Submitted: 23/10/2007

Definition Section

Error rendering macro 'code': Invalid value specified for parameter 'lang'
REPORT z_top_of_page.

* Internal Table With Header Line
  DATA: BEGIN OF it_data OCCURS 0,
         id(2)    TYPE n,
         name(10) TYPE c,
         desc(20) TYPE c,
  END OF it_data.

TOP-OF-PAGE Event

Error rendering macro 'code': Invalid value specified for parameter 'lang'
TOP-OF-PAGE.
  WRITE: '------------------------------------------',
       / '| Id |    Name    |      Description     |' COLOR 4,
       / '------------------------------------------'.

START-OF-SELECTION Event

Error rendering macro 'code': Invalid value specified for parameter 'lang'
DO 30 TIMES.
    it_data-id = 1.
    it_data-name = 'Caco'.
    it_data-desc = 'My old fridge'.
    APPEND it_data.

    it_data-id = 2.
    it_data-name = 'Sugar'.
    it_data-desc = 'A cute pink poney'.
    APPEND it_data.

    it_data-id = 3.
    it_data-name = 'Lol'.
    it_data-desc = 'Internet slang'.
    APPEND it_data.

    it_data-id = 4.
    it_data-name = 'Nestlé'.
    it_data-desc = 'Chocolate brand'.
    APPEND it_data.
  ENDDO.


  LOOP AT it_data.
    WRITE: / '|', it_data-id, '|', it_data-name, '|', it_data-desc, '|'.
  ENDLOOP.

The Result

Id

Name

Description

01

Caco

My old fridge

02

Sugar

A cute pink poney

03

Lol

Internet slang

04

Nestlé

Chocolate brand

01

Caco

My old fridge

02

Sugar

A cute pink poney

03

Lol

Internet slang

04

Nestlé

Chocolate brand

01

Caco

My old fridge

02

Sugar

A cute pink poney

03

Lol

Internet slang

04

Nestlé

Chocolate brand

01

Caco

My old fridge

02

Sugar

A cute pink poney

03

Lol

Internet slang

04

Nestlé

Chocolate brand