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

Custom FM & Append Structure

Former Member
0 Likes
1,176

Hi Experts!

Can any one give me sample of Custom Function module u ve developed & pls mention its purpose & its steps.

&&&&

What is the use of Append Structure pls explain

Thanks

4 REPLIES 4
Read only

Former Member
0 Likes
845

Append structure is nothing but a hook to add custom fields to a standard table.

Read only

Former Member
0 Likes
845

Hi,

Have you seen this thread, Nagesh has explained in detail on Append structure.

Regards

Read only

Former Member
0 Likes
845

HI,,

Custom function module..

We got a requirement to find out the reservation quantity. BDMNG for given material, plant and storage location.

there is a standard FM "MB_ADD_RESERVATION_QUANTITIES" which servers the purpose but we dint see evaluating for storage location in this FM. So added an additional funnctionality.

Created a custom function module(COPY OF "MB_ADD_RESERVATION_QUANTITIES") and added lgort and got all the reservations for material , plant and Storage location(LGORT) .

APPEND STRUCTURES:

Append structures are used to add customer fields to SAP tables.

Structure in the ABAP Dictionary that is appended to another structure or a database table so as to add further components. Standard structures and database tables delivered by SAP can be enhanced by means of append structures in customer systems.

<b>

using append structure u can custyomize ur structure by adding more fields

sample

data: begin of itab,

include structure..,

end of itab.</b>

rewards if useful,

regards,

nazeer

Read only

Former Member
0 Likes
845

Use APPEND STRUCTURE in SE11.

Append Structures

Append structures are used for enhancements that are not included in the standard. This includes special developments, country versions and adding customer fields to any tables or structures.

An append structure is a structure that is assigned to exactly one table or structure. There can be more than one append structure for a table or structure.

The following enhancements can be made to a table or structure TAB with an append structure:

• Insert new fields in TAB,

• Define foreign keys for fields of TAB that already exist,

• Attach search helps to fields of TAB that already exist,

These enhancements are part of the append structure, i.e. they must always be changed and transported with the append structure.

When a table or structure is activated, all the append structures of the table are searched and the fields of these append structures are added to the table or structure. Foreign keys and search help attachments added using the append structure are also added to the table. If an append structure is created or changed, the table or structure assigned to it is also adjusted to these changes when the append structure is activated.

Since the order of the fields in the ABAP Dictionary can differ from the order of the fields on the database, adding append structures or inserting fields in such append structures does not result in a table conversion.

The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP.

If you create an append structure for a table or structure, only those enhancements are allowed that are consistent with the enhancement category of the enhanced table or structure. For more information, see Structure Enhancements.

The new versions of the standard tables are imported after an upgrade, and the fields, foreign key definitions and search help attachments contained in the append structures are added to the new standard tables at activation.

In the SE11 transaction you have following the next steps:

1.- Push the button CHANGE

2.- Push the button INSERT ROW is the button with green plus

3.- Typing the new field or fields

4.-Going to Utilities Menu and choose the Table Mantaince Generator

5.-Choose the button CHANGE

and finally to press the EXPERT MODE button,

this procedure to permit add the new fields without erros,

I Hope help you

Reward if useful

Message was edited by:

Karthikeyan Pandurangan