2007 Jul 16 7:01 AM
Hi,
What is the difference between Field string and Structure and when we use these?
2007 Jul 16 7:05 AM
Hi,
Structures: used to different fields together in a single unit. it doesnt occupy any memory. it doesnt hav any primary key. its just a template.
Field symbols: using this field symbols we can store any type of data. i.e for internal tables we declare a table with respect to a table.and we cant store data of another table in that table where as a field symbol can be used for generic purpose.
i.e we can store any table data in it. it depends on runtime what kind of data that we r using that field symbol.
Regards,
Padmam.
2007 Jul 16 7:05 AM
Hi,
Structures: used to different fields together in a single unit. it doesnt occupy any memory. it doesnt hav any primary key. its just a template.
Field symbols: using this field symbols we can store any type of data. i.e for internal tables we declare a table with respect to a table.and we cant store data of another table in that table where as a field symbol can be used for generic purpose.
i.e we can store any table data in it. it depends on runtime what kind of data that we r using that field symbol.
Regards,
Padmam.
2007 Jul 16 7:11 AM
Hi Rams
<b>field symbols</b> These can store any type of data. where as <b>structures</b> used to different fields together in a single unit.
<b>structures:</b> it doesnt occupy any memory. it doesnt hav any primary key.In field string for internal tables we declare a table with respect to a table.and we cant store data of another table in that table where as a field symbol can be used for generic purpose.
Reward all helpfull answers
Regards
Pavan
2007 Jul 16 7:11 AM
Hi
Field String and Structure both are same, which doesn't occupy memory and which stores a single record at run time.
They are nothing but group of fields declared together in astring like structure
date: begin of xstruct,
no type kunnr,
name(30),
sal type netwr,
end of xstruct.
<b>Reward points for useful Answers</b>
Regards
Anji