what is a field symbol?

Answer Posted / malathy

A field symbol is a pointer you can dynamically assign to a
field. after assignment you can use the field symbol
anywhere in your program in place of the actual field name.
Use the field symbol statement to define the field symbol
and use assign to assign a field to it.field symbols name
must begin and end with an angle bracket.
Here is an example program.

Data : f1(3) value 'ACD'.
field-symbols <f>.
Assign f1 to <f>.
write <f>.
<f> = 'ghh'.
write f1.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use structures in the abap programs?

775


How do you send files to the legacy systems from SAP and vice versa? How does one know that the legacy files have come on to the SAP server you are working on?

902


I am trying to automate a manual processing of iDOCs in BD87. I used the following code to pass idoc-id to global variable 'DCN' and then skip the first screen of BD87 to go to processing directly. After running this code SET PARAMETER ID 'DCN' FIELD itabhdr-idoc_id. CALL TRANSACTION 'BD87' AND SKIP FIRST SCREEN. it takes me to the first screen because it cannot recognize my idoc-id. How I can pass idoc-id to global? I have used the above code to goto VA02 with VBELN and it worked perfectly.

2001


What are the three components of a work process?

824


How can we upload a text file having delimiters in to legacy system?

784






What is the step-by-step process to create a table in data dictionary? : abap data dictionary

915


Folder types in smatforms? 2)What is Command line?

2109


What is the structure of the bdc table? : abap bdc

930


In Table Field when display the Name, whose first charecter should be capital letter and rest will be small letter.

1798


What are uses of foreign key?

774


How collect statement is different from append?

731


How will you insert record in a sorted table

1033


how to update the filed value in SAP in ZAWSYS and create time and date? please tell me the answer

2010


In what ways we can get the context sensitive f1 help on a field?

813


What are the different types of parameters? : abap modularization

824