Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

field symbols

pradeep_nellore
Participant
0 Kudos

Hi,

can field symbols point to views??

Thanks

-Bye

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Pradeep .

Field symbols .

Field symbols are placeholders or symbolic names for other fields.

They do not physically reserve space for a field, but point to its contents.

A field symbol cam point to any data object.

The data object to which a field symbol points is assigned to it after it has been declared in the program.

chk here.

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm

&----


*& Chapter 24: Using Field Symbols for components of a structure

&----


REPORT CHAP2403.

  • Table work area for later use

TABLES CUSTOMERS.

  • Defining a Field Symbol

FIELD-SYMBOLS <OUTPUT>.

  • Displaying all fields of all table entries

SELECT * FROM CUSTOMERS.

NEW-LINE.

DO.

ASSIGN COMPONENT SY-INDEX OF STRUCTURE CUSTOMERS TO <OUTPUT>.

IF SY-SUBRC 0.

EXIT.

ENDIF.

WRITE <OUTPUT>.

ENDDO.

ENDSELECT.

Reward me Points

by

Pari

3 REPLIES 3

Former Member
0 Kudos

hi,

Yes it can .... declare it as below..


FIELD-SYMBOLS: <ITAB> TYPE ANY TABLE. 

Former Member
0 Kudos

Hi Pradeep .

Field symbols .

Field symbols are placeholders or symbolic names for other fields.

They do not physically reserve space for a field, but point to its contents.

A field symbol cam point to any data object.

The data object to which a field symbol points is assigned to it after it has been declared in the program.

chk here.

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm

&----


*& Chapter 24: Using Field Symbols for components of a structure

&----


REPORT CHAP2403.

  • Table work area for later use

TABLES CUSTOMERS.

  • Defining a Field Symbol

FIELD-SYMBOLS <OUTPUT>.

  • Displaying all fields of all table entries

SELECT * FROM CUSTOMERS.

NEW-LINE.

DO.

ASSIGN COMPONENT SY-INDEX OF STRUCTURE CUSTOMERS TO <OUTPUT>.

IF SY-SUBRC 0.

EXIT.

ENDIF.

WRITE <OUTPUT>.

ENDDO.

ENDSELECT.

Reward me Points

by

Pari

Former Member
0 Kudos

Hi,

Yes,


  FIELD-SYMBOLS:  <fs_data> TYPE ANY.

Thanks,

Sriram Ponna.