Append structures - key field?

Hi guys.
Can a field from an append structure be part of the key fields?
Regards.
wm

Hi
No it's not possible because append structures are added to the bottom of the table I mean to the last row of the table.
Customizing Includes in an table is used to add the custom fields to the existing table. this include can be added any where in the table fields ie at the starting or middle or at the bottom.
Regards
Murali Papana

Similar Messages

  • Writing data to append structure / z-fields of table lqua

    hi,
    does anyone have a clue?
    looking for a badi or user exit in order to populate append fields / z-fields on table LQUA. customer is using ECC 6.0. this needs to be done e.g. when a goods receipt is posted and a quant in the gr-zone is created initially.
    thx for an answer.
    bye rob

    hi,
    does anyone have a clue?
    looking for a badi or user exit in order to populate append fields / z-fields on table LQUA. customer is using ECC 6.0. this needs to be done e.g. when a goods receipt is posted and a quant in the gr-zone is created initially.
    thx for an answer.
    bye rob

  • Difference between include structure and Append structure

    Could you please tell me
    I have bsis table and it contains append structure  in 4.7 SAP System.
    my program in 4.7 system contains internal table which used same structure of bsis table ( which contains additonal field in its append structure ).
    I need to have same table structure in 4.6 C because I am copying the same program into 4.6 system.
    As I could not append structure to bsis table in 4.6C SAP system,
    instead of that shall I add the field or Shall include the structure to run .
    What is the difference between Include structure and Append structure ( I forgot )
    How to achieve this please help me ?

    Hi ,
      As you know append structure can be used only once in table ,that to at last of all entries,
    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.
    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.
    A standard table contains the fields Field 1, Field 2 and Field 3. An append structure containing the fields ZZA and ZZB is defined for this table. After activating the table, the corresponding database table contains fields Field 1, Field 2, Field 3, ZZA and ZZB.
    Further Remarks:
    An append structure can only be assigned to exactly one table or structure. If you want to append the same fields to several tables or structures, you can store these fields in an include structure. In this case you must create an append structure for each of these tables or structures and include the include structure there.
    Adding an append structure to an SAP standard table is supported by the  Modification Assistant.
    If you want to insert a field that is to be delivered with the R/3 standard in the next Release in the customer system in advance, you must include it in the table itself as a repair. If you include such a field in an append structure for the table, it will occur twice when the new standard table is imported. This will result in an activation error.
    No append structures may be added to tables with long fields (data types VARC, LCHR or LRAW). This is because a long field must always be the last field in the table. However, structures with long fields can be enhanced with append structures.
    If a table or structure with an append structure is copied, the fields of the append structure become fields of the target table. Foreign key definitions and search help attachments appended with the append structure are copied to the target table.
    Foreign keys for the appended fields must be defined within the append structure. Fields of the table or structure assigned to the append structure may be defined when assigning the key field and foreign key field.
    Indexes on the appended fields must be defined in the original table.
    A table or structure TAB can only be enhanced with new foreign keys or search help attachments using an append structure. You therefore cannot change an existing foreign key definition or search help attachment for a field of TAB with the append structure.
    Thanks
    Manju

  • Delete customs append structure issue

    Hi Gurus,
    I added a customs append structure with a 'YY'  field in one of LO extractr structures.
    Now I don't need that field, I need to delete that customs append structure and field from the extract structure. I deleted that 'YY' field but I don't how to delete customs append structure which one I created.
    Please advice ?
    Thanks
    Liza

    Goto SE11 -> Give append structure name ..should be ZA*  and select delete option , This will delete append structrure ref. from extract structure.
    Hope it helps..

  • Which FM can append table sturcture(add key fields and so on)

    Hi everybody,
    does any one of u know a FM which append structures of table (to add the key fields and so on) in ABAP dictionary.
    The FM DDIF_TABL_PUT is only used to write a new table and I don't want to call this FM twice to realize my application.
    Thanks in advance!
    Liying

    Hi Raja,
    I got a runtime error:Perform_NOT_FOUND
    EXCEPTION:CX_SY_DYN_CALL_ILLEGAL_FORM
    following is my codes:
    DATA ATA DDFIELDS LIKE DDFIELD OCCURS 2 WITH HEADER LINE.
    DATA NAME LIKE DD02L-TABNAME.
    DDFIELDS-FIELDNAME = 'F3'.
    DDFIELDS-POSITION = '3'.
    DDFIELDS-KEYFLAG = 'X'.
    DDFIELDS-DATATYPE = 'INT4'.
    APPEND DDFIELDS.
    DDFIELDS-FIELDNAME = 'F4'.
    DDFIELDS-POSITION = '4'.
    DDFIELDS-KEYFLAG = ''.
    DDFIELDS-DATATYPE = 'INT4'.
    APPEND DDFIELDS.
    NAME = 'ZTEST'.
    CALL FUNCTION 'DB_ADD_TABLE_FIELDS'
        EXPORTING
            TABNAME = NAME
        TABLES
            DDFIELDS = DDFIELDS
        EXCEPTIONS
            FIELDS_NOT_ADDED = 01
            PROGRAM_NOT_GENERATED = 02
            PROGRAM_NOT_WRITTEN = 03
            TABLE_DOES_NOT_EXIST = 04.
    What might be the reason?
    B.R.
    Liying

  • 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.

  • 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.

  • Issues with a Z field in an append structure of VBAP when calling BAPI

    We have added a Z field on table VBAP with an append structure. It is a flag field. We want to change its value with the BAPI BAPI_SALESORDER_CHANGE. We have also created the append structure in API structures
    THe return message of the bapi gives us a success message for the modification. But when we go to the se16 we still see the field as blank, not with the X suposed to be there.
    We are succesfully calling the BAPI_TRANSACTION_COMMIT.
    What can cause us this problem? What can we do to solve it??
    Thank you!
    Artur.

    Hi Artur,
    this blog could help you:
    [Updating custom fields on VBAP and VBAK using BAPI_SALESORDER_CREATEFROMDAT2|/people/kevin.wilson2/blog/2009/09/30/updating-custom-fields-on-vbap-and-vbak-using-bapisalesordercreatefromdat2]
    Regards,
    Andrea

  • Lost Append structure on adding standard field in exctractor 2LIS_13_VDITM

    Hi,
    In 2LIS_13_VDITM i have appended structure. Now i required to pull in another standard field from from the extractor from LBWE maintenance.
    One doing that and activating ii somehow lost the custom appended structure from the extract structure.
    I came to know this while replicating it into BW where it gave error about missing fields from the extractors.
    Have anyone faced similar issue. If yes can you please let me know why this happened and how can i get those fields back in to the structure.
    One way i know is by comparing it with the Q system i can manually append that structure again.
    Please let me know.
    Thanks a lot for responding.
    Ritesh

    Hello Ritesh,
    Are you adding the new field through append structure of the existing one or new one (Only one append structure is possible).
    If in the same append structure , then check whether that structure is active and consistent.
    If everything is ok, then check the hide option in the datasource (RSA6) whether its unchecked.
    Hope it helps
    Thanks
    Chandran

  • Field in Append Structure for Generic Datasource

    Hi:
    I created a Generic Datasource based on a view. After that, I created an Append to the Extraction Structure to include a field not originally on the view (and not related to any table in the view) to be calculated using customer exit in CMOD.
    At the moment of activating the Datasource, this new field doesn't appear in the selection window but in RSA6 it shows there with options "Hide Field" and "Field only Known in Customer Exit" checked.
    Again, I try to edit the Datasource but this field is not in the list to change those two checks.
    Any idea?
    Thanks.
    Luis Sales

    Dear Luis Sales,
    I was having the same requirement. I tried it hard for removing the tick mark on the HIDE option. But it was not working at all.
    I tried these steps.
    1. From RSO2 went to Extract structure. Edit Mode-> append structure.
    2. Appended required fields and activated both append structure and extract structure.
    3. Back to datasource and Save it.
    4. Came out of transaction RSO2. ( latter Logged of system )
    5. after re login - RSA6 selected given Datasource and change. there I could change the selection of HIDE field. ( Even earlier I was not able to do that)
    May be these steps help you out.

  • Update field of an Append Structure

    Hi! I need help!!
    I made an extension using Append Structure  (I Added a owner field) of a standart table ( EBAN ) about "purchase requisition".
    I want to update this field when a new purcahse requisitions is created , using the bapi BAPI_REQUISITION_CREATE.
    anynone kown how to do it?

    hi Ariel,
    use BAdI <b>ME_PROCESS_REQ_CUST</b> and choose appropriate method
    to polulate the structure (BAPIPAREX) with the newly updated field, before PR is updated.
    Hope this helps,
    Sajan Joseph.

  • 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

  • Update VBRK append structure field

    Hi,
    I have added append structure field in VBRK.
    While doing billing cancellation, i have to update a value in this field for the billing number.
    I have coded this in a user exit.
    I ve called another program and written coding for updation. DB_UPDATE_TABLE FM  used for updation.
    The value is getting updated in the table. But once it came to the user exit, the value of the field is gone from the table.
    What could cause this issue?
    Thanks in advance.
    Ezhil

    Hi,
    1. Please check in the program that are you clearing the internal table any where ?
    2. If you are using the submit statement you can use with return statement .
    3. Other Export that internal table to memory inside the program and import that same internal table in the  user exit.
    Hope this might helps you to solve your problem.
    With Regards,
    Sumodh.P

  • Donu00B4t  see the fields after to change the append structure

    Hi experts,
    My problem is the following. I enhanced a Extraction Structure, I activated the append structure, and I assigned the Infosource to the datasource and it was ok. Then, I had to do some changes to the append structure, I again activated it, replicate the datasource, but I don´t see the changes. When I replicated the datasource for first time I saw the fields of the append structure, even I did the transfer rules. Then, when I did the changes I could not see more the new changes, but I can see the fields that they have not been changed.
    The changes were:
    - I changed the name of the one field because it was longer of 16 car. (before ZZ_CLASSIFICATION, after ZZ_CLASSIFCAT).
    - I added two fields more.
    I am not sure How works the RSA3 transaction. On it I entered the datasource name and I pressed the "Strat Extraction" and the system show to me a message "1558 register selected", then I pressed "Display List" but I can´t see the changes
    Do you have any idea about what happen?
    Thanks

    Hi Leonel,
    Usually, when I try to enhance my DS, I delete DS-IS assignment. Then do what you've done already. If you don't delete the assignment first, then often the old info remains.
    So, delete this assignment and repeat all steps again.
    Best regards,
    Eugene

  • VA02 user exit - cannot update append structure field in XVBAP/VBAP

    Hi Guys,
    I am currently using one of the many user exits in updating XVBAP to update the VBAP sap table in VA02.
    However I am encountering a problem when updating a customized append structure field. When I change the value of the append structure field only it doesnt update in VBAP upon save event. Only when I also change a sap standard field (ARKTX) the append structure gets updated.
    Is there a way to resolve this wherein even if I just XVBAP-<append structure field> only ... the corresponding field in VBAP gets updated?
    THanks guys and hope to hear from you soon.

    Hi,
    Which userexit subroutine are you using to move the append structure field values to the XVBAP table?  Are you having the user enter values on a screen during VA02 for the append structure fields, or are you setting those values within the code when the user saves?  For the purposes of this response, I will assume you are not having the user enter the values, and that (from what you have described) you are using subroutine userexit_move_field_to_vbap. 
    While userexit_move_field_to_vbap sounds logical at first, you should be aware that this subroutine (which is called at the end of module vbap_fuellen) may only be called when one of the chain fields (in the flow logic of the VA02 screen) is changed.  If you search for all the calls of module vbap_fuellen in screens of SAPMV45A, you will see that most of them have a list of chain fields with "on chain-request" logic.  Since your append structure fields will not be listed in the flow logic of the standard VA02 screen, changing one of the append structure fields alone would not trigger the PAI module vbap_fuellen.  Of course, changing a standard VBAP field (ARKTX was your example) could trigger the vbap_fuellen module (as long as it was one of the chain fields) which would consequently trigger the userexit_move_field_to_vbap subroutine.
    You may want to consider trying USEREXIT_SAVE_DOCUMENT_PREPARE.  Please explain further if I have misunderstood your question. 
    Anyone else out there have any ideas?  Does my analysis make any sense?
    Best Regards,
    Jamie

Maybe you are looking for

  • Can you view network drives in Bridge?

    I am currently using a trial of CS4 and when I go to bridge to select the files that I want to import into Lightrooom ( the one thing I don't understand about lightroom not having a browser to see the pictures before you import, I think this is cruci

  • Sync multiple computers with the same mailbox

    Hello all, I am using a Bold and syncing with MS Outlook 2007. I have it on both a desktop and my laptop (laptop being the first computer I used). I have tried to sync but am having issues with the calendar as I am getting multiple items, some items

  • I've downloaded a zip file from noisetrade, but it won't open on my mac...what shall I do?

    Hey guys, wondering if someone could give me some help. I've downloaded a zip file from noisetrade, but it won't open on my mac.I keep clicking and it vhanges to a cgzp file..and even when I changed the end bit to zip, it won't open. I've tried the u

  • Copy and Paste to Excel from another program

    I use vb script to paste data to Excel that has been copied to the clipboard via SAS code. However, my code has now failed for some users. SAS accomplishes the writing to the clipboard task, and then creates and issues a system command to run the VB

  • How can I change the settings on entering a password every time something is bought

    The problem is I put the password in once and get an app for my son and it is unlocked for a number of minutes I wants it to b locked rite away! Cause he is purchasing things while it is unlocked. Is there any way to have this changed to promp with p