Sunday, June 23, 2013

What is ABAP Field Symbols.

One of the most useful of Field Symbols in ABAP is Dynamic assign statement, meaning if you don't know the name of field to assign to the field symbols during writing your program, you can use this :


REPORT Zfieldsymbols. 

PERFORM form2.
FORM form2.
  DATA name(20) TYPE c VALUE 'Print Field Symbols'.
FIELD-SYMBOLS <fs> TYPE ANY.
  ASSIGN name TO <fs>.
    WRITE / <fs>.

ENDFORM.

The output looks something like this: Print Field Symbols

1 comment:

  1. SAP ABAP training is provided in CHENNAI.

    THE CREATING EXPERTS is one of the leading trainer in SAP who provides real time training

    http://thecreatingexperts.com/sap-abap-training-in-chennai/

    contact 8122241286

    ReplyDelete