Application Development and Automation 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: 
Read only

field groups

Former Member
0 Likes
389

Hi,

diff b/n field-symbols and field groups?

regards,

kb

2 REPLIES 2
Read only

Kanagaraja_L
Active Contributor
0 Likes
363

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.

Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs.

Field Groups:

A field group is a user-defined grouping of characteristics and basic key figures from the EC-EIS or EC-BP field catalog.

Use

The field catalog contains the fields that are used in the aspects. As the number of fields grows, the field catalog becomes very large and unclear. To simplify maintenance of the aspects, you can group fields in a field group. You can group the fields as you wish, for example, by subject area or responsibility area. A field may be included in several field groups.

When maintaining the data structure of an aspect, you can select the field group that contains the relevant characteristics and basic key figures. This way you limit the number of fields offered.

A field group combines several existing fields together under one name

like

FIELD-GROUPS: fg.

then you can use one insert statement to insert values in fields of field-group.

INSERT f1 f2 ... INTO fg.

Field symbols

If u have experience with 'C', then understand this to be similar to a pointer.

It is used to reference another variable dynamically. So this field symbol will simply point to some other variable. and this pointer can be changed at runtime.

FIELD-SYMBOLS <FS>.

DATA FIELD VALUE 'X'.

ASSIGN FIELD TO <FS>.

WRITE <FS>.

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.

Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs.

Field Groups:

A field group is a user-defined grouping of characteristics and basic key figures from the EC-EIS or EC-BP field catalog.

Use

The field catalog contains the fields that are used in the aspects. As the number of fields grows, the field catalog becomes very large and unclear. To simplify maintenance of the aspects, you can group fields in a field group. You can group the fields as you wish, for example, by subject area or responsibility area. A field may be included in several field groups.

When maintaining the data structure of an aspect, you can select the field group that contains the relevant characteristics and basic key figures. This way you limit the number of fields offered.

Field Symbols

http://help.sap.com/saphelp_46c/helpdata/EN/fc/eb387a358411d1829f0000e829fbfe/frameset.htm

Field Groups

http://help.sap.com/saphelp_46c/helpdata/EN/9f/db9ede35c111d1829f0000e829fbfe/frameset.htm

Kanagaraja L

Read only

Former Member
0 Likes
363

thanks