Inline Declarations in SAP-ABAP
Inline Declarations In SAP NetWeaver 7.40, SAP introduced inline declarations. Inline declarations are allowing us to declare variable, workarea, internal tables inline as and when required. Hence, no additional data declarations are required. 1. Variables *&Assigning Values to Variables Example Code: REPORT ZINLINE_DECLARATIONS . DATA ( LV_BOOK ) = 'welcome to Inline declarations' . WRITE LV_BOOK . Output: 2. Internal Table & Work area Custom Table used to illustrate the below scenarios. Table Contents: *&Assigning data into internal tables and Work areas Example Code: *& Data retrieval from Data base table to Internal Table REPORT ZINLINE_DECLARATIONS . SELECT * FROM YABAPT0001 INTO TABLE @DATA ( I_DATA ). ...