How to close automatically sales order with open items ?

Hi,
There is a request from a client:
he would like to be able to close the open items of a sales order which are not billed automatically according to a specific calendar. Moreover he would like to specify that ,generally speaking, the customer does not want to be delivered another time if there are leftovers in the sales order.
I read in other posting that manually you can close open items in a sales order by adding a reason of rejection for the line item. Nevertheless, I do have one question about that. Imagine we only have one line of 100 pieces and we only deviver 90 pieces. When we put a reason of rejection in the sales order item of 100 quantity, what exactly will happen? How the system will know it only has to reject the 10 non delivered pieces and not the 100 pieces mentionned in the line item ? I also read that the price would change to zero but how can this be correct if we have 90 pieces to bill ?
Thanks a lot for all your answers.
Stéphanie

Dear Stephanie,
the reason for rejection change the status of the item itself to completed and it move the item from "active to be processed" to a simply statistical status.
In the scenario you mentioned, as the reason for rejection is applied to the full item, you will set the full item as statistical, but your 90 pieces will continue being delivered and even eventually invoiced.
Some discrepancies you may find only running some statistical reports, where also the net values information would not be in line as per your expectation.
In order to prevent this discrepancy issue, I would advice you to contact a good abaper and develop a program that may massively rejects open items with not confirmed quantities, creating a new item for the open quantity if the sales line is partially confirmed.
It means that, in your scenario:
Order A > Item 1 for 100 pieces
                           > only 90 pieces delivered & invoiced
                           > 10 pieces open
the result would be the following:
Order A > Item 1 for 90 pieces
                           > 90 pieces delivered & invoiced
              > Item 2 for 10 pieces rejected
In this way you keep under control any report you may generate out of your sales and you can set as statistical items only quantities not processed further.
I hope this explanation may help you.
For any additional information on the reason for rejection I would remind you to SAP documentation and if you have the possibility to try to customize ans set your system with reason for rejection in order to discover directly with your eyes how these work.
Regards,

Similar Messages

  • Create Sales Order with Open item Quantity

    Hi,
    I would like to ask how can I create an inquiry which will have a record also created in table VBBE. For example. When I create an inquiry, a corresponding record will be created in table VBAK, but I found out that not all inquires will get a record created in table VBBE. What is the steps to do this.
    Any help would be appreciated as it is quite urgent.
    Points will be rewarded.
    Thanks.

    An Inquery would not create enteries in VBBK for the reasons mentioned in the previous post.
    These are sales requirements, controled by the schedule line category. The ones noremally used in an inquiry do not create enteries in this table because you are not commiting to sell the item.
    You need a good business case for changing but you could offer it to the users by creating a new category.

  • No. of sales order with open quantity in a month

    Hello experts,
    I have a requirement to calculate open sales order quantity and
    the number of sales order with open quantity for current month.
    Please advise which tables can give this logic. I have the idea
    of calculating open SO quantity from VBAP and LIPS table but how
    to compile the number of sales order with the open quantity
    Thanks
    Rahul

    HI
    can you please try in VBUK table.
    Hope this helps
    Thanks
    Madhav

  • How to create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

  • Pending sales order with open quantity

    Hai gurus
    Please help me with any table or t.code to find pending sales order with open quantity
    With regards

    Dear,
    Please use transaction code V.02 to view all the incomplete sales order.
    If you have any concerns please revert back the same to me.
    Amjath

  • BAPI:Create sales order from an existing open sales order for open items

    Dear All,
    Could any one suggest me any BAPI that can create sales order from an existing OPEN sales order for OPEN items. since we are closing all open orders and creating new orders with reference to existing open orders.   please suggest, its would be great help.
    Regards,
    Reddy

    hi suresh,
    we are changing tax procedure from formula to condition based, so this is the reason we have close all the open orders and recreate in TAXINN procedure, it is going to be large number of records( open orders), so....
    Regards,
    Reddy

  • How to Restrict Return Sales Order with reference to a cancelled invoice

    SAP Standard is allowing to create Return Sales Order with reference to a cancelled invoice which practically should not be allowed.
    Has any body worked on this problem and what could be the possible solutions so that return sales orders can not be created against a cancelled invoice.
    Kindly share your possible solutions.

    Hi Standard Process will not allow to create a Sales Order With Cancelled invoice,
    Kindly go through at Copy Controls
    T.CODE:VTAF
    in that some body might have maintained between S1 invoice to RE Sales Document.
    Remove the settings then u will be not able to create Sales Order w.r.t to Cancelled Document.
    Rewards if Usefull
    B.Shyam Sunder
    SAP SD Consultant

  • Sales order with line items having multiple values in multiple currency

    Please suggest solution for creating sales order having line items with multiple values in multiple currencies.
    e.g. Line Item A Qty/1 No,  value 100INR100$100EUR. Customer wants all three values to display at sales order line item level and create billing in 3 currencies.

    Hi,
    As far as my understanding it may be possible round the solution,
    For 1 company code we can able to maintain 3 currancies,
    1 currancy is hard currance & other two are dual currancies.
    Create sales order with 3 line items having 3 diffrant currancies
    Spilt invoice on the basis of currancy
    Last pass to this invoices to accounting.
    Whole process is
    Sales order >>> Delivery >>> Invoice 1, Invoice 2, Invoice 3(Split invoice on basis of Currancy).
    Consult with FI Team they will tell you about dual currancy & hard currancy
    Kapil

  • Create sales order with error "Item has no open quantity"

    Dear all,
    When I create sales order, an error pop up says: Item has no open quantity.
    The F1 help says:
    "Procedure
    If you want the item to receive a confirmed quantity after all which can be delivered later, you should de-activate the fix quantity indicator."
    But where can I find the indicator? I do not know how to open the item quantity.
    Thanks

    Hi,
    Please check in IMG>SD>Basic Function-->Avaliability check and TOR >Avaliability check>Avaliability check with ATP Logic-->Default settings.
    remove the check mark before particular sales area for Fixed date and quatity.
    Hope this would help you.
    Please reward points if helpful.
    Regards,

  • 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

  • How to create a Sales order with ref. with serial number using BAPI

    Hi Gurus...
    I have a requirement where,  i need to create an order with reference to serial number using a BAPI.
    The inputs will be the Order type..Sales area..Sales office..Sales group..Sold-To-party..Material number...Serial number...
    When i create the order using VA01 the configuration data will be automatically copied from the BUMP order which will have all the required information.
    But to create using a BAPI, i am struck ed..Please help
    Thanks in advance..
    Srinu

    You can use this BAPI.
    You can pass ITM_NUMBER to the ORDER_ITEMS_IN parameter. I think this will act as serial number.
    Regards,
    Murali

  • How to correct old sales order with wrong Profit centre for which settmnt..

    Hi All,
    I have an issue as follows
    Sales order has items 10 and 20.
    From period Jan 2011 to May 2011, Item 10 had wrong Profit Centre assignmnet as 400004. Material also had Profit centre as 400004. Result Analysis and Settlemet to COPA has been done with this wrong profit centre assignmnet.
    Profit centre (PC) at line item level was changed in the month of Jun 2011. Now all the settlemets and Result analysis is done on new PC 400084 and Material still has PC as 400004.
    Now the issue is when I look in KE24, for item 10 settlment has happened in PC 400004 till May 2011.
    From Jun 2011 onwards settlemet has happened in New PC 400084. This has caused imbalance in trial balance report.
    Question is : how do I correct the wrong assignmnet of 400004 in item 10 for period before Jun 2011. Settlement postings are done and Fiscal year has also changed.
    Best regards,
    Karan a

    Hi,
    Reversal  the document  T.code FB08 and change assignment of 400004 and re post the document
    Thanks,
    Raviteja

  • How-to extend the Sales Order with the Project ID?

    Hello ByD Community,
    My problem is the following:
    I want to add an extension field to the Sales Order Header, which would be the Project ID assigned to this Sales Order.
    My use case only involve one Project ID per Sales Order, and the task will be the same from a Line Item to another. So I can only use the GetFirst() to retrieve only the first Line Item.
    Past week, I asked a similar question for the Purchase Orders and I succeeded to do it after a hint from Dan!
    As for the Purchase Order, I thought the Project Assignment was built through the SalesOrder.Item.ItemAccountingCodingBlockDistribution.AccountingCodingBlockAssignment.ProjectReference, but it seems that it is different.
    So as soon as I try to check if this Association IsSet() it just returns me that it is not!
    I succeeded to bluntly push the TaskUUID in my Extension field for testing purpose, without any check and verification, but not the Project ID neither with good validations.
    I also tried to see with the SalesItem Association instead of the Item Node, but it is the same. Any time I try a different check it returns me the N/A for my field, which is my last condition if the association is not set! What is driving me crazy is that you have the Project ID is shown on the top of the Sales Order, but I just cannot find how to retrieve it in the Studio!!!
    Here is my sample code in my After-Modify event (I also tried with a On-Save) where the ProjectIDSalesOrder is my extension field in the Cloud Solution:
    import ABSL;
    if (this.Item.GetFirst().ItemAccountingCodingBlockDistribution.IsSet())
      if (this.SalesItem.GetFirst().ItemProduct.ProductCategoryHierarchyProductCategoryIDKey.ProductCategoryInternalID.Matches("130"))
           this.ProjectIDSalesOrder = this.SalesItem.GetFirst().ItemServiceTerms.ProjectTaskUUID.content.ToString();
         /*what I need actually is : this.ProjectIDSalesOrder =      this.Item.ItemAccountingCodingBlockDistribution.AccountingCodingBlockAssignment.GetFirst().ProjectReference.ProjectID.content;*/
      else {this.ProjectIDSalesOrder = "No project assigned";}
    else {this.ProjectIDSalesOrder = "N/A";}
    If anybody could help me on this, it would be greatly appreciated.
    Thank you community!
    Best regards.
    Jacques-Antoine

    Hello all,
    To follow up on this issue, I found that a QueryByElements is available in the SalesOrderOverview node. And we can Query the SalesOrder by ProjectID.
    Fine! However, we cannot retrieve the ProjectID. It is never proposed as a result in the Query. We can query againt a ProjectID but not retrieve it.
    As the ItemAccountingblockDistribution association seems to never be set, we can't retrieve the ProjectID from it neither.
    I will post an incident to see if the ProjectID can be released as an entity in the SalesOrderOverview. QueryByElements results, so as to be able to use it.
    Thanks for your attention.
    Jacques-Antoine

  • How to create a Sales Order with external number using BAPI

    Hi People,
    I am wonderning how to create Sales order using external number range by BAPI (SALESORDER_CREATEFROMDAT202).
    I tried search but could not succeed in finding the solution.
    Please share if anyone has some info.
    Thanks in advance.
    Regards,
    Praveen

    As per my understanding, the BAPI
    SALESORDER_CREATEFROMDAT202
    mentioned by you, is not BAPI. In fact, that is basic IDoc Type.  For processing an Inbound IDoc, we use FM IDOC_INPUT_ORDERS.
    If you want to create sales order other than IDoc, refer FM BAPI_SALESORDER_CREATEFROMDAT2. There you can provide external sales order no in SALESDOCUMENTIN. In addition to that check whether your sales doc type is relevant for external number range or not. If yes. then make sure you are providing external number according to the number range maintained.
    If you still have any concerns, please revert back.
    Thanks, JP

  • How to tigger automatic sale order

    Hi all,
    Can you pl guide me for tiggering auto sales order in R/3 after transfer of forecast to R/3 from from demand planning..............pl reply if some body knowing the same.......
    Best Regards,
    Sharad

    Hi Sharad
    i dont think that this is possible to automaticaclly generate sales order in R/3 after the forecast is transfrred from demand planning,
    But if you are using EDIs' and IDOC's i think it is possible, where the customers wiill send you IDOC's containing the Sales order details using EDI's or Crosswalk or Gentran or similar type
    and this is be able to do it.
    otherwise only using R/3 i think it is not possible
    Gurus please correct me if i am wrong and let me know the possibilities
    Please REWARD POINTS if useful
    Thanks
    CHakri

Maybe you are looking for