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 strings

Former Member
0 Likes
801

hi ppl,

wat are field strings...?

when and where are the used?

thanx,

b.s

4 REPLIES 4
Read only

Former Member
0 Likes
725

I am not sure where exactly you got this term "FIELD STRING".

They could be referring to a work area of a internal table. Or it could be a field symbols or a field group.

What exactly are you looking for?

Regards,

Ravi

Read only

0 Likes
725

hi,

field strings which is like a struct in ddic...

it contains a collection of fields if u have some details on this kindly provide....

thanx,

b.s

Read only

0 Likes
725

Field Strings:

Compatible:

Component by Component.

Non-Compatible Field Strings and Elementary Fields:

System first converts all the field strings concerned to type C fields and then performs the conversion between the two remaining elementary fields.

Field Strings with Internal Tables as Components:

Field strings which contain internal tables as components are convertible only if they are compatible.

structures

A structure is a sequence of any other data types from the ABAP Dictionary, that is, data elements, structures, table types, or database tables. When you create a structure in the ABAP Dictionary, each component must have a name and a data type.

In an ABAP program, you can use the TYPE addition to refer directly to a structure.

If you define a local data type in a program by referring to a structure as follows:

TYPES <t> TYPE <structure>.

the construction blueprint of the structure is used to create a local structure <t> in the program. The predefined Dictionary data types of the domains used by the data elements in the structure are converted into the corresponding ABAP types. The semantic attributes of the data elements are used for the corresponding components of the structure in the program. The components of the local structure <t> have the same names as those of the structure in the ABAP Dictionary.

To ensure compatibility with previous releases, it is still possible to use the LIKE addition in an ABAP program to refer to a structure in the ABAP Dictionary (except in classes).

<b>Field String is sort of an older name for what most people now call a "structure" (defined within an ABAP program).

types: begin of field_string,

fld1 type d,

fld2 type c,

end of field_string.

A structure defined in the Dictionary is only called "Structure" (not field string).</b>

Read only

0 Likes
725

Swami,

This is nothing but a work area for a internal table.

DATA : WA_STRING LIKE MARA.

Now, WA_STRING will have all the fields of the MARA table, that's about it.

Regards,

Ravi