2009 Nov 18 7:36 AM
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.
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.
2009 Nov 18 7:39 AM
2009 Nov 18 8:53 AM
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.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |