BACK Statment in SAP ABAP PROGRAMMING LANGUAGE

This statement positions the list cursor on the first position of the first line in a logical unit. There are the following logical units in a list:

A line block defined with RESERVE.
If BACK is executed after the RESERVE statement, the list cursor is placed in the first line of the current line block.


The lines within a self-defined page header.
If BACK is executed within the event block for TOP-OF-PAGE and is not placed after RESERVE, the list cursor will be positioned in the first line underneath the standard page header.


The lines of a page underneath the page header.
If BACK is executed outside of the event block for TOP-OF-PAGE and not after RESERVE, the list cursor will be positioned in the first line underneath the page header.



Example

Output of a small input mask. The input fields are positioned after the description.

DATA: title TYPE c LENGTH 3,
      sname TYPE c LENGTH 20,
      fname TYPE c LENGTH 20.

SKIP 5.

RESERVE 3 LINES.
WRITE: / 'Title',
       / 'Second name',
       / 'First name'.

BACK.
WRITE: /14 title INPUT,
       /14 sname INPUT,
       /14 fname INPUT. 

Comments

Popular posts from this blog

all user exit mv45afzz (implicit user exit )

MB_MIGO_BADI THIS BADI USED TO POSTING DATA IN MIGO

Long Text in input and output field in module pool