SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

ABAP Inline Declarations (DATA operator)

Inline Declarations in ABAP allow a developer to declare a variable directly at the point of its first use by writing DATA(...) within an ABAP statement, rather than declaring it separately in a dedicated declaration section. The @DATA(...) form is used in ABAP SQL and other contexts where host variables must be prefixed with @. This approach reduces boilerplate code and lets the compiler infer the variable's type automatically from the context in which it is declared.

Tutorials that teach this

Docs explaining this concept

Prerequisites