notesto success

24
View Results ABAP Field Symbols are very powerful. Usage of Field-Symbols would provide performance gain, but for that you must use it correctly otherwise you may run into issues. Field-symbols can provide great performance over using workarea as I have mentioned in my earlier article – Use of Field-symbols vs Work area . I have mentioned many articles using Field-Symbols but wanted to note down the basics as part of this code snippet. Page Contents [hide ] 1 Declare a Field Symbols o 1.1 2 APPEND and INSERT using Field Symbols o 2.1 3 Access ITAB rows using Field Symbols o 3.1 4 Modify an entry using Field-Symbols: o 4.1 5 CHECK field Symbols using IS ASSIGNED o 5.1 6 Remove the Reference of the Field Symbols o 6.1 Declare a Field Symbols TYPES: tt_mara TYPE STANDARD TABLE OF mara. DATA: t_mara TYPE tt_mara. * FIELD-SYMBOLS: <lfs_mara> LIKE LINE OF t_mara. " << * " Field symbol without type FIELD-SYMBOLS: <lfs_any_tab> TYPE ANY TABLE, <lfs_any> TYPE ANY. APPEND and INSERT using Field Symbols * Append line APPEND INITIAL LINE TO t_mara ASSIGNING <lfs_mara>. <lfs_mara>-matnr = '123456'. *

Upload: satyasap

Post on 14-Nov-2015

213 views

Category:

Documents


0 download

DESCRIPTION

field symbol

TRANSCRIPT

Top of FormView ResultsBottom of FormABAP Field Symbols are very powerful. Usage of Field-Symbols would provide performance gain, but for that you must use it correctly otherwise you may run into issues.

Field-symbols can provide great performance over using workarea as I have mentioned in my earlier article Use of Field-symbols vs Work area. I have mentioned many articles using Field-Symbols but wanted to note down the basics as part of this code snippet.Page Contents [hide] 1 Declare a Field Symbols 1.1 2 APPEND and INSERT using Field Symbols 2.1 3 Access ITAB rows using Field Symbols 3.1 4 Modify an entry using Field-Symbols: 4.1 5 CHECK field Symbols using IS ASSIGNED 5.1 6 Remove the Reference of the Field Symbols 6.1 Declare a Field SymbolsTYPES: tt_mara TYPE STANDARD TABLE OF mara.DATA: t_mara TYPE tt_mara.*FIELD-SYMBOLS: LIKE LINE OF t_mara. "