Header conditions calculated on item level.

Hello,
We are on SRM 4.0 (server 500). I have created a header pricing condition as a copy of 01RH for a surcharge. I created a contract with the condidition that a surcharge of ZAR 65 to be added for all orders below ZAR 1000. When I create a shopping cart the surcharge is added to all the items, and not to the total of the shopping cart. The requirement is to calculate the charge as per the total value of the shopping cart.
Any ideas on how we can acheive this?  Is there a badi we can implement?
Regards
R

Hi,
I'm not sure of the Shopping Cart functionality of SAP CRM. Might be CRM E-commerce have a shopping cart or a shopping basket feature. You can have a look at SAP CRM Help Portal.
[CRM WebChannel|http://help.sap.com/saphelp_crm70/helpdata/en/a9/0fff29fa4c46bca6e01d70e9201e92/frameset.htm]
If you are using the CRM One Order API's to persist data in the Database, then probably you can have a look at the BADI - ORDER_SAVE. This is badi which will be triggered and you can code you own application logic. But, have a look at the BadI documentation and sample implementation. The sample implementation class is - CL_EXM_IM_ORDER_SAVE.
I hope this will help you somehow.
Thanks,
Samantak.

Similar Messages

  • Header condition types and item condition type

    Hello Gurus,
            this is a simple question. does the header condition types are totally same as item condition types ?
    thanks very much!

    hi,
    header:
    If this condition is marked as a header condition, it is possible to enter the condition type in the header condition screen. Checks for changing the condition manually are unaffected by this.
    the header conditions calculate the header value
    item :  conditions of this type are allowed to be entered in the document items. The condition is then only valid for the particular item in which it is entered.
    item condition calculate at item level
    (freight condition)for eg = HD00 is a header condition .here if you have 10 materials and this cond type calculates the freight charges for all the 10 items.
                KF00 is aitem condition.here system caliculates the freight charges only for that particular items.
    Edited by: MANI ROOPA SD/MM on Apr 24, 2008 2:32 PM

  • Crm_order_maintain ,changing pricing condition value at item level

    Hi,
    I am trying to change the pricing condition value at item level while creating sales order through CRM_ORDER_MAINTAIN.
    I am not able to change the condition value.
    Code is below.
          wa_inputfields-ref_guid   = wa_orderi-guid.
          wa_inputfields-ref_kind   = 'B'.
          wa_inputfields-objectname = 'PRIDOC'.
          wa_fieldname-fieldname    = 'KBETR'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          wa_fieldname-fieldname    = 'KMEIN'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          wa_fieldname-fieldname    = 'KPEIN'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          wa_fieldname-fieldname    = 'KSCHL'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          wa_fieldname-fieldname    = 'WAERS'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          INSERT wa_inputfields INTO TABLE it_inputfields.
    wa_pricing_add-KSCHL  = 'ZP06'.
    wa_pricing_add-WAERS  = 'USD'.
    wa_pricing_add-KBETR = '10'.
    wa_pricing_add-KPEIN = '1'.
    wa_pricing_add-KMEIN = 'ST'.
    INSERT wa_pricing_add INTO table it_pricing_add .
    wa_pricing-REF_GUID     = wa_orderi-guid.
    wa_pricing-REF_KIND      = 'B'.
    wa_pricing-PRICING_TYPE  = 'A'.
    wa_pricing-COND_ADD = it_pricing_add.
    wa_pricing-PRICING_PROCEDURE = 'ZVDSP'.
    append wa_pricing to it_pricing.
    Can you tell me how to overwrite the condition value while creating sales order using crm_order_maintain.?
    Regards,
    Indhra.E

    Hello Indhra,
    Check the CT_INPUT_FIELDS table, in the OBJECTNAME field you will find all the tables that are filled during the function call. Check those tables mentioned in the OBJECTNAME to look for any pricing related data.
    When your order is in change mode and you activate debug <b>just before you make the change</b>, the CRM_ORDER_MAINTAIN FM call contains <b>data only relevant for the change you just made</b>. In other words, you need to fill exactly the same tables as CRMD_ORDER does.
    E.g. You just change the pricing procedure and you see in debug that 5 tables are filled, you must do exactly the same in your code! It's quite anoying but you're using a low-level API FM that can handle ANY transaction type in CRM!
    Check it, it works!!
    <b>Reward points if useful!</b>
    Regards,
    Joost

  • A new TAB in MIGO both at header as well at item level

    hey Folks ,
    My requirement is I want to add a new TAB in MIGO both at header as well at item level , I have made efforts with BADI *mb_migo_badi * and added the tab with a text box   .
    I want to save the text added in the text box  ,
    Please help how to procede ...!
    Regards
    Swapnil

    Hey Ashok ,
    I have already made the efforts with the same class .
    My problem is that i had to save the TEXT in the TEXT BOX with the OBJECT ID ,OBJECT NAME  I have used various function mobules as create text ,save text also .....!
    Have created  OBJECT ID  using SE75 since for MIGO transaction its not provided by SAP
    Please guide me for the same .
    Regards
    Swapnil

  • Proble in VA01, cant see condition types in condition tab at item level

    Hi
    Well i am facing a strange problem in VA01, i am not able to see condition type whole grid under Condition tab at item level in VA01. actually i was given a project to hide pricing data from particular users based upon Authorization object value. initially i though it might be because of that so  i revert back all the changes but the problem remain Intact.
    well do you have any idea which user exit or enhancement may affact this or do you knoe if it can be because of  SD configuration changes.
    i mean can be hide condition type in VA01 through pricing condition.
    the other thing is its working fine in VA02.
    i made changes in following include
    MV45AFZZ
    MV45AFZB
    LV69AFZZ
    RV60FUS4
    any help will be highly appreciated .
    rewards for sure
    mandy
    Edited by: mandy on Jan 15, 2008 2:11 PM

    use this
    INCLUDE MV45AFZZ. include.
    u will find  FORM USEREXIT_PRICING_PREPARE_TKOMK  
    where u can change
    princing
    i am puting my code which i did
    ok
    DATA : WA_KOMV LIKE XKOMV,
           WA_ZPRICING LIKE ZPRICING1.
    IF SY-TCODE = 'VA01'.
    IF VBAK-AUART = 'YYOR'.
    LOOP AT XKOMV INTO WA_KOMV where KPOSN = VBAP-POSNR.
    IF WA_KOMV-KSCHL = 'ZABS'.
    SELECT SINGLE *
           FROM ZPRICING1
           INTO WA_ZPRICING
           WHERE VKORG = VBAK-VKORG
           AND VKBUR = VBAK-VKBUR
           AND VTWEG = VBAK-VTWEG
           AND MATNR = VBAP-MATNR.
    IF SY-SUBRC = 0.
    delete XKOMV.
    ENDIF.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDIF.

  • No condition types at Item Level

    In the header of a sales order the Pricing procedure is triggered but at item level there are no condition types in the condition tab.
    I have maintained condition records for few condition types as well but still the condition tab is blank.
    What could be the possible cause of it?

    Hi Christino,
    Please check up whether these condition types for which you have maintained condition records are header condition or item conditions?
    Regards
    Mohammed Roshan

  • Header Condition distribution to item

    Hi all,
    I would like to create a header condition type that will distribute the amount to the item according to the qty, whereas condition such as HB00 and HM00 are distribute according to value.
    How could I set the condition in order to do that?
    Thank you.

    Hi,
    You can copy Condition Type HB00 for this purpose.
    Ensure that "Header Condition" and "Group Condition" check box must have been checked/ticked.
    You need not change the "Calculation Type" to C, as it will not work.
    In standard system, Header Condition like HB00 are distributed on the basis of Net Value.
    If you want to change the basis of distribution (quantiy or weight etc) then, in the Pricing Procedure, you assign the appropriate routine in the "Alt Cond Base Value" column for your Header Condition.
    This will serve your purpose.
    At present, I do not have access to SAP, therefore I can not tell the adject routine to be used.
    You can search the appropriate routine from the drop down. I hope it is available in standard.
    Regards
    Pradyumna

  • Header Condition changing to Item condition

    Hi Gurus
    I have a header condition ZXXX, Client want to change to item condition manual condition and for only ZOR order type only, for this abaper written rounite and working fine.
    But if i made ZXXX header condition to item condition. Does system have any errors with existing open sales orders, deliveries. i have not made any changes in pricing procedure. Will anything changes in conditions of items and header level like subtotals, totals etcs...
    Thanks
    Ramki

    Thanks for your inputs Lakshmipathi, for header condition it is there as manual check in pricing procedure, iam doing this ZXXX as item condition and as manual condition in pricing procedure. if i check this, i do not need to put access sequence in condition type.
    I have a test case - before i change ZXXX as item condition i have created sales order without deliery, with delivery & PGI, and with invoice.
    so after changeing item condition, if i goto open sales order header--> conditions and come back its ZXXX is converting to item condition. if i goto item conditions and come back, its not changing anything.
    Please suggest how to go about this.
    Regards
    Ramki

  • Copying header sales data to item level

    Hi,
    I am adding WBS Number at account assignment field of Sales header, but the same is not transferred to item level.
    I want to know, what setting is required for the same?
    Regards
    Suman

    you have to do that on item level
    you can assign sales order items or customer quotation items to a WBS element (billing element)
    if you do, revenue and cost controlling takes place wholly within the project
    the quotation/order does not bear either costs or revenues
    the billing element referenced in the sales order item is the highest element in a billing hierarchy
    the billing hierarchy includes all objects (WBS elements, orders networks, network activities) hierarchically subordinate to the billing element

  • Header condition positive but item condition negative

    Hi,
    We use a customised Statistical Condition type in the Sales Order.
    It is observed that often, whilst the Header Condition value is correct and positive, when the value is getting distributed to the line items, one of the Line item is getting a negative value allocated to it !
    Eg:
    header condition value is 50.
    this is allocated to the various items as follows:
    item 1  =     30
    item 2  = 20
    item 3  =     40
    Total    =     50
    Item 2 is  getting a value of minus 20 !!!!.
    can you let me know how the system allocates the Header Condition value to the Line items ?
    Thanks in advance for your help.

    hi
    i have checked that too and there are no issues there
    actually, this has been recurring....but happens in only 1 or 2 documents in a month as compared to the 1000's which are processed.....

  • User EXIT to suppress or disable  "Conditions" tab at item level in va02

    hi gurus,
    well i have very urgent requirement to suppress Condotion tab at item level in va02 based upon authority object, did you know where i can disable the function code "T\05" or suppress subscreen.
    my requirement is that when a user press on condotion tab he should not be able to see pricing detail data.
    will reward points for sure
    mandy

    Hi Mandy,
    I think you can do through SHD0 Transaction by creating transaction variants.
    If not possible there could be some customization from SPRO, consult with your functional guy.
    Check this enhancement MV45AFZZ
    PERFORM USEREXIT_FIELD_MODIFICATION, I think in this perform you may disable, check this
    Regards,
    Satish
    Message was edited by:
            Satish Panakala

  • Discount at header, not reflected at item level

    Hi All;
    We are using ECC6
    There is a bsiness requirement.
    The vednor gives a discount for some PO's as a lump sum.
    The user requires to be able to enter the discont at the header level but the system should not divide this discount on all items. i.e. the unit price of every line should not be decresed by that discount.
    The discount should only be refelcted on the net price of the header only.
    Is there a way to define such a condition?
    Thanks

    Hi
    I dont think that is possible. It should not be possible too..... If you are adding discounts by vendor , these should get distributed to the PO line items to make accounting consistent for these items....
    If you dont distribute it to the PO Items, where will you post this gain.....Another option to handle this is at the time of creation of invoices you enter a lump sum amount at Invoice header...that should be possible but I did not check it...
    Post this question in MM Forum.....
    Regards
    Virender SIngh

  • Same condition type on header and item level = printing problem

    Hi
    I have a customer using some condition types on both item level and header level in quotations, orders, invoices ...
    In the pricing procedures it is customized (V_T683S-DRUKZ) that the conditions must be printed on header level (that is at the bottom of the documents).
    My job is to make the Smartform to print the documents, and I want it of course to be as close to SAP standard as possible.
    SAP standard will print these conditions on header level even if the conditions are at item level, but my customer wants the conditions created on header level to be printed on header level and conditions created on item level to be printed on item level.
    I'm no pricing expert, so my question is:
    Will it be fair if I tell the customer that using the same condition types on header and item level is bad practices - or at least bad karma?
    Best regards
    Thomas Madsen Nielsen

    Hi Shiva Ram and Madhu
    I have no problem understanding header vs. item conditions, so I really don't see anything in oss note 876617, that is relevant in this case.
    Madhu - I do not agree that everything is fine. My issue is that I want to stick as closely to SAP standard customizing as possible. In SAP standard customizing of a condition type you can use the flag V_T683S-DRUKZ to determine if the condition should be printed on header OR item level - you can not choose both header AND item level.
    I have a SAP standard smartform using two functions modules for reading header and item conditions. RV_PRICE_PRINT_ITEM and RV_PRICE_PRINT_HEAD. These function modules are based on the DRUKZ customizing flag and a condition marked for printing on header level will be supplied by RV_PRICE_PRINT_HEAD even when the condition is on item level.
    My point is: SAP standard customizing does not support printing of same condition on both header and item level. I can of course write tons of code to work around this problem, but that would be bad practices

  • Header condition of PO should automaticaly taken in to item level

    Hi
    We have a problem of including condtion value for  PO line items. We need to get disribute the condition values once it is entered in to the header level, based on the quantity of line item we are purchasing in the PO. Please advice how to  do this.
    Regards
    Kesharika

    Hi Kesharika,
    If the condition is set as a group condition, the amount          
    entered on the header is distributed proportionally (that is, in the       
    relationship of the relevant condition bases at item level) and a          
    rounding difference adjustment may be carried out.
    Please read note 876617 - FAQ: Header conditions/header condition screen.
    Regards,
    Edit

  • Standard Condition type used for Manual freight at item level

    Hello Gurus
    Can you please tell me the standard condition type used for entering freight manually at header as well as item level.
    Warm Regards
    Prashant Joshi.

    Prashanth,
    The freight Conditions that we use in Sales are two types
    HD00 - Header Level, wherein we have no access sequence
    KF00 - Item level, Wherein we have access sequence  KF00 - Freight
    But you want the condition types to be maintained manually, then you need item details screen of the respective condition type HD00/KF00 using Tcode V/06.
    Inside that Manual entry as "C". Similarly you need to maintain or activate "Manual" Indicator in pricing procedure. Then you can enter the freight Manually.
    Note:
    The difference In applying at the header level and item level is if you enter freight value at the header level it is applicable to all items in the item level. But if you want to apply freight  we can give freight to each item or selective item.
    Regards
    Sathya

Maybe you are looking for