Sales order qty - Invpice qty - Creditmemo qty

Hi gurus,
Our billing Scenario is Order related Billing. I created a sales order for 200 qty and i generated an invoice for 30 qty.
due to some reasons i created a creditmemo request for 30qty and i created a creditmemo also for 30qty.
Now i want to create an invoice for 200 qty, in this case shala i increase the qty from 200 to 230.
Otherwise  can icreate an invoice for 200 qty with out changing any qty(200) in the Sales order
Cheers,
Sumith

Hi Sumith,
As Per my understanding of the problem,
You have created Sales Order of 200 Qty so Here Open Quantity is 200,
Created invoice for 30 Qty, Open qty is 200-30 = 170,
Created credit memo for 30 qty , So open qty again 170 + 30 = 200 ( If you dint get Any product back)
So from here you can directly create Invoice for 200 Qty whjich are open so no need of creating any extra quantity invoice.
Hope this will help you.
Reward Point if helpful.
Thanks,
Raja

Similar Messages

  • Block sales order creation based on material qty

    Hi,
      In my scenario i want to block the sales order creation based on material qty , how i can do this?
    Example:
    Material qty below 100 = able to create sales order
    Material qty above 100 = not able to create SO
    Thanks,
    Arun

    Hi
    For restricting the order if it is less than a specified qty, you can maintain the 'min order qty' in material master.
    But your requirement is the other way round - Restrict order if it is more than specified qty.
    In this case, you need to use the following sales order exit  in progran MV45AFZZ
    u2022     USEREXIT_SAVE_DOCUMENT_PREPARE
    Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.
    The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.
    Hope this helps.
    Regards
    Madhu

  • Error while Making Sales order Ref. to quaotion by increasing Qty.

    Hi,
      We are making quaotation for customer for qty 1 pcs,  and after that ref. to that quotaion we are making Sales order and in sales order we are increasing the qty. as per customer PO  means  if we amke Quatation for 1 qty we are making Sales order for 3 qty  but system is giving error that Quation qty. is less than sales orser qty. Difflict qty. 3 no  to 1 no.
    this error we are getting now previous we were working on same scenario and it was working fine  so where is the meaasge setting for this.
    regards,
      zafar

    Hi,
    The message for yours is V1494
    The message V1494 is hard-coded as Warning and Information message in the includes
    FV45PF0V_VBAP-ZMENG_PRUEFEN_VO  and FV45EF0V_VBEP-WMENG_PRUEFEN_VO. Therefore it is not possible to set them as Error message in Customizing. The only option you have is to MODIFY the standard Code to get an ERROR message.
    All the V1 Error Messages are Standard Messages and not able to change in Customizing.
    regards,
    santosh

  • Sales order can not delete if it is free goods inclusive qty.

    Dear sir,
    I am unable to delete the sales order in the system.
    This sales order has Free Goods items. Total order qty is 100 pcs.  Main item has 98 pcs and sub item 2 pcs are free sending to customer with 0.00 net value.
    When I deleted sales order only main item with qty 98 can be deleted. but sub item for 2 pcs can not deleted and below msg. appears.
    Item 000021 may not be deleted (free goods inclusive quantity)
         Message no. V1724
    Can anyone please help in this regard. How to deleted sales order with free goods inclusing qty. Any copy control setting.
    Please advise
    nain b chand

    Dear Durga Sana
    No sir, I have deleted first main item. then  second time tried to delete together and third time tried to delete from sales document then delete both  but could not delete  and same  msg. is appearing.
    Further please note this is return order created with reference of billing document.
    We have created return order but now not need to further process.
    Hence we want to delete this return order. In this case sub item as free goods can not delete and msg as marked above is appearing.
    Any solution for this free goods item please SAP experts?
    regards/nain b chand

  • Confirmed qty change in Sales Order

    Hi all!
    Do you know if exsist a fm or bapi to modify the confirmed quantity in schedule line of a sales order?
    I know that exsist BAPI_SALESORDER_CHANGE but I'm not able to modify confirmed qty.
    My flow consists in two steps:
    1. sales order create with confirmed qty = 0;
    2. sales order change to modify confirmed qty.
    Thanks,
    Gianluca

    Confirmed quantity is a result of configured ATP rules and availability of the inventory. System has control over it and it is not changeable. Imagine a situation where system says that the confirmed quantity is 10 cases based on the inventory availbility and you go out there and change to 100... does it make sense to be able to change it like that?
    So, no you cannot change it. You can only influence it by changing your order quantity or adding inventory or move some reserved quantities to unreserved status etc.

  • Rounding of qty from sale order to planned order

    Hi ,
    There is sale order for 'X' material with qty 94,861meters, but when a planned order is generated the qty is rounding to 94,870 meters.
    can any one give the reason, what are the things should be changed.
    Regards,
    somiraghu

    Hi,
    In IMG under
    Production -> Master Requirements Planning -> Planning -> Lot-Size Calculation -> Maintain Rounding Profile
    Regards,
    Srilatha.

  • Support Contract wref to sales order-how to get serial number

    Hi Experts,
    Below is the scenario
    Step 1:I sell product[supplied by thirdparty] in sales order  123456
    Material number     Description      Qty
    material-0001         Printer             2
    Step 2:While purchase it from 3rd party it will be having serial number which can be entered manually while doing goods receipt. Eg:
    Material number        Description    Qty      Serial number
    Material-001              Printer           1         PS-10001  
    Material-001              Printer           1         PS-10002
    Step 3: Now I create a support contract with reference to the sales order 123456 for the sold printers.Here I need to capture the serial numbers of both printers, so that when customer complaints, the item can be identified.
    How can we achieve this in the contract?
    Waiting for a quick reply
    Thanks
    Banu

    Hi Banu,
    1. Create a Contract with Service product.
    a. Create a Service material in MM01, with material type DIEN
    b. Create a General Task list master (Tcode - IA05).
    c. Attach this Task list with the Service material using OISD Tcode (set the reference object Equipment - if your equipment and serial number are same) -->(Service Product)
    2.Attach the Technical objects (Equipment Number or Material number + Serial Number) to the line item service product.Maintain the contract data like price, start and end date.
    3. Create a Sales order VA01, with reference to the Contract document
    a. Configure this sales document type, material type to determine the Item category TAD
    b. Let this Item category has the Requirement type SERA (maintain Service order type in requirement class(230 as default)
    4. System will ask you the equipment number to create a Service order.
    5. Enter the Equipment number,
      System will ask you to select the Operations from the task list that has been attached with the Service product in step 1.c
    6. Save the sales order and open in Change mode.
    7. In Scheduled lines tab, you can find a "Service order button". Click on the button, will show the service order for the given Equipment number in display mode.
    You can edit the Service order IW32, and confirm the operations and issue materials to capture the actual cost and settle to the Sales order.
    Hope this would help.
    Regards,
    Babu.K

  • When sales order get cancelled

    Hi Gurus
    Please explain the  process when sales order is created for 10 QTY and production order released for 10 qty and all operations confirmed for 5 QTy & moved to FG remaining  5 no qty is in WIP, so then sales order get cancelled, and got another new sales order with different specifications with same qty.
    now i want convert the cancelled sales order qty to new sales order qty
    please explain me step by step
    with Regards
    Laxmipathi.G.V

    Hi
    Anyway you were doing the Activity confirmation for the 5 quantities at the operation stage.
    so the component only consumed for this production .when you check the material document for the particular confimation . you can see the component was consumbed. ( 261 movement)
    So you do the reverse the confirmation at the operation stage  CO13 . and you can reverse the components back to the production storage location back. (movement type 262)
    Edited by: raj on Jun 8, 2009 8:11 AM

  • APO gATP vs R/3 ATP - To check sales order ATP across multiple plants

    Hi There,
    I am trying to evaluate gATP functionality for SD sales orders.
    The primary requirement is to have sales order ATP checking take place across multiple plants.
    E.G.
    Sales order line is entered for qty 100
    60 is available in plant A, 40 is available in plant B
    System checks both plants and creates 2 lines - one for delivery from plant A and one for delivery from plant B
    (we are currently heading down the road of writing ABAP to do this 'multi-plant' check in R/3 but the more complex the requirements get the more interested I am in understanding more about APO/gATP)
    I would like to understand the benefit of implementing APO / gATP as opposed to using standard R/3 ATP and perhaps writing custom ABAP code to search for inventory across multiple plants.
    I would appreciate any insight regarding what is required to setp gATP to perform such checking and any other feedback regarding this issue - especially if you have had to implement something similar at your company.
    I have looked here but not much clear help:
    http://help.sap.com/saphelp_scm50/helpdata/en/26/c2d63b18bc7e7fe10000000a114084/frameset.htm
    Thanks,
    Niall

    Hi Niall
    you are probably looking at RBATP (Rule based ATP). Look at transaction /sapapo/rba04 in APO where you develop your own location and product substitution rules. Going down an ABAP road in R/3 may work short-term but not long-term as the requirements may get more complex.
    Regards
    Srinivas

  • Adding item positions with reference to contract in sales order

    Hi all,
    I would be very grateful if some of you could help on this:
    I have a requirement to add lines with reference to a contract while the user is creating or modificating it via VA01 or VA02. The logic flow will be as follows:
    if the user enters a new item position with reference to a contract, and the qty entered exceeds the qty in the position selected of the contract, we have to skip the standard error message and try to spli the quantities in several positions with the same material in the contract.
    As an example:
    the contract 000000000001 has 5 lines:
    line     material       qty
    01       mat1           100
    02       mat1           50
    03       mat1           50
    04       mat2           n/a
    05       mat2           n/a
    if the user picks up the line 02 of the contract to create a new line in the sales order, and enters 180 as qty, the sap standard will raise an error, saying the qty has exceeded the contract qty. Ok, we have to skip that error (maybe could we set it as a warning??) and 'split' the qty as follows:
    in the sales orders, 3 lines will be created automatically
    line    material     qty
         mat1         100
         mat1         50
         mat1         30
    and of course, the released quantities in the contract must be updated: i.e the contract should be as follows:
    line     material       available qty
    01       mat1           0
    02       mat1           0
    03       mat1           20
    Any ideas? : )
    What i've done by the moment is to check is that 'split' is possible, in userexit_save_document. If not (e.g. if the user enters 220 for mat1 in the previous example), a custom error will appear. If it is possible, then the sales order will be created (only with the line the uswer entered) and I will trigger somehow a FM processed in background to modify the sales order.
    my question now is: how can i add lines to the created sales order, making reference to some contract lines?
    I've seen BAPI BAPI_SALESORDER_CREATEFROMDAT2 is used to create a document with reference, but can i use it to MODIFY an existing sales order?
    any help would be greatly appreciated.
    thanks a lot for your help.
    regards.

    Hello,
    there's a function module called 'BAPI_SALESORDER_CHANGE', which could change a sales order. The problem could be,that these BAPI's enque the salesorder. So if you start them in background via an userexit, you have to be sure that the salesorder is updated and dequeued by posting.
    An other way could be to use the exit 'userexit_check_vbap' in MV45AFZB. It's called after creating a new position or changing a position. All existing positions at that time in a internal table 'XVBAP', which you could change. (But be carefull, that you don't create an endless loop !).  
    The check about the contract quantity is in a form routine called 'vbep-wmeng_pruefen_folgebeleg(sapfv45e)'.
    Have a look into the form 'vbap_pruefen_ende' in FV45PFAP_VBAP_PRUEFEN_ENDE. There's the whole thing done including the call of the userexit.
    Regards Wolfgang

  • Stock deficit when line item changes in sales order

    Hi expert
    i am using 4.7,i am getting deficit when i am pgi for sales order
    Scenario
    i have assigned serial number for material
    i have sales order of 5 lines item with total QTY 5, with sales order, i make PR,purchase order and migo, now some reason one of of line item od sales order get rejected, so we reverse all the step of migo and PO, then we create a new line item for sales order, then PR,purchase order and migo.
    Now i am doing PG for that Quantity i show deficit of 1 Qty,
    But in MMBE be agiant the sales order its showing me 5 Qty.
    If it is development, how do we achieve this.
    Let me know if you need more details on this. Appreciate your possible solutions to this.
    Thanks
    Rgds
    Nabil

    solve by own

  • How to explode a BOM in sales order

    Hi,
    We have the following scenario.
    Product 999 is made by putting together cases of the products 12345 and 8888. The packaging for 12345 and 8888 is not altered but they just take 4 CAR of 12345 and 8 CAR of 8888 and put them on one pallet and that makes a 999.
    We get a sales order from customer only for 999 and we would like to have something happen automatically like BOM explosion ( this could be also a trigger when a background job is run) and the sales order should get the relevant qtys. of 12345 and 8888 in the same sales order along with 999.
    I was searching in internet and I found that we can use item categories to achieve this. Can some body advise how to do that?
    main questions around this are what are the item categories I need to use, what is the BOM type to be created etc...?
    Thanks.

    Hi,
    Maintain iteam category group in material master as per u requirement
    ERLA - Structre Material above (Price at main item level)
    or
    LUMF - Structure material below(Price at each item level).
    Now in t-code VOV7,
    Select higer level item category which you are dtermining mostlt
    TAP or TAQ, go in details of item category
    under bill of material tan/configuration maintain APLLICATION - SD01
    Now create Material BOM by CS01.
    It will explode in sales order.
    kapil

  • Price Updation in Sales Order

    Dear Experts,
    I have entered Sales Order without Price but now the time i am updating Prices of Finish Items.
    But in Sales Orders Partial delivered items are not being updated instead items with complete open quantity are being update.
    Plz Help..
    Regards,
    Ravi Jha

    Hi Joseph,
    Thanx for ur instant rply.
    There are open items in rows.
    For Sample
    I have two Items in Sales Order
    e.g.
    ITEM      QTY.       DELIVERED         OPEN
    ABC       100         25                       75 PCS
    DEF        100          0                        100 PCS
    THE FIRST ITEM GIVEN ABOVE WITH OPEN 75 PCS QTY. IS ALSO NOT BEING UPDATE YET THE QTY. IS OPEN.
    REGARDS,
    RAVI JHA

  • Inconsistency in Sales Orders Assignment in Planning Book

    Hi Experts
    When i create sales Orders in ECC,sales orders are assigned  to the Planning Book but some times when i change the Quantity for the existing salers Orders , Changes are not getting reflected in the Planning Book Immediatly.
    Some times system is giving pop up like 'sales order does not exist'.
    When i delete existing sales order in ECC, the incomming Qty in Planning book should be changed to zero, but its not reflecting.
    What measures we need to take to prevent such inconsistencies?rds
    Thanks in Adavance
    Regards
    Vasu

    Hi Vasu,
    In general, the above are product allocation consistency checks which
    checks the following
    These will display the confirmation date, quantities, used product
    allocation settings, sales order , product etc.,
    1) Checks if is there any single assignments without an incoming
    orders quantity
    2) Checks if is there any single assignements without a sales order
    due to error
    3) Checks if is there any single assignements without a characteristic
    combination in place.
    SAP recommends to check the affected sales orders again.
    Regards
    R. Senthil Mareeswaran.

  • BAPI/Function module TO block material which is mentioned in sales order

    Hi All
    Is there any BAPI to block material which is mationed in sales order....
    I am using BAPI_MATERIAL_AVAILABILITY to check material availibility
    how to block quantity if it is available whicl creating sales order via
    "BAPI_SALESORDER_CREATEFROMDATA2"
    ..Thanks

    The normal SAP ATP done in the sales orders use the figure ''committed qty'' meaning that if the ATP has been done and confirmed, that quantity will not appear in the next sales order as available.
    So if You're using the normal BAPI to create the sales order, the normal ATP function will be called in the processing.
    Nevertheless another solution to this issue is to have the MTO (Make-to-order) solution where the requirements are ''attached'' to one sales order/line only.....like this the problem of the stock being taken to another customer disappears.
    To do this you'll have to configure the following :
    - Go to SPRO and go to Sales and distribution -> Basic functions -> Availability check and transfer of requirements -> Determination of requirements using transaction - Here insert the entry with your sales order type - MRP type (from material master - you might want to consider create one only for this solution) and you should use one of the following:
      - KEL      Make-to-order, mat. variants
      - KELV     Make-to-ord.variant + consump
      - KP       Make-to-order with project 
    and choose the origin of your requirement - 1 - Item category + MRP Type
    - Than configure the association of the requirement type above to the requirement class (normally is the same code) transaction *OVZH*
    - Than configure the requirement class (this is what will tell the system the MTO) transaction *OVZG* - On the screen in the field Special stock - E - Sales order stock and please ask for help from an FI consultant because the area of *Account assignment is very important to be well configured*
    About the BAPI you're using - Its correct - That's the normal BAPI to be used, taking only into consideration the product allocation issue - MARA-KOSCH
    Explaining a little the BAPI you're using :
    The program should check if the selected material is allocated or non-allocated.
    This information is stored in a field MARA-KOSCH.
    We should check this field and if the field is not empty then material is allocated, otherwise is not:
           select kosch into l_kosch
            from mara
           where matnr = <VBAP-MATNR>. " Selected material
            if subrc = 0.
               if l_kosch is initial.
                  +" Perform calculation for non-allocated materials+
               else.
                  +" Perform calculation for allocated materials+
              endif.
           else.
         " Material not found, skip it ...
          endif.
    For allocated materials it will be checked allocation for the netting market of that Order.
    The calculation rules for allocated and non-allocated materials are different.
    For Non-allocated materials
    BAPI 'BAPI_MATERIAL_AVAILABILITY' should be used for getting the ATP quantity.
    Bapi should be called as follows --
    data: lfl_bapiwmdvs type bapiwmdvs,
    lit_bapiwmdvs type standard table of bapiwmdvs,
    lfl_bapiwmdve type bapiwmdve,
    lit_bapiwmdve type standard table of bapiwmdve,
    l_dialogflag type bapicm61v-diafl.
    call function 'BAPI_MATERIAL_AVAILABILITY'
    exporting
    plant = <VBAP-WERKS>
    material = <VBAP-MATNR>
    unit = <VBAP- VRKME>
    check_rule = 'A'
    +* STGE_LOC =+
    +* BATCH =+
    +* CUSTOMER =+
    importing
    +* ENDLEADTME =+
    +* av_qty_plt =+
    DIALOGFLAG = l_dialog
    +* RETURN =+
    tables
    wmdvsx = lit_bapiwmdvs
    wmdvex = lit_bapiwmdve.
    Please note that table lit_bapiwmdvs is the input table and to this following input should be passed -
    lfl_bapiwmdvs-req_date = sy-datum. "Current date
    lfl_bapiwmdvs- REQ_QTY = <Unconfirmed Quantity> in Sales Order Unit
    append lfl_bapiwmdvs to lit_bapiwmdvs.
    The return value l_dailog will be --
    ' ' --- Quantity can be Delivered -- Item to be displayed in the Report!
    'X' --- Complete quantity cannot be delivered -- ATP failed, Item not to be displayed.
    'N' --- Material not relevant for ATP --- Item not to be displayed in the Report.
    For Allocated materials
    For the allocated Materials, we have to first do the ATP check in same fashion as for Non-allocated Materials and then in addition to this ATP check, we have to also check for Allocation from SIS table S941.
    If ATP check fails, straight away the Item should be ignored from Output display.
    If ATP check passes, we further check allocation as follows --
    Valid entry should select from S941 as -
    data: l_period like s941-spbup,
    l_BUPER LIKE T009B-POPER,
    l_GJAHR LIKE T009B-BDATJ,
    lfl_s941 type t_s941.
    data: l_bukrs type tvko-bukrs,
    l_periv type t001-periv.
    * Select company code
    select single bukrs into l_bukrs
    from tvko
    where vkorg = <VBAK-VKORG>.
    * Select fiscal year variant
    select single periv into l_periv
    from t001
    where bukrs = l_bukrs.
    * Get Period
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
    EXPORTING
    I_DATE = sy-datum
    I_PERIV = l_periv
    IMPORTING
    E_BUPER = l_buper
    E_GJAHR = l_gjahr
    EXCEPTIONS
    INPUT_FALSE = 1
    T009_NOTFOUND = 2
    T009B_NOTFOUND = 3
    OTHERS = 4
    IF SY-SUBRC <> 0.
    * Ignore entry and skip further processing
    ENDIF.
    concatenate l_gjahr l_buper+1(2) into l_period.
    select single kcqty aemenge from s941
    into corresponding fields of lfl_s941
    where SPBUP = l_period
    and KONOB = 'OBJ_ALL_MATERIALS'
    AND MATNR = <VBAP-MATNR>
    and zzcnetmark = <VBAK-ZZCNETMARK>
    and VRSIO EQ '000'.
    IF SY-SUBRC <> 0.
    *Ignore entry and skip further processing
    ENDIF.
    Remaining Allocation = difference between product allocation quantity and incoming order quantity
    i.e. (S941-KCQTY - S941-AEMENGE). Now we have to compare this qty with the Unconfirmed qty.
    Ensure same Material UOM for quantity comparison as follows --
    IF <VBAP-VRKME> NE <S941-BASME>.
    CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
    EXPORTING
    i_matnr = <VBAP-MATNR>
    i_in_me = <VBAP-VRKME>
    i_out_me = <S941-BASME>
    i_menge = <Unconfirmed qty in Sales UOM>
    IMPORTING
    e_menge = l_menge
    EXCEPTIONS
    error_in_application = 1
    error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    * Ignore entry and skip further processing
    ENDIF.
    ELSE.
    *If both Units are same no need for conversion
    l_menge = <Unconfirmed qty in Sales UOM>
    ENDIF.
    Then, compare if Remaining Allocation > = l_menge i.e. Unconfirmed quantity converted to S941-BASME unit, then there is enough allocation for this Material for the Unconfirmed quantity and should be displayed in the report.
    Else, the Item should be ignored.

  • VL10C double delivery notes for one sales order

    Dear all,
    Currently we encountered an very strange issue in our SAP.  we found that via VL10C, SAP create two duplicated ourbound delivery notes for one sales order, which resulted in a double items and amount in the billing document. These two deliveries notes are complete the same, which were created with 7 sec interval via VL10C. Check in the sales order, we can see delivery Qty was double against order Qty for all the items.
    does anyone have a clue on this issue? your effort and feedback will be most applicated!
    Thanks & Best Regards,
    Kyo NG

    Hi,
    I forgot this possible cause. Check Note 61148 - VL04 VL02 AME807 AME815: Insert to table VETVG and related notes, specially Note 931297 - VL10x, VL10HU - Duplicate entries displayed in STO.
    Regards,
    Eduardo

Maybe you are looking for