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

Difference between Field Strings and Structures??

Former Member
0 Likes
455

Hi All,

Greetings for the day.

Can you please tell me what is the difference between Field Strings and Structures in simple way. I searched in the forums, but i couldn't find any.

If you clear with an examples it would be very helpful to understand that.

Thanks in advance.

Regards,

Ramya.

2 REPLIES 2
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
421

Forum result

Read only

Former Member
0 Likes
421

Hi,

Structure is a set of fields defined in the dictionary.

Field string or Work area is a container to hold all fields/ some fields/ fields of many tables used in the program to fetch data from the tables or insert/modify/update data to the tables.

These Fieldstrings or Work areas are used for internal table declarations to hold data at runtime.

This Fieldstring holds one record at a time and Internal table holds set of records.

Eg : selopt is a structure in Dictionary. -


> Structure

data : begin of wa_spfli ,

carrid type spfli-carrid,

connid type spfli-connid,

end of wa_spfli.

So, this wa_spfli is a workarea for fetching data of flights table.