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.

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • How to activate the transparent table along with append structure

    Hi,
    I add the new fields in existing append structure on tale VBAP.
    Initially i provide them the data type as Char with length 20.
    Similarly i added the fields in user exit on scree 8459 to add fields on screen.
    Until this eveything was working fine.
    Then my functional consultant ask me to delete one field from structure and change the length of other data types to 40 characters.
    I done this changes but when i go to activate that append structure its giving me error that certan structures in which it is been used are not adjusted and activated.
    The table is not adjusted through SE14 - Database Utlity.
    Its showing me that Runtime Object and Transparent table are different and not consistent.
    Can i delete the runtime object?
    The domains which i ave changed are also not geing activated.
    Suggest me the node of problem and solution also.
    What should be the problem.
    What should i do to solve the problem.
    Suggest me the solution if any.

    Give a trail that instead of activating all together, activate low-level objects (domains, data elements etc)first and then high levels (structures, tables) individually. With this approach you could find the errors easily and can resolve quickly.
    Regards,
    Prasanth

  • 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

  • Appending structures to fbl5n

    hi people. .
    I created a struct:ZINV_FBL5N with 4 fields and need to append them to RFPOS structure and RFPOSX structure.
    But when i try to do i get the error that the struct already exists. Also while creating the structure I have not used data element as shown in the pics below.
    Please guide.

    Hi,
    You first created the structure ZINV_FBL5N and then tried to create append structure. Actually, you should have done the following things. Firstly, you should press append structure;  then create; give a name to the structure; add the fields and activate the structure. The new fields added would then reflect in RFPOS and RFPOSX structure. In your case, system issued a message because you created the structure, and then tried to create append structure with the same name.
    The standard way of adding customized fields to append structure is to create a structure,say ZABC add the fields. Press append structure, create an append structure with different name ( name starts with ZZ* or YY* ) and then add the structure ZABC using  .include ( include structure from the menu )
    e
    Regards,
    DPM

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

  • Append structure activation

    hi all,
    we have got some problems while dealing with append structure.
    actually ,we tried to add some fields to the append structure of mara table ,
    then when activating it showed activation logs.so the table mara and the append structure to it is partly active.
    so is ther any way i can undo the changes so that the mara table and append structure gets activated becaise while undoing the changes ,it is also not allowing us to activate.
    kindly suggest any way out.
    thanks

    hi
    once u add the fields in the structure & then when u append that in the database table ., then u have to adjust the database for the table.
    gotto se11... give ur table name ..diaplay..then utilities..click on database uitility, then at the bottom of the screen there is a push button "activate & adjust database"..
    clcik on tht button... table will adjusted for mass activation..
    try & let us know,,,
    reward points if it is useful..
    thanks,
    Manjunath MS

  • Delete the appended structure of an Extract Structure

    Hi All,
    I have appended the extract structure of vendor text with additional fields. Now i would like to delete my appended structure along with the fields of my appended structure but i am unable to find the option to delete this. Kindly guide me how to go about it?
    Thanks,
    P.S

    Hi,
    Goto SE11 -> Put append structure name ..should be ZA* .. and select delete option , This will delete append structrure ref. from extract structure.
    Hope that helps.
    Regards
    Mr Kapadia

  • Order of append structure

    Hi,
    I have in VBAK an append structure starting with ZY...
    I want to add a new append structure starting with ZA... at the end of the table but when I add the structure it goes before the one starting with ZY..
    How can i put it at the end of the table? Can anyone help?
    Thanks,
    Catalin

    Hi
        Append structures allow you to attach fields to a table without actually having to modify the table itself. You can use the fields in append structures in ABAP programs just as you would any other field in the table.
    Click on the append structure tab and opt to create new
    structure.
    Append structures allow you to enhance tables by adding fields to them that are not part of the standard. With append structures; customers can add their own fields to any table or structure they want.
    Append structures are created for use with a specific table. However, a table can have multiple append structures assigned to it
        Customers can add their own fields to any table or structure they want.
    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

  • 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 to ztable

    hi all,
           i have one ztable. .
    for this i have to append structure with 3 new fields to that ztable.
    can u plz tell me how to do it.

    Hi
    To add fields to the Z Table using Append Structure then open the table in Change mode in SE11 and
    click on APPEND STRUCTURE Button on the Application Toolbar. It will prompt you to enter the name of the Append Structure. Enter the name and then define the fields in the structure and activate the table.
    The fields in the Append Structure must start with "ZZ"  (Eg...ZZdate1 etc..)
    Hope it helps.
    Murthy

  • Help me Pl.. Changing APPENDED STRUCTURE

    Hi ,
    I am trying to Change the Appened structure to add extra fields. That Append structure was created by Other developer. So I took Owner for that request, But still it's not allowing me change to Structure. Saying error
    <b>"Transport objets from Package Z001 to target /RELEASED/ only". </b>
    The object is stored in Z001 package. In change request there is no Target system specified...
    Pl.. Help me  how can i add field into Appended Structure( main sturcutre is -LISTVBAP)
    Thanks,
    Suba

    Hi Suba,
           You can create your own structure. All you have to do is that...
    1. Goto Transaction Code SE11 and type a new structure name zxxxx or yxxxx.
    2. Click the fields tab.( After finishing the techniqual settings & maintenance settings)
    3. There in the first column type <b>'.include'</b>
    4. In the second column type <b>'type'</b>
    5. In the third column type <b>'listvbap'</b>
    i.e is the structure name.
    6. Now you can add the fields you want to add in your new created structure zxxxx or yxxxx.
    7. It's always good practice to do like this.
    Hope it helps.
    Regards,
    Maheswaran.B

Maybe you are looking for