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

Similar Messages

  • 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

  • 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 Append Structure on VEKP

    Hello,
    I'm trying to find a user exit or a BADI that will allow me to update an append structure that I have created on table VEKP (HU Header).  I would like to update this append structure when the HU is created.  I tried using BADI_HU_SAVE, however it does NOT allow me to modify the table parameter, it_header. IT_HEADER is an Importing parmeter.  Does anyone know of another option to update this append structure?
    Thank You
    Edited by: Tony Raimo on Feb 8, 2008 1:03 AM

    The transaction is VL02N.  Then, click the Packing button on the toolbar.  I'm trying to add a tab to this screen via a BADI or User Exit.  I've already added a tab to the Delivery Header screen (VL02N, then click GOTO->HEADER), but I can't seem to find a similar BADI to extend the Packing screen.
    Thank you,
    Edited by: Tony Raimo on Feb 11, 2008 7:26 PM

  • Data not Updated in Custom Screen fields-Vendor Master

    Hello,
    I have created a custom screen in vendor master transaction and also implemented the two BADI's below.
    Business Add-In: Processing Master Data Enhancements
    (CUSTOMER_ADD_DATA/VENDOR_ADD_DATA)
    Passed the Custom Program and Screen No in the method GET_TAXI_SCREEN
    Business Add-In: Customer Subscreens
    (CUSTOMER_ADD_DATA_CS/VENDOR_ADD_DATA_CS)
    activate it with the BADI Processing Master Data Enhancements with method CHECK_ADD_ON_ACTIVE.
    I also created a new screen and used few fields from LFA1 (Append structure fields) such that the fields on the screen are : LFA1-ZZFIELD1 etc...
    Now the issue is the screen is displayed, but the data entered on the screen is not updated on the table LFA1 or data from the table is not displayed on the custom screen.
    Am i missing something?
    Regards,
    Shiva

    Solved this problem.
    I built the query against InfoCube and not the characteristic itself. That's why I can't see the update.
    Thanks.

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

  • 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

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

  • Custom field updation in bapi_salesorder_createfromdat2 structures

    hi friends,
    custom field updation in bapi_salesorder_createfromdat2 structures
    i having a problem while creating a salesorder in vao1 tcode
    i unable to find the WWDLC FIELD AND DATA ELEMENT IS
    RKEG_WWDLC (delivery to country) in item data-> account assingment-> profit centre-> delivery to country
    how to enchance the field in bapi structures.
    thanks
    geetha.

    good

  • 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 append structure

    i append new field to table EQUI  called znew.
    how i can make update table to this new field.

    Hi,
    u can update data through table maintenance generator.
    before that u need to adjust database table by SE14 tcode.
    there give ur table name and press enter. then there are some options activate and adjust database tabel and save data.
    i hope it may work,
    regards,
    ravi shankar reddy

  • How can  i append a field directly to xtract structure.

    (with out going to communication structure) while doing xtraction, if i hv a requirement to append a field directly to xtract structure. how can i append that field.

    hai satish,
    Follow these steps:
    go to rsa6 --> select your data source --> double click on the it --> double click on extract structure  --> Click on append structure.
    enter ur Enhancing Field names,
    go back to rsa6 in change mode---> remove hide check for newly added field..
    now go to se37 ---> EXIT_SAPLRSAP_001(for transaction data )
    Ur having some Include program Modify according to Ur fields.
    Thanks,
    kiran.

  • 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

Maybe you are looking for