Tracking the actual sale order quantity

Hi Friends,
How to track the actual sales order quantity given by the customer.
Ex: we assume the customer has placed an order of 100 units and stock is only 90 so we create the sales order for 90 units only.
How to find out the difference of 10 units as a report in standard sap system.
Thanks
AJ

Dear AJ,
This is how normal sales process works.
You create Sales Order line item for the quantity that customer has requested. (eg: 100)
Then you do a ATP for that Line item. Let's say you have only 90 in the stock. In that case system will confirm 90 for the sales order line item. (You can see the confirmed quantity in the Schedule line tab)
Normally we don't change the LI quantity as per the ATP confirmed quantity (i.e 90). Because then we loose the visibility to the customers original requested quantity (i.e 100).
Say you don't change your Line Item Order quantity to 90. Then your delivery & billing will be for 90.
So you can see in VA05, Order quantity as 100 and confirmed quantity as 90.
Your sales reports will show delivery & billing as 90. So that you have a clear visibility to the original order quantity, delivered quantity & billed quantity.
Further if remaining (open) quantity 10 is appearing your MRP & creating troubles, please use Line Item Rejection Reason as Completed. So that everything is perfect.
Coming back to your issue.
Since your changing LI quantity to 90, you cant see 100 in the VA05 report. It always show the existing sales order line item quantity, which is 90 in this example.
Only way you can find your original sales order quantity is in the Line Item / Change Log.
This can be view by selecting below Menu option.
Environment -> Changes
If you execute it for the relevant Line Item, you can see the Change log. In that by double clicking relevant quantity change line, you  can see the old value & new value. (In this example 100 & 90)
But that is not a good practice to do as changes will show all quantity changes that you might do based on  customer request. (Imagine if you customer ask to change it later to 95 not 100).
In that case change log will display 100 to 95, then 95 to 90. So your loosing the required visibility.
Hope this is helpful to you !

Similar Messages

  • To POP up the open sales order quantity in Sales order

    Hi gurus,
    I hav a requirement that for example,I raised an order for 100 Qty and delivered 80 materials 20 is open,So when i raise an order for the same material for 50 Quantity,I need to get POP up box saying that 20 qTY IS OPEN. in Sales order.
    I am an SD consultant Please assist me in doing this requirement.
    Regards
    Narayana
    Edited by: manam narayana on Feb 6, 2008 12:08 PM
    Edited by: manam narayana on Feb 6, 2008 12:30 PM

    Hi Usha,
                    Thanks for ur early reply,can u make it clear for me.Like when i enter a sold to party  and material in VA01,This should check the open order quantities for a particular combination of sold to party and material and POP UP a message saying that the customer has open quantities for this material,So this Open quantities i found in VBBE table.Can u please explain me in clear how can i compare the values in T.code VA01 to VBBE table and how can i get  POP UP message.
    Regards
    Narayana
    Edited by: manam narayana on Feb 6, 2008 12:15 PM

  • View the actual sales order (VA03, Display Mode) by double clicking on the Document Number of any line item displayed in the report.

       CLASS LCL_HANDLE_EVENTS DEFINITION.
      PUBLIC SECTION.
        METHODS:ON_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_SALV_EVENTS_TABLE
        IMPORTING ROW COLUMN.
    ENDCLASS. "lcl_handle_events DEFINITION
    DATA: EVENT_HANDLER TYPE REF TO LCL_HANDLE_EVENTS.
    *       CLASS lcl_handle_events IMPLEMENTATION
    CLASS LCL_HANDLE_EVENTS IMPLEMENTATION.
      METHOD ON_DOUBLE_CLICK.
        CASE COLUMN.
          WHEN C_VBELN.
            READ TABLE T_FINAL INTO WA_FINAL INDEX ROW.
            IF SY-SUBRC = 0.
              SET PARAMETER ID: C_AUN FIELD WA_FINAL-VBELN.
              CALL TRANSACTION C_VA03 AND SKIP FIRST SCREEN. "#EC CI_CALLTA
            ENDIF.
        ENDCASE.
      ENDMETHOD. "on_double_click
    ENDCLASS. "lcl_handle_events IMPLEMENTATION
    Is Something Wrong With The Code?

    If you are using ABAP for the report this will fulfill your requirement.
    Take a close look at the ZUSEREXIT program.
    When you execute it you enter the t-code e.g. VA01.
    It will display the enhancements available in VA01.
    Now you can click on the user exit name and you will
    automatically be transferred to SMOD t-code with the
    selected enhancement as a parameter.
    You can see in the below code how simple it is to implement this.
    You will not call SMOD but VA03 t-code on click.
    You can use this code to execute it in SE38 and see how it works.
    CODE STARTS BELOW:
    report zuserexit no standard page heading.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
              tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
        select single * from tadir where pgmid = 'R3TR'
                         and object = 'PROG'
                         and obj_name = tstc-pgmna.
        move : tadir-devclass to v_devclass.
           if sy-subrc ne 0.
              select single * from trdir where name = tstc-pgmna.
              if trdir-subc eq 'F'.
                 select single * from tfdir where pname = tstc-pgmna.
                 select single * from enlfdir where funcname =
                 tfdir-funcname.
                 select single * from tadir where pgmid = 'R3TR'
                                    and object = 'FUGR'
                                    and obj_name eq enlfdir-area.
                 move : tadir-devclass to v_devclass.
               endif.
            endif.
            select * from tadir into table jtab
                          where pgmid = 'R3TR'
                            and object = 'SMOD'
                            and devclass = v_devclass.
             select single * from tstct where sprsl eq sy-langu and
                                              tcode eq p_tcode.
             format color col_positive intensified off.
             write:/(19) 'Transakcija - ',
                  20(20) p_tcode,
                  45(50) tstct-ttext.
                         skip.
             if not jtab[] is initial.
                write:/(95) sy-uline.
                format color col_heading intensified on.
                write:/1 sy-vline,
                       2 'Naziv exita',
                      21 sy-vline ,
                      22 'Opis exita',
                      95 sy-vline.
                write:/(95) sy-uline.
                loop at jtab.
                   select single * from modsapt
                          where sprsl = sy-langu and
                                 name = jtab-obj_name.
                        format color col_normal intensified off.
                        write:/1 sy-vline,
                               2 jtab-obj_name hotspot on,
                              21 sy-vline ,
                              22 modsapt-modtext,
                              95 sy-vline.
                endloop.
                write:/(95) sy-uline.
                describe table jtab.
                skip.
                format color col_total intensified on.
                write:/ 'Broj exita:' , sy-tfill.
             else.
                format color col_negative intensified on.
                write:/(95) 'Nema user exita za ovu transakciju'.
             endif.
           else.
               format color col_negative intensified on.
               write:/(95) 'Transakcija ne postoji'.
           endif.
    at line-selection.
        get cursor field field1.
        check field1(4) eq 'JTAB'.
        set parameter id 'MON' field sy-lisel+1(10).
        call transaction 'SMOD' and skip first screen.

  • Open Sales Order Quantity

    Hi,
    Does anyone know what table & field is the open sales order quantity stored?
    Thanks.

    Hi Marc,
    U can get the open order quantity like this.
    First go to VBFA table. Give sales order number, item and document category as J(for delivery) in the fields VBELV(Preceding sales and distribution document), POSNV(Preceding item of an SD document), VBTYP_N(Document category of subsequent document) respectively. If an entry exist then that means the order has subsequent document created(Delivery in this case). If not  then that order is open.
    if it is open order then u can get the quantity from
    VBAP-KWMENG.
    Here subsequent document to the order depends on customization of ur system. In general subsequent to order will be delivery. But there is a possibility to have other than delivery as subsequent to order. So contact ur functional for more inputs on this.
    Thanks,
    Vinod.

  • Sales order quantity billed instead of delivered quantities?

    Hello.  I am having an issue with billing delivered quantities.  This is the scenario:
    3rd party, non stock materials, are assigned to a network activity in cj20n.  These items generate a PR which is then converted to a PO and goods receipt is posted to the network activity. A sales order is created and assigned to this wbs.  Delivery from project is then carried out in CNS0 and picking and goods issue is posted in vl02n.  If full quantity received to project is not issued out in vl02n, upon billing in vf01, the total sales order quantity is billed.  How do I alter my configuration such that only delivered quantities are billed?

    Hi
    Its seems that your sales order quantity billing issue has been solved.If it is solved then kindly share with us,how the problem has been solved.As there prices are not picking in the billing document, so please check the pricing type that has been maintained in the VTFL copy control.Secondly also check in VOV7 wheather item category is relevant for pricing has been maintained or not.
    You get the delivery document to determine prices from sales order to delivery through copy controls.
    NOTE:If the issue(Sales order quantity billed instead of delivered quantities) has been solved then kindly close the thread and  post your issue through new thread
    Regards
    Srinath

  • Rounding : User flexibility to edit the Sales Order quantity.

    Hello Gurus,
    We are on 6.0 and have the following requirements.
    1st requirement: To round the Sales Order Quantity to the Alt Unit of Measure (higher or lower). As a solution we could use the Rounding Profile.
    The problem is with 2nd requirement below.
    2nd business requirement: When the system rounds the Sales Order quantity to higher or lower, the user should have the flexibility to edit the Sales Order quantity and decide whether to permit rounding or not, as suggested by the system.
    Currently, with standard config, the system gives the message V1720 saying it has rounded the quantity with a reason. After the rounded quantity is suggested by the system, even if the user edits the Sales Order quantity, the system puts it back to the previously rounded quantity.
    SYSTEM REQUIREMENT : We would like to have the Rounding but we want the user to be able to edit the rounded quantity.
    REASON : Since the products are high value, we want the customer to feel comfortable with the rounded quantity.
    The users do not want to impose the rounded quantity compulsorily on the customer. If the customer is not comfortable with the rounded quantity, the customer should be givne the choice of a non-rounded quantity.
    IMPACT : In these difficult times, every Order is important. If we don't not give this choice to the customer, the customer might decide not to order at all. We do not want to lose the Order just because of the higher rounded quantity. But, at the same time, we would like to give the choice to the customer of the rounded quantity and his non-rounded quantity.
    PLEASE NOTE : In this situation, the Rounded quantity is slightly different from Minimum Order quantity. The Minimum Order quantity is not the solution.
    QUESTION : Is there any standard setting or is User Exit, BADI the only method ?
    Thanks in advance
    Srinivas

    Hi Prakash,
    Thanks for the reply. Actually these customers are created as a Agents and we are using these customers in Commission rebates. So at the time of Rebate partial credit memo, then these agents should be active otherwise system will give the error.
    So what i am thinking is, Standard sales order creation needs to be restricted so that users can not able to create standard order.
    So can you suggest is there any user exit can be used to prevent creation of standard order for these account group and order type xxx?
    Regards,
    SK

  • Order recommendation must be extra than the sales order quantity

    Hi Expert,
                   My client is using the MRP wizard to generate the Purchase and Production order once a sales order comes from customer than MRP create the production order for parent item and purchase order for chilld items with required quantity but there is a possibility of rejection which comes to know at the end of production and to complete the quantity required some time.
                                                                                    Is there any possibility that MRP generate the recommendation 10%(for example) extra than the sales order quantity.So that it will full fill the rejected quantity at the end of production.
    Thanks

    Hi,
    MRP in B1 designed in a way that you don't need to enter many choices to select from.  To fulfill your goal, I think it is not that difficult because you could export recommended order and calculate the new total by a formula like New Qty = Recommend Qty * 1.1 in Excel and DTW the production orders using the calculated results.
    Thanks,
    Gordon

  • Update the sales order ( Quantity ).

    Hi Experts,
    I am using BAPI_SALESORDER_CHANGE. I want to change only Quantity of a sales order for that I pass it in ITEM Table and set the flag for these values in ITEMX table.
    After executing BAPI it runs Successfully so I commit it by using BAPI_TRANSACTION_COMMIT.
    Now my query is after commited BAPI it does not update the  related sales order in database.
    Why is it occurs meantime it is possible manually by VA02.
    Suggess what to do to solve this?
    Points will be sured for helpful answers.
    Thanks & regards
    Alok Vishnoi

    Hi Alok,
    If you want to change the quantity in a sales order item using BAPI_SALESORDER_CHANGE you have to pass the new quantity in the Schedule Lines (SCHEDULE_LINES) table to the BAPI_SALESORDER_CHANGE. Then only the new quantity gets reflected at the item level.
    If u just change the quantity at the Item level it will not get effected.
    I hope it is useful. Please let me know if u need any information.
    Regards,
    Suresh Linga.

  • Restrict the Sales Order Quantity in Integer

    Hi All,
    our system need to restrict the Sales Order Quantity in having no decimal value.  
    We have got the OSS reply as:  
    "Unfortunately I regret to tell you that it is not possible to
    restrict the order quantity number to integer in standard system.
    The number of allowed decimals is defined in the system via SE12.
    In SE12, you can see that for VBAP-KWMENG, the number of allowed decimals is 3. I'm sorry but this is the standard system behavior."
    But we need to avoid programming. Can you anyone suggest any work around methods, like define rounding profile to do the restrictions.
    Regards,
    Simon

    Hello All,
    Thanks for the excellent answere.
    Please anybody can provide us the SAP OSS Note for the same as the reply received from SAP Support.
    We have got the OSS reply as:  
    "Unfortunately I regret to tell you that it is not possible to
    restrict the order quantity number to integer in standard system.
    The number of allowed decimals is defined in the system via SE12.
    In SE12, you can see that for VBAP-KWMENG, the number of allowed decimals is 3. I'm sorry but this is the standard system behavior."
    But we need to avoid programming. Can you anyone suggest any work around methods, like define rounding profile to do the restrictions.
    Regards,
    Farhan

  • Open sale order quantity in VA05

    hi all,
    can anyone please tell me the function module or bapi or Table to find out open sales order quantity coming in VA05.
    regards.

    First of all define what is open , is it created but notdelivered , or delivered but not invoiced.
    The table VBUP has flags for statuses eg
    A     Not yet processed
    B     Partially processed
    C     Completely processed
    A for open , B for partial C for complete , so by checking this table you will find which are actually delivered or invoiced completely.
    Tcode V.02 gives u this option.

  • How to avoid that two or more people alter the same Sales Order same time

    I'm looking for a way to avoid that two or more people altering the same Sales Order at the same time.
    If someone has entered a Sales Order in the system and something needs to be adjust it can be done by two or more people at the same time. The problem is that when someone is saving these changes, the changes of another person, who is still working on the same order, get lost.
    So what we need is an alert that someone is already using this order and that no other person can make any changes at that time. So the order needs to be blocked for altering for any other person at that time.
    To avoid this I think you have to do something with the Stored Procedure. Or has someone a more simple and better solution.
    I've already put this thread in the Business One forum and someone suggested to put it in the Business One SDK forum, as there isn't a solution in Business One itself.
    So if someone can give me a direction for a solution I would be very pleased.
    Best regards,
    Tim

    Hi Tim,
    The only thing that comes close to what you want in standard SBO is Data Ownership. However, this can't stop someone editing a document that is already being edited.
    You can't use stored procedures to track which document is open because the SBO_SP_TransactionNotification proc (which is the only one that you are able to customise) is triggered when a document is updated or added (or cancelled or closed) and not when the document is actually being edited in the user-interface.
    You could do this by writing an addon that uses the UI API to trap events in the sales order form. In theory, a sales order is being edited if the sales order form is in Update mode (ie in order for the form to be in Update mode, the user must have selected an existing document and changed the value of at least one field). You can trap the event of the user changing a value and then log the user and document in a table. When other users try to edit the same document, you could check the table and then prevent them changing values. When the first user clicks on the update button (or cancels the update or closes the form etc etc) you can remove the lock on the document. However, I have doubts as to how robust it would be. The problem with this kind of locking solution is that you sometimes get 'stranded' locks (eg user was editing a document when their workstation crashed) and the solution can end up being more troublesome than it is worth.
    Kind Regards,
    Owen

  • Open Sales Order quantity & value

    Hi,
    We have a requirement here of report to show open sales order quantity & value for any month (monthend). There is a datasource 2LIS_11_V_ITM which gives Open order quantity. I have created an ODS with 2LIS_11_VAITM & 2LIS_11_V_ITM which can give me desired qty & value, but only for date of last data upload and not for date in the past.(and to get that, I have to sumup all open orders quantity without using any date filter)
    I am thinking of creating a Infocube over this ODS to update the Open Order qty & value at the monthend (Snapshot scenario). But to update this, I am not able to get the logic for date to be used in time dimension.
    If anyone can think of the solution or any alternate way to develop this kind of report, your help/suggestions are most welcome.
    Thanks,
    Vikram.

    Hi Vikram,
    Find the link, which solves u r requirement
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bi/arobustdesignofopensalesorderdataflow
    Thanks & Regards
    Ramakrishna Kamurthy

  • SALE ORDER QUANTITY LESS THAN DELIVERY QUANTITY ? NO CECK IN SAP ??

    Hello friends,
            I created a sales order of quantity  10 , having two material codes each having quantity 4 and 6 . i created delivery for the one by putting delivered quantity 4 and save , then i created delivery for second and put delivered quantity 8 which was greater than the sale order quantity left ,system saved the delivery and didn't popped any error message.  
                                     Does SAP have options to over come this mistake by end users.
    regards

    Dear Joshi,
                      Please get in touch with your abap er as there user exits which can be written to avoid this situation.
                      Let me explain you further one more situation.
    First one, Your query is if for  item A ord qty is 6 the system saved the delivery with 8 qty which is greater than ordered quantity.  I know the gives a warning doing this.
    Second Situation :
    Say item A ordered qty is 5, and i made a delivery for 3 and saved it. Now the open quantity on the order is only 2. (5 -3 =2).  But one of our users reduced the ordered quantity to 2 despite saving a delivery with quantity 3.
    so the situation is ord qty is 2 and delivered is 3 qty. which is again wrong. But while reducing the ordered quantity less than the delivered quantity the system gives a warning message telling "  ORDERED QUANTITY IS LESS THAN DELIVERED QUANTITY ".
    Also just imagine we made delivery for qty 5 and invoiced it.After which you reduced the delivered quantity to say 3. So delivered is 3 but invoiced is 5.
    Hence for these kinds of practical problems we have addressed them through user exits with the help of our ABAP'ers by turning those warning messages into error messages by selecting the suitable message class.
    Hope the explanation helps you. And thanks for all your patient reading.
    Reward points if useful.
    Thanks & Regards
    Sadhu Kishore

  • Storing the Material Sale Order Wise

    In our Scenario PO is made Sale Order wise, but when the Material is received and entered in the Stock, it become difficult to indetify the Material which has come against which SO.
    My requirement is that if the Material is received Sale Order Wise then it shud be saved in the Store Sale Order Wise and also at the same time it will be issued Sale Order wise, to keep the track of material being issued against Sale Order Wise.
    i hope i have cleared my query, any clues.....
    abhishek suppal

    Hi,
    When you are trying to create PO with reference to SO what is the item category used in SO, Use item category as "TAB" then SO will generate a Purchase Requisition. Convert this Purchase requisition in to Purchase Order, account assignment will be copied as "E Individual Customer stock" Sales order and Cost element will populate from PR.
    When you post the GR for above PO, the stock is managed as Special Stock indicator "E" sales order stock, in MMBE also it displays as SO stock.At the time of GR value is booked to SO and stock will be shown in MMBE.
    This stock is reserve for particular SO against which you have procured, but you can transfer post the same from SO stock to your OWN stock
    Hope this clarifies,
    Thanks & Regards,
    Sridhar

  • How to  find the Open sale orders till date for  given plant and material ?

    Hi experts,
                     I have a requirement to calculate the open sale orders for a given plant and material. I have tried in VA05 wherein i can get only for the material and sales area combination. From the document nos obtained from VA05 i can then find the plant. But my question is how do i get the output of VA05 into my progra. (can i use submit for a module pool report ).
    Also if ther is some other standard table or Function module to find the open sale orders till a given date ,it will be even more helpful....in which case i can drop the VA05 route.
    Kindly help
    Thanks in advance
    Ashwin

    Hi Ashwin,
        You can use SAP Tables VBAK and VBUP to get to know if the document is complete or not.
       VBUK-GBSTK is the field that will give you the status of the Sales Order .
      VBUK is used at header level , whereas VBUP is used for Item level.
      So in your case what I would do is :
      Get the Sales Orders that satisy the plant and material criteria from VBAP table , take this Sales Document numbers and go to VBUK or VBUP table to get the Sales Order Status. 
       If I need to find the open quantity as well I will link to VBFA table based on the document number.
      Reward if helpful.
    Thanks,
    Imran

Maybe you are looking for

  • Agrupamento de itens da cotação de venda na nota fiscal de saída

    Olá pessoal, Na cotação de venda eu digito vários itens como serviço, cópias A4, cópia A3, heliográficas e também despesas de viagens. Na nota fiscal gostaria que saísse somente os serviços e no caso das cópias ele agrupasse num único item, bem como

  • How do I loop through tables, not columns in a table?

    Sorry if this is a long one. My problem is actually quite simple. I am trying to write either an ad hoc PL/SQL block or a stored procedure to loop 18 times (thru 18 tables) and perform a SQL query on those tables, returning 18 resultsets. I would lik

  • Error while uploading the data

    Hi All, I changed a key figure from integer to a decimal.  later i tried loading the masterdata from data source which consists that keyfigure as an attribute. data is loaded successfully into the PSA but while running the DTP i get the runtime error

  • Oracle 9i OCA/OCP Exam

    Hi, I just want to know that is it compulsory to study in any prometric centre for appearing in all exams of 9i/10G? Someone told me that, i will not eligible to appear in exam, until and unless i am not student of any prometric centre. Is it right?

  • About ANSI  X12

    can anybody tell how i identified the data in ANSI X12 format which i received? which position identified which field?