‎2007 Aug 07 7:17 AM
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
‎2007 Aug 07 7:19 AM
Append structure is nothing but a hook to add custom fields to a standard table.
‎2007 Aug 07 7:21 AM
‎2007 Aug 07 7:26 AM
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
‎2007 Aug 07 7:26 AM
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