This website is not affiliated with, sponsored by, or approved by SAP AG.

ABAP Report - Start field on every new Report page.

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

ABAP Report - Start field on every new Report page.

Postby nironto » Thu Jul 17, 2014 10:28 pm

Hi All,
I am trying to create a report with Flight Connection ID to start on every new page but have no idea how.
Are there any examples I can reference to?

Regards,
Nironto

Code: Select all
REPORT  ZACLearn.
Nodes : Spfli, sflight.

Write: /20 'Date :',sy-datum,
       /20 'Time :', sy-uzeit,
       /20 'Name :', sy-uname.
uline.
START-OF-SELECTION.

Get Spfli.
Write : / spfli-carrid, spfli-connid, spfli-cityfrom.
*If Connid<> ??

Get Sflight.
Write : / sflight-fldate, sflight-seatsocc.

Get spfli late.
Write : /  SY-Uline(100),
        / 'List of Details',
        /  SY-Uline(100).
END-OF-SELECTION.
nironto
 
Posts: 2
Joined: Thu Jul 17, 2014 10:19 pm

Re: ABAP Report - Start field on every new Report page.

Postby Gothmog » Fri Jul 18, 2014 3:32 am

Do you want to start a new page for each connection ID, or to write the connection ID at the start of every new page?

To start a new page, use instruction NEW-PAGE.
To define a page header, use the event block TOP-OF-PAGE.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: ABAP Report - Start field on every new Report page.

Postby nironto » Fri Jul 18, 2014 10:23 am

:lol: Thanks Gothmog! It is the Command New-Page that does the trick! Learnt something today.

Regards,
Nironto
nironto
 
Posts: 2
Joined: Thu Jul 17, 2014 10:19 pm


Return to ABAP

Who is online

Users browsing this forum: Google Adsense [Bot] and 10 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.