RDR1.GrossBuyPr 'Field cannot be updated' error : Sales Order DTW update

Hi all.
This is my first post, so please be gentle :-).
I am attempting to update the unit prices on a bunch of Sales Orders via DTW.
Some items update successfully, but some do not, failing with the error :
RDR1.GrossBuyPr line: x, 'Field cannot be updated (ODBC -1029)'Application-defined or object-defined erroroOrders
I am not attempting to modify this column, although I am guessing that this is calculated by Business One internally.
I am using 2 tab-delimited files :
Documents.txt, which contains the RecordKey & DocEntry columns.
Documents_Lines.txt, which at the moment contains RecordKey, LineNum, UnitPrice & ItemCode.
I have tried it with the UnitPrice column renamed to Price, and with and without the ItemCode column present, and they give exactly the same error.
If I remove the price column completely, then it works (but nothing has updated, obviously).
I have searched the forums, the only thing I can see that comes close is the UnitPrice / Price renaming.
Or am I going about this the wrong way? The prices that I want to import already exist as a price list, and we can manually change these in Business One by going Form Settings -> Price List when in a Sales Order, but I am unsure how to do this via DTW. There are approx 3000 items that need changing, so doing it manually is not really an option.
Grateful for any and all help.
Thanks,

Here you go....
Documents.txt :
RecordKey     DocEntry
RecordKey     DocEntry
0     18664
1     19397
2     19578
3     20804
4     20808
5     20884
6     21114
7     21801
8     22222
9     22390
10     22455
11     22513
12     22889
Document_Lines.txt :
RecordKey     LineNum     UnitPrice
RecordKey     LineNum     UnitPrice
0     0     22.000000
1     2     49.000000
2     0     0
3     0     109.000000
3     1     115.000000
3     2     98.000000
3     3     104.000000
3     4     159.000000
3     5     32.000000
3     6     41.000000
3     7     82.000000
4     0     131.000000
5     0     207.000000
6     4     49.000000
7     0     87.511900
8     0     72.000000
9     1     306.000000
10     5     0.000000
11     0     58.000000
12     4     1.000000

Similar Messages

  • Condition update error  :There is no condition update from sales orders.

    I am testing the condition update by condition type K005 , which have been set the condition update indicator ,and I have also set the Max.number.of.orders  to 1 , but after I created the first sales order ,the condition record still make effect in the second  and third sales order ,which was created without referece to the first one .
    And  when I  look at the cumulative value in the condition record ,it says "There is no condition update from sales orders."
    Anyone can give me some light ?
    BTW , the sales order type is ZOR ,which I copy from the standard order type .And the item category is ZTAN , copy from  standard IC TAN .
    thanks for your help in advance .

    hello, friend.
    there are at least 3 things that you will have to check, since records for condition type K005 is created for a specific combination:
    1.  check if the item category with condition update was the one determined in the order
    2.  check if the customer has a valid K005 record
    3.. check if the material has a valid K005 record
    also, since you specified "1" as maximum number of orders, this could have prevented any updates.
    regards.
    Edited by: jonathan y on Sep 17, 2009 2:59 PM

  • Issue Updating Base Sales Order From A Delivery

    As a Delivery doc is added that was created from a Sales Order, I would like to be able to update certain unclosed information in the base Sales Order document.  Two of the fields are user fields, which don't present an issue.  I can make the updates accordingly through the SDK.  The issue I'm having presents itself when I attempt to update the TransportationCode (ORDR.TranspCode) field in the base sales order, which is a field on the logistics tab.  I can make the update through the SBO interface version 2005 fine, but when I make the update through the SDK version 2005 use VB.NET 1.1 I get the following error:
    [ORDR.DocRate] , 'Field cannot be updated (ODBC -1029)'.
    It's strange because I'm not making any updates to the DocRate field.  This issue arose after an upgrade from 6.5 to 2005.  Worked fine in 6.5.  The DocRate (exchange rate) field is not used in documents entered in local currency as far as I know.
    Any ideas?
    Private Sub UpdateOrderFromDelivery(ByVal DS As DataSet)
            Dim oORDR As SAPbobsCOM.Documents
            Dim oDEL As SAPbobsCOM.Documents
            Dim RetVal As Long
            Dim DT As New DataTable
            Dim DR As DataRow
            Dim OrdrTrackNum As String
            Dim AL As New ArrayList
            DT = DS.Tables(0)
            oORDR = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
            oDEL = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
            Dim i As Integer
            For i = 0 To (DT.Rows.Count - 1)
                DR = DT.Rows.Item(i)
                Dim CurBaseDocEntry As String = DR.Item(0)
                'Check to see if the Sales Order update has already been processed
                If AL.Contains(CurBaseDocEntry) Then
                    GoTo SkipLoop
                End If
                If oORDR.GetByKey(CurBaseDocEntry) = False Then
                    Throw New Exception("Could not find Sales Order Key " & DR.ItemArray(0) & ".")
                End If
                If oDEL.GetByKey(DocEntry) = False Then
                    Throw New Exception("Could not find Delivery Key " & DocEntry & ".")
                End If
                Dim DelTrackNum As String = oDEL.UserFields.Fields.Item("U_TrackNum").Value
                oORDR.UserFields.Fields.Item("U_TrackNum").Value = DelTrackNum
                Dim DelShipCost As Double = oDEL.UserFields.Fields.Item("U_ShipCost").Value
                oORDR.UserFields.Fields.Item("U_ShipCost").Value = DelShipCost
                <b>Dim DelTransCode As String = oDEL.TransportationCode
                oORDR.TransportationCode = DelTransCode</b>
                RetVal = oORDR.Update
                If RetVal <> 0 Then
                    Dim Err As String, Msg As String
                    oCompany.GetLastError(Err, Msg)
                    Throw New Exception("Unable to update ORDR from ODLN.  " & Err & " - " & Msg)
                Else
                    AL.Add(CurBaseDocEntry)
                End If
    SkipLoop:
            Next
        End Sub

    Hi,
    i think any of the fields in the base sales order get updated when u set the delivery 's(target's) base entry no
    oDel.BaseEntry = docnum of Order
    Hope this helps

  • No revenue update from sales order

    Hi
    I have created SO with account assignment for a WBS billing element. In config I have make the indicator on for revenue value should automatically  update from sales order.
    But neither the revenue from sales order is updating in any of my PS report nor the actual revenue too after billing cycle.
    Does it need some more customisation checking.Cannot find any solution from earlier similar threads.
    Zinni

    To analyze the error, proceed as follows:
    1. Is an account displayed in the sales and distribution document in the condition detail screen (for example, condition PR00) ? Is there a cost element in this account and are you allowed to post sales revenue to it? (cost element category) If the answer is yes, then proceed to 5. If no, then proceed to 2.
    2. Check the relevancy for billing of the sales and distribution document item in Customizing (-> Sales and distribution -> Sales -> Sales documents -> Sales document item -> Define item types).  If 'Not relevant for billing' is entered, correct this.  This will probably clear the error. If 'I' (according to billing plan) is entered, the system only updates sales revenues if billing plan dates exist in the sales document.
    3. Check in Customizing that a billing type is assigned to your sales document type (-> Sales and distribution -> Sales -> Sales documents -> Sales document header -> Define sales document types). The billing type can be found in the 'Billing document' block. The relevant billing type depends on the defined relevancy for billing (see point 2). If no billing type is entered, enter one.  This will probably clear the error.
    4. Check in Customizing that an account determination procedure is assigned to the billing type determined in step 3 (-> Sales and distribution -> Billing -> Billing documents -> Define billing types). If no account determination procedure is entered, enter one. This will probably clear the error. If an account determination procedure has already been assigned, the error is probably caused by an incorrect structure of this plan. Check the plan.
    5. You will probably not be able to correct this error yourself. However, you can provide some information beforehand. Enter parameter MCL in your user master record and valuate it with 'X' (upper case) (-> System -> User profile -> User parameters). You activate an user-specific TRACE function this way.
    6. Change, for example, the pricing date or item value in the quotation or sales order and save the change.
    7. Execute Transaction MC30 for your user ID (/NMC30). You now see a list of all data structures that were set up for the Logistics Information System (LIS) in step 6. Check whether structure S008 is contained in this list. This information is required to further analyze the error.
    8. If structure S008 is contained in the MC30 log, call Transaction SA38, program name RKPSSHOW, -> Execute (F8), enter the number of the affected sales and distribution document and press -> Execute (F8) again. The output list (or the fact that no list is generated) is also needed for analysing the error further.

  • Updating a sales order through DI API

    Hi All,
         I have an issue regarding updating a sales order.
    The problem is:
      If there r 2 items(A00001&A00002) existed in the sales order and if I am adding two more items(A00003 & 4)the sales order is updated in a fashion that first item is replaced with third item and forth item is added as last record.The items to that particular sales order after updating will be like this(A00003,A00002,A00004).My doubt is why the 3rd item is replaced with first record.I am sending the code also i have written.
    objRecordSet = SBOCOMUtil.newRecordset(company);
                          IDocuments  oOrder =SBOCOMUtil.newDocuments(company,SBOCOMConstants.BoObjectTypes_Document_oOrders);
                                  objRecordSet.doQuery("select DocEntry from ORDR where DocNum=" + 1111);
                                  DocEntryL =objRecordSet.getFields().item(new String("DocEntry")).getValueInteger().intValue();
                          str += DocEntryL;
                          System.out.println(DocEntryL);
                          if (oOrder.getByKey(new Integer(DocEntryL))) {
                                  //objRecordSet2.doQuery("delete  from rdr1 where DocEntry="+DocEntryL);
                                  str += "2";
                                  System.out.println(str);
                                  //oOrder.remove();
                                  oOrder.setDiscountPercent(new Double(5));
                                  oOrder.setComments("success");
                                  System.out.println(str);
                                  IDocument_Lines oOrderLines = oOrder.getLines();
                                  str += "3";
                                  String[] item={"A00005","A00006"};
                                  for (int counter = 0; counter < item.length; counter++) {
                                       //  oOrderLines.setCurrentLine(new Integer(counter));
                                         if (counter > 0)
                                                 oOrder.getLines().add();
                                         str += "4";
                                  oOrderLines.setItemCode(item[counter]);
                                  System.out.println(item[counter]);
                                     //oOrderLines.setBaseType(new Integer(-1));
                                     //oOrderLines.setBaseEntry(new Integer(0));
                                   //oOrder.getLines().setCurrentLine(new Integer(counter));
                               //oOrderLines.setQuantity(new Double(1));
                                         //oOrderLines.setPrice(new Double(1500));
                                         //oOrderLines.setCurrency(strCurrency[counter]);
                                         //oOrderLines.setLineTotal(new Double(dblLineTotal[counter]));
                                  str += "5";
                                  //oOrder.getLines().getUserFields().getFields().item("Quantity").setValue(new Integer(2));
                                  System.out.println(str);
                                  int result = oOrder.update();
                                  str += "6" + result;
                                  if (result == 0) {
                                         System.out.println("successfully updated");
                                         company.disconnect();
                                  } else {
                                         company.getLastErrorDescription();
                                         System.out.println(
                                                 "Error :" + company.getLastErrorDescription());
                                         company.disconnect();

    If you are using SBP 2004 there are many threads on this forum talking about bugs when updating sales order lines through DI API. This issue was supposed to be fixed with patch level 45 for 2004 which was recently released.
    If u are using 2005 or SP1 I think you may have found a new bug.

  • Need no document flow update for sales order create with reference

    Dear All.
    We would like to have the ability to create a sales order with reference to another sales order, and have the document flow of the sales order not updated.
    Unlike the case of a standard create with reference where the documents are linked, in this case there is no relationship between the documents.  The first document is just acting like a template for the remaining documents, to save time during order entry.
    We have turned off update of document flow at the line item level.
    But I don't see a way for us to turn this off at the header (document level).  So wondering if there's another way to turn this off, or possibly through user-exit or VOFM requirement?
    Has anyone else done this?
    I think that CRM has this functionality, but we're still entering orders through ERP-SD.
    Many Thanks!

    Hello Colleague;
    The issue you have reported is SAP standard.  The checkbox "Update Document Flow" (V_TVCPAAP-UPFLU) controls document flow at item level.  If this checkbox is set to blank, there will be no document flow at item level.
    However, the document flow cannot be completely turned off - if the 'update document flow' indicator is blank, you will still see an entry in the document flow, but there will be no update to table VBFA (Sales Document Flow) and the document flow of the predecessor will not be updated at item level (no record in VBFA at item level).                                                                               
    The reason is that the system checks VBAP (Sales Document: Item Data) for fields VGBEL (Document number of the reference document) and VGPOS (Item number of the reference item) for values.  You will always have document flow information on header and item level in the successor because it stores this information in table VBAP.                                                                               
    Related with this issue, you can find a Note 53383 for your review.
    I hope it can clarify the case.
    Regards
    Ruy Castro

  • Approval process when updating a Sales Order

    I have created a UDF that specifies whether a Sales Order has been "Picked" and would like to ensure that a user cannot modify the Order after this change of status without an Approval. I have my SQL code and it works properly but only when the Sales Order is created and does not get triggered when it gets modified.
    Thanks, Richard.

    This is far more complex to implement and can hamper the performance. 
    FYI.  The user updating the Sales Order can be only found in the ADOC (History table)
    SELECT TOP 1 T0.DocNum AS 'Document Number', T0.UserSign AS 'User Signature', T0.UpdateDate AS 'Update Date' FROM  ADOC T0  WHERE T0.ObjType = N'17'   AND  T0.DocEntry = @list_of_cols_val_tab_del AND T0.UserSign != 1 ORDER BY T0.UpdateDate DESC
    Apart from the aboce, you have to also check in the ADOC table, the Update datetime with the Update datetime of the sales order and the updated field. You have to test this thoroughly before implemting
    Suda

  • Reg : NO UPDATE OF SALES ORDER FROM PO erroer I0 114

    hi experts,
    while creation of PO with reference to PR,user gets error " NO UPDATE OF SALES ORDER FROM PO erroer I0 114 ".
    What could be the reason for this error?any idea...
    rgrds...

    Hello Jurgen,
    here the error message is " NO UPDATE OF SALES ORDER FROM PURCHASE ORDER  error I0 114 " .
    is there any solution for this issue.user looks frustrated because its working for one PO and the next PO its showing error.
    Rgrds.....

  • No update of sales order from purchase order

    Hi,
    When I am trying to change the delivery date of a purchase order line item, I get the error
    "No update of sales order xxxxx from purchase order (error V1 348)" How can I resolve this?
    Sincerely,
    Ketan

    Hi,
    Check whether this PO is created w.r.t. PR and PR is created automatically during Sales order creation.
    If it is so then need no to change the delivery date in PO, it will always get updated as per the Schedule Line date of sales order.
    You can go for GR w.r.t. PO directly.

  • Exchange rate automatic update in Sale Order

    Dear All,
    This is regarding Exchange rate automatic update in Sale Order and requirement said below.
    Process:
    User will created a Export Sale order in the month of November , that time Exchange rate is 50.00, this  will
    get updated in Sale order Header and Item level.
    But user will create billing in the month of December , at that time Exchange rate is 40.00. So in Billing
    document Header level exchange rate will be 40.00 (Current rate) and Item level exchange rate will be
    50.00.
    Requirement:
    User requirement is like this the current exchange rate 40.00 to be updated in Sale Order Header and Item
    level automatically, because user using  Sale order Exchange rate  for Z-Report.
    As of now user manually updating Exchange rate in Sale Order.
    Let me know if there is any solution.
    Regards
    S Kumar

    I dont think this is possible.  You should be aware any change in subsequent document would not have any impact in the preceding document which means, whatever exchange rate flowing in billing cannot be updated in sale order.  May you can update your zee table by considering the billing document exchange rate by way of exit.
    thanks
    G. Lakshmipathi

  • Revised Price Updation in Sales Order

    Hi Gurus,
    I have 1000 Open Sales order to update revised price (Sales Orders created with backdated ).
    I have updated all Sales Orders pricing date with revised pricing date(using MASS tcode MASSSDHEAD_S-PRSDT) and all Sales orders revised pricing date is updated.
    After i ran the VA05 and selected my desired Sales Orders and EDIT->Mass Change->New Pricing.
    After this activity, system deleted old basic price in Sales order and nothing is updated.
    Can you please suggest me how to update.
    Regards
    SK

    In program MV75AF01_OKCODE_MPRF, field SY-UCOMM must be saved.
    Please refer following SAP Note for further details:
    - Note 189121 - Mass change new pricing does not function
    Regards
    JP

  • Financial Document not updated with Sale Order Number

    Hello,
    I wish to update the Financial document posting from the billing document with the Sales order and line item number against the revenue account.
    This is not populating in COBL-KDAUF. 
    I have seen some other messages concerning this, but none with answers. 
    Is this possible, I assume it is. 
    If so, are there any other necessary settings? 
    We are not using CO-PA, and I can get the reference number & /or allocation field to populate with the sales order number but not line item.  But I want the coding block filled so that BSEG VBEL2 is populated.

    Hi Roger,
    In the situation that you have a 1:1 relation this is possible with a substitution and look then to the order in the first line from the invoice.
    Where you can have a look to is the sumarization in FI and CO.  TC OBCY for VBAK and VBRK.
    Example:
    When you have 2000 posting lines in an invoice the system can create 1 posting line by used G/L account
    With this transaction you can set-up that there is create one posting line by:
    (G/L account)
    Sales order number
    You have first to look how your set up is. (perhaps when this is set-up correct you have already the order number in the field).
    Paul

  • Statistic condition values not updated during Sales order Settlement

    Hi,
    In our client we have different Price condition types for based on scenario wise. Ex: Domestic Sales (ZPR1) and Export Sales ZPR2. I have maintained separately value fields for each price condition types.
    We are booking some financial charges, and interest on working capital etc., this cost we need to transfer to COPA each Material wise based on sales revenue.
    For this purpose we have created one COPA Assessment Cycle.  Tracing factor is Sales Revenue and receiver is Materials.
    In COPA Assessment cycle we can give only one base means ZPR1 related value field or ZPR2 related value field.
    For this reason we have created one new statistic condition type,  what is amount there in ZPR1 that amount will updated automatically in statistic condition place and so that we can give once one trance factor in COPA Assessment Cycle. We have assign this statistic condition all pricing procedure
    Now my problem is in MTS scenario statistic condition values updated correctly. But in MTO scenario sales order settlement time statistic condition values not updated.
    So is it possible update during sales order settlement time statistic condition values.
    Please give me suggestion.
    Regards,
    Thiru

    Hi Ajay Sir,
    As you said is correct.
    But in our client we have around 9 Plants and each plant manufacturing product are different. Client Requirement is in COPA Report they need see each product wise sales revenue. In this way we mapped product wise value field.  System already mapped one guy in this way earlier. Now I am doing some changes for relevant to month end activities.
    Some financial changes transfer to COPA each plant wise on Material. Here sender is cost center and receiver is Material. Base is Sales Revenue.
    Please suggest me is there any alternative.
    Regards,
    Thirumalesh .

  • Problem with Sales Order BAPI  Update...Very Very Urgent....Pls Help me out

    I am trying to update the sales order text using "BAPI_SALESORDER_CHANGE" But i am getting an error as " Sold-to party E455 not maintained for sales area E901 C1"
        I passed the sales order no, and the text to be upated and the Update flag is set to "U".
        When i try giving the same values in se37 it updates the sales order text successfully but when i use the same BAPI in the report i am getting the above error. Can anyone pls help me out.

    hi
    the message is very clear that the sold to party ur refering is not from the same sales area. if u have the customer already then extend the same to the said sales area, by common division and distribution channel
    <b>reward points</b>
    Regards

  • Disable to update a sales orders

    Hi
    How can i disable the update a sales order if some one try to change project field? Can i use the SPO_TransactionNotification?
    I could not find a way to work in the sp. So i´m asking if someone already had the same situation and can help me.
    Kind Regards
    Margarida Pedroso
    Edited by: Margarida Pedroso on Jan 27, 2010 1:03 PM

    Hi Margarida,
    if your requirement is to prevent users from updating existing sales orders, you can do that within the application:
    Admisnistration -> System Initialisation -> Document Settings -> By document -> select 'Sales Orders' -> remove the tick in the checkbox 'Allow changes to existing orders'.
    All the best,
    Kerstin

Maybe you are looking for

  • Installed software update, now open applications are not appearing in Dock. Help??

    I installed the newest software update from Apple last week and ever since then when I open an application, the icon doesn't appear in the Dock. It's becoming a problem because I have multiple programs running, which is slowing down my computer, but

  • Rightfax MP for SCOM 2012

    Hello, I would like to monitor the rightfax environment in SCOM 2012. Is there any one help to provide ideas to monitor the same? I'm unable to locate the mp for the same. Regards, Vijay

  • Bridge CS5 viewing InDesign Thumbnails on Facing Pages

    When I recently upgraded to CS5 the view that I can see into InDesign files (from Bridge) changed. Specifically, if I want to look at a document with facing pages the Bridge thumbnail only shows the left-hand page. I need to see both sides of the doc

  • Problem opening documents

    When I try to open a pdf document sent to me with more than 1 page, only the first page appears.  2nd and later pages are blank, with a message stating "There was a problem reading this page (109).  Any ideas what to do? Same problem happens with Ado

  • Table RSTHIERNODE?

    HI Everybody, There is an ABAP program to load Cost Element Group attribute of Cost Element. There is a hierarchy table maintained. The program takes nodeid for Costelement, identifies parentid and its nodename. This is taken to identify the TXT from