Sales By Qty Query Change

Hello All --
Also for this Query would like to have option of selecting month at start of Query.  Then Query only shows the month selected when run.
Thanks!!
Mike
SELECT T0.ITEMCODE,
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 1 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'JAN QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'FEB QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 3 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'MAR QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 4 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'APR QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 5 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'MAY QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 1 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'JUN QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 7 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'JUL QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 8 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'AUG QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 9 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'SEP QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 10 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'OCT QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 11 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'NOV QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 12 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'DEC QTY'
FROM [dbo].[OITM] T0
LEFT JOIN [dbo].[INV1] T1 ON T1.ItemCode = T0.ItemCode
WHERE T0.SellItem = 'Y'
GROUP BY T0.ItemCode,YEAR(T1.DOCDATE) HAVING  YEAR(T1.DOCDATE) = YEAR(GETDATE())
ORDER BY T0. ITEMCODE

Hi Mike,
Try the following:
- Create a UDT called MonthList (or whatever you want).
- Populate the Code column with month numbers and the Name column with the month names e.g. Code = 1 and Name = Jan, Code = 2 and Name = Feb and so on.
- Then use the following query to get your item values per the month you select:
DECLARE @Mth AS VARCHAR(30), @MthNum AS SMALLINT
SELECT @MthNum = CAST(T0.Code AS SMALLINT) FROM [dbo].[@MonthList] T0 WHERE T0.Name = '[%0]'
SELECT @Mth = T1.Name FROM [dbo].[@MonthList] T1 WHERE CAST(T1.Code AS SMALLINT) = @MthNum
SELECT CASE WHEN (GROUPING(T0.ITEMCODE) = 1) THEN 'TOTAL QTY - ' + @Mth
ELSE T0.ITEMCODE END [ItemCode], SUM(T1.QUANTITY) AS 'Mthly Qty'
FROM dbo.OITM T0
LEFT JOIN dbo.INV1 T1 ON T1.ItemCode = T0.ItemCode
WHERE T0.SellItem = 'Y' AND MONTH(T1.DocDate) = @MthNum
GROUP BY T0.ItemCode WITH ROLLUP
I have added in an extra TOTAL row that displays the total quantity and the month name you selected.
The only issue with this is because the Name column in a UDT is alphanumeric, when you click the parameter selection button the months appear alphabetically e.g. Apr, Aug, Dec...
If you wanted you could get rid of the extra row and just display the selected month as an extra column. You can also populate the UDT with the full month names if you wish.
Just change the SUM(T1.Quantity) to SUM(T1.Quantity*T1.Price) and any descriptions from 'Qty' to 'Amt' etc for your other query.
Hope that helps.
Regards,
Andrew.

Similar Messages

  • Sales By Amt Query Change

    Hello All -
    We have this Query used to view sales by Amt for each month.  Can we modify it so it does not show every month.  Instead, gives option to select the month at the start of the Query and only shows the month selected in the results?
    Keep everything else the same.
    Thanks!!
    Mike
    SELECT T0.ITEMCODE,
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 1 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'JAN Amt',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'FEB Amt',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 3 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'MAR Amt',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 4 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'APR Amt',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 5 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'MAY Amt',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 6 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'JUN Amt',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 7 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'JUL Amt',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 8 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'AUG Amt',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 9 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'SEP Amt',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 10 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'OCT Amt',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 11 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'NOV Amt',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 12 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'DEC Amt'
    FROM dbo.OITM T0
    LEFT JOIN dbo.INV1 T1 ON T1.ItemCode = T0.ItemCode
    WHERE T0.SellItem = 'Y'
    GROUP BY T0.ItemCode,YEAR(T1.DOCDATE) HAVING YEAR(T1.DOCDATE) = YEAR(GETDATE())
    ORDER BY T0. ITEMCODE

    This would not be possible through a simple SQL.  You will need a combination of a VIEW or Stored Procedure.
    The Base query for getting the Start and Ending Month
    DECLARE @FROM VARCHAR(10), @TO VARCHAR(10)
    /* SELECT FROM  [dbo].[OFPR] T0 WHERE */ SET @FROM = /* T0.Code */ '[%0]'
    /* SELECT FROM  [dbo].[OFPR] T0 WHERE */ SET @TO = /* T0.Code */ '[%1]'
    SELECT (SELECT T0.F_RefDate FROM  [dbo].[OFPR] T0 WHERE T0.Code = @FROM) [FROM MONTH], (SELECT T0.T_RefDate FROM  [dbo].[OFPR] T0 WHERE T0.Code = @TO) [TO MONTH]

  • Change in Sales Order Qty in a MTO scenario

    Hi,
    We had confirmed 5 Qty for the Production Order created with reference to Sales ORder(MTO scenario), now after confirmation of 5 qty, sales order qty is reduced to 3., then in this situation, what we need to do for the already confirmed extra Quantity 2 for this sales order. I think we need to cancel the confirmation for the extra qty 2?. Please clarify and explain what we need to do this for this extra Qty 2 in detail.
    Case 2) If the Sales Order qty is changed to 7, then we will be creating a new Production Order for this new quantity 2 with reference to the same sales order.  Am i correct?.IF wrong, please suggest how should we balance the extra requirement of 2 EA.
    Thanks in advance.

    Is your query being posted even before you actually tried the 2 cases which you refer to in your system?
    If so, then first do the simulation in your sandbox, check how system behaves when you do that. Also check by clicking on ATP check for the material within SO.
    Once you do the above your query will be self answered, if you still face any issue then revert with the specific details.

  • Sales order qty not possible to change.

    hi experts
    i have created a sales order with suppersession material  for 2 qty and we deliver only 1 qty to customer.
    now i want change the sales order qty 1 so that status gets completed.
    but in VA02 material qty is in hidden mode cant possible to make changes. this is happening with suppersession material only.
    need your support
    thank you

    hi dear
    thanks for the reply again
    schedule line is also in grey mode. cant possible to make changes.
    let me add on this
    when we create order suppersession material entered with item cat. TAPA which generate automated second line item cat TAN. when we make delivery TAN gets copied in the DO and Billing afterthat.
    but issue is once delivery created. in VA02 order oty field (KWMENG)  become in grey mode. cant possible make any changes ?
    i have checked both the item categories completion rule which is (not relevent for completion)

  • User exit for sale order qty change

    Hi all,
    In our industry we are creating Sale Order for MTO Scenario by using T.Code VA01 . Most of the time after taking the MRP run and raising PO for BOM components, Users are changing the qty in the sale order . eg. and due to that it is becoming difficult to make necessary change in production programe. .Now please give me solution/ userexit  so that anybody cannot change the sale  order qty and it must be check the authorised userid to do necessary change in sale order.
    I am waiting for your valuable suggestion.
    Thanks & Regards

    Hi LIMAYE,
      You can use user exit include 'MV45AFZZ'.
    Make necessary changes in FORM USEREXIT_MOVE_FIELD_TO_VBAP.
    XVBAP will contain the old values before making the changes. You can comapare the quantity wtih VBAP field.

  • Finding the original quanitity on sales order : Select Query on CDPOS ?

    Hello ABAPers,
      I have created a sales order and I changed the order quantity over many times using Va02. If i want to programatically determine the orginal quantity, on the sales order when it was created , how would i determine ?
    I thought, I would do a select query on CDPOS table and find out. But i found from se16 that for the Object ID - VERKBELEG and Object id = 00000XXXXX ( where XXXXX is sales order number), the VBEP and VBAP entries for Update mode shows no Old_vales and New_values.
    But if i click on environment>Changes> in Va02 for that particular Sales order, I see the old and new values list.
    Why is this not listed in CDPOS ? How do I progrmatically determine the original quanitity on Sales order ?
    Thanks
    SHK

    Hi Ferry,
      That FM did the trick. I ended up creating a FM myself to find the original qty and original unit. Somehow select qry on CDHDR and CDPOS, returned empty field for Old_value and new_value. Here is my FM below
    FUNCTION z_sw_originalqty_on_so.
    *"*"Local interface:
    *"  IMPORTING
    *"     VALUE(I_VBELN) TYPE  VBELN OPTIONAL
    *"     VALUE(I_POSNR) TYPE  POSNR OPTIONAL
    *"  EXPORTING
    *"     VALUE(I_ORIGINAL_QTY) TYPE  KWMENG
    *"     VALUE(I_ORIGINAL_UNIT) TYPE  VRKME
      DATA : i_editpos TYPE TABLE OF cdred INITIAL SIZE 1  .
      DATA : wa_editpos LIKE LINE OF i_editpos.
      DATA : wa_editpos1 LIKE LINE OF i_editpos.
      DATA : i_cdhdr   TYPE TABLE OF cdhdr INITIAL SIZE 1.
      DATA : i_cdpos   TYPE TABLE OF cdpos INITIAL SIZE 1.
      DATA : wa_cdhdr  LIKE LINE OF i_cdhdr.
      DATA : wa_cdpos  LIKE LINE OF i_cdpos.
      DATA : i_objid TYPE  cdhdr-objectid.
      DATA : delimiter(1) VALUE ' '.
      DATA : lv_org_qty(127)      TYPE c,
             lv_org_unit(127)      TYPE c.
      DATA : l_tabkey TYPE cdpos-tabkey.
      DATA : i_flag.
      CLEAR i_flag.
      CONCATENATE sy-mandt i_vbeln i_posnr '0001'  INTO l_tabkey.
      i_objid = i_vbeln .
      CALL FUNCTION 'CHANGEDOCUMENT_READ'
           EXPORTING
                objectclass                = 'VERKBELEG'
                objectid                   = i_objid
                tablekey                   = l_tabkey
                tablename                  = 'VBEP'
           TABLES
                editpos                    = i_editpos
           EXCEPTIONS
                no_position_found          = 1
                wrong_access_to_archive    = 2
                time_zone_conversion_error = 3
                OTHERS                     = 4.
      IF sy-subrc <> 0.
        SELECT SINGLE bmeng  INTO i_original_qty FROM vbep
                       WHERE vbeln = i_vbeln  AND
                             posnr = i_posnr.
        SELECT SINGLE vrkme INTO i_original_unit FROM vbep
                       WHERE vbeln = i_vbeln  AND
                             posnr = i_posnr.
      ENDIF.
      SORT i_editpos  BY udate utime tabname fname .
      LOOP AT i_editpos INTO wa_editpos.
        READ TABLE i_editpos INTO wa_editpos1
                 WITH KEY tabname = 'VBEP'
                          fname   = 'WMENG'
                          CHNGIND = 'U'.
        CLEAR : i_original_qty,i_original_unit.
        IF sy-subrc EQ 0.
          SHIFT wa_editpos1-f_old  LEFT DELETING LEADING space.
          SPLIT wa_editpos1-f_old AT delimiter INTO lv_org_qty lv_org_unit .
          i_original_qty  = lv_org_qty.
          i_original_unit = lv_org_unit.
          i_flag = 'X'.
          EXIT .
        ENDIF.
      ENDLOOP.
      sy-subrc = 4.
      IF sy-subrc <> 0 AND i_flag NE 'X'.
        SELECT SINGLE bmeng  INTO i_original_qty FROM vbep
                       WHERE vbeln = i_vbeln  AND
                             posnr = i_posnr.
        SELECT SINGLE vrkme INTO i_original_unit FROM vbep
                       WHERE vbeln = i_vbeln  AND
                             posnr = i_posnr.
      ENDIF.

  • Sales order qty display

    On my sales order qty only 'four digit' numbers show up.
    For example, 1000 will show up on the print out.
    However, 10000 will not show up and will be desplayed as *000 with an *
    How do i get all digits to display?
    Edited by: ManjeetSingh on Mar 16, 2010 1:42 AM

    Ask your ABAPer to do the changes in the Smart Form of Sales Order.It is due to settings maintained in the Smart Form which allow to show only 4 digit for Sales Order Quantity.
    Best Regards,
    Ankur

  • Va05 open sales order qty

    Hi,
    When we run the VA05 Transaction it is not showing the open sales order qty as out put.
    Please help me how can achieve it.
    we are using 4.7
    Thank you.

    Hello ,
    you'll find the documentation via customizing (Transaction SPRO) : Path
    Sales -> System modification -> create new fields ( without condition technique) -> New fields for lists.
    You can change V05TZZMO and structure VBMTVZ from there or use SE38 / SE11.
    For both you'll need an object registration in OSS.
    Regards Wolfgang

  • Update sales order qty through BAPI_SALESORDER_CREATEFROMDAT2

    HI
    Can anybody help me out.  I have the requirement for creating sales order through BAPI_SALESORDER_CREATEFROMDAT2. The sales order is created but with 0 quantity.
    I am using fields RNDDLV_QTY and TARGET_QTY and REQ_QTY in schedule lines & also setting the update indicator to 'X'  in the corresponding itemx structures.
    In fact it used to work earlier and has stopped now. I am also checking if there could be any change in configuration but don't think this should be the reason.
    Can someone guide me as to which quantity fields of the BAPI are the right ones to update sales order qty?
    thanks

    Hi,
    You are using the correct fields i.e. TARGET_QTY and REQ_QTY. Just check if you are passing the same Item Number in both the tables.
    Hope it helps...
    Lokesh

  • Daily Production Plan query changes

    Dear Experts,
    I was tried  to do a daily production plan query,  but i need to add one more feild in the below query, (ie) In sale order Document, Row level feild of Quantity ( RDR1,Quantity) should be in that query,
    SELECT T0.[ItemCode],T1.[ItemName], T0.[PlannedQty] as 'Planned Qty', T0.[DocNum] as 'Doc No', T0.[PostDate], T0.[OriginNum] as 'Sale Order No', T0.[CardCode], T0.[CmpltQty] as 'Completed Qty' FROM OWOR T0 join OITM T1 on T0.Itemcode = t1.ItemCode WHERE T0.[PostDate] >='[%0]' and T0.[PostDate] <='[%1]'
    Plz help me.
    Thanks and Regards,
    Manikandan

    Hello Manikandan,
    You can add the sales order into the production order, but you should now: there is no connection defined between sales order lines and production order, only the item code can be used as reference to sales order lines
    I mean:
    *if you have the same item in sales order lines in different position the query always multiplies the result. *
    So you can join the sales order header for Origin Number and DocNum, and sales order lines by Itemcode
    SELECT
         T0.[ItemCode],T1.[ItemName], T0.[PlannedQty] as 'Planned Qty', T0.[DocNum] as 'Doc No', T0.[PostDate],
         T0.[OriginNum] as 'Sale Order No', T0.[CardCode], T0.[CmpltQty] as 'Completed Qty',
         T3.[Quantity] [Sales order Qty], T3.LineNum [Sales order Postion]
    FROM
         OWOR T0 join OITM T1 on T0.Itemcode = t1.ItemCode     
         left outer join ORDR T2 on T0.[OriginNum] = T2.[DocNum]
         left outer join RDR1 T3 on T2.[DocEntry] = T3.[DocEntry] and T3.[ItemCode] = T0.[ItemCode]
    WHERE T0.[PostDate] >='[%0]' and T0.[PostDate] <='[%1]'
    Regards
    J.

  • Delivery Qty Greater than Sales order Qty

    Dear All,
    I want to do delivery against a Sales order,but system is allowing me to do PGI more than the Sales order qty,please advice where i can restict my PGI agisnt the Sales order qty.
    Regards,
    Muzamil

    Dear Prashanth,
    Thanks for your quick reply and resolution
    We have a problem when there is a delivery from projects(CNS0).When we are running the transaction CNS0 and entering  Qty 7, and creates delivery, system generates a Delivery Number and takes us to VL02N where we enter batch,picked qty and storage location.Here we find delivery quantity 7 by default and if we change the quantity from 7 to 10 even then system accepts more quantity as it checks the project stock.
    We want system should not allow the delivery quantity more than the quantity specified in the CNS0.
    We are not creating sales order as we directly delivering from projects.
    In the previous case,as you suggested we made the changes in delivery item category,but the same logic is not working here as it is without sales order.
    We are using item category DLP and Delivery type is LP.
    Request you to provide your valuable inputs
    Thanks in advance
    Regards
    Muzamil

  • FiX lot size & minimum sale order qty .

    hi all
    We maintained minimum order quantity  for material ; can we put massage sale oraganization wise
    ie for SO IN01 Massage type is 'E"
    & for IN02 massage type is 'W"
    If my minimum order qty. is 10 then SAP will accept the sale order qty. with multiple of 10 .
    Eg. If customer placed order qty. 15 Nos. Dose SAP convert  it into 20 automatically ?
    PL. suggest me how to configure this scnerio

    Hello,
    Min sales order qty is controlled through MMR Sales Org 1 - if you want it to round up or down to the correct order quantity then you will need to create a rounding profile (see below).
    Otherwise to change your message from a info or warning to an error goto transaction OVAH message V4 082 and change to E = error.
    Rounding Profile
    Key that the system uses to adjust the order proposal quantity to deliverable units.
    Procedure
    In Customizing, enter a threshold value from which the system should round up to the next value per deliverable unit:
    If the requirements value exceeds the first threshold value, the system always rounds up to the next multiple of the level found
    If the requirements value falls below the first threshold value, the system copies the original requirements value.
    Two other types of rounding exist:
    Dynamic rounding profile:
    These profiles are used to round up quantities to logistical units of measure (for example, layers). The contents of a logistical unit of measure does not have to be know when creating the rounding profile. It is determined by the master data from the material master.
    Rounding profile with quantity to be added/subtracted
    With these profiles, the given quantity is changed either by adding a percentage or subtracting a percentage.
    Only static rounding profiles are taken into account in requirements planning. Neither dynamic rounding profiles not quantity addition/ subtraction are taken into account.
    Examples
    A material's base unit of measure is 1 unit; the purchase order is to be delivered in layers (1 layer corresponds to 5 units) or in pallets (1 pallet corresponds to 8 layers which contains 40 units).
    You maintain the profile as follows:
    From a requirements of 2 units, the system is to round up to 5; from a requirement of 32 units, the system is to round up to 40.
    This results in the following order proposal quantities:
    Requirement from 1 -> 1 requirement from 31 -> 30
    Requirement from 2 -> 5 requirement from 32 -> 40
    Requirement from 6 -> 10 requirement from 74 -> 80
    Requirement from 7 -> 10
    Dependencies
    If no rounding profile has been entered, the system uses the rounding value entered in the material master record for the planning run
    Kind regards
    Sue

  • Logic for Open Sales order qty

    What should be the logic given to determine "open sales order qty" during designing a report.
    Note the criterias are as under:
    1) Open sales order qty is the confirmed qty less the delivery qty.
    2) The delivery qty should be delivery order qty (The delivery should not necessarily be pick, packed & PGI)

    sorry it doesn't work for services, since they do not create requirements.
    in this case you can use VBFA table, subracting all the delivered quantities VBFA-RFMNG with VBFA-VBTYP_N = J and VBFA-VBELV/VBFA-POSNV = to your order/item from the ordered quantities
    hope  this help you.
    Roberto

  • Sales order qty not updated in copa

    Hi Gurus,
    My client has activated Costing based COPA.
    We have activated Incoming sales orders with option
    Transfer with date of deliery/scheduled billing date.
    When We are posting sales order we are able to see a copa document with record type A.
    In that document we want to see the Sales order quantity or delivery quantity, delivery date fileds.Please let me know what all the value fields We need to assign.
    Do I need to write any derivation rule for incoming sales arders also.
    we are able to capture the  total price, material etc from the sales order in COPA document.We need only sales order qty or Delivery qty or delivery date to be updated in COPA document.
    Please suggest me
    Regards
    Chaitanya

    Hi Chait,
    Pl check whether your client has assigned SD Qty Fields to COPA Quantity fields in KE4M. Sd quantity fields are FKIMG- Billed Quantity, KWMENG-Order Quantity and the same shall be assigned to ABSMG-Sales Quantity. If not, please maintain the same. Otherwise, we need to look for some other work around solution.
    Trust this resolve your problem!
    Cheers!

  • Sales order qty not confirmed when delivery done with partial qty

    Hi Guru's
    Need your help............
    We have issue in drop shipment scenario process. Sales order created with 10 line items from CRM and order released from CRM and replicated order to ECC and backend created PR also. After that user set reject status for all items so that PR line items also deleted, again user released rejection status for all items and line items updated in the same PR with different line item number for materials then PO & GR also done in ECC and stock also allocated for sales order line items but still sales order qty not confirmed in CRM sales order. 
    I checked all configurations regarding availability check but could not found.
    Example:
         Sales order line item qty: 4            -      2 qty confirmed (delivered).
         For remaining qty (2 items)I have done GR. After GR It is allocated to sales order but it is not confirming the order quantity.
    plz help me to fix this issue?
    regards
    sai

    Hi,
    Please check In ERP transaction OVZJ, for the sales org, distribution channel, and division that is being used in the affected sales orders, set the Avail. Check Rule to 'E'. Then retest the issue, as this might help.
    Regards
    Gavin

Maybe you are looking for