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

Append Structure

Former Member
0 Likes
813

Hi,

Can we append a structure to another structure? Appending structure has currency field in it and the structure being appended also has currency field.

Regards,

Shabbar

4 REPLIES 4
Read only

Former Member
0 Likes
597

HI,

You can append a structure to another structure. There will be no problem if there is another currency field.

A structure (structured type) comprises components (fields). Types are defined for the components A component can refer to an elementary type (via a data element or by directly specifying the data type and length in the structure definition), another structure or a table type. A structure can therefore be nested to any depth.

Structures are used to define the data at the interface of module pools and screens and to define the parameter types of function modules.

The data for managing the addresses of persons can be represented as a nested structure PERSON. The structure comprises the components (structures) NAME and ADDRESS. The structure NAME comprises the components (data elements) FIRSTNAME and LASTNAME. The structure ADDRESS comprises the components (structures) STREET and TOWN. The structure STREET comprises the components (data elements) STREETNAME and HOUSENO. The structure TOWN comprises the components (data elements) ZIP and TOWNNAME.

The central definition of structures that are used more than once makes it possible for them to be changed centrally. The active ABAP Dictionary then makes this change wherever required. ABAP programs or screen templates that use a structure are automatically adjusted when the structure is changed (see Runtime Objects). This ensures the greatest possible consistency of the data definition, also for complex programs.

There are Flat, nested and deep structures. A flag structure only references elementary types. A nested structure references at least one further structure, but not a table type. A deep structure references at least one table type.

Regards,

Vara

Read only

Former Member
0 Likes
597

Yes u can append a structure to a structure...Though u want a currency field to be appened, just see that the specified field name doesnot match each other...mean say u have already curr field...assign zcurr in ur new structure...

Read only

Former Member
0 Likes
597

Hi Ali,

I think you can. Here is the help info on Append from SAP.

<b>Append Sructures</b>

Append structures are used for enhancements which are not provided for in the standard (special developments, country versions and adding customer fields to SAP standard tables).

An append structure is assigned to exactly one table. There can however be several append structures to one table. If an append structure is created or changed, the table asssigned to it (appending object) is also activated again at activation and the changes also take effect there.

An append structure permits the following enhancements to a table or structure:

Add new fields

Add foreign keys to fields of the appending object

Add search help attachments to fields of the appending object

<b>Appending an append structure or inserting fields in an existing append structure does not lead to the conversion of the table</b>. The fields of the append structure are appended to the database table.

Append structures are created by customers in the customer name range and are thus protected against overwriting in upgrades or release upgrades. After a release upgrade, the new versions of the standard tables are imported and fields contained in append structures are appended to the new standard tables.

Note:Append structures can only be created for transparent tables and structures. It is not possible to add fields with an append structure for transparent tables containing a long field. Furthermore, append structures may not be created for tables and structures of the central Basis of the R/3 System.

But, anyway check for other replies.

Regards,

Vivek

Read only

Former Member
0 Likes
597

Hi,

U can append structure to another structure also, but there is a limit, upto 10 sppend structure's can be appended.

irrespective of the structure's like currency, address etc u can append it to another one.

Regards,

Nagaraju.