Quantity and Days based Sales Discounts?

We have almost 1600 SKU's. We want to setup discounts based on number of days and quantity. We want that these discounts be calculated automatically based on number of days in which a customer made payment as well as the quantity of sales. How this can be done?

Naeem
Number of days discount comes under cash discount condition type SKTO which is linked with payment term. Check its functionality and read threads about SKTO in SCN or Google.
Quantity base discount is entered in invoice. You can use K004 or make copy of it and follow the standard settings.
Quantity discount will be entered before saving the invoice and invoice would be saved Sale price-Discount but number of days discount will be posted at the time of entering payment.
For further clarification come up with some scenario or example.
Thank$

Similar Messages

  • Block Purchase Order quantity and price based on BOM and Production quantity respectively

    Hi Everyone,
    Hope you can help in my first project in sap b1.
    My client requires that when a purchase order of subcon materials has been created it will get the 'price' from BOM row level unit price and 'quantity' from Production order row level quantity. My questions is if i there is a way to limit(block the document from addition) when does values has been changed greater than the reference document value? if ever, how?
    I'm new with SAP B1 and still learning.
    Im using SAP B1 9.0 PL 7 with Australian localization
    Thank everyone in advance!

    Hi,
    Try this :
    IF @transaction_type in ('A','U') AND (@OBJECT_TYPE='22')
    BEGIN
    If exists (SELECT t3.docentry FROM OWOR T0  INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry left join POR1 T2 on T2.[U_JONum] = T0.[OriginNum] and  T0.[ItemCode] =  t2.U_SubConItem] INNER JOIN OPOR T3 ON T2.DocEntry = T3.DocEntry WHERE T1.[PlannedQty] <> T2.[Quantity] and  T1.[ItemCode]  = 'subcon' and  T3.DocEntry = @list_of_cols_val_tab_del )
    Begin
    SET @error = 10
    SET @error_message = 'Not allowed to add more than planned'
    End
    End
    Thanks & Regards,
    Nagarajan

  • Quantity and Price Totals on Sale Order and Delivery Order

    Dear ABAP Gurus,
    I want to add totals of line items (Quantity and Price) in sale order and delivery order screens. Can you please guide me how to do this. The price can be any from pricing procedure ie exclusive or inclusive price of sales tax.
    regards,
    RSA
    Moderator message : Requirements dumping not allowed, show the work you have already done, thread locked.
    Edited by: Vinod Kumar on Jan 28, 2012 9:23 PM

    Hi,
    Try this :
    IF @transaction_type in ('A','U') AND (@OBJECT_TYPE='22')
    BEGIN
    If exists (SELECT t3.docentry FROM OWOR T0  INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry left join POR1 T2 on T2.[U_JONum] = T0.[OriginNum] and  T0.[ItemCode] =  t2.U_SubConItem] INNER JOIN OPOR T3 ON T2.DocEntry = T3.DocEntry WHERE T1.[PlannedQty] <> T2.[Quantity] and  T1.[ItemCode]  = 'subcon' and  T3.DocEntry = @list_of_cols_val_tab_del )
    Begin
    SET @error = 10
    SET @error_message = 'Not allowed to add more than planned'
    End
    End
    Thanks & Regards,
    Nagarajan

  • Automatically create scheduling lines based on quantity and number of containers

    Dear Gurus
    Our business requires that when creating a sales order automatic scheduling lines should be created based on the quantity and number of containers.
    i searched  and found of using VOV6 but i am a bit confused on how to set up this calculation logic.
    Thanks and Regards

    Dear Arun kumar
    Our business requires that when creating a sales order automatic scheduling lines should be created based on the quantity and number of containers.
    Generally shedulines  are confirmed Based On qty only ...Or Number of containers
    Check OVLZ   Maintain Days
    MMR--Maintain RLT  MRP 3 VIEW Or goods pressing time MRP2 VIEW
    VOV8--Lead time in days
    VOV6--Activate availability check, Req check box
    OVZ9--Remove RLT Check box
    SCAL--Factory Calendar also impact please check 
    If customer Is maintain complete delivery ..Make it Complete check box in XD01 But while creating Sales order if he agrees Partial delivery also according to company activate check box  Fixed qnty/date in Schedul lines
    And make it availability check in sales order level not in delivery level
    Let me know your requirement is some thing different

  • Not able to get the Quantity and partner details in the sales order created

    Hi Experts,
    I am creating a followup order using the FM "BAPI_BUSPROCESSND_CREATEMULTI" . The parameters iam passing are process type, quantity , sold to party (partner) and product ID. I am able to create a sales order but the Quantity and sold to party (partner) are not getting updated in the the sales order when i check in the transaction CRMD_ORDER. When i check in the crm_orderadm_h table and give the Headerguid , i am able to see the process type and when i check in the crm_order_index table, if i give the header i am not getting the partner no and there are two lines created for one header guid. I am providing the code which i have written. Can anyone please help me in this issue??
    *& Report  ZCREATEORDER_LUCKY_TEST
    REPORT  ZCREATEORDER_LUCKY_TEST.
    DATA : LV_HEADER_GUID  TYPE  GUID_32,
    WA_HEADER             TYPE                   BAPIBUS20001_HEADER_INS,
    ITAB_HEADER           TYPE STANDARD TABLE OF BAPIBUS20001_HEADER_INS,
    ITAB_CREATED_PROCESS  TYPE STANDARD TABLE OF BAPIBUS20001_HEADER_INS,
    ITAB_OBJECTS_TO_SAVE  TYPE STANDARD TABLE OF BAPIBUS20001_GUID_DIS,
    ITAB_PARTNER          TYPE STANDARD TABLE OF BAPIBUS20001_PARTNER_INS,
    LT_PRODUCT_I          TYPE STANDARD TABLE OF BAPIBUS20001_ITEM,
    WA_PRODUCT_I          TYPE                   BAPIBUS20001_ITEM,
    LT_SCHEDLIN_I         TYPE STANDARD TABLE OF BAPIBUS20001_SCHEDLIN,
    WA_SCHEDLIN_I         TYPE                   BAPIBUS20001_SCHEDLIN,
    ITAB_INPUT_FIELDS     TYPE TABLE OF          bapibus20001_input_fields,
    ls_inputfields        TYPE                   bapibus20001_input_fields,
    WA_PARTNER            TYPE                   BAPIBUS20001_PARTNER_INS,
    ITAB_RETURN           TYPE                   STANDARD TABLE OF BAPIRET2,
    WA_OBJECTS_TO_SAVE    LIKE                   LINE OF ITAB_OBJECTS_TO_SAVE,
    ITAB_PRICING          TYPE STANDARD TABLE OF BAPIBUS20001_PRICING,
    WA_PRICING            TYPE                   BAPIBUS20001_PRICING,
    *To store the Objects to be saved.
    WA_CREATED_PROCESS    LIKE LINE OF ITAB_CREATED_PROCESS,
    ITAB_SAVED_OBJECTS    TYPE STANDARD TABLE OF BAPIBUS20001_OBJECT_ID,
    WA_SAVED_OBJECTS      LIKE LINE OF ITAB_SAVED_OBJECTS,
    GC_X type c.
    gc_x = 'x'.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        ev_guid_32 = lv_header_guid.
      CLEAR : WA_HEADER.
    * Passing the respective values from the Header table to internal table.
    WA_HEADER-GUID          =  LV_HEADER_GUID.
    WA_HEADER-PROCESS_TYPE  =  'ZTA'.
    APPEND WA_HEADER TO ITAB_HEADER.
    *Appending the values to the ITAB_HEADER.
    *appending orderadm_i to input fields
    * ls_inputfields-ref_guid =  LV_HEADER_GUID.
    * ls_inputfields-REF_KIND = 'A'.
    ls_inputfields-objectname = 'ORDERADM_I'.
    ls_inputfields-ref_handle = '0000000001'.
    * ls_inputfields-logical_key = ' '.
    ls_inputfields-fieldname = 'ORDERED_PROD'.
    APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
      CLEAR ls_inputfields.
    * ls_inputfields-ref_guid =  LV_HEADER_GUID.
    * ls_inputfields-REF_KIND = 'A'.
    ls_inputfields-objectname = 'ORDERADM_I'.
    * ls_inputfields-logical_key = ' '.
    ls_inputfields-fieldname = 'MODE'.
    ls_inputfields-ref_handle = '0000000001'.
    APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
      CLEAR ls_inputfields.
    ****** CHANGES MADE
    * ls_inputfields-ref_guid =  LV_HEADER_GUID.
    * ls_inputfields-REF_KIND = 'B'.
    ls_inputfields-objectname = 'SCHEDLIN'.
    ls_inputfields-ref_handle = '0000000001'.
    ls_inputfields-fieldname = 'LOGICAL_KEY'.
    APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
    CLEAR ls_inputfields.
    * ls_inputfields-ref_guid =  LV_HEADER_GUID.
    * ls_inputfields-REF_KIND = 'B'.
    ls_inputfields-objectname = 'SCHEDLIN'.
    ls_inputfields-ref_handle = '0000000001'.
    * ls_inputfields-logical_key = ' '.
    ls_inputfields-fieldname = 'QUANTITY'.
    APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
    CLEAR ls_inputfields.
    * ls_inputfields-ref_guid =  LV_HEADER_GUID.
    ls_inputfields-REF_KIND = 'B'.
    ls_inputfields-objectname = 'SCHEDLIN_I'.
    ls_inputfields-ref_handle = '0000000001'.
    * ls_inputfields-logical_key = ' '.
    * ls_inputfields-fieldname = 'MODE'.
    APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
    CLEAR ls_inputfields.
    ****** CHANGES MADE
    WA_PARTNER-REF_GUID =  LV_HEADER_GUID.
    WA_PARTNER-REF_KIND = 'A'.
    WA_PARTNER-REF_PARTNER_HANDLE = '0001'.
    WA_PARTNER-PARTNER_FCT = '00000001'.
    WA_PARTNER-PARTNER_NO =  '10017'.
    WA_PARTNER-KIND_OF_ENTRY =  'C'.
    WA_PARTNER-NO_TYPE = 'BP'.
    WA_PARTNER-DISPLAY_TYPE  =  'BP'.
    APPEND WA_PARTNER TO ITAB_PARTNER.
    *"ADDING VALUES TO CT_ORDERADM_I
      wa_product_i-header        = lv_header_guid.
      wa_product_i-handle        = '0000000001'.
      wa_product_i-ordered_prod  = '12000014'.
      wa_product_i-mode          = 'A'.
      APPEND wa_product_i TO lt_product_i.
    *"ADDING VALUES TO IT_SCHEDLIN_I
      wa_schedlin_i-GUID    =  LV_HEADER_GUID.
      wa_schedlin_i-quantity   = '30'.
      wa_schedlin_i-handle = '0000000001'.
      wa_schedlin_i-mode  =  'A'.
      APPEND wa_schedlin_i TO lt_schedlin_i.
    *  wa_schedlin_i-schedlines = lt_schedlines.
    *"ADDING VALUES TO WA_PRICING
    wa_PRICING-REF_GUID    =  LV_HEADER_GUID.
      wa_PRICING-REF_KIND   = 'A'.
    *  wa_schedlin_i-handle = '0000000001'.
      APPEND wa_PRICING TO ITAB_PRICING.
    *  wa_PRICING-REF_GUID    =  LV_HEADER_GUID.
      wa_PRICING-REF_KIND   = 'B'.
      wa_schedlin_i-handle = '0000000001'.
      APPEND wa_PRICING TO ITAB_PRICING.
    ls_inputfields-ref_guid =  LV_HEADER_GUID.
    ls_inputfields-REF_KIND = 'A'.
    ls_inputfields-objectname = 'PARTNER'.
    ls_inputfields-logical_key = '0001'.
    ls_inputfields-fieldname = 'REF_PARTNER_HANDLE'.
    APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
      CLEAR ls_inputfields.
    ls_inputfields-ref_guid =  LV_HEADER_GUID.
    ls_inputfields-REF_KIND = 'A'.
    ls_inputfields-objectname = 'PARTNER'.
    ls_inputfields-logical_key = '0001'.
    ls_inputfields-fieldname = 'PARTNER_FCT'.
    APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
      CLEAR ls_inputfields.
    ls_inputfields-ref_guid =  LV_HEADER_GUID.
    ls_inputfields-REF_KIND = 'A'.
    ls_inputfields-objectname = 'PARTNER'.
    ls_inputfields-logical_key = '0001'.
    ls_inputfields-fieldname = 'PARTNER_NO'.
    APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
      CLEAR ls_inputfields.
      ls_inputfields-ref_guid =  LV_HEADER_GUID.
    ls_inputfields-REF_KIND = 'A'.
    ls_inputfields-objectname = 'PARTNER'.
    ls_inputfields-logical_key = '0001'.
    ls_inputfields-fieldname = 'NO_TYPE'.
    APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
      CLEAR ls_inputfields.
      ls_inputfields-ref_guid =  LV_HEADER_GUID.
    ls_inputfields-REF_KIND = 'A'.
    ls_inputfields-objectname = 'PARTNER'.
    ls_inputfields-logical_key = '0001'.
    ls_inputfields-fieldname = 'DISPLAY_TYPE'.
    APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
      CLEAR ls_inputfields.
        ls_inputfields-ref_guid =  LV_HEADER_GUID.
    ls_inputfields-REF_KIND = 'A'.
    ls_inputfields-objectname = 'PARTNER'.
    ls_inputfields-logical_key = '0001'.
    ls_inputfields-fieldname = 'KIND_OF_ENTRY'.
    APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
      CLEAR ls_inputfields.
    CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
      TABLES
        HEADER          = ITAB_HEADER
        ITEM            = lt_product_i
        RETURN          = ITAB_RETURN
        PARTNER         = ITAB_PARTNER
        INPUT_FIELDS    = ITAB_INPUT_FIELDS
        CREATED_PROCESS = itab_created_process
        SCHEDULELINE    = lt_schedlin_i
        PRICING         = ITAB_PRICING.
    READ TABLE ITAB_CREATED_PROCESS INTO WA_CREATED_PROCESS WITH KEY GUID = LV_HEADER_GUID BINARY SEARCH.
    WA_OBJECTS_TO_SAVE-GUID = WA_CREATED_PROCESS-GUID.
    * Appending the Guid of the contract to be saved to the internal table
    APPEND WA_OBJECTS_TO_SAVE TO ITAB_OBJECTS_TO_SAVE.
    CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
      EXPORTING
        update_task_local = space
        save_frame_log    = GC_X
      TABLES
        objects_to_save   = itab_objects_to_save
        saved_objects     = itab_saved_objects
        return            = itab_return.
    * Calling the Standard BAPI to Commit the transcation.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    WRITE: / 'HEADER GUID: ',lv_header_guid.
    Any inputs will be highly appreciated!!
    Thanks a lot in Advance.
    Lakshman.

    solved

  • Quantity is different from sale order and delivery

    Hi,
    Gurus,
    Quantity is different from sale order and delivery.
    I identified the Material in the sales order, the item category for this material as BOM.
    I have also checked the bill of material display header overview. The Base Quantity maintained as 1000 EA3. The SUBITEM maintained in G in the unit field in bill of material display.
    Accordingly i have checked the same for material master's additionl data in Units of Measure tab, it is mentioned the basic unit as 1000 EA3 and alternative unit as 600 G.
    My client processed the order for 100 QTY. The QTY for the two sub item is 99.601 each in the sale order.
    My client Question is why in delivery the Material Qty is coming as 99.730 and the SUB ITEM is coming as 99.330 EACH.
    Note:- The material X is maintained in EA3 in Bill of material header overview. I do no how the sale unit came as G for the Material in sale order.
    The other two sub item is perfectly coming as G. Because it is maintained in G in the Bill of Material Display.
    Guide me GURUS.
    Thanks and Regards,
    ANAND

    Hello Rumar
    I guess you entered the text manually in the sales order. The Ship-to may not be having any text, but the Sold-to may be and it may be coming from sold to.
    In transaction VOTXN, check the access sequence for the text type id and see which one takes precedence - one from customer master or from the order by checking the order of accesses.

  • Order Quantity and Target Quantity, both as editable in Sales Order

    Hi All,
    We have a requirement in which order quantity and target quantity, both should be allowed as editable fields in overview screen while creating a sales order or contract. Currently, only one quantity field is editable (order quantity in sales order and target quantity in contract).
    First question, is this possible?
    Second, If possible, then please tell the configurations need to maintain?
    Note: The material is relevant for delivery (so schedule lines allowed).
    Thanks & Regards,
    Vishal

    Hi Lakshmi,
    Thanks for the reply. I think I did not clarify the actual requirements. Let me explain it again:
    I understand that generally, Target qty is in contract and Order Qty is in sales order. But actually, here query is,
    When I create Sales Order (VA01), then while entering Material, user should see both quantity columns (Order Qty and Target Qty) in editable mode.
    So is this possible? If yes, then please guide.
    Please revert back if any further clarifications is required.
    Thanks & Regards,
    Vishal

  • List of rejected sales order with quantity and value

    Hi,
    Is it possible to get the report from VA05 for the list of rejected items with value and quantity ?
    Pls help
    Thanks,
    Vijesh

    Dear Vijesh,
    VA05 I believe is a very powerful report for doing analysis at order and line item level. If your rejection criterion includes a rejection reason at line item level, yes this list from VA05 can give rejected Sales Orders with Quantity and Value.  See the screen shot below.
    I selected a list with open dates till date, I can see Sales Order number, Sales Document Type, Item Number, Material, Rejection reason, Quantity at line item level and net price.
    However, I am not sure what is the rejection criterion you use in your business and I am not sure if you use rejection reason and hence I would like to hear from you, if this explanation helps you.
    Thanks
    Nagaraj

  • If I can't get help quick, Adobe CC will no longer be an option. I'm currently trialing and only have 10 days until my discount offer expires.

    If I can't get help quick, Adobe CC will no longer be an option. I'm currently trialing and only have about 10 days until my discount offer expires. After that, I will no longer consider CC a valid option as it is almost twice the price.
    Premiere Pro audio slips out of sync, though it does not occur in Sony Vegas or in Lightworks with the same footage. Strangely, this is not only with the audio from within the video (.mts) file, but also from the audio I record separately and sync up in post. The frame rate and everything is, according to the sequence settings, accurately detected.
    Running my file through Handbrake is a workaround that I'm not willing to use. I've set my workflow (capture) so that this should be unnecessary, and indeed it is unnecessary . . . except for within Premiere Pro. Using Media Encoder to output an intermediate file doesn't work either; the audio still slips out of sync.
    Yes, I've already posted in the Premiere Pro forum, with no replies, but this is a bigger CC issue because the only way I'll give CC a try is with my 1 year $29.~ offer (as a CS user), which expires on the 30th. After that, I'll never give Adobe another look.

    Since you have quite a number of technical issue which needs expert guidance from the qualified technicians, please contact Adobe Support via chat or phone.
    Regarding the change in price after renewals, you can check it under "plan change" in your adobe.com if different pricing can be applied.
    Manage your membership and payments | Creative Cloud
    Regards,
    Rajshree

  • Sales Qty and Days

    Dear Forums,
    If i want to get this report ;
    Item Code / Qty Sales (accumulate this month) / Days (how many days till this month) / Total days in this month
    eg . April 21
    542514 / 2.563 / 21 / 30
    can any one show me the query? thanks

    The "Union" is to list the all the items which has stock >0 and items not in Invoice
    SET ARITHABORT OFF SET ANSI_WARNINGS OFF
    SELECT T0.ItemCode, T0.Dscription,T1.OnHand, convert(varchar,SUM(T0.BaseQty*T1.NumInSale)) AS 'Qty Sales',DAY(GetDate()) as 'Days',
    Case WHEN Month(GetDate()) in (1,3,5,7,8,10,12) THEN 31 WHEN Month(GetDate()) in (2,4,6,9,11) THEN 30 ELSE 28 END AS 'Total days'
    ,convert (varchar,(t1.onhand/(SUM(T0.BaseQty*T1.NumInSale)/DAY(GetDate())* Case WHEN Month(GetDate()) in (1,3,5,7,8,10,12) THEN 31 WHEN Month(GetDate()) in (2,4,6,9,11) THEN 30 ELSE 28 END)))AS 'TURN OVER IN MONTH'
    FROM DBO.INV1 T0 INNER JOIN DBO.OITM T1 ON T0.ItemCode = T1.ItemCode
    WHERE Month(T0.DocDate) = Month(GetDate()) AND Year(T0.DocDate) = Year(GetDate())
    GROUP BY T0.ItemCode,T0.Dscription,T1.OnHand
    union
    SELECT T1.ItemCode, T1.itemname,T1.OnHand, '' AS 'Qty Sales',DAY(GetDate()) as 'Days',
    Case WHEN Month(GetDate()) in (1,3,5,7,8,10,12) THEN 31 WHEN Month(GetDate()) in (2,4,6,9,11) THEN 30 ELSE 28 END AS 'Total days'
    ,'No Sales' AS 'TURN OVER IN MONTH'
    FROM DBO.OITM T1
    WHERE T1.ITEMCODE NOT IN (SELECT ISNULL(ITEMCODE,0) FROM INV1)
    AND T1.ONHAND>0
    GROUP BY T1.ItemCode,T1.itemname,T1.OnHand
    ORDER BY 1
    Please let me know whether out is correct. If so i will try to include the A/R Credit Memo also

  • Calculate number of days based on System Date and a date column!

    Hi everyone,
    I have a query to run a report where the results has a column named “Due Date” which holds a date value based on the project submission date.
    Now, I need to add 4 columns named, “45 Days Expectant”, “30 Days Overdue”, “60 Days Overdue” and “90 Days Overdue”.
    I need to do a calculation based on the “Due Date” and “System (I mean default computer date) Date” that if “System Date” is 45 days+ to “Due Date” than put “Yes” in “45 Days Expectant” row.
    Also, if “Due Date” is less than or equal to system date by 30 days, put “Yes” in “30 Days Overdue” and same for the 60 and 90 days.
    For example the output should be like:
    Is this possible? Can someone help me how to write this Case Statement please? I have some answers how to do it in SSRS (Report Designer) but I want to get the results using T-SQL...Thanks heaps...cheers...
    artistdedigital

    Hi Jay,
    Thanks but those dates are just a reference. The actual table contains hundreds of date rows... so I guess this technique will not work (not sure though)...
    I am quite cool with this bit:
    select duedate,
    case when days > -45 and days < 0 then 'YES' else '' end as '45 Days Expectant',
    case when days between 30 and 60 then 'YES' else '' end as '30 Days overdue',
    case when days between 60 and 90 then 'YES' else '' end as '60 Days overdue',
    case when days > 90 then 'YES' else '' end as '90 Days overdue'
    from cte--------------------------------------------------------------------------------------------------But can you please explain this bit a more? Thanks for being so prompt though : )declare @tab table (duedate datetime)
    insert @tab select '04/25/2014'
    insert @tab select '02/10/2014'
    insert @tab select '01/10/2014'
    insert @tab select '12/10/2013'
    ;with cte
    as
    select duedate,datediff(dd,duedate,getdate()) as days
    from @tab
    artistdedigital

  • Difference between batch quantity and quantity for sale

    Hi all,
    I have created a batch in system with weight 340 KG. However, when I make a sales order for that batch, the system picks only 188 KG of it. There is no reserved/blocked etc quantity for the batch. Can you please help me identify where I might be going wrong?

    Base Quantity - Quantity of the material to be produced to which the standard values of the operation refer.
    Operation Quantity - Quantity planned for this operation.
    Base quantity and operation quantity may not always be the same, if we have partial lots delivered during the sequence of operations, the operation quantity will be equal to the lot delivered during the operation.
    Base quantity is dependent on the BOM, where it signifies the total quantity of output after using the components of certain quantity.
    Hope this may help you.

  • Report is not displaying 'previous day maximum sale' correctly

    There is a issue in the report
    Based on material and date and displays the previous day maximum sale
    The issue is whenever i run the report in give a single Document Date on selection screen it works fine but whenever i run the report in a range it shows the previous date of the range like when i run the report with
    Document date - 05.07.2007, its working fine but and showing 04.07.2007 as previous day
    when run the report
    Document date - 01.07.2007 to 31.07.2007, its displaying 30.07.2007 for all records and not displaying different results based on doc date,
    like it should show for      31.07.2007 --- 30.07.2007 and
                                   30.07.2007 --- 29.07.2007
                                  29.07.2007 --- 28.07.2007     
    CODE :-
    FORM data_retrieval.
    SELECT MSEGMATNR MSEGMBLNR MSEGMENGE MSEGMEINS MSEGCHARG MSEGLGORT MSEGBWART MSEGWERKS MSEGLIFNR MSEGEBELN MSEGBPRME MSEGDMBTR MSEGEXBWR MSEGVKWRT MSEG~SHKZG
           MKPFBLDAT MKPFBUDAT MKPFMBLNR MKPFBKTXT MKPFXABLN MKPFCPUDT MKPFXBLNR MKPFMJAHR
      INTO CORRESPONDING FIELDS OF TABLE itab FROM MSEG
    JOIN MKPF
    ON  MSEGMBLNR = MKPFMBLNR
    where MSEG~MATNR IN S_MATNR
    AND MSEG~WERKS IN S_WERKS
    AND MSEG~LGORT IN S_LGORT
    AND MSEG~CHARG IN S_CHARG
    AND MSEG~LIFNR IN S_LIFNR
    AND MSEG~KUNNR IN S_KUNNR
    AND MSEG~BWART IN S_BWART
    AND MSEG~SOBKZ IN S_SOBKZ
    AND MKPF~BUDAT IN S_BUDAT
    AND MKPF~BLDAT IN S_BLDAT     .
    IF ITAB[] IS NOT INITIAL.
    select matnr vbeln netwr UMKZWI1_01 fkdat ummenge VKORG VGBEL from s961
      into corresponding fields of table IT_S961 FOR ALL ENTRIES IN itab
    where matnr = itab-matnr and fkdat < itab-bldat.
    ENDIF.
    SORT IT_S961 descending BY matnr fkdat ummenge .
      LOOP AT itab INTO wa_itab.
        READ TABLE IT_S961 WITH KEY MATNR = WA_ITAB-MATNR BINARY SEARCH.
        IF sy-subrc = 0.
        wa_itab-VBELN = IT_S961-VBELN.
        wa_itab-NETWR = IT_S961-NETWR.
        wa_itab-UMKZWI1_01 = IT_S961-UMKZWI1_01.
        wa_itab-UMMENGE = IT_S961-UMMENGE.
        wa_itab-VKORG = IT_S961-VKORG.
        wa_itab-VGBEL = IT_S961-VGBEL.
        wa_itab-FKDAT = IT_S961-FKDAT.
        ENDIF.
        MODIFY itab FROM wa_itab TRANSPORTING VBELN NETWR UMKZWI1_01 FKDAT UMMENGE VKORG VGBEL.
        CLEAR : wa_itab.
    ENDLOOP.

    Hi,
    Still values are not coming
    SELECT matnr fkdat ummenge vbeln vkorg vgbel netwr umkzwi1_01 FROM s961
       INTO CORRESPONDING FIELDS OF TABLE it_s961 FOR ALL ENTRIES IN itab
        WHERE matnr = itab-matnr
        AND fkdat EQ itab-previous_dt.
    ENDIF.
      sort it_s961 by matnr vbeln fkdat previous_dt ummenge descending .
      LOOP AT itab INTO wa_itab.
        READ TABLE it_s961 WITH KEY matnr = wa_itab-matnr BINARY SEARCH.
        IF sy-subrc = 0.
          wa_itab-vbeln = it_s961-vbeln.
          wa_itab-netwr = it_s961-netwr.
          wa_itab-umkzwi1_01 = it_s961-umkzwi1_01.
          wa_itab-ummenge = it_s961-ummenge.
          wa_itab-vkorg = it_s961-vkorg.
          wa_itab-vgbel = it_s961-vgbel.
          wa_itab-fkdat = it_s961-fkdat.
        ENDIF.
        MODIFY itab FROM wa_itab TRANSPORTING fkdat ummenge vbeln netwr umkzwi1_01 vkorg vgbel.
        CLEAR : wa_itab.
      ENDLOOP.

  • Customer wise Billed quantity and Receivables

    Dear All,
    Is there any standard report in which I can have Billed quantity and Receivables (collection amount ) based on the customer and date wise ,
    Regards
    R Dhana

    Hi Dhana,
                Check the below T-Codes it will be helpfull+FD10N
    1.S_ALR_87012167-Accounts Rec. Information System
    2.S_ALR_87012172-Customer Balances in Local Currency
    3.S_ALR_87012186-Customer Sales
    4.S_ALR_87012169-Transaction Figures: Account Balance
    5.S_ALR_87012168-Due Date Analysis for Open Items
    6.S_ALR_87012197-List of Customer Line Items
    7.S_ALR_87012174-List of Customer Open Items
    8.S_ALR_87012175-Open Items: Customer Due Date Forec.
    9.S_ALR_87012178-Customer Open Item Analysis(Overdue)
    Regards,
    Venugopal

  • Re-route sales and cost of sales for shipments to vendors.

    We are increasing a process where we will ship raw materials to a vendor, they will use this material in production for a finished good that the vendor will sell back to us.  It is not sub-contracting, since we would sell these raw materials in bulk.  This is also not our normal course of business, so we can not have these shipments mixed in with our regular sales and cost of sales accounts.
    We would like to ship these materials out on a delivery and set up a receivable from our vendor, but do not want to record the billing / pgi transaction in regular sales / cost of sales.  We have a method to re-route the sales, but from the cost of sales side the possibilities I see are only valuation class.
    Does anyone else have a good process for re-routing sales and cost of sales where the process will consistantly re-route cost of sales whenever the sales account is re-reouted?
    Thank you!

    Hi Elex,
    I Appriciate your interest in giving clarity while posting a thread.
    Since you are already using REFX and SD is not implemeted, the best option is go a head with REFX module only.
    Try to create a saparate Contract type as "Real Estate RES. Sales" and create various conditions related to "Sales" based on your business requirement, (Because we dont have any special pricing procedure to adopt in this ).
    As per my understanding you can use the below conditions as an example :
    RE Sale Price
    RE Sales  Installment
    RE Sales Discount
    RE Sales Commission...etc. based on your pricing you can add the conditions.
    All the above charges you can make as one time charges based on your business requirement except Sales installment.
    Even though rental objectis sold but the propery is located in your premises you mught have provideing some services to the sold property as well, so you can add one more condition type as
    RE Common maintenence / Annual maintenence charges( which is recurring ).
    Adopting this process in REFX module will be one best advise for RE SALES.
    Based on your requirmeent you can integrate the REFX with PS ( for new devolopments / constructions / porjects ) & Pm modules for services.
    Since you are already using REFX leasing process its like entention of the existing process.Hope it may helps you.
    Regards,
    Subbarao.Narne

Maybe you are looking for

  • Error when using DES/CBC/PKCS5Padding

    When I using the captioned algorithm, the system repor no such algorithm. import javax.crypto.*; import javax.crypto.spec.*; Cipher c = Cipher.getInstance("DES/CBC/PKCS5Padding");Can anybody give me some tips?

  • Using too much data very quickly

    This month my phone provider advised me that I'd nearly used up all my data in 5 days. I really don't know why. Could it be an app called pic college?

  • Licence query on font usage

    Hi, I tried to send this same query to Adobe Support but they are taking very long to answer and so I thought of posting the question here to have an idea about the answer I may receive from them. I would like to purchase an Adobe font in order to us

  • Invoking Assignment Manager thru eScript

    Hi, This is with the requirement related to EAI. After creating the SR from an external application using web service it has to be assigned to a proper employee or team member. So we need to invoke assignment manager thru eScript. Any idea how to inv

  • Trying to download purchased music to iPhone.  2 of 20 songs won't load because they "cannot be converted."

    I purchased an album with 20 songs today on iTunes.  I tried to transfer it to my iPhone today via a USB cable.  It downloaded 18 songs, but two of them wouldn't go across because they "cannot be converted."  The files are all AAC, so I'm not sure wh