Append Structures to SAP Structures

Hi
I wish to add some custom structures(append structures) to the SAP standard strutures.
Can you please let me know what the precaustions we should have to take before and after the process.
If anyone explains me the complete procedure,that can be a great help.
Regards,
Sreeram Kumar.Madisetty

Hi:
Append structures permit you to append customer fields to a SAP standard table without having to modify the table definition.
An append structure is a structure which is assigned to exactly one table. There can be several append structures for a table.
When a table is activated, all the active append structures for the table are found and their fields are appended to the table. If an append structure is created or changed, the table to which it is assigned is also activated and the changes also take effect there when it is activated.
Like all structures, an append structure defines a type that can be used in ABAP programs.
1 .Go in Se11, open the table in which you want to add the structure -> click on Append structure-> it would ask the structure, give it and then it would open enter the field list.
2. Or create the structure 1st and do the rest step mentioned in step 1.
For details
[Link|http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm]
Regards
Shashi

Similar Messages

  • How to append structure into transperant table in sap abap

    Hi all,
      I have 1 structure already in the data dictionary .
    And this structure is already being used by other transperant table for creatin the fields .
    Now i need to create new table and wann use the same structure .
    when i click on the Append Structure it shows that this structure us already been assign to other table .
    So, can i not used the same structure for more than 1 transperant table |???
    Praff

    Hi Prafful,
    You cannot append the same structure, if already used.
    I think you can include the structure instead of appending it.
    Goto the change mode (CTRL+F1).
    Edit -> Include -> Insert.
    Hope this helps...
    Lokesh
    pls. reward appropriate points

  • What is diff b/w Include Structure and Append Structure at Database Level

    Hi Experts,
    Could you please let me know what is the main difference between .Include Structure and .Append Structure at SE11?
    Thanks in advance and for good answer will give good points.
    Sekhar

    Hi,
    1. Append Structures
    Append structures can only be assigned to a single table.
    Append structures are created in the custome rnamespace ( ZZ or YY)
    In case of new versions of the standard table during upgrade, the append structures are automatically appended to the new version of the standard table
    Append structures can not be used with cluster and pool tables
    Append structures are created in transaction SE11. Display the standard table fields and press the Append structure button.
    When you press the button, SAP sugests a name for the new append structure. After you has accepted the name,
    a screen will be shown where you can enter the new fields.
    Remember to activate.
    2. Customizing Includes
    Some of the SAP standard tables contains special include statements called Customizing includes. In contrast to Append structures,
    Note that customizing includes are created by SAP, but the customer supply the fields for the include.
    Customizing includes begin with CI_ and is part of the customer namespace
    One Customizing include can be inserted into more than one table.
    You can find Customizing includes in SE11 under structures.
    Try to take a look at table RKPF which uses the Customizing include CI_COBL (In an IDES system). Next try to add a field to CI_COBL, and activate it. If you go back to table RKPF you will se that your new field has been added.
    Regards,
    Ferry Lianto

  • Purpose of Append Structure in DDIC(SE11)

    What is the purpose of Append Structure in DDIC(SE11)-Table?How to use this?
    Title by: Alvaro Tejada Galindo on Jan 23, 2008 6:11 PM

    Append structures are like user exits provided by SAP to enhance the Standard tables. It behaves like include structure only, but this append structure is taken care in the SAP version upgrage process, automatically. The name of append structure starts with 'Z' namespace..SAP by default proposes the append structure name with the table name prefixed with 'Z'.
    It is always recommended to modiy or append the Standard tables using append structure.
    It is the standard provided for SAP standard table enhancement.
    APPEND STRUCTURE->
    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.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm
    INCLUDE->
    http://www.sapdb.org/7.4/htmhelp/f2/b1219d1b9646b0ae248a7a5a95a33e/content.htm

  • EEWB - In BP, adding a new field regenerates append structure

    Hello,
    After adding or deleting a field using EEWB, I have the following issues -
    1. The new append structure that was created for BUT000 gets regenerated
    2. Field labels get overwritten by field names
    3. The order in which the fields were seen on the screen gets altered
    Is this a known behavior of EEWB?  How to alleviate this?
    Thanks!

    Thanks for your input Satish!
    I searched using the application component suggested and the keyword and it was not very useful. 
    Some more details -
    I created some new fields using EEWB.  When you go to transaction BP, the standard tabs are displayed - ex - address, bank data, notes, etc.  But now there is a new tab - Customer Data that has my custom fields on it. 
    In the backend, SAP has created an extend structure for table BUT000 that has these fields in it. 
    When I go to this extend structure, my fields are there with a ZZ prefix - Ex: ZZFIELD1, ZZFIELD2, etc.  If you go to the details of these fields in data dict - transaction SE11, the Field labels - Short, Medium, Long and Heading are the same as the field names.  Ex: in the first case, the four field labels will be - ZZFIELD1.  I then changed the field labels to something meaningful - Ex: Renter name and rental date.  After generating the structure, these labels are then displayed on the Customer data tab.  So far so good.
    However if I add a new field - ZZFIELD3, then all the label names that I had given (Ex: Renter name and rental date) get erased and replaced by the fieldnames again. 
    Also the order in which the fields were diplayed gets altered.  Ex: earlier the Customer data screen was showing - ZZFIELD1, ZZFIELD2.  Now it shows - ZZFIELD3, ZZFIELD2, ZZFIELD1. 
    I hope I have explained this issue.

  • Customer Master using Appended structure KNA1

    Hi
    We have to update few ZZ description fields in ZAKNA1, which are not part of user interface in XD01/02/03. The available options are such as LSMW, Batch input require code addition through user exit ZXF04U01/ EXIT_SAPMF02D_001.
    I would like to use BAPI as we have a plan to use web services. Any idea how to extend the BAPI's such as BAPI_CUSTOMER_CHANGEFROMDATA1 or BAPI_CUSTOMER_CREATEFROMDATA1 using best practice?  I donu2019t find any extension structures like other BAPIu2019s have. Without ExtensionIn and ExtensionOut parameters, a BAPI can not be enhanced correct?
    The version we are using is ECC 5.0. Any ideas with customer master BAPI will be greatly appreciated.
    Bala

    Hi Bala,
    Just some general comments without having looked at your specific problem. Since you're on ECC 5.0 you cannot use the new [Enhancement Framework|http://help.sap.com/saphelp_nw2004s/helpdata/EN/94/9cdc40132a8531e10000000a1550b0/frameset.htm], which would make such changes more easy...
    A rather awkward workaround for extending the BAPI's is sometimes to add append structures to an IMPORT parameter of the BAPI. However, this is a rather dangerous and limited approach, because you might get into trouble depending on where the structures are used (i.e. if you add a field, it might cause harm in other programs that use the structure) and you also have to study the source code to see if you even could utilize those additional fields.
    A pretty generic option in lieu of other approaches is to generate a custom wrapper function module around the standard BAPI. Within your custom BAPI you can add the missing fields as parameters, call the standard BAPI and then do the additional updates. The big advantage of such a solution is that
    <ol>
    <li>Your change/additional logic is obvious (not hidden in a customer exit or BAdI, which are often harder to find when troubleshooting or changing functionality)</li>
    <li>Any changes to the standard BAPI will automatically also take effect in your custom BAPI (since you didn't copy the original one); this excludes of course interface changes, but here you anyhow would have to do something...</li>
    </ol>
    Should you have custom fields that are already exposed on the customer maintenance screens via enhancements, then you might want to consider using the wrapper approach, but simply export the additional data to memory, then call the standard BAPI and within the customer/user exits handling the additional fields fill them via an import from memory.
    Cheers, harald

  • How do I find the name of an append structure?

    Lets say I want to add a field to the component BT115QS_SLSQ (Sales quote search).
    I enhanced the component and the view (SlsQuotSQ).
    If I go to the context nodes and the context node BTQSLSQUOT.
    I can see the implementation class ZL_BT115QS_SLSQUOTESQ_CN00.
    If I go inside of this class I see a tab attributes with a field called base_entity_name
    the initial value is BTQSlsQuot for this attribute.
    But how would I ever know that the append strcture name for this component / view is CRMST_QUERY_SLSQUOT_BTIL ???
    I only displayed it above becuase I did endless searches and realized this is the one.  But is there an easier way to find the append strcture name so that when I go to SE11 I can either copy and paste it in or type it in.  Is there somewhere in the workbench or anywhere which tells me its in this case CRMST_QUERY_SLSQUOT_BTIL ???
    How do I find this name ?

    Edit:
    FOUND THE ANSWER!
    Here is a complete document I put together for anyone else with this issue.
    I would really love to blog SAP issues like this because there seems to be very little help on the forums for the CRM Web client side :(...
    Purpose
    The purpose of this document is to explain how to find the append structure and how to use it.
    Problem
    Letu2019s say I want to add a field to the component BT115QS_SLSQ (Sales quote search).
    I enhanced the component and the view (SlsQuotSQ).
    If I go to the context nodes and the context node BTQSLSQUOT (this is in the context nodes area)
    I can see the implementation class ZL_BT115QS_SLSQUOTESQ_CN00.
    If I go inside of this class I see a tab attributes with a field called base_entity_name
    the initial value is BTQSlsQuot for this attribute.
    That is the key here, in order to determine the append structure to use when going into SE11 you need to know the name of the base_entity_name.  In the above case the base entity name is BTQSlsQuot.
    That means you need to use BTQSlsQuot
    Step By Step Procedure
    1)     Get the base entity name as described above
    2)     Once the base entity name is given go to transaction GENIL_MODEL_BROWSER
    3)     Enter a component or a component set like so:
    a.     
    4)     Press the green check box
    5)     For model select u201CDynamic Search Objectsu201D (for this particular case because we are trying to add a field to a dynamic search)
    6)     Select u201CDynamic Query Object BTQSlsQuotu201D
    7)     Once you expand this you should be given the attribute structure as shown below:
    Now you have the attribute structure name CRMST_QUERY_SLSQUOT_BTIL
    How To Use Append Structure
    Now that youu2019ve found the append structure to use it follow these steps:
    1)     Go to SE11
    2)     Click radio button Data type
    3)     Enter CRMST_QUERY_SLSQUOT_BTIL
    4)     Click display like so:
    a.     
    5)     Click the u201Cappend structureu2026u201D button at the top right
    6)     Add the field as a ZZ field and enter the data type like so:
    a.     
    References
    No search available for field //BTOPPORTH/EXPREVENUE (STRUCT.EXP_REVENUE) ?
    Field Available in Results List But Not Available In Search Criteria?
    Edited by: Hermiz Jon on Jan 6, 2011 5:51 PM

  • MARA table going DUMP due to append structure

    Hi all,
    I have created the structure and i have Appended  to MARA table. Since then MARA Table is Partially  Active State. So, i tried to delete the structure. But i am unable to delete that Structure, because it was used in MARA Table. Even i tried SE14 Transaction also.Here i did Adjust and Activate table, But it is showing SHORT DUMP. Even if check the Error in SE11, it is showing "No inconvience found, but i activate the table again it is going to dump ".
    How to solve this .
    My requirement is to bring back the MARA table into its origional state. and how to delete the Appended structure in MARA table ?
    Thanks in advance
    KR

    Hi,
       An APPEND structure is a DDIC structure that is assigned to a single DB table. In the ABAP dictionary (SE11) you call the corresponding DB table and create the APPEND structure for this table.
    In which scenario do we create APPEND structures? Obviously, the attributes available in the DB table are not sufficient to meet your requirements. Thus, you append the missing fields to the table.
    http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21eb61446011d189700000e8322d00/frameset.htm
    Regards

  • Modify fields in Append Structure

    Hi there,
    I am driving crazy about append structures. We appended a few fields to KNA1 - e.g. a field that keeps a version number (every time a record changes we want to increment the version starting with 1 at creation time).
    We found a lot of material about how to append structures and actually, it's fairly simple to extend KNA1 with append structures. But HOW can someone update those fields?
    We tried user exit EXIT_SAPLVV01_001 and BAdI IF_EX_CUSTOMER_ADD_DATA-SAVE_DATA to populate those fields at commit of customer data. In both scenarios, we don't have CHANGING or EXPORTING parameters. So, we tried to update the table directly, e.g.
    method IF_EX_CUSTOMER_ADD_DATA~SAVE_DATA .
    DATA: w_kna1 type kna1.
    select single *
      from kna1                            " Customer master table
      into w_kna1
      where kunnr = I_KUNNR.
    w_kna1-sap_version = w_kna1-sap_version + 10.
    update kna1 from w_kna1.
    break-point.
    endmethod.
    Now, when we execute VD02 the program stops at the given break-point and we see the data changed in KNA1. But the record gets updated by the SAP program SAPMF02D (underlying program of VD02), of course as we cannot manipulate the KNA1 record in the internal table of SAPMF02D.
    Is there any way to store information into append structures at save time (within the same transaction) without customizing standard programs?
    Many thanks for your help

    Hi Maic,
    Normally for append structures to standard tables, code is written in user exits where it is mandatory to change existing SAP objects (user exits exist are provided by SAP and you need change key).
    For additional functionality to the existing flow of transaction, we use BADIs and customer exits (through CMOD).
    Your requirement suits the first point above.
    Annyways, try using method GET_DATA in badi CUSTOMER_ADD_DATA_CS. This has changing parameter for KNA1.
    Ramesh.

  • Problem to activate an append structure

    Hi Guys,
    I'm trying to activate an append structure for a specific extractor, bu the next error is raised
    Activity terminated because errors occurred during package checks
    and then, itis telling me to follow up the the next procedure:
    Keep note of the setting for the package check (system-wide property) in your SAP System; this setting defines in which form the package concept is to be applied.
    In particular, check whether the package in which the incorrect dictionary object is located has sufficient usage applications. Then, if necessary, create the missing usage applications.
    As soon as the package check errors have been removed, you must again activate the dictionary object.
    Please, any help is appreciated.
    I.

    Thanks Roberto!.
    When I tried to enhance the extractor the system asked for a package and then to create a transport, but when i try to active it. it raised the error.
    How Can I change the package o see if it is correctly defined?
    I.

  • ABAP  dictionary  reguarding appending structure

    Hi,
    Myself Rohit.
    please tell me how to append a structure in a table .

    hi,
    Procedure
    Go to change mode in the maintenance screen of the table where you want to add the append structure.
    If the table contains a long field (data type VARC, LCHR or LRAW), you cannot add an append structure.
    Choose Goto -> Append structures.
    Either a dialog box appears in which you can enter the name of the append structure or a list of all the append structures. that were already created for the table appears. If append structures already exist, you have to choose  to get the dialog box for entering the name.
    Enter the append structure name and choose . The name must lie in the customer namespace.
    You go to the field maintenance screen of the append structure.
    Define the fields of the append structure. You can proceed as when creating a normal structure with two restrictions (see Creating Structures).
    The fields of an append structure must lie in the customer namespace, that is the field names must begin with ZZ or YY. This prevents conflicts with fields inserted in the table by SAP.
    An append structure must be flat, that is each field of the append structure must either refer to a data element or be directly assigned a data type, length, decimal places and short text.
    If you want to create foreign keys or search help attachments for table fields that already exist, you can display these fields with Show appending objects. Proceed as if you wanted to create the foreign key or search help attachment in the underlying table (see Creating Tables).
    If a foreign key or search help attachment is already defined for a field in the table, you cannot change this definition with the append structure.
    Choose .
    Result
    The table will also be activated when the append structure is activated. The fields of the append structure are appended to the table in the database. Foreign keys or search help attachments for the fields that are already in the table and that were defined with the append structure are also activated.
    You can display information about the activation process with Utilities -> Activation log. Errors occurring when the append structure is activated are displayed directly in the activation log.
    Hope this helps, Do reward.

  • Dout in append structure

    Hi
    good day to all experts
    how to find values from appen structure

    The values that are avialable in database table itself is the values in append structure..no other special values are stores in append structure..
    it seems u not gone perfect documentation of append strcutute..keep on looking i will just have a look..
    Reawrd points if usefull
    Please check this document perhaps it may help.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1570a990-0201-0010-1280-bcc9c10c99ee
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ebc9446011d189700000e8322d00/content.htm
    Regards,
    Regards
    sas
    Edited by: saslove sap on Apr 7, 2008 7:49 AM

  • VBAP append structure field on Overview screen 4900

    Hi,
    I have created an append structure on VBAP with a ZZ field and have included this field on the table control in the overview (sub)screen 4900 in SAPMV45A. 
    I have put the field in a number of the PAI CHAIN statements, but whenever I enter a value in the field and hit Enter, the value disappears.
    Does anyone have a definitive list of places that I need to change code to stop the field contents dissappearing?
    Many thanks,
    Andrew

    Hi - I have the issue of presenting ZZ fields from VBAP in the Item overview screen 4900. From your conversation I cannot see any solution to your similar issue. Did you do modifcations or is there a SAP way to include ZZ fileds in the 4900 screen?
    Please respond.
    Best regards Steen Pedersen

  • Appending structures to the tables

    Hi experts,
    Why we are appending sturctures to the tables?
    can any one tell me the main differences between the APPEND and INCLUDE structures
    in Datadictionary.
    Thanks in Advance.

    Hi Ankita,
    Customizing Includes
    A Customizing include is a structure that satisfies a special naming convention. The name of a Customizing include begins with u2018CI_u2019 and the include is in the customer namespace.
    If enhancements are already planned in the R/3 standard using customer-specific fields, such Customizing includes are included. in the corresponding standard table or standard structure. The Customizing include (that is the definition of the structure itself) is usually first created in the customer system and filled with fields by special Customizing transactions.
    Customers can thus enhance tables and structures of the R/3 standard system without themselves having to modify the table and structure definitions. This means that these enhancements will not be lost when upgrading. If a table or structure of the R/3 standard system is enhanced with customer fields using a Customizing include, these customer fields are automatically inserted in the new delivered table or structure definition during an upgrade.
    If you create a Customizing include 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.
    Customers can but need not create a Customizing include and fill it with fields. If there is no Customizing include, there is no error message when the table or structure including it is activated.
    A Customizing include can be contained in several tables or structures, so that they remain consistent when the include is modified.
    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.
    Reward if found helpful.
    Anirban Bhattacharjee

  • Append structure komv

    I would like to append structure KOMV with my structure , for this method is impact sap standard or not? this method can be implement in sap? Please advise me.
    Thank you so much.

    hi,
       you can include any predefined structures in your field string by using the statement
          INCLUDE { {TYPE struc_type} | {STRUCTURE struc} }
            [AS name [RENAMING WITH SUFFIX suffix]].
    tables: komv.
    data:
      begin of fs_STRUCTURE .
      include structure komv .
      data:
         carrid type spfli-carrid,
      end of fs_STRUCTURE .
    in the above example komv structure is included in the structure fs_structure even  fields of any other table or structure can be included. this declaration doesnt have any affect on the structures defined in se11.
    regards,
    kiran kumar

Maybe you are looking for