SAP StackFICOHRMMSDPMPSABAPNetWeaverTablesTcodes ☰MENU

ABAP BACK keyword

BACK keyword in ABAP programming is used for positioning the output area to first line of the report. If RESERVE keyword is used in the program, the BACK statement will return the first line after the RESERVE.

Syntax

BACK.

 

Here is a sample program for get clear picture about BACK.

DATA: CITYNAME1(10) VALUE ‘Sydney’,

CITYNAME2(10) VALUE ‘Delhi’,

AREA1 TYPE I VALUE 1100,

AREA2 TYPE I VALUE 2200.

WRITE: CITYNAME1,

/ CITYNAME2 UNDER CITYNAME1.

BACK.

WRITE: 15 AREA1,

/ AREA2 UNDER AREA1.

 

Its output will be

 

Sydney 1100

Delhi  2200

In this program when the BACK keyword execute, output position will go to the first line. With using column position 15 we are avoiding the overwriting of AREA with CITYNAME.

Also Read : View Other ABAP Keywords & Syntax -> ABAP Transaction codes

SAP ALECRMSCMSRMSAP Solutions SAP ReferencesSAP BasicsPP ModuleWMSAP Partners
HomeContact & Privacy PolicyTwitter
All of the product names here are trademarks of their respective companies. The site sapstack.com is not affiliated with SAP AG.
©2024 sapstack.com