Error in adding Sales Order

Hello Experts,
I have created a addon through which in Sales Order while entering the quantity and then pressing tab in qty column automatic Batch allocation is done row wise for items . This process is working fine while entering .
But from last two days while adding the Sales order with batch allocated sap is throwing an error message that
"Another User has altered the quantity of Batch B01 in Warehouse SYD in row - 11"
This is not my addon error message .This error is thrown by SAP which has blocked the Sales Order Entry.
Sales Order is not getting added in any case.
I am confused about what to do with this .Since this problem need to be resolve urgently .
Please help me regarding this.
thanks ,
Amit

Hi,
Can you please tell me how you solved this?  I'm experiencing the same error.
Thanks
Mike

Similar Messages

  • Error while processing sales order as factory calendar missing.

    "factory calendar missing or error in factory calendar".iam getting this error while processing sales order even though i have assigned it to shipping point and plant and sales org.

    Hi Malik, How are you? I'm sorry to trouble you,
                   Let me introduce, I'm Daniel, and I saw your fantastic asnwer in
    the topic "How to update Factory Calendar in SRM", and might I have the same
    problem. It's with the "factory calendar".
    In transaction va02 when I choose a Delivery Date, and I sent it to process, as
    a result in the "shipping tab" it calculated to the first item one date, and to
    the rest one date different.  I don't know What it happen?
    I debugged the program and I saw that to the first item use to calculate the
    date is the function  'APO_SCHEDULING', and to the rest item use
    'SD_SCHEDULING', and until here I come.
    How can I do to what the dates calculated are the same? or What would be the
    problem?
    I need the dates calculated are equal.
    I looked at it's using two "factory calendar" which are "J4" and "C2". Is this
    correct?
    Thanks In Advance,
    My best regards,

  • Error while create sales order

    Hi,
    Please help.
    I am facing error while create sales order.
    No item category available (Table T184 OR VERP  )
    Message no. V1320
    Diagnosis
    No item category could be determined for the combination OR VERP .
    System Response
    The system does not allow further processing of this item.
    Procedure
    Check the entries in table T184 by means of which item category determination is controlled.
    If you do not have the authorization to do this yourself, contact your system administrator.

    Hi,
    Check in spro whether Item categorygroup VERP is assigned to sales document type.if not assign.
    Path
    SPRO-SD-sales-sales douments-sales document item-assign item categories.

  • Commit error while transferring Sales order Document to GTS

    Hello,
    We faced a transfer error while transferring sales order document to GTS.
    When I debugged the code function /SAPSLL/API_6800_SYNCH is called. In this function, /SAPSLL/CUHD_MAINTAIN_SINGLE is called with parameter lv_no_commit = 'X'. When I checked why its value is 'X', I saw that if the RFC destination and the current system are the same, then lv_no_commit = 'X', (means if the R3 and the GTS are in the same server, same client.) In debug mode I set the value of lv_no_commit to space, and then it works. It creates the GTS document.
    We are also transferring billing documents and it works fine. When I checked what is the difference between transferring sales order document and transferring Billing document, I saw that in the transferring billing document there is another function is called /SAPSLL/API_6800_CSD_SYNCH, and it's calling parameters(in background, as seperate unit) are different from calling parameters of /SAPSLL/API_6800_SYNCH. You can see the difference below.
    For sales document transfer :
        CALL FUNCTION '/SAPSLL/API_6800_SYNCH'
          DESTINATION cs_transfer-rfc_dest
    For billing document transfer :
        CALL FUNCTION '/SAPSLL/API_6800_CSD_SYNCH'
          IN BACKGROUND TASK
          DESTINATION cs_transfer-rfc_dest
          AS SEPARATE UNIT
    So my question is, do you think is it a sap standard program error, or is there any suitable settings in the customizing or SM59 to fix this error?
    Thanks in advance
    Serhat
    Edited by: Serhat Dirihan on Jan 22, 2009 11:46 AM

    Dear Serhat,
    I don't think this is an RFC problem or an error. But you wrote:
    When I checked why its value is 'X', I saw that if the RFC destination and the current system are the same, then lv_no_commit = 'X', (means if the R3 and the GTS are in the same server, same client.)
    It is impossible to have GTS and R/3 on the same system and same client. At least the client should be different. So try to check why the call is performed like that.
    Balazs

  • Customer error message in sales order on save

    Hi Friends,
    as per requirement i have to raise the error message and system should enable the field to change values. This should happen when condition is not met on Saving of Sales order.
    For this, i have used the user exit USEREXIT_SAVE_DOCUMENT_PREPARE. But the problem is system throwing error message and all r in display mode only. as per my requirement system should allow to change the error value field.
    i have verified many posting in this SDN, but nothing is working out.
    Please guide me, how to raise the error message and system should enable that filed.
    My doubt is where should i raise the error message in sales order (MV45AFZZ)??? if any badi to raise the error message also fine for me. I tried many ways like... message with display like..... and set / get parameters and badis....  but not able to find the correct solution.
    Thanks in Advance.
    Bala

    Hi
    You need to use check for enahcement spot, which will be help to you.
    Bcz you are throwing custom error message in the standard transaction, once the error is display, you could not able to change the values. your prob can be solved by using the enhancement sport.
    This is include name (Include:MV45AF0B_BELEG_SICHERN).
    In the above include, you need to create a enhancement spot after this spot (ENHANCEMENT 16  OI0_COMMON_SAPMV45A.)  
    write your custom code and while displaying an error message. set flag = 'x', then use below code. It will display error message once you press ENTER, you will get the sale order in change mode, you change the values.
      IF flag = 'X'.
              fcode = fcode_gleiche_seite.
              perform fcode_bearbeiten.
              ch_subrc = 4.
              exit.
            ENDIF.

  • Getting runtime error while doing sales order

    Hi,
    I am getting a runtime error while doing sales order.
    Error : SAPSQL_INVALID_FIELDNAME
    Kindly suggets....stuck up badly.
    cant do any transaction.
    Regards
    Kishan

    Hello,
    Check OSS Note#209847 and 310304
    Regards,
    Gauravjit.
    Reward points if the notes are helpful

  • Sales order line item delete error for MTO sales order

    Dear Experts
    iam facing below error for MTO sales order line item deletion
    "For reasons of cost management, item 000040 cannot
    be deleted"
    Please help
    Regards,
    KEdar

    It looks you try to delete the sales order line item and you get this error message.
    Try to put reason for rejection for the line item and save the order. This is equal to deleting the line item.
    You can also refer the OSS note 14097 - Order item cannot be deleted/overwritten for further information.
    Regards,

  • Error adding Sales order via DI-SERVER Posting Date deviates from the defin

    When adding a sales order via the DI-API we have started receiving the following error:
    Error: Posting Date deviates from the defined range. To complete the operation, define the posting period to match the entered Posting Date. [(----) 131-204]
    I have verified that the posting dates within the document exist within the defined posting periods in SAP and that the posting period in question is unlocked.
    I can add the document within the SAP B1 interface without any issues.
    This process and code was also working up until the start of the new financial year.  There have been no changes to the code or the financial periods in the new year.
    There is a  peculiarity with the financial periods for this company in that they have moved from calendar periods in the past to financial periods.  Has anyone come accross any issues with posting dates and the DI SERVER API?
    The dates in the XML document that we are trying to add are shown below.
    <Documents>
    <row>
    <DocDate>20100310</DocDate>
    <DocDueDate>20100310</DocDueDate>
    <CardCode>C9999</CardCode>
    The following are the financial period values from OFPR
    Posting Date From/To:       06.03.10     02.04.10
    Due Date From/To:            01.01.10     01.04.11
    Document Date From/To:  01.01.10     02.04.10
    Start of Fiscal Year:         01.01.10
    Regards,
    Sean

    Hi Gordon,
    Our customer has moved their financial year end from 1 April / 31 March using calendar months to a 4/4/5 financial period model with a year start date from Jan.
    This was necessary after the company was purchased by a US firm that wanted to align the reporting calendars.
    Under the 4/4/5 model their financial year start date does not start 1st January. Hence the 3/1/2010 being the first date of the January period.
    No matter how the periods are setup the financial year start date in SAP Business One cannot be anything other than the 1st of the month.
    All posting within SAP appears to be working fine, it is only via the DI SERVER requests that we seem to be having problems.
    However, we suspect that the issue may be unrelated to the posting periods due to some other testing performed.
    Regards,
    Sean

  • Error while updating Sales Order : Another user Modified Table (RDR1 )

    Hi All,
    I am getting an error message while running the following steps.
    Steps
    1)     Pull an entry from sales order.
    2)     Add new data to line.
    3)     Update the sales order.
    a)     Sap updated the data.
    b)     Through code using DI API we updated some UDF.
    4)     With out closing / Pressing OK button…
    5)     We added new data to line.
    6)     Then Press update.
    An Error will through by B1 as “Another user modified the table(RDR1 ).” Before going to the code where we are handling the update of UDF.
    But after the 3rd step above when we do
    4) Close the window or pressed ok
    5)  take the sales order window again pull the data
    6) Add new Data to line.
    7) Update sales order then it will go smoothly.(Updating by B1 and from code )
    Can anybody tell me why this happens?And any workarounds to solve this?
    Deepesh

    are u adding a matrix row thru the code? I get this error when I am adding rows and I get the rownumber out of sync.
    if so get the max (lineid) from rdr1 and then check against the matrix.rowcount before adding a row. if lineid is greater that matrix.rowcount take lineid + 1 and assign it to the matrix.row, else take the rowcount + 1
    if not, and as a workaround, then you can try using the SBO_SP_transactionnotification stored procedure.

  • Error while sending sales order form by fax

    hi,
    Sending Sales order by fax is not working. While adding output type for Sales order choosing device as 'FAX' is throwing an error saying that 'Error while sending fax with SO_OBJECT_SEND, return code 9'.  Anything needs to be configured or we have to code anything in SAPScript program. Please advise.

    Hi Harry,
    You don't need to write any particular code for sending FAX in SAPscript. But you may need to check some configurations regarding it.
    We configure SCOT to send Fax and mails to outside SAP. Check SAP Note 455140 for the configuration of SCOT tcode.
    Please refer this link [Sending FAX |Sending FAX from SAP;
    It might be helpful.
    Thanks,
    Daya.

  • Adding Sales Order with multiple lines

    Hi all,
    I have a C# program whereby I am trying to get Sales Orders from one database (source) and create them in another database (destination). I can't get the code to work properly as lRetCode is never equal to 0 but is -5002.
    How can I fix it so that it adds the sales orders properly?
    Here is the code snippet:
                unaddedSOs = sList.Except(dList).ToList(); // contains the header information
                // Add the Sales Orders that are missing to destination database
                SAPbobsCOM.Documents sboSO =   (SAPbobsCOM.Documents)oCompanyDestination.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);  // Destination
                // Loop through unadded Sales Orders
                foreach (var item in unaddedSOs)
                    // Set properties of the Sales Order object
                    sboSO.CardCode = item.cardCode;
                    sboSO.CardName = item.cardName;
                    sboSO.DocDate = item.docDate;
                    sboSO.DocDueDate = item.docDueDate;
                    // Add Sales Order Document Lines
                    SAPbobsCOM.Recordset rsLines = oCompanySource.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset); // Source of lines
                    // Get Sales Orders from source database
                    rsLines.DoQuery("SELECT ItemCode, Quantity, Price FROM RDR1 WHERE DocEntry = '" + item.docNum + "'");
                    rsLines.MoveFirst();
                    if (rsLines.RecordCount > 0)
                        while (!rsLines.EoF)
                            sboSO.Lines.ItemCode = rsLines.Fields.Item("ItemCode").Value;
                            sboSO.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
                            sboSO.Lines.Price = rsLines.Fields.Item("Price").Value;
                            sboSO.Lines.Add();
                            rsLines.MoveNext();
                    // Try to add the Sales Order to the database
                    int lErrCode = 0;
                    string sErrMsg = "";
                    int lRetCode = sboSO.Add();
                    if (lRetCode != 0)
                        int temp_int = lErrCode;
                        string temp_string = sErrMsg;
                        oCompanyDestination.GetLastError(out temp_int, out temp_string);
                        // Incase adding a Sales Order failed
                        if (lErrCode != -4006)
                            // Display error message
                            MessageBox.Show(lErrCode + " " + sErrMsg);
                MessageBox.Show("Done!!!");
    Kind Regards,
    Kinyanjui.

    Hi Kinyanjui,
    I think you're always writing to the same line:
    int row = 0;
    while (!rsLines.EoF)
        sboSO.Lines.SetCurrentLine(row);
        sboSO.Lines.ItemCode = rsLines.Fields.Item("ItemCode").Value;
        sboSO.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
        sboSO.Lines.Price = rsLines.Fields.Item("Price").Value;
        sboSO.Lines.Add();
        rsLines.MoveNext();
        row++;
    Best regards,
    Pedro Magueija

  • While adding Sales Order

    Hi,
    I need to add sales orders through my add-on.
    I could add the sales orders.
    But, when I'm adding lines to the sales order, I'm getting the following issue:
    "There is a difference between the document total and its components.[Sales Order - Rows-Warehouse Code ][line 0] [Message 439 - 133]"
    This error occurs only for some of the sales order lines, others are getting added.
    Please help me with this.
    Regards
    Mohana

    For your information, I have the same problem and  I do GetByKey a Sales Order set the DownPaymentAmount either I set it to DocTotal or any other amount I get the error
    Edited by: Marc Roussel on Nov 10, 2010 3:02 PM
    Edited by: Marc Roussel on Nov 10, 2010 3:03 PM

  • Problem adding sales order with freight since 8.8 pl 20 (and 8.81 pl 0)

    Dear All,
    Since the upgrade to 8.8 patch 20 I have a problem with adding a sales orders with freight (expensecode 1 does exist!) through the XML import of (the same problem with 8.81 pl 0).
    This is the XML:
    <BOM>
         <BO>
              <Documents>
                   <row>
                        <DocType>dDocument_Items</DocType>
                        <DocDate>20110328</DocDate>
                        <DocDueDate>20110328</DocDueDate>
                        <CardCode>INT_C_PenS</CardCode>
                   </row>
              </Documents>
              <Document_Lines>
                   <row>
                        <ItemCode>10000024</ItemCode>
                        <ItemDescription>Afvalbak CONSTRUCTO 50</ItemDescription>
                        <Quantity>4.00</Quantity>
                        <ShipDate>20110328</ShipDate>
                        <DiscountPercent>20.00</DiscountPercent>
                        <UnitPrice>528.00</UnitPrice>
                        <LineStatus>bost_Open</LineStatus>
                        <LineType>dlt_Regular</LineType>
                   </row>
              </Document_Lines>
              <DocumentsAdditionalExpenses>
                   <row>
                        <ExpenseCode>1</ExpenseCode>
                        <LineTotal>64.00</LineTotal>
                   </row>
              </DocumentsAdditionalExpenses>
         </BO>
    </BOM>
    When the DocumentsAdditionalExpeses part is deleted then there is no problem.
    The error with the DocumentsAdditionalExpeses is 'Internal error accured'.
    Can anyone confirm that this not is working through XML import (DTW works) or is there a solution?
    Thanks and best regards,
    Wim Kleinsman

    Hi,
    Try this one.
    <BOM>
    <BO>
    <Documents>
    <row>
    <DocType>dDocument_Items</DocType>
    <DocDate>20110328</DocDate>
    <DocDueDate>20110328</DocDueDate>
    <CardCode>INT_C_PenS</CardCode>
    </row>
    </Documents>
    <Document_Lines>
    <row>
    <ItemCode>10000024</ItemCode>
    <ItemDescription>Afvalbak CONSTRUCTO 50</ItemDescription>
    <Quantity>4.00</Quantity>
    <ShipDate>20110328</ShipDate>
    <DiscountPercent>20.00</DiscountPercent>
    <UnitPrice>528.00</UnitPrice>
    <LineStatus>bost_Open</LineStatus>
    <LineType>dlt_Regular</LineType>
    <ExpenseCode>1</ExpenseCode>
    <LineTotal>64.00</LineTotal>
    </row>
    </BO>
    </BOM>
    Regards,
    Siva

  • Error while running sales order

    HI ...ALL ..
    In va01 while creating sales order for particular sales area , one error message is coming that material is not maintained in particular storage location . It is actually a scrap material .And in its material master view storage location is not maintained ....
    Pls advice ...

    Hello Sundar,
    Please try creating the storage location view in MM02 and also check if th4e storage location is added under MMSC for that particular material...
    Check whether material is extended in that SLOC or not ?
    Hope this helps...
    Robin.

  • Adding Sales Order Lines repeating for all orders

    I have a C# program whereby I am trying to get Sales Orders from one database (source) and create them in another database (destination). I asked a question on how to set the current line and was helped.
    The only problem now is that for all Business Partners, the lines being added are all the same (i.e. with the same row numbers and details as the first Sales Order to be entered)
    Source database (TCount represents the number of lines in the document & the DocNum each separate sales order)
    Destination database (compare columns with above)
    As you can see the rows of Source docnum 6 are repeated in the destination table always
    How can I fix it so that it adds the sales orders properly? My code snippet below:
    unaddedSOs = sList.Except(dList).ToList();
                // Add the Sales Orders that are missing to destination database
                SAPbobsCOM.Documents sboSO = (SAPbobsCOM.Documents)oCompanyDestination.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);
                if (unaddedSOs.Count > 0)
                    // Loop through unadded Sales Orders
                    foreach (var item in unaddedSOs)
                        // Set properties of the Sales Order object
                        sboSO.CardCode = item.cardCode;
                        sboSO.CardName = item.cardName;
                        sboSO.DocDate = item.docDate;
                        sboSO.DocDueDate = item.docDueDate;
                        // Add Sales Order Document Lines
                        SAPbobsCOM.Recordset rsLines = oCompanySource.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                        // Get Sales Orders from source database                   
                        rsLines.DoQuery("SELECT ItemCode, Quantity, Price FROM RDR1 WHERE DocEntry = '" + item.docNum + "'");
                        rsLines.MoveFirst();
                        if (rsLines.RecordCount > 0)
                            int row = 0;
                            while (!rsLines.EoF)
                                sboSO.Lines.SetCurrentLine(row);
                                sboSO.Lines.ItemCode = rsLines.Fields.Item("ItemCode").Value;
                                sboSO.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
                                sboSO.Lines.Price = rsLines.Fields.Item("Price").Value;
                                sboSO.Lines.Add();
                                rsLines.MoveNext();
                                row++;
                        // Try to add the Sales Order to the database        
                        int lRetCode = sboSO.Add();
                        if (lRetCode != 0)
                            int temp_int = lErrorCode;
                            string temp_string = sErrorMsg;
                            oCompanyDestination.GetLastError(out temp_int, out temp_string);
                            // Incase adding a Sales Order failed
                            if (lErrorCode != -4006)
                                // Display error message
                                MessageBox.Show(lErrorCode + " " + sErrorMsg);
                MessageBox.Show("Syncing Complete!!!");
    Any help appreciated,
    Regards Kinyanjui

    Hi Kinyanjui,
    Are you using the same SO for all unadded orders?
    unaddedSOs = sList.Except(dList).ToList();
    // Add the Sales Orders that are missing to destination database
    if (unaddedSOs.Count > 0)
        // Loop through unadded Sales Orders
        foreach (var item in unaddedSOs)
            SAPbobsCOM.Documents sboSO = (SAPbobsCOM.Documents)oCompanyDestination.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);
            // Set properties of the Sales Order object
            sboSO.CardCode = item.cardCode;
            sboSO.CardName = item.cardName;
            sboSO.DocDate = item.docDate;
            sboSO.DocDueDate = item.docDueDate;
            // Add Sales Order Document Lines
            SAPbobsCOM.Recordset rsLines = oCompanySource.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
            // Get Sales Orders from source database               
            rsLines.DoQuery("SELECT ItemCode, Quantity, Price FROM RDR1 WHERE DocEntry = '" + item.docNum + "'");
            rsLines.MoveFirst();
            if (rsLines.RecordCount > 0)
                int row = 0;
                while (!rsLines.EoF)
                    sboSO.Lines.SetCurrentLine(row);
                    sboSO.Lines.ItemCode = rsLines.Fields.Item("ItemCode").Value;
                    sboSO.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
                    sboSO.Lines.Price = rsLines.Fields.Item("Price").Value;
                    sboSO.Lines.Add();
                    rsLines.MoveNext();
                    row++;
            // Try to add the Sales Order to the database     
            int lRetCode = sboSO.Add();
            if (lRetCode != 0)
                int temp_int = lErrorCode;
                string temp_string = sErrorMsg;
                oCompanyDestination.GetLastError(out temp_int, out temp_string);
                // Incase adding a Sales Order failed
                if (lErrorCode != -4006)
                    // Display error message
                    MessageBox.Show(lErrorCode + " " + sErrorMsg);
            Marshal.ReleaseComObject(sboSO);
            GC.Collect();
    MessageBox.Show("Syncing Complete!!!");
    Best regards,
    Pedro Magueija

Maybe you are looking for

  • ADF Issue with Tree Table , Child Row not getting rendered.

    Hi All, I am trying to show a single Level Master-Detail Table via ADF Tree Table. I have MasterVO : InventoryVO (1 SubInventoryCode) DetailVO: SubInventoryVO (n :SubInventoryCode) Both VOs are SQL query based VO with bindVariables. I have a viewLink

  • VAT report - upload historical data

    Hi, The "VAT register Poland" report has been issued for July & August. I have carried out a master data change (for VAT register no.) and I need to re-produce the VAT reports for these 2 months. Can I re-run the report? Will it pick up the modified

  • Adding a second iPhone 5 to another iPhone 5 preorder plan

    Currently, I have an iPhone 4 on AT&T, and when I pre-ordered my iPhone 5 I decided to switch to verizon. So I ordered the CDMA version of the iPhone 5 and selected to create a new plan, and checked out and my iPhone was ordered. But now my brother w

  • 5002 Tax group account is missing

    I'm using the DI Server to add invoices, and I suddenly get "-5002 Tax group account is missing" whenever I try to make an invoice. What's strange, is that this occures only on one of my SAP-databases, whereas the others are ok. Luckily it's in a tes

  • How do I email a document?

    I have created a document and want to send it to a colleague by e mail.    When I hit File no Share option comes up, not is there an icon for this.   There always used to be!