Problem in Sales Order with specific condition type.

Hello Experts,
I'm facing a problem in sales order creation for a specific condition type.
the actual scenario is as below,
We have created a new condition type for special discount.This condtion type is applicable only for specific sales channels.Also the discount percentage has to fetched from a custom table.
To achieve this I've written a user exit "RV64A999"
In the FM, i've calculated the subtotal and fetched the discount percentage and calculated the discount amount. After implementing this, the SO were been created properly. for all the line items the discount amount was getting calculated properly.
But then I added a condition at the top of code in exit that the calculation for the new condition type should happen only for selected sales channels.
But after adding this condition in code, i'm facing problem. Now when I create/ change any SO, the discount amounts are getting calculated incorrectly. I'm getting discount amount even if the line item subtotal amount is zero (0).
Any help or pointers reagrding this issue will be very helpful and highly appreciated.

Hi ..
Check your config. again or debug the routine code with your ABAPer and find the problem area.
-Maharshi

Similar Messages

  • In sales order for the condition type MWST, **Tax code** is displaying wron

    Hi
    In sales order for the condition type MWST, *Tax code* is displaying wrongly at header level i.e. FF instead of AO (under account determination tab)
    AO tax is 0% but for FF it is 19%
    I have checked with the Access sequence it is picking access 08 correctly according to this it should show AO in tax code field for MWST but it is not so..
    There is a manual change for tax classification for material master in va02 initially it was blank now it is changed to ' 0 ' is any way influencing....?
    Even if I consider material tax classification and customer tax code  should not be FF because  tax code  FF is not maintained for the combination of access sequences for condition type MWST
    Please help me.
    Rajendra Prasad

    Dear Rajendra,
    There is a manual change for tax classification for material master in va02 initially it was blank now it is changed to ' 0 ' is any way influencing....?
    Definitely material Tax classification will influence to determine the Tax code.
    -->So Make sure that customer and material master having proper tax classification indicator.
    -->Have you Update the price after changing the tax classification in the sales order.by going to item dat -->condition tab then click on Update push button bottom of the conditions screen.
    -->Once again the check the condition record maintanence also for your MWST access sequence.
    I hope this will help you,
    Regards,
    Murali.

  • Change open sales order with new condition schema

    Hi SD Experts,
    I have to change condition type on condition schema. For example, now we have ZPVI (Discount %). I have to change with ZPFI (Discount %). But we have some open sales orders with old schema. Can I correct old sales orders with new condition schema? Is it possible?
    Thank you.
    Gulay Celik

    >
    Shai Sinai wrote:
    > 3) The item categories of document items are assigned to billing plan types. This customization does create separate billing plan for each item, but the billing plans of item are refrenced to the header billing plan (according database field FPLA-RFPLN and screen field RV60F-KFREL), what  means that item's values are not taken into consideration.
    >
    In this case it is obvious that it's not possible to have an item on the same document, which would have a billing plan different from the header. Unless, of course, you are ready to change the existing configuration or create a new item category, which would be independent from the header billing plan.
    If, despite configuration, such entry is possible in VA41/VA42, then you'll have to use BDC instead of BAPI. Unfortunately, BAPIs do not have all the same functionality that might be available in the transaction.

  • Vendor invoice for sales order delivery cost condition type

    Dear SAP guru,
    We have a scenario where we have added certain delivery cost in the sales order as condition type. There will be an accrual posting out of this condition type. We have defined the vendor code in the condition record.
    The question is how to generate an invoice on this vendor with reference to Sales order, as there will not be any purchase order for the delivery cost.
    Thanks in advance.
    Rama

    did you already apply note 1585042
    Symptom
    You create a Sales Order with multiple third-party items.  The system
    automatically generates an MM Purchase Requisition with multiple line
    items.  Each of these line items can have a different fixed vendor
    (field EBAN-FLIEF).
    In the Customizing transaction VOV7, the Sales Item Category (usually
    TAS for Third Party) has the field ALEKZ 'Create PO Automatically'
    selected.  Therefore, one or multiple follow-on Purchase Orders will
    also be created from the Requisition data during the same Sales Order
    creation workflow.  The system creates a separate Purchase Order for
    each fixed vendor (supplier) found among the Requisition items.
    During this ALE PO creation, if one of the Requisition items fails to
    successfully create a PO, the next relevant PO created may have an
    incorrect vendor in its header.  The vendor in the PO header may not
    match the fixed vendor that was designated in the Requisition line item.
    Solution
    Implement the attached code corrections.   After this correction,
    regardless of whether one of the Requisition items fails to generate a
    PO, any PO that is successfully created during the process will have the
    correct assigned vendor.

  • Problem adding sales order with freight since 8.8 pl 20 (and 8.81 pl 0)

    Dear All,
    Since the upgrade to 8.8 patch 20 I have a problem with adding a sales orders with freight (expensecode 1 does exist!) through the XML import of (the same problem with 8.81 pl 0).
    This is the XML:
    <BOM>
         <BO>
              <Documents>
                   <row>
                        <DocType>dDocument_Items</DocType>
                        <DocDate>20110328</DocDate>
                        <DocDueDate>20110328</DocDueDate>
                        <CardCode>INT_C_PenS</CardCode>
                   </row>
              </Documents>
              <Document_Lines>
                   <row>
                        <ItemCode>10000024</ItemCode>
                        <ItemDescription>Afvalbak CONSTRUCTO 50</ItemDescription>
                        <Quantity>4.00</Quantity>
                        <ShipDate>20110328</ShipDate>
                        <DiscountPercent>20.00</DiscountPercent>
                        <UnitPrice>528.00</UnitPrice>
                        <LineStatus>bost_Open</LineStatus>
                        <LineType>dlt_Regular</LineType>
                   </row>
              </Document_Lines>
              <DocumentsAdditionalExpenses>
                   <row>
                        <ExpenseCode>1</ExpenseCode>
                        <LineTotal>64.00</LineTotal>
                   </row>
              </DocumentsAdditionalExpenses>
         </BO>
    </BOM>
    When the DocumentsAdditionalExpeses part is deleted then there is no problem.
    The error with the DocumentsAdditionalExpeses is 'Internal error accured'.
    Can anyone confirm that this not is working through XML import (DTW works) or is there a solution?
    Thanks and best regards,
    Wim Kleinsman

    Hi,
    Try this one.
    <BOM>
    <BO>
    <Documents>
    <row>
    <DocType>dDocument_Items</DocType>
    <DocDate>20110328</DocDate>
    <DocDueDate>20110328</DocDueDate>
    <CardCode>INT_C_PenS</CardCode>
    </row>
    </Documents>
    <Document_Lines>
    <row>
    <ItemCode>10000024</ItemCode>
    <ItemDescription>Afvalbak CONSTRUCTO 50</ItemDescription>
    <Quantity>4.00</Quantity>
    <ShipDate>20110328</ShipDate>
    <DiscountPercent>20.00</DiscountPercent>
    <UnitPrice>528.00</UnitPrice>
    <LineStatus>bost_Open</LineStatus>
    <LineType>dlt_Regular</LineType>
    <ExpenseCode>1</ExpenseCode>
    <LineTotal>64.00</LineTotal>
    </row>
    </BO>
    </BOM>
    Regards,
    Siva

  • Purchase Order with Changable Condition types

    Dear gurus,
    I have the following requirement from our client:
    The Purchase order condition type must be changable after partial GR for  is done for the PO. that is the freight charges will be different for the Open quantity.
    How to configure this in the system. Please advice.
    Regards,
    Lux

    Hi.
    For the Freight and Freight related condition type FRA1 , FRB1.... . For these condition types you need to allow the Vendor in GR(that is entry 2).
    This would be available in the IMG path
    SPRO>MM>Purchasing>Conditions>Define Condition Type.
    This will be available in  the control data  of this condition (Under the heading of control data 2).
    I hope tghis will resolve the issue.
    If it helps award me.
    Cheers
    Umakanth

  • How to make Sales Order with this condition

    Condition is as follows
    I have already sold an item say A to customer at Rs 30 lacs, INR. Now a new upgrade has been released say B costing Rs 50 lacs, INR. Now how to book Item B, with return of item A, and charge the customer who has already bought item A, only the differential amount, ie Rs 20 Lacs INR (Rs 50-30 Lacs, INR)
    Come back guys quickly.
    Regards
    Adarsh Krishna

    Hi Adarsh,
    Is this the new revision of Item A? then you can follow retrobilling. If this is a new item, then you have to book a new order and adjust the invoice.
    Steps for retrobilling:
    1) enable the retrobilling parameters in the system parameters
    2) Change the price list of the item A in the price list to the new price.
    3) go to retrobill workbench, reference the old order i.e shipped and you get a new order booked, now you can go and change the item here in the lines.
    You can receive the item A back through RMA.
    Pl try it out and let me know.
    Regards,
    Prasad

  • Planned cost with VPRS condition type

    Hi,
    Planned cost of sales order corresponding to condition type VPRS does not
    appear in report like KKBC_KUN though it appears for condition type like
    EK02. How to get planned cost also for VPRS in report like KKBC_KUN.
    With regards,
    Mrinal

    Hi Ashok,
    Your problem seems intresting, may be this thread can help you
    [SCN|VPRS- Error in quantity/value determination]
    Please provide feedback after getting it solved.
    Thanks,
    Raja

  • Condition Period Problem in Sales order -  Need help

    Hi Gurus
    I am testing Sales Order back dated
    Condition period Problem in Sales order
    example for you to understand
    Sales Order where PO date is 17.12.2007
    Del Date & Price date is 13.02.2008
    Then it is not calculating IN: A/R BED %IN A/R BED totalN A/R CESS [1621]
    But if i do it after 14 feb 2008 then it is calculating IN: A/R BED %IN A/R BED totalN A/R CESS [1621]
    When I do it with current date it is calculating IN: A/R BED %IN A/R BED totalN A/R CESS [1621] say date is 9-5-2008
    I am not able to trace out problem, kindly help me from where I do I check and why this is happening.
    Rajesh Chalke

    Hi,
    I am not sure if this solves your problem, but I am suspecting that this might be due to the 'valid on date' of the condition records created for the relevant duty condition types.
    Since it was a recent regulation and VK11 usually defaults current date as the valid date, that condition record may have been valid only from the recent date on which it was created.
    Check the date in VK12 (To find the exact selection parameters, check the pricing analysis in the sales order which will display the exact condition record which is being selected as of current date.) Check for the same parameters; change the date to relevant date in the past and recreate the sales order. Hopefully this should solve the issue.
    Cheers,
    KC

  • Problem in Sales Order type

    Hi
    I am creating a user exit for transaction VA01. In this I am checking for order type 'OR'. But when I create a sales order with order type OR the user exit is getting some other order type. I have got this through debugging. What might be the problem.
    Thanks in advance.
    regards,
    Eswar

    Eswar,
    I hope you are using field VBAK-AUART. For Domain AUART there is a Conversion Routine assigned as AUART which changes the Input value to the Internal Stored value.
    For order type 'OR' the internal value is 'TA'. So in your logic check for 'TA' instead of 'OR'.
    Hope this helps.

  • Changing Price Conditions in Sales Order with SD_SALESDOCUMENT_CHANGE

    Hello there!
    I need to change the value of a price condition in a sale order ;I'm using the f.m.  SD_SALESDOCUMENT_CHANGE.
    It doesnt' work as I want, 'cause it creates an other price conditions instead of just changing the price value of the actual one.
    Waiting for your tips,
    thanks.
    This is how my code looks like:
    PARAMETER: p_vbeln LIKE vbak-vbeln.
    data: st_order_header_inx   TYPE  bapisdhd1x,
            st_conditions LIKE bapicond,
            st_conditionsx LIKE bapicondx,
            tb_conditions TYPE TABLE OF bapicond,
            tb_conditionsx TYPE TABLE OF bapicondx,
            tb_return TYPE TABLE  OF  bapiret2.
    st_order_header_inx-updateflag = 'U'.
      st_conditions-itm_number = '0010'.
      st_conditions-cond_type = 'PR00'.
      st_conditions-cond_updat = 'X'.
      st_conditions-cond_value = '100'. "Value I want to enter
      APPEND st_conditions TO tb_conditions.
    st_conditionsx-itm_number = '0010'.
      st_conditionsx-cond_type = 'PR00'.
      st_conditionsx-updateflag = 'U'.
      st_conditionsx-cond_value = 'X'.
      APPEND ls_conditionsx TO tb_conditionsx.
    CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
        EXPORTING
        salesdocument                = p_vbeln
          order_header_inx          = st_order_header_inx
        TABLES
          return                           = tb_return
          conditions_in               = tb_conditions
          conditions_inx              = tb_conditionsx  .

    Get the conditions records first from the Sales Order with BAPI BAPISDORDER_GETDETAILEDLIST
    CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'
      EXPORTING
        i_bapi_view          = lw_bapi_view
      TABLES
        sales_documents      = lt_order
        order_conditions_out = lt_conditions_out.
    Then populate the conditions internal table with the data that you get from the previous code
    move-corresponding lw_conditions_out to lw_order_conditions_in.
    lw_order_conditions_in-cond_value = '100'   " the value that you want to modify
    APPEND lw_order_conditions_in TO lt_order_conditions_in.
    CLEAR lw_order_conditions_inx.
    lw_order_conditions_inx-itm_number = lv_kposn.
    lw_order_conditions_inx-cond_st_no = lw_conditions_out-cond_st_no.
    lw_order_conditions_inx-cond_count = lw_conditions_out-cond_count.
    lw_order_conditions_inx-cond_type  = lw_conditions_out-cond_type.
    lw_order_conditions_inx-updateflag = 'U'.
    lw_order_conditions_inx-cond_value = lc_x.
    APPEND lw_order_conditions_inx TO lt_order_conditions_inx.
    You didn't populate the fields cond_st_no and -cond_count. Then just call BAPI SD_SALESDOCUMENT_CHANGE to change the Sales order.
    Hope that helps.
    Erwin

  • Problem with creation of Sales Order with reference to Contract

    Hi,
    I have a problem when creating Sales order with reference to Contract , shipping condition was not copied. Is there any existing copy routines suitable to accomodate this?
    Thanks!

    your functional team can help you in finding one.

  • Condition Values not being copied when creating sales order with reference

    hi experts
    i am copy a sales order with reference in va01 , when i copy the order it status is shown as incomplete beacue the condition values in some condition type sis zero, whereas if i delete amount for some condition type and re-eneter it the condition values for all conditon types appears ...
    in all after copying order i go to condition at item level some codition values are zero but if erase amount for any condition type and then re enter it value comes for all condition types

    Hi Sunny,
    Maintain some value against that condition type in VK11.
    This must solve your question. Please set to resolved if it solves your doubt.
    Regards
    Abhii....

  • I have a problem regarding sales order line item with confimed quanity

    Hi Experts,
    I have a problem regarding sales order line item with confimed quanity with '0'  with delivery block but confirming the sales order quantity once the order is released from credit check.
    The situation arises as per the below scenarios.
    Scenario - 1 -  When the sales order has two line item - one line item with confirmed qunaity in the schedule line and for the 2nd line item there is no available stock for the Material xxxxxx.
    Initially the sales order is created for the line item 2 with confirmed quantity = 0, and having the delivery block = 01 for the Material xxxxxx  and the order is set with credit check.  Once the order is relased from the credit check.  The quanity for the item 2 where the confirmed quantity will be = 0 ( Where it is not changing the confirmed quantity)
    Scenario -2-  Updating the order qunaity for the line item 2 as (9Pcs) it will goes to credit check and save the order.
    Maintain the stock for the line item 2 ( 5 Pcs).
    Once the order is released from the credit check.  Then  for the line item 2 the confirm quanity will be seting to 5 Pcs with Delivery blcok 01.
    This should not happen, When the credit check is released even though if it has stock based on the delivery blockl it should set the confirmed quanity to Zero.
    Can you please help me how to solve this issue.
    Looking forward for your reply.
    Thanks and Regards,

    Hi,
    I agree with your point.  In the sales order When the complete delivery check box is enabled where the confimed qty is set to zero, it is fine but when we save the orderr it goes to credit check.  Once we release the order using VKM3 where in the sales order the confimed quantity is setting to 5,  But it should set to Zero quantity.  Quatity should not be get confirmed it should be Zero Quantity. 
    Further in SPRO - customizing in the deliveries blocking reasons - It has a tick mark in the confirmation blcok.  But we dont want to remove the - Confirmation Block tick mark
    Please any one can help me if you have any solution to solve this problem.
    Thanks and Regards.

  • Problem with pricing condition type in case of proforma invoicing

    Hello All,
    the problem is related to a pricing condition type in case of proforma invoice where the details are as follows -
    Name of Condition Type - ZADC - Add 10% on Cost                                         Access seq.   Z038 Diff
                                                                                    Plus/minus    A Positive
    Cond. class -  A Discount or surcharge
    Calculat.type -  A Percentage
    Cond.category - Blank
    Manual entries      D Not possible to process manually
    Amount / Percent - Checked
    Item Condition - checked
    Scale Basis - Quantity
    Currency Conversion - Checked
    Quantity Conversion - Checked
    This condition type has been kept as statistical in the pricing procedure. Still in the proforma invoice the condition type is not getting reflected automatically , whenever I am updating with " carry out new pricing " option the condition type is getting populated.In case of other commercial invoices this very condition type is getting populated automatically without any updates.Along with this point to be noted is that the Condition type in which the actual costi is captured has been kept active.
    What more needs to be configured or what are the changes to be done to populate the condition type automatically as statistical during the time of proforma invoicing?
    Thanks & Regards
    Priyanka Mitra

    Hi,
    Kindly do the pricing analysis and check whether you have the following error such as
    Inactive condition type because of subsequent price,
    Regards,
    Ravi

Maybe you are looking for

  • I would be laughing if it wasn't so inconvenient

    So my go live date was 8th July, by late on 9th July I'm still not connected and have recieved no communication as to what has happened.  I ring to find out what is going on and reach an Indian call centre - they inform me that an engineer is require

  • SAP GRC AC 5.3 Roles provisioning

    Dear all, Anyone knows if SAP BW, SAP XI, SAP WF and SAP SP are standard sopported by SAP GRC AC for the roles provisioning? Thanks for your help! Kind regards, Sergio

  • BPM MultiLine Container

    Hi,    In condition editor in BPM how can I test whether my multiline element contains any elements. Any help on this. Thanks, Rao.Mallikarjuna

  • Posting from CO-PC to PCA

    Hi, Can the cost estimate or results from product costing can be passed on to Profit center accounting. If so how can we do it? Thanks, Nivi

  • Previously completed project: all audio now distorted in edit playback

    I completed a 25 min training video six weeks ago with several hundred clips. Audio is mostly voiceover broken into 100+ tracks, with a few background music tracks, some camera audio, and about 20 total sound effects. The project is complicated for i