# Waht is Field sysmbol ?

Ans..

Showing Answers 1 - 5 of 5 Answers

dhanasu

  • Nov 25th, 2005
 

You can use field symbols to make the program more dynamic. In this exanmple the name of a table control  is substituted
by a field symbol. Thus you cal call the form with any internal table, using the name of the tabl?e control as a parameter. 

Example

form insert_row
              using     p_tc_name. 

field-symbols <tc>      type cxtab_control. "Table control

assign (p_tc_name) to <tc>.


* insert 100 lines in table control

<tc>-lines = 100.

Selva.

  Was this answer useful?  Yes

navneet

  • Nov 26th, 2005
 

fieldsymbol has the same concept as pointer in c,

fieldsymbol don't point to a data type like char, num instead of that it points to the memory block. the syntax for fieldsymbol is

FIELD-SYMBOL <N>.

EG. FOR FIELD SYMBOL.

DATA: DAT LIKE SY-DATUM,

         TIM LIKE SY-UZEIT,

         CHAR(3) TYPE C VALUE 'ADF'.

FIELD-SYMBOL : <FS>.

MOVE DAT TO <FS>.

WRITE:/ <FS>.

MOVE TIM TO <FS>.

WRITE:/ <FS>.

MOVE CHAR TO <FS>.

WRITE:/ <FS>.

The output will be

Today's date

current time

adf

  Was this answer useful?  Yes

Vidyasagar

  • Nov 28th, 2005
 

Field symbols are nothing but Place holders,nothing but pointers.These are mainly used to find the value of particular field using the address.

  Was this answer useful?  Yes

arko

  • May 4th, 2006
 

Field symbols r dynamic allocation of memory.

  Was this answer useful?  Yes

sivanagalakshmi

  • Oct 3rd, 2006
 

FIELD SYMBOLS ARE JUST LIKE POINTERS BUT THEY WILL NOT HOLD ANY ADDRESS BUT INSTEAD THEY ARE POINTING TO THE ANOTHER FIELD VALUE

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions