Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

AT FIRST

Former Member
0 Likes
396

Hi All,

AT FIRST control break event is used for writing headings in the report.is that heading will come on every page ,if report have more than one page ??????

Thanks ,

Rakesh.

3 REPLIES 3
Read only

Former Member
0 Likes
377

For heading on every page you need to use TOP-OF-PAGE.

A

Read only

JozsefSzikszai
Active Contributor
0 Likes
377

hi Rakesh,

no, this is not true. Iif you want a heading on every page you have to use event TOP_OF_PAGE

ec

Read only

Former Member
0 Likes
377

Try this report.

you will see the results yourself.

REPORT demo_page_header_footer NO STANDARD PAGE HEADING 
                               LINE-COUNT 0(1). 

PARAMETER p_carrid TYPE sflight-carrid. 

DATA: sflight_tab TYPE TABLE OF sflight, 
      sflight_wa  LIKE LINE  OF sflight_tab. 

DATA lines TYPE i. 

TOP-OF-PAGE. 
  WRITE: / sflight_wa-carrid, sflight_wa-connid. 
  ULINE. 

END-OF-PAGE. 
  ULINE. 

START-OF-SELECTION. 

  SELECT carrid connid fldate 
         FROM sflight 
         INTO CORRESPONDING FIELDS OF TABLE sflight_tab 
         WHERE carrid = p_carrid 
         ORDER BY carrid connid. 

  LOOP AT sflight_tab INTO sflight_wa. 
    AT NEW connid. 
      SELECT COUNT( DISTINCT fldate ) 
             FROM sflight 
             INTO lines 
             WHERE carrid = sflight_wa-carrid AND 
                   connid = sflight_wa-connid. 
      lines = lines + 3. 
      NEW-PAGE LINE-COUNT lines. 
    ENDAT. 
    WRITE / sflight_wa-fldate. 
  ENDLOOP.

A