Sale order with no line items

Hi,
  sale order should not be saved if there is no line item.
  Sale order should not be saved if there is no quantity or value for a line item.
Can anyone update on this please
Ratna

Hi,
You can create sales order directly with out any material in standard.
If you enter any material you need to specify quantity.
Regards,
Ravi Duggirala
Edited by: ravi duggirala on May 19, 2009 11:56 AM

Similar Messages

  • LSMW program to upload the sales order with multiple line items.

    Dear SD and PP Gurus,
    I am new to creating LSMW Program.
    I want to create a LSMW program to upload the sales order with multiple line items. I have read on SDN that it can be done on two phases. First Create Header Data than line items. IS IT TRUE??, Or
    Is there any procedure by which we can load the sales orders with multiple line items in a single run (part).
    I want to use Batch process, not a BAPI or IDOC procedure.
    I have created a program with
    object 0090
    Method 0000
    Program Name RVINVB10
    Program Type D
    Source Structure 1 - For Header and Source Structure 2  for Line Items.
    Mapped Field INDET (With Fix Value 1), ORDERTYPE, SALESORG, DISTCHANNEL, DIVISION, CUSTOMER, PONUMBER , DELVDATE, PRCGDATE, PMTTERM
    INCOT1 INCOT2 with Source Structure - 1 and
    Field INDENT (With Fix Value 2),  ITEMNO, MATCODE, MATQTY, SUOM, PLANT, BATCH, AMOUNT with Structure-2
    than maintained Structure relation ship, field Mapping, Specified Files, Assigned files, Read Data and other process,
    At final stage (Start Direct Input program RVINVB10) it is giving a message - Table name not allowed.
    Please tell me where I am wrong.
    Thanks in advance.
    DSC

    Dear SD Gurus n Experts,
    I have solved the above problem. But there is another problem appearing regarding the date format. Now system generating a message: Date . . is not valid.
    While I am using Date: YYYYMMDD format in flat file, which is SAP's Standard Format.
    In SDN Link: LSMW upload Sales Order using VA01/VA02     I have found that there are some date fields which are mandatory to filled. Here I have mapped
    VDATU - Requested delivery date,  BSTDK - Customer purchase order date,  PRSDT - Date for pricing and exchange rate,  BSTDK_E - Ship-to party's PO date, FKDAT - Billing Date, KORDT - Delivery Date,
    and PRGRS - Date type is Constant = D
    Can any one tell me, where is the priblem.
    With thanks,
    DSC

  • Partial delivery of sales order with some line items

    Hi all,
    Please help me in the issue i want to create delivery against sales order partially for some line items of the sales order . Can any one suggest me the procedure how to do it through programing .
    Thanks in advance,

    Hi,
    You have several methods of doing same.
    Method 1
    Go to VL01N, and given your sales order number.
    Without giving the line item, just press Enter
    Now inside the delivery, you can delete unwanted line items, and you can adjust quantities under Item overview tab.
    After that do picking and PGI.
    Method 2
    Go to VL10E,
    Give your sales order number and execute.
    Mark relevant schedule lines only and press execute,
    then those line items with marked schedule lines will copied to the delivery document.
    Best regards,
    Anupa

  • Production order from sales order with multiple line item(for one material)

    Dear Gurus,
    I am working in MTO scenarios. If there is several line item in a sales order for one material, multiple production order( same as no. of sales order line item) is getting created against each of the line item.My requirement is,since the material code is same in each line item and sales order is one, one production order should be generated for all line item. please tell me how to do it.
    (Here for one material, multiple line item is required for some specific reason)
    Regards
    Rajib Pathak

    Hi,
    This is not possible.
    In Std SAP will create one production order for one sales order. The stock is also allocated to thet particular sales order only. Because each and every sales order may vary in any one of the parameters. Considering this, SAP has designed like this.
    Regards,
    V. Suresh

  • External system Sales Order no and Line Item no in to BAPI_HU_CREATE

    Hi Friends
    Packing is done and Handling units are created in External System.
    For this requirement SAP ECC has to update Handling Units creation and  Materials Packing in to HU with reference External System Sales Order no and Line Item no.
    Could you please advice how & where to input External system Sales Order no and Line Item no in to BAPI_HU_CREATE Function Module while creating Handling Units in SAP ECC system.
    Thanks in Advance.
    SR

    Hi Guru
    Please help on this requirement.
    Thanks
    Ravi

  • MIGO-sales order number and line item not validated for 501E mvt in MIGO.

    Hi All,
    In MIGO i am trying to post for 501E(specisl stock=order on hand) movement type, here i am entering the material and in the where TAb even if I enter wrong sales order number or wrong sales order line item number. the system allows to post .
    its not validating the material against the sales order number and line item number that is entered to check whether that material really exists in that particular sales order or not.
    is there a way to fix this?
    Thanks
    Mahendra

    hi
    i dont think vvalidation is possibel
    as the system dont know whaich material is assigned to which SO
    as we r takeing the stock without PO
    if u want to validate then system can validate the quantity that is also with use of some user exit
    correct me if i am wrong

  • Sales order no and line item no in account assignment tab of line item no.

    Hi All,
    When we display a sales order and go to line item --> Account assignment tab --> we can see sales order no and line item no in that screen. We want to know from where this existing no. in that field is populating from.
    We want to know this as we want to check feasibility of changing sales order and item no to maintenance contract no and line item no. ( Maintenance contract we have to pick from notification)
    If anybody has any idea about this do let me know as this is urgent requirment.
    Effort will be rewarded.
    Thanks in advance.
    Edited by: Satish Bharambe on Jul 4, 2008 10:38 AM

    Hi Satish,
    You mean Accounting assignment tab-->In Settlement rule details
    If yes the order number which is coming in that field Sales order and for which sale order you are looking that details both are the same numbers(i.e Nothing but sales order number).
    When you create sales order system will give number of the sales order the number will come in this place.
    I hope it will help you,
    Regards,
    Murali.

  • Sales order has 52 line items but in vbep some are not available

    Hi,
    what could be the reason for the problem;
    Sales order has 52 line items but in vbep some are not available...
    and some has 2 etenr as '0001' and '0002', why 2 lines in vbep for 1 posnr of order.
    Thanks.
    deniz.

    Hi,
    It is possible when some of them dont have valid Schedule lines.
    If they have valid schedule lines some confirmed qty should be available.otherwise we cant find them in VBEP table.
    Pls check by going to sales order  whether Sch.lines are valid or not.
    This you can check Thru
    VA03-->provide Sales Order number -->Select any line Item-->Menu item Goto-->Item-->Schedule Lines
    Thanks
    Parvathi

  • How to display the sales order in the line item in FB03

    Hi Experts,
    I have a requirement to display the sales order in the line item of t-code FBO3, could anybody suggest an userexit or BADI for the same.
    Thanks in advance.
    RP.

    >
    S. Rajesh Paul wrote:
    > Hi Experts,
    >
    > I have a requirement to display the sales order in the line item of t-code FBO3, could anybody suggest an userexit or BADI for the same.
    >
    > Thanks in advance.
    >
    > RP.
    I assume, you want to display sales order number in accounting document..... .
    This is not something you can do it through the BADI..
    You will have to change the G/L account field group (if it is already not there). you can then assign sales order number when posting to FI.  In the field group, better choose sales order number and item number as optional fields.
    If you can see the sales order field (may be empty) - you have to enter the sales order number when you post it.
    Good luck

  • Where/ how do I set SNP to create Planned orders with multiple line items?

    Hi
    Currently our SNP is generating planned orders on a daily basis, it creates a single order with a single line item per location.
    Where/ how do set SNP to create planned orders on a daily basis to generate a single order with multiple line items per location, so therefore one planned order with multiple line items for a single location.
    Thanx
    Keegan

    Hi Keegan,
                   In SNP (APO) it is not possible to create order with multiple line items.
    But you can do some settings so that while planning system can do aggregation and disaggregation.
    But your requirment should be set on Aggregation/Dis-aggregation logic.
    Please follow the follwing links:
    http://help.sap.com/saphelp_scm2007/helpdata/en/2c/c557e9e330cc46b8e440fb3999ca51/content.htm
    Aggregation:
    http://help.sap.com/saphelp_scm2007/helpdata/en/42/f731d078e73ee4e10000000a1553f6/content.htm
    Disaggregation:
    http://help.sap.com/saphelp_scm2007/helpdata/en/a6/ebefaf32e22e468355da304cc59387/content.htm
    Please be sure that the setting of this logic will be at planning area level.
    You can't change aggregation/disaggregation logic further.
    Regards,
    Santosh

  • User Exit during Sales Order Creation - New Line Item needed

    I have a situation during the process of sales order creation. If a Material in a line item has say 27 EA and the Base Unit is EA. But the Sales Unit is CSE. Then whenever the user enters 27 EA and presses enter he should get two line items.
    The first line item needs to convert to maximum number of CSE posible and the rest will be the second line item with the remaining EA. The order isn't important but that is what is needed. Question is how do I approach this problem and code my user exit accordingly and where do I code it.
    I was looking at SAPMV45A and saw the program MV45AIZZ which is meant as a user exit for any PAI event handling. If anybody has encountered this kind of requirement can you please share your view on this.
    I will definitely reward points for useful answers.
    Clark

    Hello Mahendra
    The requirement is as follows :
    PART 1:
    Sales Order Enter: 
    1.     When a line item is entered on a sales order (VA01 or VA02), at enter, check the sales unit of measure (VBAP-VRKME).
    •     Do not check line items where item category (VBAP-PSTYV) = TANN, TAPS or ZTAP.  TANN are free goods that should not be considered for consolidation.  TAPS & ZTAP are lower level materials as a result of product selection.  They will be attached to a higher-level material with an item category of TAX, which is relevant for consolidation.
    •     Do not check items where VRKME <> EA
    2.     If VRKME = EA, go to MARM for MATNR.
    3.     Go to record where alternate unit of measure (MEINH) = CSE, get the value from the numerator field (UMREZ).
    4.     Divide the order quantity (VBEP-WMENG) by UMREZ.
    5.     If the result is greater than 1.0, the customer has ordered more than one case and a new line item needs to be added to the sales order for the case quantity.
    6.     Add a new line to VBAP for the same material with the case quantity.  If not a whole value, the remainder of eaches (bottles) should update the qty on the first item on VBAP.
    •     Part 1 is relevant for order types ZCA, ZOR, ZSO, RE, ZSM
    PART 2:
    Batch Job to run prior to the Delivery Due List:
    1.     Read VBUK for Delivery Status (LFSTK) = A (delivery not processed).  Get all of the document numbers (VBELN).
    2.     Go to VBEP for those document numbers to get the goods issue date for the order.  There will be many records in VBEP for the same sales order.  Look at all orders with a goods issue date (WADAT) of next day.
    3.     Go to VBAK for those document numbers to see if there are multiple sales orders for the same Sold To party (KUNNR).
    4.     For customers who have more than one order in VBAK, search all line items (for all orders).  If there are no duplicate materials across sales orders, do nothing.
    •     Do not check line items where item category (VBAP-PSTYV) = TANN, TAPS or ZTAP.  TANN are free goods that should not be considered for consolidation.  TAPS & ZTAP are lower level materials as a result of product selection.  They will be attached to a higher-level material with an item category of TAX, which is relevant for consolidation.
    •     Do not check line items where reason for rejection (VBAP-ABGRU) is not blank
    5.     If there are duplicate materials, go through the same logic as in part 1.  If the quantity across the sales orders adds up to greater than one case, add the appropriate quantity to a new line item on the first sales order.   If there is a remainder qty, update the line item on the first sales order with this qty. In this case, the quantities on the second sales order needs to be closed out with a reason for rejection code of 50, ‘Line Item Consolidation’. If there is no remainder,  update the qty on this item directly.
    •     Part 2 is relevant for order types ZOR, ZCA, ZSM
    •     This batch job will have to be run manually for Day Pick orders.  The end of this program should automatically kick off the delivery due list for Day Pick orders, shipping condition 02.
    Business Justification:
    The business requires that like order line items be consolidated to one line item prior to the order going to the warehouse for picking.  This will aid in picking at the warehouse as well as result in the customer invoice not reflecting more than one line item for the same material.  In the case where the customer has truly ordered more than a case, i.e;, 1 case, 2 bottles, the documents in SAP will still reflect 2 lines.

  • Sales order: Two schedule line items for single order item

    Hi,
    I have an issue with the schedule lines in the sales order. When we create a sales order  with today as the delivery date, it creates two schedule lines for the single order item. But if we give future date as the delivery date, then it creates one schedule line only. The confirmed quantity for the first line item (with today we the delivery date) is zero and second line item confirmed quantity (with delivery date as tomorrow) is actual order quantity. So as there is no confirmed quantity on todayu2019s date, it looks like it is creating new line item. But we do we have stock.
    We donu2019t have availability check on and we use custom line item and schedule line categories.
    Please give some hints on what might be the issue.
    There was on post with this kind of issue, but it was closed without answer.
    Thanks,
    Srini

    Hi Srinivas,
    So as there is no confirmed quantity on todayu2019s date, it looks like it is creating new line item. But we do have stock.
    As per my understanding although you have sufficient stock for the material system may be confirming the quantity in future date because of the forward scheduling. As you know system adds different times while evaluating the  confirmed delivery date. Check the route which system is using.

  • 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

  • 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

  • Sales order create/change line item with reference to contract - Open quantity not getting deducted for copied line item from the contract

    Hi friends,
    Please provide some valuable inputs for the following scenario:
    When a sales order line item is created(VA01) or changed(VA02) with reference to a Contract the open quantity is deducted in the contract which is a standard functionality. If the referenced line item is copied (custom enhancement to copy line item), then for the copied line item the open quantity is not getting deducted instead ATP quantity i.e. Available-to-promise is deducted.
    Any inputs on how we can fix this functionality i.e. deduct the open quantity from the contract for the copied line item?
    P.S. : Custom enhancement to copy line item is working fine, but open quantity is not getting deducted if the copied line item was referenced to a contract.
    Thanks,
    Sandeep
    Message was edited by: sandeep

    Sandeep,
    Yes, that was my original interpretation.  I was having a hard time believing that someone would ask such a question. 
    I guess, then, that you already know that you will have to add this logic to your enhancement. You should create your specifications and hand them off to a developer; ideally the one who created this enhanced solution in the first place.
    I do not provide advice in these forums about details of enhanced solutions.  Perhaps one of the other members will be more willing to do your work for you.
    Best Regards,
    DB49

Maybe you are looking for