SD Overwrite condition type value of subitem with value of mainitem

Hi,
Suppose we have a sales order with a material and a submaterial. On the head material a condition record for according a reduction is found. On the submaterial also but it's different.
Our requirement is that if there is a submaterial, the reduction on the submaterial should always be equal to the head material. I.o.w the reduction of the submaterial must be overwritten with the value of the head material.
I've tried messing around with duplicate condition records and also in some user exits but can't find anything.
Any ideas on this ?
with regards

I didn't use any exit, after creating the sales order, I check if there were substitute materials on the table vbap.
If you use substitution with subitems you have to do it this way, if you use substitution without subitems you have to do nothing.
example:
you enter material A, quantity 10, with subitems you end with a SO
pos     material         quantity
10         A                 10        (blocked)
11         B                 10        (subposition)
Without subitems you end with a SO like this
os     material         quantity
10         B                 10        (all the values you entered in the bapi_sales_order_create are applied to this position)

Similar Messages

  • MM Pricing Condition Type values in Condition Tab updation while CHANGE PO.

    Hi,
    The process of PO creation and PO change is through inbound IDOC posting.
    I created a PO with configured MM pricing procedure.
    While creating PO, the PO is created as required with different Condition Type value break-ups [PBXX, Discount, Surcharge etc] in the PO as required via Inbound IDOC processing.
    While CHANGING the same PO, the Condition Type break-ups [i.e. pricing related values] in the PO are NOT changing in the PO via Inbound IDOC processing.
    What needs to be done to update the Condition Type break-ups in the PO while changing PO through IDOC processing process?
    This problem is not occured while manual / on-line changing of PO valueS and saving the PO & exists through IDOC processing method ONLY.
    Thanks in Adv,
    RK

    Hi
    Try this function module
    FM RV_CHECK_CONDITION_VALUE
    Regards
    Hareesh Menon

  • Pricing : Condition type value need tog get from the lowest of 4 other cond

    Hi,
    I have one requirement in one pricing procedure.
    I need to calculate condition value of one condition type from the lowest value of other 4 condition tyeps. These condition types values are not defined as a subtotal.
    So if I decide to write a formula on condition values, is there
    any way to select these values and choose the lowest of them?
    Please also advice if there is any other way such as condition exclusion
    or so?
    Thanks and regards,
    Anand

    Anand,
    As you have mentioned you can use condition exclusion for such a requirement.
    here is a detailed description of how you can achieve this: use the menu path IMG> Sales & Distribution> Basic Functions> Pricing> Condition Exclusion> Condition exclusion for group of conditions.
    When you execute this IMG acitivity you get a window with three options
    1.Define Condition Exclusion Groups
    2.Assign condition types to the exclusion groups
    3.Maintain condition exclusion for pricing procedures
    We will use these three options one by one, we start with the first
    1. Define an exclusion group, lets say EX01 and give a description
    2 Assign the four condition types that you want to compare to this exclusion group under this option
       lets say EX01 ZK01
                   EX01 ZK02
                   EX01 ZK03
                   EX01 Zk04
    3. under this third step, select the pricing procedure that you are working on and from the left margin click on 'Exclusion'. click on 'New Entries' and make the following entries (example)
             Sno.   Cpr         ExGr1
              10      A            EX01                leave ExGr2 blank, Save your entries
    Check if your purpose has been met or not. Do give your feedback
    Regards,
    PATHIK

  • MM Condition Types values flow COPA

    Dear Gurus,
           My client requirement is MM Condition Types Values Should flow to COPA like SD to COPA. I had seen a screen that KE4IM is there we can map our COPA Value Field and MM Condition Types. But I am not sure that values flow to COPA, Because No document will be generated in FI or other while doing PO.
    Pl suggest me how can I fullfill this requirement.
    Regards,
    Balaji Bhonsle.

    Hi,
    If you read config doco for KE4IM you will find a statement:
    "It is also possible to transfer conditions from MM to update billing data in pooled payment in the IS Retail system. These are transferred according to the same rules as SD conditions."
    So KE4IM is only used in IS Retail. Are you IS Retail?
    If not you probably want to bring conditions from purchase orders to CO-PA.
    I agree with Ajay except for point 1.
    You can actualy trigger CO-PA posting during goods receipt (and invoice receipt) for PO.
    In order to achive it you need to activate "Purchase Accounting" in MM.
    SPRO -> Marterials Management -> Valuation and Account Assignment -> Account Determination -> Account Determination without Wizard -> Purchase Account Management
    Please read doco for Purchasing Account. In a nutshell when you activate it system will post addtional line item for GR and IR:
    Purchasing account and Purchasing Offseting account for value of purchased nmaterial and also for delivery costs.
    In table T030: Purchase account(EIN), purchase offsetting account (EKG), freight purchase account (FRE).
    Define EIN and FRE as cost elements and map to profitability segment in OKB9. Leave EKG as P&L account (no cost element).
    Then map cost elements to value fields in COPA.
    Done.
    Cheers,
    Szymon

  • JMOD condition type value should be always rounded up instead of commercial

    Hi Helpers,
    I need one clarification from you all based on your expertise,
    1. JMOD condition type value should be always rounded up instead of commercial.
    2. i have been already made rounding up in the condition type JMOD in the transaction V/06. but unfortunatly not working.
    3. after that we found that there is configuration change in spro (company code setting in the indai taxation-CIN) in the Logistic general> tax on goods movement>india> basic setting> company code setting for the commercialrounding, but the same is  already ennabled with SD rounding IND.
    Need your expertise on this.How shall we make it round up always for JMOD condition value. below is an example for your further analysis.
    Example: if values UTXJ is : 8,913.40 and JMOD will be calculated based on UTXJ as 10% thats is 891.34.
    Actually this should be 892 as per the requiremen.t

    I just recently rolled off a project in Europe that had an issue similar to this.  We were having rounding issues as a result of %  discounts. 
    However, we did come up with a solution that is provided by SAP. 
    Please review OSS note 80183 on SAP rounding and the solutions provided within the note.
    I hope this helps.
    Kind Regards,
    Jason

  • How to change the manual condition type value in change sales order BAPI

    Hi All,
    My scenario here is, i want to either add/change the manual condition type value during change of SO.
    When i'm trying to pass the  order_conditions_in and  order_conditions_inx tables in  'BAPI_SALESORDER_CHANGE'.
    Condition type is coming at item level but the value is setting to zero. Pls. help if anyone has any idea how to handle this.

    Siva,
       I guess you posted in Wrong Thread. You need to post in WAS section.
       check for any BAPI's available in CRM.
    Nagesh Ganisetti.

  • Condition type value not update in sales order

    Hello Guru's
    As per the  sales order in VA01 the condition type value i.e surcharge value is not updating in sales order.
    But I have maintain the condition record(Surcharge)also and in Condition technique I have checked every thing is correct .
    please find below I have attached the Screen short .
    Please give me solution Asap.

    Hi Sukdev,
    Have you checked the respective pricing procedure for From and To reference step maintained against the condition type ZSUR?
    Regards,
    T.R.S.Praveen

  • How to stop non statistical condition type value from updating total amount

    Gurus,
    Can any body explain me how to do following setting,
    How to Stop non statistical condition type value from updating Total Amount
    Regards,
    Sai

    Dear Sai,
    You need to make that condition type as Statistical one
    Go to SPRO - Sales and Distr. - Basic Functions - Pricing - Define and Assign Pricing Proc - Maintain Pricing Proc - Control Date
    Select the proc. - select the condition type and activate the  check box Statistical
    This will show the amount of the condition but will not consider for the net value calculation
    Hope this will help you
    regards,
    Sagar

  • Is it possibale statistical condition type value at FI GL account.

    Dear Expert,
    Hi I have a requirment like:  Add new manual condition types at pricing porcedure level.
    When I am creating SO these condition types value wont calculate in net value but that value needs to flow in to respective G/L account.
    How we can map this requirement at Pricing Procedure level.
    Can you please suggest.

    Hi Ranganayakulu,
    Yes, it is possible. Did you try to search in the forum. The answer is already provided in one of blog of SCN (" DOC-29788" in google).
    Please search and let us know.

  • In billing document VAT condition type flowing 2 times with Different value

    Hi,
    1. In my requirement, In order creation time , in the pricing procedure ZPROJT (Proj Material Sales) VAT condition type (JLST) is flowing one time with the condition record of 5% for one line item and the same we changed manually to 12.75 %, for the  same condition type (JLST) and we saved the order. After that  we created delivery with reference to the same order, final  the billing document creation time with reference to the delivery (in the pricing procedure ZPROJT (Proj Material Sales))for the same line item VAT condition type (JLST) is flowing 2 times with 2 different values ( 5% and 12.75%) and it is calculating the 2 different values to the final value. But normally only the manually changed (12.75%) value should be taken to the account. Please help me How to stop the condition type (VAT  C Type "JLST") from flowing two times for the same line item in the billing - and we need to take the value of (12.75% manually changed value) to the final calculation.
    2. In one pricing procedure normally if you add the same "C Type" for two times it will throw the error message like "Duplication Of C type" and you can't save the order with out deleting the same. Please tell me,  where is the contole for the same.

    Hi,
    Check copy control settings in VTFL
    At item level make pricing type as D - Copy pricing elements unchanged
    KAPIL

  • KONV not getting updated with new condition type value

    Hi,
    I have created a new condition type for a pricing procedure. But table KONV-KAWRT is not getting updated with any value. Can anyone help me this.
    Thanks
    Shweta

    Hi Vasu,
    It was created in the same way then I have assigned calculation formula . For invoice it is comming fine but for the intercompany billing it is not showing any value in Contition tab for this particular condition type. For this when I checked in KNOV table it is showing condition type but the value (KONV_KAWART) is comming out zero and due to this reason it is not showing value in intercompany billing ->condition. Do I need to write code for this?
    Thanks,
    Shweta

  • Condition type value can not be changed in PO pricing

    I have created PO which is having pricing procedure consisting different condition type. When i create any subsequent document (MIGO or MIRO) and realized that condition value in the pricing need to be changed so I have reversed all subsequent document so that can carry out "update pricing".
    when i press Update pricing button on the condition tab, its showing message that new pricing can not be carried out. I observed that some condition types of pricing are grayed out.
    Kindly help to solve this problem. Kindly help me how to 1) update pricing or 2) can change value of condition type.
    answers will be rewarded

    Hi shiwanshu
    Actually i tried the same and could change after I have reversed all subsequent documents
    Since your system does't allow you change and since you have reversed all the subsequent docs why dont you delete the PO item and add a new one with right pricing..
    i guess it will solve your problem..
    Hope helps
    Best Regards
    Reward please if found useful

  • Condition Type - Values getting changed at billing

    Hii All
    I have a header condition which is set up as group condition at header level. When an amount is entered at the header level it gets proportionately distributed among the line items. This is fine.
    Problem comes when a line item is completely shorted (i.e. delivery quantity becomes 0) then in the billing the header condition value also get reduced.
    What setting needs to be done so that the header condition value does not get affected.
    Current setting of condition type is as follows:
    Condition Class: A
    Calculation Type: B
    Condition Category: Blank
    Copy Control from delivery to billing is marked as 'G'
    Pls do let me know if there is a feasible solution for the same.
    Many Thanks
    Gaurav Manocha

    Dear customer,
    What you are experiencing with Fixed Amount Header conditions is stand-    
    ard behaviour. Please see below Notes:                                     
    876617 FAQ: Header conditions / Header condition screen                    
    317112 Behavior of conditions w/ calculation rule B changed                
    485740 Conditions with fixed amount in copy activities                                                                               
    To achieve what you wish (absolute amount), solution is in the below       
    Notes:                                                                     
    84605 Transfer absolute amount condition to billing doc.                  
    25020 Value changes during over/underdelivery                             
    25144 Freight conditions during milestone billing                         
    But I guess that there are many threads with the same problem.
    At first please search for old threads and solutions.
    I hope that the information are helpful.
    regards
    Claudia

  • Condition type value updation using characteristic value in sales order

    Hi Experts,
    We are implementing SAP for one of our Spain client. In that one of the Legal requirements is, whenever they are selling the finished products to domestic customers who contain OIL as one of the component then, some additional cost needs to be calculated and collected from customer and which needs to be paid back to Spain Government every month on Region basis.
           If OIL is not a component to produce the finished product then, not required to charge the customer additionally.
    The OIL content used to produce every finished product will vary based on product characteristic value. Meaning, for some finished product the OIL used will be 2.2 KG and for some products it will be 3.5, 4.3 KG and etc.
    Since various combinations of products are available for the client, during sales order creation we are planning to update some special characteristic which the data flow from u201CVariant Tableu201D. In the variant table we are going to maintain the OIL Quantity required making finished product.
    But we are not sure how to activate a new condition type with the value fetched in the special characteristic. This new condition type needs to be activated based on this characteristic value and multiplied with total order quantity and price to charge from customer.
    Example, the special characteristic fetched the value of 2.2 KG based on variant table. Total Order quantity is 10 PC and charge is 0.06 EURO per KG. in this case, (2.2 x 10 ) x 0.06 EURO = 1.32 EURO
    I need the expert opinion how to activate the new condition type based on characteristic value and achieve the above requirement.
    Thanks in advance.
    Warm Regards,
    VEL

    Hello,
    I have replicated the whole requirememt in IDES and getting the price calculation as needed but the only issue with the Conversion factor for the condition type. Either you need to maintian the conv factor in material master or need to enter manually for the condition type in SO. Some how you have to maintain the conversion factor to calculate the price for the condition type in different unit.
    For easy of understanding Lets make the whole requirement in 2 parts
    Part - 1
    Oil qty calculation. For convenience sake I have taken oil qty also in TO
    1) Created a num char OIL_QTY1 with length 9 and decimal places 5 and UOM as TO
    2) Created Variant table to infer the OIL qty in TO per piece of finished prod ( This oil qty data may be depends on various factors). For certain Finished products the oil qty may be 0 or blank
    3) Created a REF char SO_QTY  to pull the SO qty to configuration and add this char in class 300(Table:VBAP,Field :KWMENG)
    4) Created another char SO_OIL_QTY  (Num with length 9 and decimal places 5 and UOM as TO)
    5) Created a PROCEDURE say PROC_SO_OIL_QTY with code
    *$self.SO_OIL_QTY = $self.OIL_QTY1 * $self.SO_QTY*
    6) Create another PROCEDURE as mentioned earlier with modified code
    $SELF.A_VARCOND = 'TEST_001' if OIL_QTY1 specified,
    $SET_PRICING_FACTOR ($SELF,A_VARCOND,'TEST_001', SO_OIL_QTY)
    Note: Maintain proper seq of the procedures in profile. The Qty cal proc should be before the price related procedures.
    PART-2
    1) For the condition type maintained 60 EUR per TO (0.06 EUR per KG)
    Now if you create SO for the Finished product of 10 PC
    the Char values will be
    OIL_QTY1  = 0.00022 TO (inferred from Variant table th proc)
    SO_QTY    = 10
    SO_OIL_QTY = 0.0022 TO
    Get into conditions tab
    Here Condition type ZSIG will be displayed as error with Amount 60 EUR per TO and condition value will be blank. Just enter value 1 in the col NumC and CCon fields.
    Now the Condition value will appear as 1.32 EUR.
    Hope this gives some more clarity
    Regards
    Brahmaji D

  • Query regarding condition type value calculation in VA05

    Dear Gurus,
    We had maintained one condition type Z*** where we had declared the condition type as follows:
    Condition class - Prices
    Calculation type - Quantity
    Plus/Minus - A (positive).
    We had maintained the condition table as :
    Price = 200 USD per 10 EA
    Lower limit = uppler limit = 0.
    When we are calculating the price in the sales document, the system is taking the price of 10 units as 200 USD correctly.
    But in VA05 screen, the confirmed net value for 10 units is shown as 10*200 = 2000 USD which is wrong.
    Can anybody throw a light on how the confirmed net value for VA05 screen is calculated.
    regards,
    Krishna

    If it is representing the value of the condition type, then it is a new field customised by your technical team. Standard VA05 doesnot represent the value of any condition type. So please check with your developer, may be there is a problem in their program.

Maybe you are looking for