ABAP Inline Declaration

How to declare variable/structure/table/field symbol/objects in ABAP without defining them separately.

Usecase 1:  In a ‘select query’

Usual way of defining table with its declaration before usage: 

SAP ABAP Inline Declaration

With inline declaration:

SAP ABAP Help

Usecase 2: Table ‘work area’

Usual way:

SAP ABAP Tips

With inline declaration:

SAP ABAP Advice

Use case 3: Field Symbol declaration

Usual way:

SAP ABAP Consultants

With Inline declaration:

SAP ABAP Consultant

Usecase 4: Declaration of reference variables

Usual way:

SAP ABAP Inline Declaration

Using Inline declaration:

SAP Inline Declaration

Author: Vishnu Vardhan Tanguturu

Vishnu is an expert Fixer for ERPfixers. Product developer and techno functional consultant having 8 years of experience in development, implementation and support of SAP applications.