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

Similar Messages

  • Update Sale Order Header Text through Enhancement

    Hi Experts,
             I Have a requirement to update the sale order Header Text , when the sale order is opened in VA02 and saved.
    Here in I tried using edit_text, it updates sale order header text  directly in DB during run time even before the save action is completed.
    But I need to just fill the header text and that has to be saved during the save action only.
    I tried coding the same in the user exit (userexit_save_document) but this user exit gets triggered only when there is some changes made to the document when opened in VA02 & Saved.
    Is there any  user exist to pass sale Order Header text and save when save button is clicked irrespective of the document been changed or not.
    Thanks in advance
    Sathish

    Hi Brad Bohn,
        My actual requirement is to trigger an Idoc when the user goes to VA02 transaction and clicks save.
    IDoc gets triggered only when there is some changes to that document, that is through NAST table entry based on the output configurations in NACE transaction.
    Now that the user wants to trigger an IDoc even if there is no change (ie. to reprocess the IDoc) when he just opens a sale order in VA02 and click save.
    It is not possible to trigger an IDoc through configurations when there is no actual change in VA02 and saved.
    So it has to be forcefully sent by making some additions to the Order through coding, so I choose that Text box to fill some additional data and save .
    Kindly Let me Know any thing could be done for this scenario.
    Thanks in advance
    Sathish

  • How to link Sales Order with Service Contract and then with Install Base?

    Hi Friends,
    1) I would like to know the integeration process from sales order to Service Contract and then with Install Base.
    2) I couldn't see anything enabled in Service Tab in Order Lines, its grayed out. Is there any set up/profile option to get it enabled?
    3) How can we create AR invoice from Service Contract?
    Please let me know if anyone has idea on this.
    Thanks in Adavance,
    Vara

    Dear Sid,
    Thanks for your promt response.
    Let me explain you what I did.
    1) I have booked a Bill Only sales order which has one order line, mentioned it as Service Item and provided the same details in Service Tab in Order lines. Now Line status is "Fulfilled"
    2) Then Submitted Workflow Back Ground Process for OM Order Lines and it has created an AR Invoice and closed the line
    3) And then submitted "Service Contracts Order Capture Integration Program" from SErvice Contracts Responsibility and it completed normal.
    4) Now I went in to Launch Contracts Window and queried with the sales order but couldn't see any contract created
    5) Then I went in to Reprocess Order Window and found this order shows an error message as "Referenced Product not present in the Installed Base", then I tried to reprocessed it, but the same error message again.
    Here I have few doubts:
    1) Are the AR invoice and Service Contract Billing Invoices same?
    2) In above scenario AR Invoice has been created, I would like to do the billing from SErvice Contracts and need to create an Invoice in AR? how can I do that?
    because as you explained in one of my questions earlier, A Single Invoice can be created for the whole duration of the contract. I want to do that and trying for the same.
    3) Regarding the above error message, how can I resolve it and create the service contract against that Order?
    Thank you so much for your helpful answers.
    Regards,
    Vara

  • Updating Sales Order Header Text

    Hello Experts,
    Could you please help me in knowing how to update or maintain the Sales Order Header Texts programatically while creation of sales Orders.
    Here the scenario is ---Sales orders are getting created inCRM and there they are maintaining some text from webshop. Immediately a sales order will also gets created in ECC.
    Now i would like to know how to do that from ECC side?? Please help...
    Br,
    Anil

    Hi,
    I guess you'd have to find a BADI or user exit to update the texts in ECC. Check which IDOC brings the data from CRM to ECC. And the segment that carries the TEXTs. Then in the BADI you may either pass the date to appropriate fields or call the SAVE_TEXT function module in update task.
    Regards
    Prasenjit

  • Block Line items in sales order with no confirmation and auth check

    Hi.
    We have a requirement to block some line items ( hold for review ) in a sales order while allowing other line items to be delivered.  In the standard SAP system, a schedule line block is possible, but it does not remove the confirmation for the line item. Also, we would like only some authorized people to be able to remove the block.
    Would appreciate suggestions from the forum
    Thanks and regards
    Rohit Zalani

    Hi,
    Thank you for your responses. We could do a reason for rejection, but would not like to go down that path since the item is not classically rejected and it may show up in the rejection reports or give wrong information. We wanted to use a delivery block and remove confirmations for the line item. Standard SAP does not operate this, but would appreciate inputs from the esteemed members if anyone has done this before.
    Thanks and regards
    Rohit Zalani

  • Create sales order with ref to quotation - usage of line items not copied

    hi
    i have created a quotation for which the first line item(higher level item) is a configurable item for which the value of the field use (vbap-vkaus) is blank  and the line items the use field is given as  'HIDE DISCOUNT'.
    when i created a order with reference to the above quotation i am not getting the value "HIDE DISCOUNT"  populated for the line items for usage field ..
    can any one knows any user exit / data transfer routine please suggest me
    thanks in advance
    rajani yeluri

    hi
    i have created a quotation for which the first line item(higher level item) is a configurable item for which the value of the field use (vbap-vkaus) is blank  and the line items the use field is given as  'HIDE DISCOUNT'.
    when i created a order with reference to the above quotation i am not getting the value "HIDE DISCOUNT"  populated for the line items for usage field ..
    can any one knows any user exit / data transfer routine please suggest me
    thanks in advance
    rajani yeluri

  • Create single billing document by sales order with division 00 and delivery with division 01

    Hello,
    I have a task to config the SAP system that would be possible create single billing document with different divisions.
    Scenario:
    1 doc: Create Sales order (division 00 - services) -> Create Billing doc
    2 doc: Create Sales order (division 01 - materials) -> Create Outbound delivery and Post good issue -> Create Billing doc.
    Sales order 1 and sales order 2 have the same:
    dates;
    custumers;
    Sold-to-party;
    payment terms;
    incoterms;
    and others;
    When I create VF01 with documents Sales order and Outbound delivery system splits in two different billing documents due to different divisions.
    I read www.scn.sap.com forums and test it DV system.
    I use and change settings in these transactions:
         VTFL
         VTFA
         VOFA
         VOFM
    But it doesn't work.
    Please give me feedback or give advices how to config in antoher way.
    Thanks a lot for your time and efforts.
    Rolandas

    You need to do configurational change and customization as recommended in the following note:-
    Note 50752 - Invoice combination for different divisions
    G. Lakshmipathi

  • Create Sales Order with external pricing and tax conditions

    Hi SAP Guru,
    I used the BAPI function to create a sales order.
    I need to take in the pricing from external as well as the tax amount.
    How should I propagate the BAPICOND segments?
    Thanks

    Hi
    While order is created through this Function module SD_SALESDOCUMENT_CREATE , It will allow you to insert manual condition records in SALES_CONDITIONS_IN
    Regards
    Srini

  • 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

  • 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.

  • How can I create multiple sales orders with reference to one contract?

    Hello Gurus,
    Can you please how can I create multiple sales orders with reference to one contract?
    thanks!
    Rakesh

    hi
    Lets consider example
    In your contract for line item 1 you have entered qty 100
    You careated sales order with 70 quantity, and now you want to creat another sales order for 30
    For this first you need to check what is your item category in contract (VA42)
    Goto VOV7
    SPRO - IMG  - Sales and distribution - Sales - Sales document item - Define item categories - Go to change mode
    Make the completion rule = B Item is completed after full quantity has been referenced

  • Query in creating Sales Order with BAPI_SALESORDER_CREATEFROMDAT2?

    Hi,
    I am trying to create a Sales Order with the BAPI and have a contract as a reference. Do I need to explicity mention the line item details in case I need the data from Contract to be copied here. If not how do I acheive this functionality.
    P.S: I am able to create the Sales Order with the reference and I can see the Sales Order in the contracts workflow but not the line items in the Sales Order.
    Any suggestions?
    Regards,
    Karthik

    Hello, Karthik,
    By reading the documentation of BAPI
    BAPI_SALESORDER_CREATEFROMDAT2
    the mandatory data to be supplied to the BAPI, in order to succesfuly create the the Sales Order are:
    "1. ORDER_HEADER_IN :
                    DOC_TYPE Sales document type
                    SALES_ORG Sales organization
                    DISTR_CHAN Distribution channel
                    DIVISION Division
    2. ORDER_PARTNERS..:
                    PARTN_ROLE Partner role, SP sold-to party
                    PARTN_NUMB Customer number
    3. ORDER_ITEMS_IN..: MATERIAL Material number"
    The OSS note 93091 basically re-states the same thing.
    After studying this BAPI's source code, the conclusion seems to be the one the documentation points to: <b>the BAPI can only be used to create a sales order by supplying (manually) all the necessary data.</b>
    BTW: How did you manage to create the empty Sales Order with reference, you mentioned in your mail? Just by providing a reference document number? <b>And nothing more?</b>
    Bye,
    Bogdan

  • One sales order with two bill to party at the document header

    Hello to all
    We have the following issue: create one sales order with two bill to party and only one payer. The reason is that the materials are paid with the same customer(only one account document) but we need to print two invoices one by each bill to party and each invoice printed with its own invoice number)
    We are thinking in one development due to the key users won´t create different line items or create different sales order.
    The process will be the following:
    1-Create the sales order with one payer and two bill to party or a new bussiness partner(you can use only one bill to party in each customer)
    2-Invoice the sales order. The system will create only one account document because there is only one payer but the system will create two printed documents with the invoice.
    So if someone had the same requeriments, any help will be appreciated.
    Thanks in advance.

    Pablo,
    You intend to create one invoice (one payer) but 2 different document print layouts.
    That should work. But, you have stated 'printed with its own invoice number'.... does this mean you need 2 distinct document numbers in the system? That will not be possible.
    An alterantive is to create a Proforma invoice and a regular invoice and send it to the 2 parties involved.
    Ashutosh

  • Table name for sales order with Customer info

    Hi Gurus,
    Could you please provide me table name for  sales order with customer no and customer name.
    I have list of sales order number (more than 1000 no's ) i need to identify customer number and customer name (ship to party and sold to party information). I am running this report every week. so i plan to create sqvi for this report.
    Thanks and regards,
    B.Deethya.

    Hello,
    Access Tables VBAK & VBAP.
    From the above tables you will get Solt to Party & Ship to Party Codes.
    For Customer names you have to pass the Customer Codes to Table - KNA1
    Hope this clarifies.
    Thanks,
    Jignesh Mehta

Maybe you are looking for

  • Unable to view Service notification in CIC fact sheet

    In the Customer Interaction Center for Utilities(CIC0), I'm unable to view a certain service notification under a custom fact sheet. However, if I try to view it by accessing CIC from ECC, it is visible there. What could be the possible issue?

  • Get full path

    I'm sure this one has been asked a million times before, but a search of the forums hasn't proved particularly positive - so, apologies if this is a duplicate post, but... How on earth does one get the full path of a file??? I mean, starting from the

  • Nokia 603 problem with headset audio after updatin...

    Nokia 603-White Prior belle fp2 sound was working fine, after updating to belle fp2 headset sound turns too noisy, reinstalling update is of no use as i came to know that these update actually update the rom better to patched ROM. Once you have a bug

  • Photoshop cc is now freezing every time i try to open a file

    photoshop freezes if i try to open file. I have deleted pref files and uninstalled and reinstalled photoshop. worked fine a day ago

  • I use to be able to edit with Quicktime but not it's gone!!

    My friend bought me Final Cut Pro 5 studio, so we installed it then next thing you know my Quicktime no longer had the editing options. It just said I need to update quicktime in order to install Final Cut, so I updated it, then boom no more Quicktim