BACK ( ABAP Keyword)

BACK ( ABAP Keyword) introduction & details

BACK

Basic
form
BACK.

Effect
Returns output position to the first line of the
current page after the TOP-OF-PAGE processing.
When used in connection with
RESERVE x LINES , the statement returns the output position to the first output
line after RESERVE .

Example

DATA: TOWN(10) VALUE ‘New
York’,
CUSTOMER1(10) VALUE ‘Charly’,
CUSTOMER2(10) VALUE ‘Sam’,
SALES1
TYPE I VALUE 1100,
SALES2 TYPE I VALUE 2200.
RESERVE 2 LINES.
WRITE:
TOWN, CUSTOMER1,
/ CUSTOMER2 UNDER CUSTOMER1.
BACK.
WRITE: 50
SALES1,
/ SALES2 UNDER SALES1.

Using the positioning in WRITE in
column 50, data not yet output is not overwritten, but the sales volume is
output after the customer names.

Notes
If you use a ‘/’ with the first
WRITE after the BACK statement, this starts a (usually unwanted) new line. BACK
in the TOP-OF-PAGE processing positions the cursor after the standard header.
Subsequent WRITE statements also overwrite the lines output under TOP-OF-PAGE
.

Note
Performance
The runtime required to execute a BACK statement
is about 1 msn (standardized microseconds).