Wrong VBAP table updation

Hi
Facing a problem with wrong VBAP table updation.
Sales order shows Business Area" A " at both header and Item Level but in VBAP table the business area updated is " B ". can't understand why it is happening.
Changelog doesn't indicate anything
Thanks and regards
Nikhil

Hi,
Can you check how the business rule that is assigned at SPRO-> Sales and distribution -> basic functions -> Account assignment/Costing -> Business area account assignment?
Regards

Similar Messages

  • Material text is not getting updated in the VBAP table

    Hi All,
    There is an customized field in the sales order which picks up the addition material information maintained for a material. When we create the sales order the text appears. After we save the sales order, when we open the sales order(VA01/VA02), the text does not appear. If you check the VBAP table, the field which stores this text is blank. It will not update when we save the sales order.
    Could someone please let me know how can we check this problem.
    Regards,
    Swathi

    Hi
    Usually, this fields (zzfield) are populated with the subroutine userexit_move_field_to_vbap in include MV45AFZZ.
    I hope this helps you
    Regards
    Eduardo

  • ENQUEUE DEQUEUE  FM's for updating VBAP table record

    HI all,
    I am updating records of vbap table. so i want to lock those records while am updatin them .
    which FM's should i use to update them ?

    Thanks for ur replies Himanshu and Sayed,
    I have already used these FM's. But i didnt feel like it is working. I went in debugging mode and executed ENQUEUE FM and the i went in VA02 transaction and for the same sales order i tried updaing the quantity and it is updated in the table.
    How come this has happened even though i have locked the table with the help of FM. ?
    I have used the FM something like this  :
        CALL FUNCTION 'ENQUEUE_E_TABLE'
         EXPORTING
           MODE_RSTABLE         = 'E'
           TABNAME              = 'VBAP'
           VARKEY               = 'VBELN'
          X_TABNAME            = ' '
          X_VARKEY             = ' '
          _SCOPE               = '2'
          _WAIT                = ' '
          _COLLECT             = ' '
         EXCEPTIONS
           FOREIGN_LOCK         = 1
           SYSTEM_FAILURE       = 2
           OTHERS               = 3
        IF sy-subrc EQ 0.
          UPDATE vbap FROM TABLE li_vbap.
         CALL DEQUEUE.
      ENDIF.

  • Tables updated while creating order, before saving

    hi friends,
    Please provide list of tables updated while creating the order, before saving it.
    regards,
    vandana arora

    Hi
    The following tables get updated
    VBBE - Sales Requirement
    VBLB - Release Order Data
    VBAK - Sales Document Header
    VBPA - Partner Table
    VEPVG - Delivery Due Index
    VBAP - Sales Document Item Data
    VKDFS - SD Index: Billing initiator
    VAPMA - SD Index: Order Item by Material
    VAKPA - SD Index: Order Item by Partner Function
    VBEP - Schedule Line
    VBKD - Sales Doc: Business Data
    VBEH - Schedule Line History

  • Table update visible only when changing table selection

    I'm running java 1.6.0_07 on Linux and I'm experiencing a strange problem: I've got a table model that extends AbstractTableModel and when I selectes a row and then change such row data (thru the setData() and fireTableDataChanged() methods) I don't see the row update. If I reclick on the row or select another row in the table, the table refreshes and I can see the row updated. Is it a problem of the Java version or what? Should I change my code and force a table update in any way? Any suggestion?
    Thanks,
    Luca

    I've got a table model that extends AbstractTableModel Why? Whats wrong with the DefaultTableModel?
    Is it a problem of the Java version or what?So you've written custom code and it doesn't work so the problem must be with the Java version?
    Any suggestion?Use the DefaultTableModel.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • OBJNR is blank at VBAK and VBAP tables

    Dear collegues,
    There´s a strange situation on customer´s system. When end-user create a new quotation, the OBJNR field at VBAK and VBAP tables doesn´t fill itself, it remains blank. I believed that the field was filled when the document was saved. What´s wrong?
    Regards, Otávio.

    Hi,
    This might  be due to many reasons.Please check if there any dumps related to it in ST22/SM21.
    Also check if there any enough dialog/bckg work process to process the job.
    filling up takes more time depending on the no of records in the application tables.
    regards
    Nagaraju

  • Article number is missing for a sales document in VBAP table compared to BW data.

    Hi,
    We are loading data from 2LIS_11_VAITM and 2LIS_11_V_SSL to 0SD_O01, when we execute a report based on this DSO we are getting Article number 2224859 (for example) for sales order 573345 (for example) but when we check in VBAP/VA03 for the same sales order/document (573345)  we don't have the Article Number.
    It is delta load to the DSO from the two datasources and will executed daily once.
    Please suggest me any one on this.

    All,
    Thanks for your replys.
    Here are the more details about this.
    We are using 3.X flow in BW. (3.x Data sources)
    In BW                                           Mapping                In ECC     
    0DOC_NUMBER    Sales document  ----------->  VBELN          Sales Document
    0MATERIAL           Material  -----------------------> MATNR           Article Number
    In VBAP table, I have entered Sales document 573345 and executed then I got so many Article Numbers and Filtered with Article Number 2224859 then got no data.
    As I told earlier in BW for the same Sales Document number we have Article Number.
    We have start routine.
    PROGRAM UPDATE_ROUTINE.
    *$*$ begin of global - insert your declaration only below this line  *-*
    *$*$ end of global - insert your declaration only before this line   *-*
    * The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE /BIC/CS2LIS_11_VAITM.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    *$*$ begin of routine - insert your code only below this line        *-*
    * fill the internal table "MONITOR", to make monitor entries
      LOOP AT DATA_PACKAGE.
        IF DATA_PACKAGE-doc_categ NE 'C' AND
           DATA_PACKAGE-doc_categ NE 'I'.
          DELETE DATA_PACKAGE.
        elseif DATA_PACKAGE-recordmode eq 'R'.
          DATA_PACKAGE-recordmode = 'X'.
          modify DATA_PACKAGE.
        ENDIF.
      ENDLOOP.
    * if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    *$*$ end of routine - insert your code only before this line         *-*
    ENDFORM.
    I think there is no much more lookups. ( I don't have much knowledge in ABAP)
    I have checked in another tables also like VBFA VBAG VBAK, VBKD, VBUK and VBUP but in those tables I don't have Article (MATNR) field.
    One more Question.
    Can any one tell me how the Queued Delta mechanism will work.
    As of now I know that, when ever any changes have been done to the tables this will pickup the changes and move into LBWQ after that RSA7.
    My Question is, If some one has forcefully deleted one Article number from the table for a Sales Order then this Queued delta will pick that also?
    Please let me know If you need any more details

  • Auto update of Ztable when ever BSID or BSAD tables updated

    Auto update of Ztable when ever DB table updated     
    Hi experts
    I want my Ztable get updated automatically when ever a record is created or updated in BSID or BSAD tables.
    Here clear requirement
    Generally using Company code & Allocation number  ( 18 char ) my programs access BSID & BSAD tables it is taking very long time for execution almost more than 30 minutes ( data in millions ).
    Step 1.
    I created a new Ztable with limited fields Company Code, Customer, Document, Allocation Number and Posting date.
    Step 2.
    Before look into BSID or BSAD my program searches Ztable for Customer number & Document number using Allocation field and Company code.
    Step 3.
    Once get the Customer & Document numbers accessing BSID & BSAD table is very easy (now just taking less than 1 minute).
    Created a new program to update Ztable every day but BSID and BSAD are live table so I want my Ztable get updated immediately when any entry posted in BSID or BSAD
    Please help me
    Satya
    Singapore

    You need to check what is the procedure (T-Code) from which the data gets updated into these tables.
    For example
    when we craete a material from MM01 the data gets updated in the corresponding table i.e. EKPO.
    In same way you need to find the process and then you can use BTE (Busineess transaction events) for that process. BTE are only for FI module and these tables are also related to FI .

  • Problem in MSEG Table updation

    Hello All,
    The problem is related to MSEG table updation after Stock Transport Order  (STO) is done between Manufacturing plant & Depot. The problem is described below with an example.
    In case of STO the Supplying Plant or vendor is SP02 and the Receiving Plant or the customer is RP15.in the STO under the shipping tab for Customer the system is showing RP15 and under the Delivery address tab for Vendor the system is showing SP02.
    While during PGI when the material document is generated when we check the MSEG table two line items have been generated where  we found that the field WERKS contained SP02 & RP15 against which the feld XAUTO is showing blank space & X symbol respectively.But in case of both LIFNR & KUNNR fields it is showing blank space, which indicates that both the vendor & customer  fields are not getting updated in the MSEG table.
    Now I want the system to pick up the data for KUNNR field (in case of XAUTO is X) also in the MSEG table i.e. RP15 should also be displayed in the MSEG table.
    Is there any configuration to attain my requirement?
    Looking forward to some valuable suggestions.
    Thanks & Regards
    Priyanka Mitra

    the ADRx tables are central tables that are used from various transactions in SAP.
    e.g. from customizing, master data maintenance, transactional data, such as purchase orders and sales orders.
    use the ADRNR from ADR6 table and then lookup an entry in table ADRC to find and hint to its origin  field ADDR_GROUP

  • How to get the conition price by dividing the price from vbap table

    Hi Experts,
    i am given below one assisnment in which when user click on vbeln column which is common column in vbak and vbap table it goes to second interactive alv report in which contains Sales order items details from VBAP table.so please help me to solved my problem.So try to send me some reponse or u can send me report of step which i have given to you below.
    Assignment
    Qty field refers to the Target Qty field in the table VBAP.
    To get Price in the unit divide the price by Condition Pricing Unit.
    If SHKZG field is set, then multiply the amount by -1, making it negative.
    Report Layout
    Item Type Item Number Material Number Material Group Qty Unit
    Material Number used by Customer Plant Net Price Pricing Unit Net value Currency
    Moderator message: you've been asked ten times now to not dump your specs here. Once more, and your user ID will be deleted.
    Edited by: Thomas Zloch on Dec 1, 2011 12:08 PM

    Hi
    Assuming you are using Jdev 11g.
    Try with this
    public void selectionRow(SelectionEvent se) {
    String val = getManagedBeanValue("bindings.AttributeName.inputValue");
    public static Object getManagedBeanValue(String beanName) {
    StringBuffer buff = new StringBuffer("#{");
    buff.append(beanName);
    buff.append("}");
    return resolveExpression(buff.toString());
    public static Object resolveExpression(String expression) {
    FacesContext facesContext = getFacesContext();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    return valueExp.getValue(elContext);
    Vikram

  • Calling Batch input from Web Dynpro - any alternatives for table updates?

    Hi!
    I am asked to create a screen in Web Dynpro for the GJ30 transaction (JV Cutback mapping of WBS' elements). I created a remote enabled function module which call batch input for GJ30 . Testing the Function modules direclty goes fine, but not calling the function module from WD. then I get the same error message as when I once tried to call SAP GUI from Web Dynpro ( Call transaction /submit program).
    My next step is to try to create a batch input session (instead of call transaction) and run it using rsbdcsub, and then check the result of the run. But maybe this will fail of the same reason as well, and I suppose this will make the user waiting longer for the response .
    I read somewhere that Web Dynpro does not support batch Input. But what can you do when there are no standard BAPI's for the update you want to do in SAP ?  We are not supposed to do direct table updates.  
    Anyone who have struggled with the same issues and found a solution??
    regards, Tine

    Hi,
    as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
    Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
    Thanks,
    Chandra

  • How to capture the table update

    How to capture the table update.Suppose I delete a enrtry from the table or mofying any entry in a table is there way to capture that update in SAP?

    hi ,
    follow these steps:
    1. After you selecte the search help for New Responislbe person, domodify gets triggered.
    2. In the wddomodify, get the value of New Responsible person by reading the attribute binded to it.
    3. Now if Value entered is not initial, write a selecte query to fetch the name based on pernr no.
    4. Finally bind the name fetched with the attribute binded to New Responsible person name.
    Wdomodify :
    ************* *Read the New REsponsible person Pernr* ***********
      DATA lo_nd_cn_sflight TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_sflight TYPE REF TO if_wd_context_element.
      DATA ls_cn_sflight TYPE wd_this->element_cn_sflight.
      DATA lv_carrid LIKE ls_cn_sflight-carrid.
    * navigate from <CONTEXT> to <CN_SFLIGHT> via lead selection
      lo_nd_cn_sflight = wd_context->get_child_node( name = wd_this->wdctx_cn_sflight ).
    * get element via lead selection
      lo_el_cn_sflight = lo_nd_cn_sflight->get_element(  ).
    * get single attribute
      lo_el_cn_sflight->get_attribute(
        EXPORTING
          name =  `PERNR`
        IMPORTING
          value = lv_carrid ).
    ****** *Check whethre a value has been entered in PERNR* *************
    if lv_carrid is not initial.
    *************Select Name based on pernr entered* ***********
    select ename from pa001 into lv_ename where pernr = lv_carrid.
    *******Set the Name atttribute with the ename value fetched* *****
      lo_el_cn_sflight->set_attribute(
          name =  `NAME`
          value = lv_cename ).
    endif.

  • Wrong condition table for condition type

    Hi,
    I have a big problem during pricing. while creating the sales order the system takes the wrong condition table for the specified condition type (I have created a new condition table and changed the access seq, did the initial load and in customizing everything looks fine). To picture the customing i have created ZXXX access seq with a 901 cindition table (sales org, dist ch. and product hierarchy 2 with a standard field PRODH2) unfortunately I had to change the field to ZPRODH2 I decided to create a new table 902 with the Z field. The new access seq has now 902 table in customizing. In CRM the two condition tables and view exists for 901 and 902. Acording to customizing the system should take the 902 condition table but insteed he takes the old 901 which shouldn't be used.
    Do anybody has some ideas why the system responds like that ? I have tried to delete the old table with the standard report and it didn't worked.
    What can I do ?
    Thanks for some ideas !!
    BR
    Tomasz

    Hi Tomasz
    Please check assignment of that new access seq to c.type in v/06
    That table might hv used somewhere in another acc.seq so unable to delelte
    Regards
    Sachin

  • Tables updating for atransaction

    Hi All,
       i wnat to know is there any transaction code or program to know the tables updated for a transaction.
    we have a transaction called PPOM and FS00 ,i want to know which tables are updated when i create new records for these transaction codes.
    With regards,
    kiran I

    Hi,
      You can check tables CDHDR and CDPOS tables.
    You can check the modified tables, values, by which transaction does this modification has been done.
    Give current date to check. As these are cluster tables, it may take some time for retrieving data.
    CDHDR - header details
    CDPOS - item details
    Regards,
    Sailaja.
    Dont forget to reward points, if answer helps you.
    Message was edited by: Sailaja N.L.

  • Can any one tell me how to make a join in between RESB & VBAP Table

    Hi.
    can any one tell me how to make a join in between RESB & VBAP Table. Please do the needful.

    u have Sales order number and sales order item number in RESB table..
    KDAUF   Sales Order Number
    KDPOS   Item Number in Sales Order

Maybe you are looking for

  • HT201363 i Want To Buy a Game On The phone but the security Questions i forgot and the Email

    I Have a Iphone 5c i Want To Buy a Game On The phone but the security Questions i forgot and the Email To Change Them i forgot can you please help me with the email i sent them To? <Edited by Host>

  • How to get rid of section headers?

    The "Mailboxes" "On my Mac" etc are taking up unnecessary space... anyone know a way to get rid of those headers and just have the folder icons? Think I can tell the difference between a smart mailbox and my inbox from the icons thank you

  • Firefox 4 MUCH slower than 3.6.. Windows 7 32 bit PC

    I installed Firefox 4 yesterday on my Win 7 32 bit Dell laptop with 4.0 GB memory installed and its own graphics card. I had installed Firefox 4 on my desktop (Win 7 64bit with 6GB RAM) a week ago and it worked great. On this laptop machine after the

  • Footer in FBL3N and FS10N reports

    Hi there. Is there a possibility to add a footer to reports printed from  mentioned transactions? Greetings. P.

  • Do I need to synchronize my stubs?

    I have a client application that gets an RMI stub for an object in my server application. I am adding a shutdown hook to the client application, and I want to use the RMI stub in the shutdown thread. I'm concerned that my main thread may be in the mi