Sales Order with zero DocTotal

Is there anyway to create a Sales Order via DI-API with a zero DocTotal?  In this application, the Sales Order will initially have only text lines imported from an external application.  The actual inventory items will be added by customer service later, when the order is processed (based on the text lines).
The error that I'm getting is -5002: Invalid total ORDR.DocTotal.  I can circumvent the error by adding a dummy item, but would prefer not to do this.
In the Authorizations for the DI-API login user, I have 'Documents with Zero Amounts' set for 'Full Authorization' in the 'Sales - A/R' section.  I am able to create a zero order manually through the application.  However, I'm unable to do so through DI-API.
This is on 2007A SP00 PL42.
Thanks,
Dave
Edited by: David Credicott on Jan 4, 2010 2:05 PM

Hello Dave,
It is possible. Maybe your code is coming from some invalid customizing settings...
for me working fine the following code:
Sub CreateSalesOrderWithZeroAmount()
        Dim So As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oOrders)
        So.CardCode = "CUSTOMERCODE"
        So.DocDueDate = Today
        So.SpecialLines.SetCurrentLine(0)
        So.SpecialLines.LineType = BoDocSpecialLineType.dslt_Text
        So.SpecialLines.AfterLineNumber = -1
        So.SpecialLines.LineText = "TEST"
        If So.Add <> 0 Then
            sbo_application.MessageBox(String.Format("{0}-{1}", oCompany.GetLastErrorCode, oCompany.GetLastErrorDescription))
        End If
    End Sub
Regards,
J.

Similar Messages

  • Sale order with Zero quantity

    Hi,
    I should not see the sale order with Zero quantity in APO product view . I tried by de-selecting the Display customer requirement w.0 qty from user setting in product view but it din work.
    Is there any other option to switch off sale order with zero quantity in product view ?
    Regards
    BVN

    Hi Valavan,
    Please check in customisation under PPDS whether set order view/periodic product view is
    maintained
    Regards
    R. Senthil Mareeswaran.

  • Sales Order with Zero value

    Hi,
    Can I enter an item in sales order with zero price, and book it, thereby creating a zero value sales order.
    I am asking this in context of promotional items for which price is not maintained by us.
    Regard,
    Sohail

    Hi,
    Yes you can book Sales Order with Zero price, if the item's unit price is defined as Zero in the price list that you are using in the Sales Order.
    Regards,
    Moniica

  • Sales Order with zero price.

    Hi,
                                   I am creating sales order using the bapi  'BAPI_SALESORDER_CREATEFROMDAT2'  .For some materials we have condition type 'ZR00' and amount 0.00 per 1 unit. The problem is when i  create sales order, in item conditions it shows zero amount. How can I pass ZR00 price value through BAPI.?i.e i mean to oerwrite the value in Vk13.
    Regards,
    Vinsa.R

    HI Vinsar
    Make use of tables: ORDER_CONDITIONS_IN and ORDER_CONDITIONS_INX of the BAPI.
    Required paramters to be passed for the structures:
    <b>ORDER_CONDITIONS_IN</b>
    --ITM_NUMBER --> Item Number Eg: 000010
      COND_TYPE -> Condition Type(ZR00)
      COND_VALUE -> Amount
    <b>ORDER_CONDITIONS_INX</b>
    -- ITM_NUMBER -> Item Number(000010)
       COND_TYPE -> Cond Type(ZR00)
       UPDATEFLAG -> 'I'
       COND_VALUE -> 'X'
    Hope the info helps you.
    Kind Regards
    Eswar

  • Creating New Sales Order with Total=$0.00

    B1 is not allowing me to save a Sales Order with a DocTotal of zero.  Is there a setting to allow this?  Something I missed in admin, maybe?

    In Sales Order, I enter a Customer.  I then select a Delivery Date.  I click 'Add' and receive a message box: "Document total is zero. Continue?"
    I click 'Yes'.
    I receive a status bar error:
    "Invalid total [[Sales Order - Document Total]] [[Message 131-44]]"
    The Sales Order does not add.

  • Close open sales order with no subsequest documents

    Hi,
    I have a scenario where line items in a sales order have been rejected citing a reason. But for two of these line item materials in a  report are showing up as open with zero quantity (comes up as error in report). The quantity of all line items in the sales order is zero. These line item description column is complete.
    how can this be corrected. how the sales orders  can be made completed, without deleting line items.
    Thanks
    Sharan

    Just a quick check,
    do all items you rejected have been assigned the same reason for rejection.

  • Doubt in creating a sales order with reference to contract

    Hi all,
    when I create the sales order with reference to contract, in the table VBFA, the field PLMIN is set to zero some times and set to '+' some times. May I know whats the functionality behind this. Any pointers on this will be helpful.
    Regards,
    A.Rathinaprakash

    Hello A.Rathinaprakash,
    This is an Indicator which indicates the quantity or value in the target document(means Sales order) has a negative effect, positive effect, or no effect at all on the quantity still to be completed in the source document(means contract).
    Example from the Help file..
    In sales documents, for example, you can expect the following results:
    Quotation   -> Sales order: positive effect
    Contract    -> Return: negative effect
    Sales order -> Sales order: no effect
    In billing documents, for example, you can expect the following results:
    Delivery    -> Invoice: positive effect
    Delivery    -> Cancellation: negative effect
    Delivery    -> Pro-forma invoice: no effect
    Hope it helps..
    Regards,
    HP

  • Condition Values not being copied when creating sales order with reference

    hi experts
    i am copy a sales order with reference in va01 , when i copy the order it status is shown as incomplete beacue the condition values in some condition type sis zero, whereas if i delete amount for some condition type and re-eneter it the condition values for all conditon types appears ...
    in all after copying order i go to condition at item level some codition values are zero but if erase amount for any condition type and then re enter it value comes for all condition types

    Hi Sunny,
    Maintain some value against that condition type in VK11.
    This must solve your question. Please set to resolved if it solves your doubt.
    Regards
    Abhii....

  • 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

  • Issue in V_V2: Can system rescheduling the sales order with out stock

    Hello All,
    I created sales orders with one material. For that material the stock is zero now. The system has not confirmed the qty in sales orders while creating.
    After that as per the client we ran the V_V2 for rescheduling, but system has not rescheduled any schedu lines in any sales orders.
    Is it due to lack of stock?
    One more point is we do not have Delivery proposal option in sales order. Only One time delivery option.
    Is it due to this setting?
    Please help me to solve this issue.
    Regards
    Lakshmikanth

    Hi
    Because there is checking rule set at order level , thats why once stocks is not there due to unavailabilty of stocks system not allow to go for V_V2.
    for this u hav to deactivate under oVZ8/9
    thanks
    mk

  • HOW TO CONTROL ON CREATION OF SALES ORDER WITH REFERENCE TO EARLIER SO?

    Dear All,
    I want to contol on creation of Sales order with reference to earlier SO?  While creation of sales order our enduser are creating sales order with reference to earlier month SO which I want to restrict. Recently I made changes in sales order like payment terms is grayed, system will atomatically pick pay terms from customer master.Now I am getting correct data also but enduser is using old SO no while creating new SO and old payment data is reflecting in fbl5n.
    I want to restrict enduser while creating new SO with ref. to old SO. Only for returns they should be able to use Billing refrence. Pl. suggest how to control the with reference to ealier SO.
    Nikhil

    Nikhil Deshpande,
          If you dont want allow create a sales order in referent to other one, just delete the copy control between these sales order type, so when the user tries to create a SO in reference to other one a message is displayed that is not possible.
    Thanks,
    Mariano.

  • Restrict manual change in sales order with respect to quotation

    Hi All,
    The user use to create sales order with respect to quotation.  The user can able to change pricing as well as some header and item fields.  How can I restrict user for manual change in sales order expect some specific fields.
    Thanks.

    Hi Sunil,
    It is possible through configuration better you can post in sd forums.
    For the condition type settings , ensure that the manual entries is 'D'. it wont allow any changes in the order.
    Regards,
    Madhu.
    Edited by: madhurao123 on Aug 1, 2011 1:08 PM

  • Report for sales orders with abnormal discounts

    Hi
    We have a discount condition type say ZDIS with 10% which is not changeable manually in sales order..But incase if the user has changed the condition master to 12% and created the sales order with 12%disc...Hence i need a report, the list of sales orders with the abnormal discounts..(the sales orders with the discount value more or less than 10%)..
    How do i get this report..Kindly provide me the table names&logic ...
    Reg
    JJ

    We have a discount condition type say ZDIS with 10% which is not changeable manually in sales order..But incase if the user has changed the condition master to 12% and created the sales order with 12%disc...Hence i need a report, the list of sales orders with the abnormal discounts..(the sales orders with the discount value more or less than 10%)..
    How do i get this report..Kindly provide me the table names&logic ...
    Select KNUMH where KONP-KSCHL EQ ZDIS ( Condition record number)
    Select KONV-KNUMV   Where KONV-KNUMH EQ KONP-KNUMH
    Select VBAK-KNUMV where VBAK-KNUMV EQ KONV-KNUMV
    Then with the help of ABAPER hard code the condition amount (KBERT>10%)
    Regards
    Rohit

  • 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

  • Sale order with item category TAN not getting displayed in md04

    Hi,
    We have a sale order with item category TAN, Schedule line category CP, MRP type ND and availability check as 07. This is not getting reflected in md04. But item category TAB gets displayed under the PR number.
    Please let me know what checks to be made or changes to be done for the sale order with item category TAN to get displayed in md04 screen
    Thanks & Regards

    Hi all,
    I changed the MRP type to PD, and from the next sale order, line item onwards, it was getting displayed in md04 screen. The already created one anyway dint get reflected. So I had to delete the line item and create a new one.
    Thanks all for the help
    Regards,
    Jegashree

Maybe you are looking for

  • Can my family in Australia buy music for me?

    I live in the UK, with a UK passport, payment card and address. I have family on a working VISA in Australia. They have an Australian card and current address but they are UK nationals. There is some music I'd like on the Australian iTunes. If she wa

  • Adding custom field in shopping cart transaction

    Hello, I have done the following things apart from enhancing the INCL_EEW_PD_ITEM_CSF and INCL_EEW_PD_ITEM_CSF_SC structures. 1) Executed BBP_DYNPROS_GENERATE for SAPLBBP_PDH_SEARCH and SAPLBBP_PDH_CUF 2) As I realised later that CI_BBP_ITEM_SC and C

  • Diiferenet Internal Number Ranges by Depot(Plant) wise

    Hi Experts, I have a requirement in SD for Different Internal Number ranges by Depot(plant wise. For example, my client having 8 depots(Plants). For each Depot client need different number range, means for depot 1 client need one range that is 9000 t

  • Data missing in report

    Hi all, I am working on Purchasing, in that i have 0vendor which have navigational attribute Preferred Supplier. In my report i kept preferred supplier in filter with value not assigned. after i run the report 4 records r missing, when i campare this

  • Passing Variable via BridgeTalk

    Hello, I'm simply trying to send send 2 variables through BT to PS from IA to create a new document of the specified size.  Why isn't this working, please?  It works fine if I substitute numbers for the variables in the body of the script. #target il