VPRS-based condition redetermined in return order (referencing billing doc)

I have an issue with copy-control from invoice to return order.
I want the invoice pricing conditions to be copied unchanged to the return order.
This is similar to when creation the Sales order>Delivery>Billing Document.
I need to make a return order for the same amount as in the original sales order (naturally, we want to credit the same amount).
This works fine for all conditions, except for a VPRS-based condition, which is redetermined upon return order creation.
The VPRS-based condition should fetch the moving average price for the sales order only, not for the return order.
I have maintained copy control for billing document to sales order with pricing type 'G'
G: Copy pricing elements unchanged and redetermine taxes. The system
This works fine for Sales order --> Delivery --> Invoice, but not for Invoice --> Return order.
I would prefer not to use a formula, but I guess one alternative solution is to fetch the condition value from the original sales order if I cannot do this with customizing.
Let me know what you think about the forumla (VOFM) and if it is possible to achieve copy-control with unmodified condition values for the VPRS-condition.
Thanks!

Ok, thanks for your input!
I'm sharing my solution:
I implemented a new condition value formula for my pricing procedure:
VOFM>Formulas>Condition value
FORM FRM_KONDI_WERT_XXX.
  DATA: lv_kbetr TYPE kbetr,
        ls_vbfa  TYPE vbfa,
        lv_knumv TYPE knumv.
Get moving average price for return order from SO
The ZPRS pricing condition modifies price in return order
The value of ZPRS should be the same in return order and SO
  IF xkomv-kschl EQ 'ZPRS'.
Get sales order and position
    SELECT SINGLE vbelv posnv
      INTO corresponding fields of ls_vbfa
      FROM vbfa
      WHERE vbeln   EQ komp-vgbel  "invoice number
        AND posnn   EQ komp-vgpos  "invoice item
        AND vbtyp_n EQ 'M'         "invoice
        AND vbtyp_v EQ 'C'.        "order
    IF sy-subrc EQ 0.
Get sales order conditions key
      SELECT SINGLE knumv
        INTO lv_knumv
        FROM vbak
        WHERE vbeln EQ ls_vbfa-vbelv.
      IF sy-subrc EQ 0.
Get moving average price from sales order conditions
        SELECT SINGLE kbetr
          INTO lv_kbetr
          FROM konv
          WHERE knumv EQ lv_knumv
            AND kposn EQ ls_vbfa-posnv
            AND kschl EQ 'ZPRS'.
        IF sy-subrc EQ 0.
Recalculate condition values
          xkomv-kbetr = lv_kbetr.
          xkomv-kwert = ( lv_kbetr * komp-mgame / 1000 ).
          xkwert      = xkomv-kwert.
        ENDIF.
      ENDIF.
    ENDIF.
  ENDIF.
ENDFORM.

Similar Messages

  • How to close the Return Order from Billing due list

    Dear Gurus,
    This is the scenario of Free subsequent delivery with the reference of Return Delivery.
    In brief-->
    I created one sales order and done its normal delivery and billing. So this order to cash cycle is completed.
    Then due to the damage in transit of some material customer wants to return some good and ask for the subsequent delivery of same goods.
    therefore I create a return sales order with the reference of previous sales order and and do the return delivery. Here I am not making the credit note as I have to make the subsequent delivery for the return order.
    So I create the sales order for subsequent delivery with the reference of Return order and do the delivery.
    Now I have the query that when I run the billing due list (VF04) I get the same return order in billing due list as I have not created the credit memo with its reference. And the return order will remain there always. But I dont want that return order to appear in the billing due list as I have done the subsequent delivery for that return order.
    Please tell me how the return order's status can be made completed to avoid it in billing due list.
    Please suggest me all the possible solutions to complete the scenario.
    regards,
    Sanjay

    Hi,
    The SDF has to be created with refernce to the Sales Order only.
    In Brief:-
    When ever the goods are damaged in transit,generally we ask them to scrap the damaged goods and then decide what to do like
    1) Either to give a credit note to the customer for the damaged goods.
                          or
    2)Replace the Goods by SDF.
    Check me if iam wrong
    Regards
    SK

  • How to Avoid Duplicate Pricing Condition Types In  Sales Order and Billing

    Hi SAP Gurus
    I have a requirement in Pricing (Sales and Distribution). We have  issue duplicated condition types in Sales order and it causes wrong posting in to accounts.
    I want make them inactive duplicated Condition type in Sales order and Billing Documents.
    Please advice me how to make inactive status to duplicated Condition types
    Thanks  in Advance.
    Ravikanth

    Hi
    You can use Exclusion Group
    You can define 2 Groups and include 1 condition type in each
    and define exlusion procedure
    A   Best condition between condition types                
    B   Best condition within the condition type              
    C   Best condition between the two exclusion groups       
    D   Exclusive                                             
    E   Least favorable within the condition type             
    F   Least favorable betweent the two exclusion groups     
    you can use Exclusive to set your condition type or as per your requirement
    Regards
    Jitesh

  • Return Order Without Billing

    Hello,
    I need you help I have to do a return order Without billing (credit memo), How can I do that ??
    Thanks
    Best Regards

    Hi,
    In the copy control VTFA and VTFL delete the enteries for return order and credit memo / return delivry and credit memo.
    Once you do that system wont allow you to create a credit memo.
    Hope this will help you
    Regards,
    Krishna O

  • Restrict new price conditions in the return order and credit note

    Dear Expert
    We are facing a scenario where we make return order; the Price is copied from the invoice. And it is working perfectly. The system does not allow us to change the price.
    The issue we are facing here is that user can input new condition like discount /premium and change the net value for the return order pricing, and this will reflect in the credit note for returns.
    Is there a way to restrict the user from entering any pricing condition in the header or item conditions tab.
    although we cannot change the original price coming from invoice referenced for return order, but the user can input new price conditions as below. This must not be allowed.
    The price must come according to the Qty being referenced.
    While making the credit for returns, the user has a chance of further making changes to the net value by adding new conditions. Hence this must also be restricted for any changes.
    Thanks

    Hi
    Firstly,In copy control maintain anyone of the pricing types
    D: Copy pricing elements unchanged
    E: Copy pricing elements and values unchanged
    To avoid all these things go with  USEREXIT_FIELD_MODIFICATION but before going with the user exit,also check with transaction variant SHD0.
    Regards
    Srinath

  • VPRS cost copying different in Returns order and Credit for returns

    Hi SAP Gurus,
    we created returns order, returns delivery and Credit for Returns.But the VPRS cost copying in Credit for Returns different than Returns order.I have tested in DEV its working fine but in PRD its taking different. I compared copy contrls,condition settings and pricing procedure i didnt found any difference. where i need to check other than these areas.
    Regards,
    Nooka

    Hi,
    If if works in DEV then there is no problem with configuration.(Compare configuration of DEV with PRD).
    Please check that all change request are moved correctly or not,speciallty related to your scenario.
    Any enhancement  change request are moved or not.(Because DEV and PRD are different clients. Some requests are client specific.)
    Thanks,
    Vrajesh
    Edited by: Vrajesh G. Nayak on Jan 20, 2010 5:23 AM

  • Conditions record for returns order with order type "RE" Modification

    Hi,
    How can I gay out the EDI1 conditons row ( Customer expected price ) for returns order, so that the customer price is not considered.
    Current Scenerion: when we create a returns order "RE" with reference to standard order "OR" it pulls out the price details from the standard order, but then in the conditions tab the EDI1 ( customer expected price ) is still active which allows the user to enter the new price. When the user enters the new price, the price for that line item is getting updated with this new customer expected price.
    Can any one help me out on how to gray put that row, so that the user is not allowed to enter a new price during rreturns.
    Thanks in Advance!!

    Hi
    This will be updated automatically when generate planned orders thru MRP. (MD02)
    regards
    Srinivas

  • Inactivate the cash discount condition type during return order creation.

    Hi All,
    I have created a Pricing procedure its having a  condition type Cash Discount.
    The client requirment is during the return order creation system should inactivate the cash discount condition type.
    Please sugget me what to do to fulfill this requirment.
    Thanks in advance.
    Regards
    Vankat.

    Hi
    You can achieve through creating new pricing procedure for Return process
    Otherwise try with user exit
    MV45AFZZ  USEREXIT_SAVE_DOCUMENT_PREPARE
    Maintain access Sequence with Document type and maintain condition record , so at the time of return order system wont pick that material 
    Regards,
    Prasanna
    Edited by: prasanna_sap on Feb 9, 2012 3:31 PM

  • Taxes redetermination in Sales Order after Billing is done.

    Hi All
    I have specific issue at my client, due to some Transport the tax amount got erased from sales order.
    The orders got invoiced and got posted to accounting with tax value ( due to RFC call to taxware at billing document) but due to some Transport the tax amount got deleted from Sales Order (Tax Value is 0 at sales order, Tax value is XXX value at Billing doc). There are 1 million Sales Orders from which tax amount got deleted, we need to determine the taxes.
    Please let me know the suggestions how to redetermine the taxes at sales order.( The Orders got biilled already).
    limitations are:
    1 - We can not cancel the Invoices.
    2 - There is RFC call to Taxware system for calculating the taxes.
    I appreciate your suggetions.
    Thanks and Regards
    Prasad

    Hi ,
    It is not possible to update the taxes without cancelling the invoices in standard.We even can not delevop a bdc tool also to update the same ,because pricing update field will be in suppress mode to run the recording for using in bdc.I suggest you to log an issue with sap for the same.
    Regards,
    Pasapula.

  • Copying Freight condition from delivery, on order related billing line

    Hello,
    Greetings!
    My client use Pitney Bowes interface to calculate freight on outbound deliveries, Interface creates condition ZPFR on delivery; It works well, however scenarios such as milestone billing and phantoms are order related billing; I couldn't find standard way to read those delivery conditions and bring over to order related invoice.
    Appreciate your thoughts,
    thank you,
    Hetal

    Hi Mukund,
    As mentioned, Milestone orders and phantom parts are order related billing.
    Components (for phantom) and lines on milestone order are shipped, therefore freight is calculated on delivery.
    At this moment,
    1. Workaround is to manually add freight condition on sales order, after PitneyBowes calculated freight on above delivery.
    2. Write some custom solution to copy freight condition from delivery to sales order (may not be best solution, but to avoid manual workaround)
    Therefore, freight would carry over to invoice and finance flow works as other delivery related invoicing.
    thank you for reply.
    Hetal

  • Return sales order wrt Billing doc.

    Dear Friends,
    I have maintained copy control for VTFA.
    I have Billing doc for 100 Qty.
    When i create sales order wrt this billing document, i cauld restrict Order qty to max 100 qty with help of V4 : 229 message to E (setting  in SPRO: define variable message).
    But next time system still allows the Return sales order wrt same billing document for Qty. max 100 as in above case. Thus i could create as many return SO wrt Billing document.
    I want system to store the cumulative return SO qty vis a vis Billing document Qty.
    Eg. Billing qty 100.
    Return SO 1 for 50 Qty.
    Return SO 2 for 30 Qty.
    Return SO 3 for 20 Qty.
    Return SO 4 Not allowed.
    Kindly advise.
    Regards,
    Rajesh

    Hi,
    This is normal SAP behavior which will allow you to enter more quantity than that in the original outgoing invoice. This will not be controlled thru any config.
    For this you need to write a exit with the help of your ABAPer.
    Goto  SE38, enter MV45AFZZ
    when you see the code you will find user exit  "USEREXIT_SAVE_DOCUMENT".
    In this exit you need to write a code which compares the order entered quantity with the quantity from the invoice.
    When you try to save such document, system will not allow giving an error. This will surely work.
    Hope this helps you.
    Regards,
    Dhananjay

  • How to display Header Texts that you find in Sales Order and Billing Doc..

    Hi,
    I am having some problems accessing the text that is typed in the Header Texts area of the Sales Order and Billing. To access the Header Text you should first trigger the Sales Order (VA02) then once in the Sales Order Click Goto -> Header -> Texts. The same follows to the Billing.
    I need to extract what is typed here on to a report. First of all I can’t figure out which table is used to save this information. I am suspecting that this information is encoded and stored in a table. To display this I may need to decode it.
    Is there some one who could help me to archive this please!!!
    Many Thanks,
    Kishan

    Hi Kishan,
    The texts you find in all SAP Object, like orders, invoice, materials, ... can be extract with FM 'READ_TEXT'.
    To know the parameters of the FM, you 'll have to go to the text ( in plain page mode ), then you do "GOTO" -> "HEADER", and a pop-up window opens with the parameters you need ( Text name, language, text id, text object ).
    The table "t_tdline" contains the entire text .
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        id                            = w_id
        language                      = sy-langu
        name                          = w_name
        object                        = w_object
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      tables
        lines                         = t_tdlines
    hope this helps.
    Erwan.

  • VPRS Condition missing in Returns Order

    Hi Experts !!
    We are facing a peculiar problem.
    We are creating Rush Orders & Delivery thro Idocs and PGI and Invoice thro Batch Job. Similarly Returns and Delivery by Idoc. Now in some cases VPRS conditions are missing in returns. We have 17 Statistical Conditions and the total of costs we have to compare with VPRS. If its not the same, the Order gets Delivery Block. So now this is happening as VPRS itself is missing.
    Pls help

    hello, friend.
    are all returns using the same item category?  if not, please check the settings for the item category in transactions without VPRS.  check if "determine cost" has been checked.
    another area to look at is the nature of the material (e.g. material type).  if the material returned is configurable, then you may have make special settings.
    please post again.
    regards.

  • Pricing condition redetermination for sales order created with reference

    Hi,
    Are  there any exit or routines that can be used to redetermine MWST pricing condition alone when creating sales order with reference to another sales order? The pricing from preceeding sales order is copied but we need only MWST to be redetermined after saving the order
    This is because we are making changes so that while saving the sales order the material tax classification is defaulted to M based on some conditions so that MWST picks up the value M
    Regards,
    Vin

    Hello Vinod ,
    did you tried following options :-
    1.Using Exit ( MV45aFzz) and re calculte pricning using FM 'PRICING'.
    2.or Using Copy Control (Tcode : VOFM ) while creating order with Ref.
    regards
    Prabhu

  • Rebate Conditions issue (Pricing incorrect Order Viz Billing)

    Hi Forum,
    We have an issue with the rebate conditions.
    User has created a credit memo request (VA01) due to change in the Price. Due to this change rebate accruals have got reduced. The rebate accruals should not be reduced in this case, since there is no material return.
    There is a specific order reason while creating such credit memo requests Eg. ZXX.
    As a solution to this we have created a new routine AAA and assigned to the rebate condition types in Pricing procedure.
    This routine will function when there is a order reason ZXX entered in the Credit memo request (in VA01), therefore all the rebate condition types (assigned with routine AAA) will get deactivated in Conditions. This not change any accruals value. This is working correctly.
    The issue is -
    When the credit memo (VF01) is created, these condition types are again activated and accruals are posted.
    This should not happen. Pricing from the CM request (VA01) should get copied in Credit memo (VF01) completely.
    When we open the Credit memo we find all the conditions are activated and accruals posted.
    Is there any one who has faced the similar issue in billing documents where pricing data is not getting copied from Order conditions.
    Please help.
    Thx / Sheetal

    Hi Sheetal,
    Suggest to make a seperate CR memo order type for cases wherein you don,t want reduction of rebate accruals.
    You would have to redetermine a new pricing procedure (create one keeping all condition type as are in Billing procedure except rebate) and assgin the determination of new PP basis the sales areacustomer PPOrder PP.
    Pls go through the below link.
    Re: New pricing procedure in credit note created w.r.t.  billing document.
    Regrds
    Sanjay

Maybe you are looking for