Sales order debit memo quantity.

Posted on behalf of a colleague - I had created a sales order of quantity 25, and then create the partial  delivery and invoice of 24 . When I create the debit memo req w.r.t to the sales order it is also getting created for quantity 24.
Now I have created the delivery & invoice of remaining quantity (i.e. Qty = 1).
When I create the debit memo req w.r.t to sales order it is showing me the quantity as 49.
(i.e. 25 + 24 ) instead of subtracting the quantity is getting added .
Please advice.
Edited by: Sandeep Gambhir on Nov 29, 2010 8:02 AM

Hello,
Please check the field 'Pos/Neg qty' field in field copy control.
Regards,
Raghavendra

Similar Messages

  • Cost center in Sales Order/Credit memo request

    Hi SAP Gurus,
    There is a requirement from our client. They are processing Credit Memo from SD VF01 via Credit memo request. The want to assign Cost center in the line items which is greyed out at the time of processing in VF01.
    I also verified in the Credit memo request in VA02 even there is no field available for to maintain  Cost center in line item so that at the time of billing it can  derive.
    Please advice whether can we assign the Cost centers in Sales order/Credit memo request line items?.
    Regards
    NTH

    Hi NTH,
    In the standard system, the field cost center is only ready for input
    if the sales document category is VBAK-VBTYP= I (that is, order without
    charge). For all other order types, you can make it visible by entering
    an order reason provided that the combination of the sales area and the
    order reason has a cost center assigned in OVF3. To change this standard
    behaviour, USEREXIT_COBL_SEND_HEADER can be used. There you can find a
    short example on how to make a field visible and modificable in the
    account assignment screen.
    Moreover, please take into account that the account assignment to a cost
    center is possible only at header level. So it is not possible to
    insert the cost center at item level, you can only insert it at header
    level.
    The cost center determination takes place in
    FV45KF0V_VBAK-KOSTL_ERMITTELN and is reading from table TVAUK.
    This table can be maintained in transaction OVF3.
    If you wants to be able to enter the cost center manually in the
    account assignment screen (header level), you can use  the user exit
    FV45PF0C_COBL_SEND_PBO_VBAK (SAPMV45A) - there you can find a short ex
    ample on how to make a field visible and modifiable in the account
    assignment
    I hope that this information is of assistance to you. Thanks!
    Regards,
    Alex

  • 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

  • BAPI For Create Goods Issue for Sales order with picked quantity

    Hi friends,
            Is there any BAPI available to create Goods issue For sales order with picked quantity...............?
    we hv used BAPI_OUTB_DELIVERY_CREATE_SLS
    with sales order .......its creating delivery order but not doing goods issue with piked quantity........

    pls,reply its argent

  • 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

  • Sale order with Zero quantity

    Hi,
    I should not see the sale order with Zero quantity in APO product view . I tried by de-selecting the Display customer requirement w.0 qty from user setting in product view but it din work.
    Is there any other option to switch off sale order with zero quantity in product view ?
    Regards
    BVN

    Hi Valavan,
    Please check in customisation under PPDS whether set order view/periodic product view is
    maintained
    Regards
    R. Senthil Mareeswaran.

  • Problem in Sales Order Credit Memo

    Hello All,
    The problem is related to item category ZTAN where we have changed the Completion Rule to B and in VTAF ( Bill to Order Copy Control) under Item details for Credit Memo Request for example from Domestic Invoice to Credit Memo we changed the positive/negative quantity updation to positive. Now after changing the completion rule we were facing a problem where after completion of Sales Process till generation of Invoice the document flow was showing the status as :Being Processed". Then after changing the Completion Rule again to 'blank' the problem of document flow status was solved as it showed the status as "Completed".
    Now after doing this change in Item Category for normal sales order we are facing a problem in Credit Memo where again after completion of Credit Memo the document flow status here is showing as 'Being Processed' instead of 'Completed'. Please suggest what configurations need to be done to get the desired result which is in Credit Memo after completion the status will show as "Completed".
    Thanks & Regards
    Priyanka Mitra

    Hello Mr. Shiva Ram,
    First of all thanks a lot for your help.The problem of credit memo is now solved but to resolve the status of the existing sales order documents as per your suggestion we have run the  program SDVBUK00 in SA38.Still we didn't get the desired result as the status of the completed normal sales orders are still showing "Being Processed" even after running the program.
    Please suggest what else need to be done to change the status of the completed sales documents till invoice.
    Regards
    Priyanka Mitra

  • Static Credit check at Sales Order for confirmed quantity only.

    Dear All,
    I am facing two problems and would really appreciate if you could give some inputs on it.
    If a SO is of 100 tons and the confirmed quantity is 10 tons then the credit check is happening  for the value of confirmed quantity only as per the requirement.
    1. But after releasing the SO using VKM3 I have to carry availability check again in the sales order as the confirmed quantity is becoming zero. Pls tell me how to control this, the confirmed qty should not change.
    2. If I increase the confirmed quantity to more than 10 still the system is allowing me to create the delivery without blocking for credit check again as I had released the SO credit for value of 10 tons goods only .
    Regards,
    Abhilash

    HI,
    1) T-code OV27- You have not maintained confimation block here.
    2) T-code OVA8- Select the  credit settings and double click it.You get Display View "View for maintenance of automatic credit control" .
    Maintain the deviation in "released documents still unchecked" section.
    Thanks,
    Vrajesh
    Edited by: Vrajesh Nayak on Jul 24, 2008 5:28 AM
    Edited by: Vrajesh Nayak on Jul 24, 2008 5:35 AM

  • Creation of sales order(Credit memo request) w.r.t invoice

    Hi want to create a Credit memo request (sales order) with respect to a invoice.
    Can any body suggest me a bapi or Fm which will directly create a sales order with input as invoice number?
    Also all mandatory import export parameters to be filled?
    Thanks in Advance,
    Rohan.

    You should be able to use one of these BAPIs (depending on your release - the ...2 one is the lates and greatest, it seems):
    BAPI_SALESORDER_CREATEFROMDAT1
    BAPI_SALESORDER_CREATEFROMDAT2
    BAPI_SALESORDER_CREATEFROMDATA
    You'll find a lot of information on them anywhere, please use search. There is also a decent documentation available for each one of them.
    The invoice reference will have to be entered as follows (note that it's always at line level):
        order_items_in-ref_doc = <invoice number = VBRK-VBELN>.
        order_items_in-ref_doc_it = <<invoice line number = VBRP-POSNR.>.
        order_items_in-ref_doc_ca = 'M'.   " or whatever category is applicable
    Keep in mind though that BAPIs do NOT always work the same way as VA01. If, for example, you have the requirements and copy routines (VOFM), they might get bypassed when creating an order with BAPI.
    Any follow-up questions I'd suggest to post in ABAP forum. Good luck!

  • Show to show Sales Order, Return, Delivery Quantity

    Hi all,
    See the following query of sales order with combination of Return, Delivery and AR invoice.........and tell how to show Quantity of Sales, return and delivery.........
    SELECT b.Doc_Num1 as 'SO. No.',
    b.DocDate1   as      'SO. Date',
    b.Doc_Num2   AS      'Del.Doc.No.',
    b.DocDate2    AS      'Delivery Date',
    b.Doc_Num3   as      'A/R Invoice No.',
    b.DocDate3    as      'Inv. Date',
    b.Doc_Num4   AS      'RETURN Doc.No.',
    b.DocDate4    as      'Ret.Date',
    b.CardName   as      'Vendor Name',
    b.NumAtCard  as      'Bill No. & Date',
    b.ItemCode   as      'Item Code',
    b.Dscription as      'Dscription',
    b.Quantity1  as      'AR Invoice Quantity',
    b.LineTotal  as      'Base Amt.(Rs.)',
    b.WTSum           AS      'TDS (Rs.)',
    b.DocTotal    as     'Total (Rs.)',
    sum(b.BED)    as           'Bed Value',
    sum(b.EDCS)   as          'EDCS Value',
    sum(b.HECS)   as          'HECS Value',
    sum(b.VAT)        as           'VAT Value',
    sum(b.CST)        as           'CST Value',
    sum(b.CVD)        as           'CVD Value',
    sum(b.SerTax)  as           'SERTAX Value',
    sum(b.CSonSerTax) as      'CS Value',
    sum(b.HECS_ST)      as      'HESC Value' 
    from (
    select *,( a.Bed + a.EDCS + a.HECS + a.VAT + a.CST +a.CVD + a.SerTax + a.CSonSerTax  + a.HECS_ST ) as Filter from (SELECT distinct
    T0.DocNum as 'Doc_Num1',
    T0.DocDate as 'DocDate1',
    T2.DocNum as 'Doc_Num2',
    T2.DocDate as 'DocDate2',
    M.DocNum as 'Doc_Num3',
    M.DocDate as 'DocDate3',
    M.CardName,
    M.NumAtCard,
    L.ItemCode,
    L.Dscription,
    L.Quantity as  'Quantity1',
    S.DocNum 'Doc_Num4',
    S.DocDate as 'DocDate4',
    L.LineTotal ,
    M.DocEntry,
    M.[DiscSum],
    M.WTSum,
    M.DocTotal,
    (case T.Statype
    when
    -90 then sum (T.[TaxSum]) / 4 else 0 end) 'BED ',(case T.Statype when
    -60 then sum (T.[TaxSum]) / 4 else 0 end) 'EDCS ',(case T.Statype when
    7 then sum (T.[TaxSum]) / 4 else 0 end) 'HECS ',(case T.Statype when
    1 then sum (T.[TaxSum])  / 4 else 0 end) 'VAT',(case T.Statype when
    4  then sum (T.[TaxSum]) / 4  else 0 end) 'CST ', (case T.Statype when
    10 then sum (T.[TaxSum]) / 4  else 0 end) 'CVD ', (case T.Statype when
    5  then sum (T.[TaxSum]) / 4  else 0 end) 'SerTax', (case T.Statype when
    6  then sum (T.[TaxSum]) / 4  else 0 end) 'CSonSerTax', (case T.Statype when 
    8 then sum (T.[TaxSum]) / 4 else 0 end) 'HECS_ST'

    Hi Sonal,
    Try this,
    SELECT b.Doc_Num1 as 'SO. No.',
    b.DocDate1   as      'SO. Date',
    b.Doc_Num2   AS      'Del.Doc.No.',
    b.DocDate2    AS      'Delivery Date',
    b.Doc_Num3   as      'A/R Invoice No.',
    b.DocDate3    as      'Inv. Date',
    b.Doc_Num4   AS      'RETURN Doc.No.',
    b.DocDate4    as      'Ret.Date',
    b.CardName   as      'Vendor Name',
    b.NumAtCard  as      'Bill No. & Date',
    b.ItemCode   as      'Item Code',
    b.Dscription as      'Dscription',
    b.Quantity1  as      'SO_Qty',
    b.Quantity2  as      'DLN_Qty',
    b.Quantity3  as      'A/R Inv_Qty',
    b.Quantity4  as      'Return_Qty',
    b.LineTotal  as      'Base Amt.(Rs.)',
    b.WTSum           AS      'TDS (Rs.)',
    b.DocTotal    as     'Total (Rs.)',
    sum(b.BED)    as           'Bed Value',
    sum(b.EDCS)   as          'EDCS Value',
    sum(b.HECS)   as          'HECS Value',
    sum(b.VAT)        as           'VAT Value',
    sum(b.CST)        as           'CST Value',
    sum(b.CVD)        as           'CVD Value',
    sum(b.SerTax)  as           'SERTAX Value',
    sum(b.CSonSerTax) as      'CS Value',
    sum(b.HECS_ST)      as      'HESC Value' 
    from (
    select *,( a.Bed + a.EDCS + a.HECS + a.VAT + a.CST +a.CVD + a.SerTax + a.CSonSerTax  + a.HECS_ST ) as Filter from (SELECT distinct
    T0.DocNum as 'Doc_Num1',
    T0.DocDate as 'DocDate1',
    T2.DocNum as 'Doc_Num2',
    T2.DocDate as 'DocDate2',
    M.DocNum as 'Doc_Num3',
    M.DocDate as 'DocDate3',
    M.CardName,
    M.NumAtCard,
    L.ItemCode,
    L.Dscription,
    T1.Quantity as  'Quantity1',
    T3.Quantity as  'Quantity2',
    L.Quantity as  'Quantity3',
    X.Quantity as  'Quantity4',
    S.DocNum 'Doc_Num4',
    S.DocDate as 'DocDate4',
    L.LineTotal ,
    M.DocEntry,
    M.[DiscSum],
    M.WTSum,
    M.DocTotal,
    Regards,
    Madhan.
    Edited by: Madhan Babu C on Aug 28, 2009 2:09 PM

  • Sales Orders line item quantity getting Zero after free good line item

    Hi experts,
    i am creating sales order using BAPI  BAPI_SALESORDER_CREATEFROMDAT2   sales order having some free goods material  and line item after free goods line item having quantity zero.
    for example A B are  materials, A having free goods a1.  when SO  having 3 line items 10 for A ,line item  20 for a1 and line item 30 for B . But line item 30 having quantity zero.
    find code below and advice .
    lwa_ord_head_in-doc_type       = 'ZSO'.
        lwa_ord_head_in-sales_org      = '1000'.
        lwa_ord_head_in-distr_chan     = '10'.
        lwa_ord_head_in-division       = '10'.
        lwa_ord_head_in-req_date_h     = lwa_rof_s-date_del.
    *Order Header Update
        lwa_ord_head_inx-doc_type       = 'X'.
        lwa_ord_head_inx-sales_org      = 'X'.
        lwa_ord_head_inx-distr_chan     = 'X'.
        lwa_ord_head_inx-division       = 'X'.
        lwa_ord_head_inx-req_date_h     = 'X'.
        lwa_ord_partners-partn_role  =  'AG'.
        lwa_ord_partners-partn_numb  =  lwa_rof_s-lease.
        APPEND lwa_ord_partners TO lt_ord_partners.
        IF lwa_rof_s-del_addr IS INITIAL.
          lwa_ord_partners-partn_role  =  'WE'.
          lwa_ord_partners-partn_numb  =  lwa_rof_s-lease.
          APPEND lwa_ord_partners TO lt_ord_partners.
        ELSE.
          lwa_ord_partners-partn_role  =  'WE'.
          lwa_ord_partners-partn_numb  =  lwa_rof_s-lease.
          APPEND lwa_ord_partners TO lt_ord_partners.
        ENDIF.
        lt_rof_it_t = lwa_rof_s-zsd_rof_it_t.
        LOOP AT  lt_rof_it_t INTO lwa_rof_it_s.
          lwa_ord_items_in-material = lwa_rof_it_s-matnr.
          lwa_ord_items_in-plant = lwa_rof_s-plant.
          lwa_ord_items_in-target_qty = lwa_rof_it_s-qty.
          lwa_ord_items_in-comp_quant = lwa_rof_it_s-qty. "added on 12/29
         lwa_ord_items_in-target_qu = 'EA'.
         lwa_ord_items_in-t_unit_iso = 'EA'.
          APPEND lwa_ord_items_in TO lt_ord_items_in.
          lwa_ord_items_inx-material = 'X'.
          lwa_ord_items_inx-plant = 'X'.
          lwa_ord_items_inx-target_qty = 'X'.
          lwa_ord_items_inx-comp_quant = 'X'.
         lwa_ord_items_inx-target_qu = 'X'.
         lwa_ord_items_inx-t_unit_iso = 'X'.
          lwa_ord_items_inx-updateflag = 'I'. "'U'
          APPEND lwa_ord_items_inx TO lt_ord_items_inx.
         ** Schedule Line Information
          lwa_schedule_lines-itm_number = '000010'.
         lwa_schedule_lines-sched_line = '0003'.
          lwa_schedule_lines-sched_line = 'X'.
          lwa_schedule_lines-req_date   = lwa_rof_s-date_del.
          lwa_schedule_lines-date_type  = '1'.
          lwa_schedule_lines-req_qty    = lwa_rof_it_s-qty.
          APPEND lwa_schedule_lines TO lt_schedule_lines.
         lwa_schedule_lines_x-itm_number = '000010'.
         lwa_schedule_lines_x-sched_line = '0003'.
          lwa_schedule_lines_x-updateflag = 'I'.
          lwa_schedule_lines_x-sched_line = 'X'.
          lwa_schedule_lines_x-req_date   = 'X'.
          lwa_schedule_lines_x-date_type  = 'X'.
          lwa_schedule_lines_x-req_qty    = 'X'.
          APPEND lwa_schedule_lines_x TO lt_schedule_lines_x.
        ENDLOOP.
        CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
          EXPORTING
      SALESDOCUMENTIN               =
            order_header_in               = lwa_ord_head_in
            order_header_inx              = lwa_ord_head_inx
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
       IMPORTING
         salesdocument                 = lwa_saledocu
       TABLES
         return                        = lt_return
         order_items_in                = lt_ord_items_in
         order_items_inx               = lt_ord_items_inx
         order_partners                = lt_ord_partners
         order_schedules_in            = lt_schedule_lines
         order_schedules_inx           = lt_schedule_lines_x
      ORDER_CONDITIONS_IN           =
      ORDER_CONDITIONS_INX          =
      ORDER_CFGS_REF                =
      ORDER_CFGS_INST               =
      ORDER_CFGS_PART_OF            =
      ORDER_CFGS_VALUE              =
      ORDER_CFGS_BLOB               =
      ORDER_CFGS_VK                 =
      ORDER_CFGS_REFINST            =
      ORDER_CCARD                   =
      ORDER_TEXT                    =
      ORDER_KEYS                    =
      EXTENSIONIN                   =
      PARTNERADDRESSES              =
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .

    Hi experts,
    I am still waiting for your response......
    Thanks in advance
    Deepanker

  • Sales order info and quantity in the invoice accounting document

    Hi,
    When saving the accounting document at sales invoicing time, I do not succeed in retrieving information such as the quantities sold, sales order number,... whereas the field status group for the concerned account is activated (optional) for the field "quantity" and "sales order".
    Moreover, there is a field I would to retrieve the net weight that is displayed in the sales invoice, in my accounting document. Is this possible?
    Thank you for your help,
    Ronan

    Hi Kapil,
    Just commit the data base .Generally when we create any data using fm or bapi it wont commit database. Take the fm and sequentially use another fm if you did this from se37. If you did this from report just commit data base. It will commit data base and create a record. Please close the thread if it is answered.
    Regards,
    Madhu.

  • Hai all sales order  discription and quantity should not allow modification

    Hi all
    any one plz respond me, my requirement is once the sales order approved then its not allow any modification  like order quantity, discreption and first delivery date in the change mode va02 and va22 plz help me .
    regards,
    venkat.

    You can use user exit   MV45AFZZ and here
    FORM USEREXIT_FIELD_MODIFICATION.
    CASE SCREEN-GROUP3.
      WHEN '900'.
        IF VBAK-VBTYP NE 'A'.
          SCREEN-ACTIVE = 0.
        ENDIF.
    ENDCASE.
    CASE SCREEN-NAME.
      WHEN 'VBAK-VBELN'.
        SCREEN-ACTIVE = 0.
    ENDCASE.
    ENDFORM.
    Write your code between Form and endform.
    try to mention sy-tcode is VA02.
    then it won't distrb others.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Sales Order for Bulk quantity

    Hi,
    My client has a scenario like Order is created for bulk quantity, say 1000 MT for whole year for one sold to party. Now they create DI (Despatch Instruction) with reference to order for bulk quantity say 100 MT for particular one Ship to Party. Now 10 invoices are created against this DI.
    Now Ship to party is decided at the time of DI creation only and there are more than 100 ship to parties for one sold to party.
    Requiremnt is
    1. While creation of sales order of 1000 MT, I don't want to specify Ship to Party.
    2. I want to enter ship to party manually while creation of Delivery of 100 MT.
    3. I want to create 10 billing documents of 10 MT each with reference to same delivery.
    Challanges are:
    1. As there are more than 100 ship to parties for one sold to party it is not feasible to specify ship to party in sales order. If I create multiple line items then it is possible to specify different SH for each line item, but it would not be feasible beacuse I have more than 5 products in same sales order. Then it would be 100 * 5 = 500 line items in sales order.
    2. How to enter SH at the time of delivery creation.?
    3. Having single line item of 100 MT in delivery document, how can I create multiple invoices of 10 MT each using delivery.?
    Can anyone please guide on this..?
    Regards,
    Falgun

    Hi,
    I had worked on this scenario
    Solution for changing SHIP to PARTY in delivery
    Enter multiple ship to parties in customer master and in delivery header go to PARTNER tab and click on ICON propose alternative then select respective ship to party
    OR ELSE
    Go to SE16N
    Put table TPAER
    Tick mark to maintain entry (if in display mode put command &sap_edit and just enter tick mark will come auto)
    Then put partner determination procedure LF (LF is partner detrmination procedure for delivery)
    Put partner SH
    Execute
    Remove X indicator from not changable coloumn and save now you will be able to change Ship to party in delivery
    After this block t-code VOPA so no one can change it if some one run this t-code indicator will be reset as it is program writen so block it.
    For billing split manual option
    VF01
    Click on selection list
    Maintain open quantity as 10 and click on copy and then excute and save invoice
    If you want it automatically for fixed 10 qty then write data transfer routine by VOFM
    Assign it in copy control delivery to invoice at item level for VBRK/VBRP Data
    Kapil

  • Copy a sales order to creade a sales order credit memo request

    Hi,
    I copied a sales order from i.e. 100.000 (type ZMA) to another one i.e. 200.000 (type ZCMR), the last one is a Credit Memo Request.
    Now when I try to create the credit memo by VF01 for the sales order 200.000, I'm getting the error message: ZCMR ZPOS cannot be invoiced with billing type ZCM.
    I would create the credit memo from the sales order type ZCMR
    Is this possible ?
    Best Regards

    Hi,
    In general the Credit memo request would be created referncing the Invoice. 
    In your case, you have mentioned that credit memo request is created a Sale order. Not sure of the specific scenario if you have any,
    on point 2, yes,  you may create Credit memo referencing the Credit memo request.
    In all places, check for the copy controls from the preceding document to the successing one.
    If this helps,  Text Removed
    Regards,
    VBASHA.
    Edited by: Lakshmipathi on Feb 3, 2012 5:13 PM
    Dont add such comments and deviate the forum rules

Maybe you are looking for

  • MBP creaking issue

    So what's the deal with this? I've heard about people exchanging their MBP's and still getting this annoying sound. Is apple ignoring this issue? After spending so much money on Apple products I'm really getting disappointed in their quality, there i

  • Acquisition HDV 4 canaux audio avec Adobe Première CS6 ??

    Bonjour, Je possède une caméra Sony 270 permettant l'enregistrement HDV avec 4 canaux audio distincts, mais je n'arrive pas à faire l'acquisition de mes rushes. Les options de réglages d'acquisition CS6 ne permettent que la prise en compte des canaux

  • ITunes 10.5 freeze when i plug iPhone or iPad2

    Hi! I'll been have this problem for the past few days and i can't upgrade any of my others iPhones. iTunes work fine for music, videos etc. but when i plug my iPhone's or my iPad2 stop working doesn't say anythink. Please help me to fix that. Thank y

  • Underline problem

    Dear all, I have a problem with one pdf file. It doesnt want to undeline or highline the text. It only allows to use notes, freehand and signature. On all the other pdf files everything works just fine. What can be the problem? I have already sent yo

  • Songs won't load

    Dragging songs from iTunes into LogicExpress8 is usually easy but sometimes a banner appears saying the "file already exists" and will not load the song into Logic. Anyone know why, please?