‎2008 Mar 05 12:50 PM
Hi experts,
is it possibele to update the structure instead of updating the database table......
‎2008 Mar 05 12:51 PM
‎2008 Mar 05 12:52 PM
Hi,
Data can be stored in the structure only during run time. But data cant be stored permanently as in database tables.
Reward if useful.
Thanks,
Chinmaye
‎2008 Mar 05 12:53 PM
structure doesn't contain the body .. so it cannot hold any data ..
‎2008 Mar 05 12:54 PM
Hi,
Its not possible becoz structure contains data only at the runtime.
Regards,
Prashant
‎2008 Mar 05 12:56 PM
hi,
When you change a domain, for example its data type, all the data elements, structures and tables referring to this domain must be activated again. This activation is automatically triggered when the domain is activated. This ensures that all affected runtime objects are adjusted to the changed type
information.
Changing an ABAP Dictionary object might also affect its dependent objects. Before making a critical
change (such as changing the data type or deleting a field) you should therefore define the set of objects
affected in order to estimate the implications of the planned action.
There is a where-used list for each ABAP Dictionary object with which you can find all the objects that refer to this object. You can call the where-used list from the maintenance transaction of the object.
You can find direct and indirect usages of an ABAP Dictionary object with the where-used list.
You also have to define which usage object types should be included in the search (e.g. all structures and tables
using a data element). You can also search for usages that are not ABAP Dictionary objects (e.g. all programs using a table). The search can also be limited by development class or user namespace.
If an object is probably used by several objects, you should perform the search in the background.
-
The information about a structure (or table) is distributed in the ABAP Dictionary in domains, data
elements, and the structure definition. The runtime object (nametab) combines this information into a
structure in a form that is optimized for access from ABAP programs. The runtime object is created when
the structure is activated.
The runtime objects of the structures are buffered so that the ABAP runtime system can quickly access
this information.
The runtime object contains information about the overall structure (e.g. number of fields) and the
individual structure fields (field name, position of the field in the structure, data type, length, number of
decimal places, reference field, reference table, check table, conversion routine, etc.).
The runtime object of a table contains further information needed by the database interface for
accessing the table data (client dependence, buffering, key fields, etc.).
Runtime objects are created for all ABAP Dictionary objects that can be used as types in ABAP
programs. These are data elements, table types and views, as well as structures and tables.
Hope this helps, Do reward.
‎2008 Mar 05 12:58 PM
Hi,
If u r talking about data, Then the answer is NO. Its not possible. Because structure doesn't hold any data. It is the data base table which holds the data. So u can't update the structure. Structure is simply collection of some fields.
If u r talking about fields of a structure, then u can update(Add/Remove) it at any time. But before updating any structure do an impact analysis(By using where used list button) so that ur changed structure will not affect the existing programs.
Thanks.
Vinod.
‎2008 Mar 05 1:00 PM
Hi,
Structure holds the data at the runtime , after execution is completed the memory will be erased. so, updation not possible in structure.
Regards,
kavitha.