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

update the structure

Former Member
0 Likes
1,983

Hi experts,

is it possibele to update the structure instead of updating the database table......

7 REPLIES 7
Read only

former_member609120
Contributor
0 Likes
1,452

Structure contains value only at runtime..

Read only

Former Member
0 Likes
1,452

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

Read only

Former Member
0 Likes
1,452

structure doesn't contain the body .. so it cannot hold any data ..

Read only

former_member386202
Active Contributor
0 Likes
1,452

Hi,

Its not possible becoz structure contains data only at the runtime.

Regards,

Prashant

Read only

Former Member
0 Likes
1,452

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.

Read only

vinod_vemuru2
Active Contributor
0 Likes
1,452

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.

Read only

Former Member
0 Likes
1,452

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.