SAP POSITION ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID POSITION
• POSITION ABAP Statement

POSITION
Short Reference

ABAP_SYNTAX
POSITION pos.

What does it do?
This statement places the list cursor at the position of the current line in the list buffer specified in pos . The program expects a data object of the type i for pos . If the value of pos is 0 or less than or equal to 0 or greater than the page length in sy-linsz defined with the addition LINE-SIZE of the program- initiating statement or NEW-PAGE, none of the subsequent output statements create any output until the list cursor is positioned within a line again.



Latest notes:

An output statement that follows POSITION and does not have its own position specification pos after AT writes to the specified position regardless of whether or not sufficient space is available on the line, truncating the output length accordingly, if necessary.
If an output position is specified within an existing output, it must be ensured that the position always refers to the characters stored in the list buffer. If Unicode characters that require more than one column in the list are displayed, the displayed output position can differ from the specified output position. In addition, the displayed content of a partially overwritten output can be shifted, depending on the characters that overwrote the output.
ABAP_HINT_END



Example ABAP Coding

Definition and use of a macro write_frame to draw frames around WRITE output. The POSITION statement positions the list cursor for subsequent output.
ABEXA 00498
ABAP_EXAMPLE_END

Return to menu