Update sales opportunities with DTW

Hi Experts,
I am trying to update sales opportunities with DTW but get the error below even with a file as simple as:
RecordKEy;SequentialNo;OpportunityName
RecordKEy;SequentialNo;OpportunityName
1;17803;Anything
2;17892;Anything
3;17894;Anything
The Reason of the error:
"CServiceData::VerifyPropertyWrite failed: Property 'SequentialNo' of 'SalesOpportunities' is read onlyoSalesOpportunities"
Do you have any idea what may be wrong?

Dear Martin Kamau,
By SDK help, the Source table of SalesOpportunities Object is OOPR, and SalesOpportunitiesLines is OPR1.
In B1 application Sales Opportunity form, you could check which field need to set for OOPR and OPR1, you could refer to SDK help file also.
Best Regards
Jane Jing
SAP Business One Forums team

Similar Messages

  • Importing Sales Opportunities with DTW

    Hello,
    I am trying to import the sales opportunities with the DTW, but I keep on getting the following error
    potential amount is missing [OPR1.MaxSumLoc][Line: 1][Application defined or Object- definederroroSalesOpportunities]
    I am using SAP 2007A patch level 47.
    I have the following one line that I have been testing with, after my previous inputs failed. Please assist.
    RecordKey 1
    CardCode L1004
    ContactPerson 2
    Dataownershipfield 14
    SalesPerson 4
    Date 20090419
    Status sos_Open
    TotalAmountLocal 100.00
    Edited by: Martin Kamau on Apr 19, 2009 6:57 PM

    Dear Martin Kamau,
    By SDK help, the Source table of SalesOpportunities Object is OOPR, and SalesOpportunitiesLines is OPR1.
    In B1 application Sales Opportunity form, you could check which field need to set for OOPR and OPR1, you could refer to SDK help file also.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Update Sales Order with Text-Line and without regular Lines

    Hello Experts,
    i have a problem to update a Sales Order with no Item-Lines but with one Text-Lines or one Sub-Total-Lines.
    I get only the Error "The specified resource name can not be found in the image file", the %temp% are delete.
    i have testet with Methode: #updateDocWithSubDeletion, #Synchronnous Update, #Synchronous Insert with fallback to Update (i was desperate)
    my Scenario look like this:
    my Payload:
    i have allready testet with the part AdminInfo und QueryParams with the same Error.
    <Payload id="atom6" Role="X">
        <Documents xmlns="">
            <row>
                <DocNum>227780</DocNum>
                <DocType>dDocument_Items</DocType>
                <HandWritten>tNO</HandWritten>
                <Printed>psNo</Printed>
                <DocDate>20150423</DocDate>
                <DocDueDate>20150423</DocDueDate>
                <CardCode>61052</CardCode>
                <CardName>Durchlauf</CardName>
                <DocCurrency>EUR</DocCurrency>
                <DocRate>1.000000</DocRate>
                <DocTotal>0.000000</DocTotal>
                <Reference1>227780</Reference1>
                <JournalMemo>Kundenaufträge - 61052</JournalMemo>
                <PaymentGroupCode>-1</PaymentGroupCode>
                <DocTime>0819</DocTime>
                <SalesPersonCode>2</SalesPersonCode>
                <TransportationCode>-1</TransportationCode>
                <Confirmed>tYES</Confirmed>
                <SummeryType>dNoSummary</SummeryType>
                <ContactPersonCode>0</ContactPersonCode>
                <ShowSCN>tNO</ShowSCN>
                <Series>5</Series>
                <TaxDate>20150423</TaxDate>
                <PartialSupply>tYES</PartialSupply>
                <DocObjectCode>17</DocObjectCode>
                <DiscountPercent>0.000000</DiscountPercent>
                <DocTotalFc>0.000000</DocTotalFc>
                <RevisionPo>tNO</RevisionPo>
                <RequriedDate>20150423</RequriedDate>
                <CancelDate>20150523</CancelDate>
                <BlockDunning>tNO</BlockDunning>
                <Pick>tNO</Pick>
                <PaymentMethod/>
                <PaymentBlock>tNO</PaymentBlock>
                <MaximumCashDiscount>tNO</MaximumCashDiscount>
                <WareHouseUpdateType>dwh_CustomerOrders</WareHouseUpdateType>
                <Rounding>tNO</Rounding>
                <DeferredTax>tNO</DeferredTax>
                <NumberOfInstallments>1</NumberOfInstallments>
                <ApplyTaxOnFirstInstallment>tNO</ApplyTaxOnFirstInstallment>
                <DocumentSubType>bod_None</DocumentSubType>
                <Address2/>
                <UseShpdGoodsAct>tNO</UseShpdGoodsAct>
                <IsPayToBank>tNO</IsPayToBank>
                <DownPayment>0.000000</DownPayment>
                <ReserveInvoice>tNO</ReserveInvoice>
                <LanguageCode>9</LanguageCode>
                <SequenceModel>0</SequenceModel>
                <UseCorrectionVATGroup>tNO</UseCorrectionVATGroup>
                <DownPaymentAmount>0.000000</DownPaymentAmount>
                <DownPaymentPercentage>0.000000</DownPaymentPercentage>
                <DownPaymentType>dptInvoice</DownPaymentType>
                <DownPaymentAmountSC>0.000000</DownPaymentAmountSC>
                <DownPaymentAmountFC>0.000000</DownPaymentAmountFC>
                <VatPercent>0.000000</VatPercent>
                <ServiceGrossProfitPercent>0.000000</ServiceGrossProfitPercent>
                <OpeningRemarks/>
                <ClosingRemarks/>
                <RoundingDiffAmount>0.000000</RoundingDiffAmount>
                <ControlAccount>1200</ControlAccount>
                <InsuranceOperation347>tNO</InsuranceOperation347>
                <ArchiveNonremovableSalesQuotation>tNO</ArchiveNonremovableSalesQuotation>
                <ExtraMonth>0</ExtraMonth>
                <ExtraDays>30</ExtraDays>
                <CashDiscountDateOffset>0</CashDiscountDateOffset>
                <StartFrom>pdt_None</StartFrom>
                <NTSApproved>tNO</NTSApproved>
                <EDocGenerationType>edocNotRelevant</EDocGenerationType>
                <DownPaymentStatus>so_Open</DownPaymentStatus>
                <GroupHandWritten>tNO</GroupHandWritten>
                <CreateOnlineQuotation>tNO</CreateOnlineQuotation>           
            </row>
        </Documents>
        <Document_SpecialLines xmlns="">
            <row>
                <AfterLineNumber>-1</AfterLineNumber>
                <LineType>dslt_Subtotal</LineType>
                <LineText>Zwischensumme</LineText>
            </row>
        </Document_SpecialLines>
        <Document_Lines xmlns="">
            <row>
                <ItemCode>108044</ItemCode>
                <Quantity>0.01</Quantity>
                <FreeText/>
            </row>
        </Document_Lines>
        <TaxExtension xmlns="">
            <row>
                <NetWeight>0.000000</NetWeight>
                <GrossWeight>0.000000</GrossWeight>
                <StreetS/>
                <BlockS/>
                <BuildingS/>
                <CityS/>
                <ZipCodeS/>
                <CountyS/>
                <StateS/>
                <CountryS/>
                <BuildingB/>
            </row>
        </TaxExtension>
    </Payload>
    when I insert a new row with an ItemCode , it works
    Thanks and Best Regards
    Ronny

    Hi,
    why don't you create a simple scenario to export B1 Sales Order to XML File?
    Maintain the SalesOrder via B1 client UI and check the result in XML as exported to file.
    In the Sales Order xml file you can easily see how "AfterLineNumber" needs to be filled in segment "Document_SpecialLines" to achieve what you've entered via B1 client.
    Normally the LineNum for B1 Documents starts counting with 0 and if you need to add a subtotal line after a regular item row, the "AfterLineNumber" value should be 0.
    Best regards
    Bastian

  • Updating Sales Order via DTW

    Hi Experts
    I have approx 1200 sales orders on which I need to update a single UDF.  Can you tell me the format for the text file I should use to import/update in DTW?
    I have tried:
    RecordKey, DocNum, U_ReadyTD the DTW tells me that:
    Can not find this object in B1 Application-defined or object defined errors
    Thanks
    Jon

    UDF's can be updated using a SQL update query. Just be careful to update a UDF and not a SAP field - they don't like that
    e.g.
    update ordr
    set ordr.u_udf_field = 'value'
    where ....
    etc.
    Hope this helps.
    Regards,
    Simon

  • Updating Sales document with new sub sequent sales document

    Hello All,
    I am creating one sales contract from one sales document through some user exits and batch jobs.
    After creating this new sales contract i want to update this doc number in Old Referenced sales document flow.
    Is there any standard function module for this.. i tried some function modules containing FLOW..But no use..
    Thanks&Regards,
    Krishna.

    It is resolved..
    as I am using FM SD_SALESDOCUMENT_CREATE to create this contract i just updated the Reference document number in header structure...

  • Updating Sales order with BAPI_SALESORDER_CREATEFROMDAT2

    Hi All ,
    I am not able to Update two Zfields in vbap using FM BAPI_SALESORDER_CREATEFROMDAT2, In create mode I am able to save values into those fields .
    I have checked the fields in structures
                   ZZVBAP (append structure of VBAP)
                   ZZBAPE_VBAP (append structure of BAPE_VBAP)
                    ZZBAPE_VBAPX (append structure of BAPE_VBAPX)
                  ZZVBAPKOZ (append structure of VBAPKOZ)
                 ZZVBAPKOZX
    what could be the other reason for these zfields not saving in update mode .
    Thanks
    Vinay Kolla

    You can use implicit enhancement to include new fields to be added in BAPI. Because in BAPI, field by field mapping is there. just find FM "sd_salesdocument_create" and then find where ITEM details are to be filled.
    If you still have problem, reply back,,, because I just worked in thsi BAPI for same scenario.

  • Updating Sales Order Retrospectively with PGI figure

    Hi
    Does anyone know if there is a way of retrospectively updating sales order with the value that has actually been POST GOODS ISSUED
    Thanks
    Tony

    What do you mean by Value? does the Value of the item change during PGI?
    If you mean to say, quantity, then yes, After PGI, go back to your order and change the order qty = PGI qty.
    Regards
    Sai

  • Updating Items with DTW : error valid value

    hello,
    When I try to update one item with DTW I got one valid format error like this :
    "" is not a valid value for field "SellItem" the valid value are 'Y' 'Yes' 'N' 'No' application-defined or object-defined error65171.
    and this is my CSV file :
    RecordKey     ItemCode     ItemName     ItemsGroupCode     BarCode     SalesVATGroup     PurchaseItem     SalesItem     InventoryItem
        1;               AB1072;     IDE_CISL_HOBBY_1033;                  101     ;        5010356990356     ;  C4     ;Y     ;Y     ;Y
    So the same error came for the Last Three fields.
    Did someone have a solution ?
    JPL

    Hi Jean Pierre,
    Try entering the following values:
    yes: tYES
    no: tNO
    Case sensitive!
    Hope it helps,
    Adele

  • How to Get SOAPElement BOM in SOAPMessage for Sales Opportunities

    Hi experts,
    I'm newbie in using Java.
    I want to Update Sales Opportunities using SOAPMessage in Java.
    So far, this is my sample code:
    import javax.xml.namespace.QName;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPConstants;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.ws.Dispatch;
    import javax.xml.ws.Service;
    import testws.salesopportunities.BOM;
    import testws.util.MyHandler;
    public void updateOppr() {
            Service service = Service.create(new QName("UpdateOpportunities"));
            QName portQName = new QName("UpdateOpportunities");
            QName elementbom = new QName("BOM");
            try {
                String endPoint = "http://192.168.56.102/B1WS/service.asmx";
                service.addPort(portQName, javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING, endPoint);
                service.setHandlerResolver(new MyHandler());
                Dispatch<SOAPMessage> sourceDispatch = service.createDispatch(portQName, SOAPMessage.class, Service.Mode.MESSAGE);
                salesOpBOM = (new testws.salesopportunities.ObjectFactory()).createBOM();
                JAXBContext context = JAXBContext.newInstance(salesOpBOM.getClass().getPackage().getName());
                Marshaller marshaller = context.createMarshaller();
                SOAPMessage msg = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL).createMessage();
                // create header
                SOAPHeader header = msg.getSOAPHeader();
                SOAPElement elMsgHeader = header.addChildElement("MsgHeader", "", "http://www.sap.com/SBO/DIS");
                SOAPElement elSession = elMsgHeader.addChildElement("SessionID");          
                elSession.addTextNode(sessionID);
                // create body
                SOAPBody body = msg.getSOAPBody();
                SOAPElement elCommand = body.addChildElement("UpdateObject", "", "http://www.sap.com/SBO/DIS");
                SOAPElement elBOM = elCommand.addChildElement("BOM");           
                SOAPElement elBO = elBOM.addChildElement("BO");
                SOAPElement elAdmInfo = elBO.addChildElement("AdmInfo");
                SOAPElement elObj = elAdmInfo.addChildElement("Object");
                elObj.addTextNode("oSalesOpportunities");
                SOAPElement elQueryParam = elBO.addChildElement("QueryParams");
                SOAPElement elParam1 = elQueryParam.addChildElement("SequentialNo");
                elParam1.addTextNode("69");
                SOAPElement elslsOpLine1 = elBO.addChildElement("SalesOpportunitiesLines");
                SOAPElement elLineRow = elslsOpLine1.addChildElement("Row");
                elLineRow = elslsOpLine1.addChildElement("Row");
                elLineRow = elslsOpLine1.addChildElement("Row");
                SOAPElement elLineRowMaxTotal = elLineRow.addChildElement("MaxLocalTotal");
                SOAPElement elLineRowStageKey = elLineRow.addChildElement("StageKey");
                SOAPElement elLineRowStagePercent = elLineRow.addChildElement("PercentageRate");
                elLineRowStagePercent.addTextNode("85.00");
                elLineRowStageKey.addTextNode("5");
                elLineRowMaxTotal.addTextNode("1000000.00");
                marshaller.marshal(salesOpBOM, elCommand);
                msg.saveChanges();
                SOAPMessage response = sourceDispatch.invoke(msg);
                //End UpdateObject (Update Document / Add Document Lines)
            } catch (Exception ex) {
                ex.printStackTrace();
    Edited by: Siddharta on Mar 4, 2011 10:31 AM

    After I Debug this code, i get an error message (SOAP Request were trimmed):
    Update sales opportunities
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
         <env:Header>
              <MsgHeader xmlns="http://www.sap.com/SBO/DIS">
                   <SessionID>D8419D24-4E71-4D10-A425-1ADCCD6020C3</SessionID>
              </MsgHeader>
         </env:Header>
         <env:Body>
              <UpdateObject xmlns="http://www.sap.com/SBO/DIS">
                   <BOM>
                        <BO>
                             <AdmInfo>
                                  <Object>oSalesOpportunities</Object>
                             </AdmInfo>
                             <QueryParams>
                                  <SequentialNo>69</SequentialNo>
                             </QueryParams>
                             <SalesOpportunitiesLines>
                                  <Row/>
                                  <Row/>
                                  <Row>
                                       <MaxLocalTotal>1000000.00</MaxLocalTotal>
                                       <StageKey>5</StageKey>
                                       <PercentageRate>85.00</PercentageRate>
                                  </Row>
                             </SalesOpportunitiesLines>
                        </BO>
                   </BOM>
                   <BOM xmlns="" xmlns:ns3="http://www.sap.com/SBO/DIS"/>
              </UpdateObject>
         </env:Body>
    </env:Envelope>
    javax.xml.ws.soap.SOAPFaultException: Invalid XML Stream
            at com.sun.xml.internal.ws.fault.SOAP12Fault.getProtocolException(SOAP12Fault.java:210)
            at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111)
            at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:176)
            at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:195)
            at testws.Main.updateOppr(Main.java:173)
            at testws.Main.main(Main.java:43)
    Why there is 2 SOAPElement for <BOM> ?
    If my code is wrong, please can you help me?
    Is there a way to get SOAPElement <BOM> in SOAPBody so i can update Sales Opportunities Document without addChildElement for <BOM>?
    Thanks a lot.
    Edited by: Siddharta on Mar 4, 2011 10:38 AM

  • Sales Opportunities and Activities Import

    We need to import the attached into SAP as Sales Opportunities and related Activities.
    I believe the mappings are roughly as follows:
    Opportunities
    Source     Destination
    SalesCode     OOPR.CardCode
    Createdate     OOPR.StartDate
    Description     OOPR.OpportunityName
    Opportunity_Value     OPR1.MaxLocalTotal
    Acct. Manager     OOPR.SalesPerson (id lookup)
    Activities
    Source     Destination
    Contact Name     OCLG.ContactPer
    SalesCode     OCLG.CardCode
    Description     OCLG.CntctSbjct
    Call Back Date     OCLG. CntctDate
    What I canu2019t see is how to link the activity to an opportunity.
    NB: Where there isnu2019t a contact name and call back date, there is no activity to be created.
    Regards,
    Juan

    Hi Juan,
    To link Sales Opportunities with Activities, you need to assign OCLG.parentType = 97 and OCLG.parentID=OOPR.OpprId
    Thanks,
    Gordon

  • Sales order - update line status to close the document with DTW

    Hi everybody,
    yesterday i tried to update the line status of sales order lines from "O" to "C" with DTW. At first he ask me for DocRate. Then set DocRate to "1". After then DTW wrote, that I can't update the lines, during update the document... Can someone help me..., maybe with an example for DTW.
    Happy new year to everyone.
    Best regards
    Stefan

    Hi Stefan Ressel,
    Welcome To SAP Community Network Forum
    Sales Order line status close that means for particular line Item Quantity Delivered through Delivery document and sales order line status open to close.
    OR
    You have to manually close Sales Order line status without delivered Quantity.
    Check in your case Item Quantity are to be delivered through Delivery document. Right click on line & check Target document.
    If Sales Order Item Quantity are to be delivered through Delivery document then SAP restrict to update line status.
    Thanks,
    Srujal Patel

  • DTW updating Sales Orders

    Hello,
    I'm trying to update a bunch of UDFs in existing open Sales Orders and have had no luck. My templates are set up according to what is in the DTW templates folder and it is not not working that way. Basically what is happening is that I'm updating the SO using the correct DocEntry and there are no errors that pop up. When I go to look at one of the Sales Orders, the data that was supposed to be imported is no there. Here is a mockup of my oOrders-Documents .csv file with just one of the UDFs I need updated listed.
    RecordKey DocEntry ... U_Phone1
    1         2974         860-648-6723
    If anyone has any ideas for me, that would be great. Also, I tried looking for an answer to this question before asking and I wasn't able to find one.
    Thanks in advance,
    Brent McDonell

    Hi Gordon,
    Here are the answers to these questions (as I have still not figured out how to do this).
    1. SAP2005A SP1 PL31
    2. I have never been able to update documents, although I have used DTW extensively to update Item Master Data, Business Partner Master Data, Sales Opportunities, and Activities. ( I wish it were as simple as how it is to update these)
    3. I have unchecked the Test checkbox and the whole update goes through like it worked, but no data shows up when you look at it in the actual system.
    4. I did have the updating existing objects option checked.
    Hopefully that will shed a little more light on things for you so that I can get this to work.
    Thanks again,
    Brent

  • Price is not being updated when creating a sales order using DTW oOrders

    Hello experts,
    When I create a sales Order using DTW (oOrders), the information in the input files document.csv and document_lines.csv is updated with no problem, except the price. The price is being ignored from the input files.
    Is there something that I must considered when trying to update the price of a sales order using the DTW?
    The field "price" was mapped in the source and target fields in DTW.
    Here is the document_lines.csv
    RecordKey,LineNum,AccountCode,Address,ItemCode,LineTotal,Price,Quantity,ShipDate,WarehouseCode,TaxCode
    RecordKey,LineNum,AccountCode,Address,ItemCode,LineTotal,Price,Quantity,ShipDate,WarehouseCode,TaxCode
    1,1,_SYS00000000059, ,30PA08-0360-25,1,11.2,3,20110702,V08,A5
    1,2,_SYS00000000059, ,30PA08-0707-25,1,15.2,3,20110702,V08,A5
    1,3,_SYS00000000059, ,30PA08-0707-22,1,18.3,3,20110702,V08,A5
    And the document.csv:
    RecordKey,DocEntry,CardCode,DocDate,DocDueDate,DocTotal
    RecordKey,DocEntry,CardCode,DocDate,DocDueDate,DocTotal
    1, ,c-6167,20110702,20110702,2
    Thank you for your help
    Jorge Manzo

    Hi,
    Try to re-create your dtw using my template,and use text tab when saving your template.
    SO-Header
    RecordKey     CardCode     CardName     Comments     DocDate     DocDueDate     DocNum
    RecordKey     CardCode     CardName     Comments     DocDate     DocDueDate     DocNum
    1     24-25 MANUFACTU     24-25 MANUFACTURING          4/5/2010     4/15/2010     11142
    SO-LINE
    RecordKey     linenum     itemcode     qty     uom      PriceAfterVAT      Price     SalesPersonCode
    RecordKey     linenum     itemcode     qty     uom      PriceAfterVAT      Price     SalesPersonCode
    1     0     SHAFT HEX 7/8"     1     pc     4536     4050     CRIS
    Note : Line -(LINE NUM and QTY is important upon computation of Price if SO is ITEM TYPE Document.
    hope this will help you!
    Regards,
    Darius

  • Link Sale Order with Delivery  through DTW

    Hi All
    While importing Deliveries through DTW, is it possible to Link a Sale Order with Delivery?
    If it is possible then can any one tell me the procedure.
    Thanks in Advance
    Chakrapani Bandaru

    In the template for the document lines, you will find fields for base entry, base type and base line . Fill these with the object type for sales orders, the line number and the doc entry (not doc num) of the relevant linked document

  • How to update multiple Sales Orders with one IDOC using IDOC_INPUT_ORDCHG

    Hi Gurus,
    Here's my scenario:
    Consider there are 2 Sales Orders for same Purchase Order -
    Open Quantity
    Sales Order 1
    Article A1
    1
    Sales Order 2
    Article A2
    1
    Say if I want to change Open Quantity of both SO 1 & SO2 by dispatching 1 Quantity each for Article A1 and A2 via ORDCHG, observed that in Include LVEDBF0N, XVBAK-VBELN is checked for only 1 Sales Order.
    Whether it is possible to update multiple SOs with one IDOC using IDOC_INPUT_ORDCHG?

    Hi,
    Check out this link, this deals with the problem you are facing.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802f0ed1-a17a-2c10-7db4-d515a5b047ed
    Regards,
    Runal

Maybe you are looking for

  • Why can I not delete a book from my iTunes library

    Why can I not delete a book from my iTunes library. There are many books that I want to delete and replace with current books, but cannot remove the old books.  Thanks  Guy

  • Material ledger Vs Purchase price difference....

    Hi Experts, My client activated ML, maintaind price control is S, monthly he is charging all purchase price variance is to product through ML RUN....but in some amount is flowing to copa, because that Purchase price diff account is assigned in OKB9 d

  • Resource header is damaged cannot be repaired?

    Just ran some diagnostics on my Mc Pro and after a file scan got a message that says: "libssl1 137.dylib" resource header is damaged and cannot be repaired" So just what is "libssl1 137.dylib"? Do I need to reinstall my system to fix this?

  • Just loading web page launches iTunes w/o user input/click

    Today I was looking for information on ipod scpecifications and say an article on "iPod Diagnostic Mode" appear in my search results. I was curious to learn about this and clicked through on this link: http://www.methodshop.com/mp3/ipodsupport/diagno

  • Warning percentage prolem in CO document number range

    Hi all I have changed the warning percentage from 5% to 20% in rk_beleg object in SNRO transaction. According to the warning percentage i have changed the current number of a particular transaction (KP26) above 80% thro KANK transaction. But when i a