Pricing condition deletion in CRM

Hello!
We're trying to delete pricing condition using CRMXIF_CONDITION_SEL_DELETE, but we are able to delete only a number of condition records at once.
I've read the documentation  for this FM, but  i still can't understand how to delete particulary one pricing condition from condition table.
Can anybody help me?
Tnank you!

Hi,
I used function module 'CRMXIF_CONDITION_SEL_DELETE' to delete condition records. Below is the sample code,
Data:  ls_data           TYPE bapi_ct_sel_opt_msg,
       lt_range          TYPE TABLE OF bapi_ct_cond_rec_sel_range,
       ls_range          TYPE bapi_ct_cond_rec_sel_range,
       lt_return         TYPE bapirets,
       lt_ret            TYPE bapiret2.
    ls_data-object_representation   = 'E'.
    ls_data-sel_opt-ct_application  = 'CRM'.
    ls_data-sel_opt-object_task     = 'D'.
      ls_range-fieldname    = 'ZZOPPORTUNITY_GUID'.
      ls_range-r_sign       = 'I'.
      ls_range-r_option     = 'EQ'.
      ls_range-r_value_low  = lv_guid.   
      APPEND ls_range TO lt_range.
      ls_range-fieldname    = 'KSCHL'.
      ls_range-r_sign       = 'I'.
      ls_range-r_option     = 'EQ'.
      ls_range-r_value_low  = 'ZZNE'.    "cond type
      APPEND ls_range TO lt_range.
      ls_data-sel_opt-range = lt_range.
CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
      EXPORTING
        data   = ls_data
      IMPORTING
        return = lt_return.
* Committing the transaction
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      IMPORTING
        return = lt_ret.
Regards,
Arun

Similar Messages

  • How to Maintain the Pricing Condition Records in CRM

    Hi
    I am new to the CRM
    How to maintain the pricing condition records in crm for the particular condition type?
    as we do in SD(VK11)
    Thanks

    Hi Binu,
    First of all, you could maintain pricing conditions in the following places:
    1. In General Condition Maintenance (GCM)
    2. At the product maintenance level
    3. At the 'Price agreement' tab of Contracts
    4. As manual conditions during order processing at item level
    Now, if you want to maintain conditions using GCM, you first have to maintain a condition maintenance group in the customizing where in you can assign condition table and condition type for different counter values. I am assuming that you have done this activity successfully.
    When you run the transaction '/SAPCND/GCM', for application 'CRM', your condition maintenance group name and context 'GCM', you will be initially taken to a screen where in you'll have an item area which would be blank and then condition fields would be displayed in a tree on the left.
    Here, select the field 'Condition type' and click on icon 'Select records'. You would get a dialog prompting you to enter condition type. Here you can specifiy the condition type for which you want to maintain/view condition records.
    If no condition records are available, item area would be left blank. Here, you can choose a condition type using the standard F4 help. Depending on condition types that are assigned to condition maintenance group, different condition types would be displayed in the F4-help using which you can maintain condition records.
    Hope this helps.
    Regards,
    Pavithra
    **PS: Please reward points if this helps.

  • Pricing condition maintenance on CRM

    I need to maintain pricing conditions on crm 4.0 and I wanna create record automatically via BAPI .Unfortunatelly, I couldn't find out any BAPI for maintaining pricing conditions. Does anybody have information about this??

    Hi,
           What transaction are you trying to create using BAPI?? You can use CRM_ORDER_MAINTAIN function module to create transaction. To this function module there is Parameter IT_PRIDOC. to this you need to pass pricing information.
    Paralally you can use BAPI   BAPI_BUSPROCESSND_CREATEMULTI to create transaction in CRM. this will have a table CONDITION_CREATE, to this table you can pass pricing information.
    Hope this will help you
    Thanks
    Siva

  • Pricing condition deleted in PO

    Hi Experts,
    I created a PO and added Freight condtion to the PO. After creating the PO i realized that the plant in the PO is a wrong one. So i changed the plant in the PO .
    But after changing the plant i see that the freight condition is deleted in the PO. Could some one explain the reason for it ?
    Does it have something to do with valuation area maintained at Plant level ?
    Regards
    Pavan

    Hi,
    I created a PO and added Freight condtion to the PO. After creating the PO i realized that the plant in the PO is a wrong one. So i changed the plant in the PO .
    see first thing for wrong plant you give condition in po  manually or it come automatically
    If plant change info record change in  po  and check info record ,check last Po number in info record
    Regards
    Kailas Ugale

  • How to Delete the condition record in CRM

    HI,
    Can you please help me how to delete the condition record from condition table in CRM.
    Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
    I have also read the documention of the function module. How to use this FM for custom defined condition table.
    (this is the code given in Documentation)
    DATA-OBJECT_REPRESENTATION         = 'E'
    DATA-SEL_OPT-CT_APPLICATION              = 'CRM'
    DATA-SEL_OPT-OBJECT_TASK                    = 'D'
    DATA-SEL_OPT-RANGE-FIELDNAME        = 'PRODUCT_ID'
    DATA-SEL_OPT-RANGE-R_SIGN                  = 'I'    (Including)
    DATA-SEL_OPT-RANGE-R_OPTION           = 'EQ'
    DATA-SEL_OPT-RANGE-R_VALUE_LOW  = 'PROD_1'
    Thanks
    Shankar

    Hi Shankar,
    I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
    But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
    Error in  lt_return: SMW3     CND_MAST_SEL_DEL_EXT_VALIDATE     CND_M_SD
    code:
    ls_range-fieldname = 'PRODUCT_ID''.
    ls_range-R_SIGN = 'I'.
    ls_range-R_OPTION = 'EQ'.
    ls_range-R_VALUE_LOW = '123456'.
    APPEND ls_range TO lt_range.
    MOVE lt_range TO ls_entry-SEL_OPT-range.
    ls_data-SEL_OPT-object_task = 'D'.
    ls_data-SEL_OPT-ct_application = 'CRM'.
    ls_data-object_representation = 'E'.
    CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
      EXPORTING
        DATA          = ls_date
    IMPORTING
       RETURN        = lt_return
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      IMPORTING
        return = lt_ret.
    Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM

  • Delete Pricing Condition IN Sales Order

    Hello Forum,
    Does anyone know how to delete a specific pricing condition in a Sales Order.
    In a sales order for each line item there are multiple pricing conditions. I need to delete a specific price condition 'ZZZZ' for instance then how do I go about it?
    This is what I have been able to find out so far.
    1. Does NOT seem to be possible by BDC because there is no way to position the cursor on the particular condition record I require.
    2. Although there is BAPI_SALESORDER_CHANGE, SAP via an OSS note specifies that this BAPI CANNOT be used to delete  condition records.
    3. None of the PRICING function modules seems to work for deletion. I did find out a function module PRICING_DELETE_LINE but this seems to rely on being called via SAP Standard function.
    I have tried searching for some means to do this and I hope that someone on this forum can give me some help on the same.
    Regards,

    Hi Peter,
    Your reference to OSS Note 593246 saved me from hitting my head to the wall, I had almost given up. Thanks a lot.
    Here is the code, in case any one needs to add or change a condition type on the sales order.
    REPORT ytest.
    DATA:lt_conditions_in TYPE STANDARD TABLE OF bapicond,
         lt_conditions_inx TYPE STANDARD TABLE OF bapicondx,
         lt_return TYPE STANDARD TABLE OF bapiret2,
         ls_logic_switch TYPE bapisdls,
         ls_order_header_inx TYPE bapisdh1x,
         ls_conditions_in TYPE bapicond,
         ls_conditions_inx TYPE bapicondx.
    ls_order_header_inx-updateflag = 'U'.
    ls_logic_switch-cond_handl = 'X'.
    ls_conditions_in-itm_number = '000010'.
    ls_conditions_in-cond_type = 'PR00'.
    ls_conditions_in-cond_value = '21.11'.
    ls_conditions_in-currency = 'USD'.
    APPEND ls_conditions_in TO lt_conditions_in.
    ls_conditions_inx-itm_number = '000010'.
    ls_conditions_inx-cond_type = 'PR00'.
    ls_conditions_inx-updateflag = ' '.
    ls_conditions_inx-cond_value = 'X'.
    ls_conditions_inx-currency = 'X'.
    APPEND ls_conditions_inx TO lt_conditions_inx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
       salesdocument               = '0000053232'
      ORDER_HEADER_IN             =
       order_header_inx            = ls_order_header_inx
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
       logic_switch                = ls_logic_switch
    TABLES
       return                      = lt_return
      ORDER_ITEM_IN               =
      ORDER_ITEM_INX              =
      PARTNERS                    =
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES              =
      SCHEDULE_LINESX             =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      conditions_in               =  lt_conditions_in
      conditions_inx              =  lt_conditions_inx
      EXTENSIONIN                 =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait          = 'X'
          IMPORTING
           return         =
    Regards
    Amit Maole

  • Copy pricing conditions from R/3 to CRM

    Hello,
    I am using Function Module CRM_ORDER_MAINTAIN to copy pricing conditions from R/3 sales order to CRM complaint document.
    I am fetching R/3 conditions with the help of RFC call to R/3 and then passing these condition records to the FM CRM_ORDER_MAINTAIN.
    I am populating the importing parameter - IT_PRIDOC of this FM. And filling following internal table of this importing parameter:PRIC_COND, COND_ADD, COND_CHANGE and COND_DELETE.
    I am not sure if filling table PRIC_COND would be needed.
    Could you please guide me about the exact use of these tables? Do you have any documentation for this function module?
    Many thanks in advance,
    Sandhya.

    Dear Sandhya,
    I am facing the same problem.
    Could you please explain me (in case you finally implemented this), how you did it?
    Thanks in advance.
    Regards,
    Yolanda

  • Pricing Condition Type R/3 - CRM (Exclusion Indicator)

    Hi,
    I am facing problem with the condition type in the CRM.
    In R/3 in contion type in Control data 2 we have a Condition Exclusion field and Same Exclusion  field is not availble in CRM.
    The Value in the Exclusion field is set not to perform this Condition Based on the Criteria.
    I need the same Condition to perform in CRM to exclude this Condition type in sales order processing.
    Can any one suggest how to and where to set or maintained this Value in Condition type in CRM
    Your suggestion is Valuble.
    Thanks in Advance.
    Regards,
    Naveen

    hi,
    You will have to first downlaod the Pricing condition from R/3 to CRM before downloading the condtion table,the download object is CRM_PRC_CNDTYP.
    Regards,
    Murali

  • CRM Pricing - BADI to Populate pricing conditions fields

    Hello All,
    We have CRM 5.0 installed in our customer.
    We are facing problems when we tried to replicate the pricing  from R/3.
    Basically, all Brazilian formulas we have in R/3 are Z. We tried to replicate them in JAVA (IPC) with no success. At this time, it is imposible for us to move to the standard because of the decision of the business.
    We are trying to find one BADI where we can populate all the pricing conditions retrieved via RFC from R/3. Unfortunatelly we don't have good luck with this.
    Our idea is to use this BADI to call R/3 and retrieve the conditions needed, and then populate the CRM pricing fields..
    Could you please help us? Do you have any other idea to solve this issue?
    This is very critical for us.
    Thanks in advance.
    Martin

    Hi Ntk,
    Thanks for your reply.
    I tried to search in se18. I found one BADI that runs when users enter new materials or changes the quantity of the sales order.
    This one  does not help us too much, because when you go to conditions tab (into CRMD_ORDER or via ICWEB) all conditions are redetermined with the pricing determined in IPC.
    We want to fill the conditions of the sales orders or the sales quotations at running time. In the BADI we would use the function module RFC SD_SALESDOCUMENT_CREATE (in simulation mode) in R/3 and retrieve all conditions fields and then populate the pricing conditions in CRM.
    Do you know any BADI with this behaviour? Or another similar?
    THANKS!

  • Custom pricing condition not getting triggered automatically in CRM 4.0

    Hi
    The custom discount pricing condition created in R/3 is active in R/3 and is getting triggered for Sales Orders created in R/3.
    I have downloaded the same pricing conditon from R/3 to CRM 4.0 i am able to trigger it manually in CRM service transaction. But i need the condition to be triggered automatically for the pricing group.
    Your inputs are highly solicited
    Thanks
    Padma

    Hi Padma,
    did you enable the condition download from ERP to CRM already? Did you run the initial condition customizing download and the initial condition master data download successfully (check also the application log in SLG1)?
    In addition, you should be aware, that for any condition customizing change in ERP you need to rerun the initial customizing download (there is no delta download) and that you need to refresh the IPC customizing buffer, which is automatically done once a day by default.
    Best Regards,
    Michael

  • Deletion of bulk pricing condition records

    Hello thr,
    I have thousands of pricing condition records to be deleted. I use condition type ZP01 in VK12 and select the key combination customer/material and then enter the details and then mark the condition record for deletion. To delete the next condition record, I need to go back and do the entire process again. Could someone please let me know if there is a txn that can help me do this in one step.
    Thanks very much for your help.

    Hi Swetha,
    If you want to delete all conditions for ZP01 condition type, you need to create a LSMW batch input from LSMW t-code. you can check and try followings:
    [https://wiki.sdn.sap.com/wiki/display/ABAP/LSMW%20steps%20-Batch%20Input%20Recording]
    [http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc]
    You should go to in LSMW t-code, a recording should be created for one record from VK12 t-code and it can be run for all records like same from SM35 t-code.
    Please follow the links above for VK12 condition deletion.
    I hope these will meet your requirement fully.
    Regards,

  • Change/Delete Existing Pricing Condition Type

    Hello
    I have a manu Pricing Condition Type and a rate(obtained from custom source) was inserted pro-grammatically into this line item whenever the new line item was added into the basket using CRM_ISA_BASKET_ITEMS badi.
    When the user changes the Qty for the same line item, I want to delete the existing condition rate(manual) and find the new current rate from the custom source and add that to this Line Item.
    Question: How to change/delete existing Condition Rate ?
    Cheers
    RJ
    Reference: E-Commerce Implementation

    Hello,
    You can use java condition value user exit for this.
    Thanks and Regards
    shanto aloor

  • Question regarding usage of CRM pricing conditions using date ranges

    Hi,
    I wonder if someone has a suggestion regarding how to set up pricing conditions in CRM to accomplish the following scenario:
    For existing customers we want to “freeze” the product price for certain customers,
    but at the same time let other customers get another prize for the same product
    and period.
    (We have scenarios where the product price changes retroactively, years back in time, but only for those custoemrs that  fulfill a specific criteria at the time where the prize change was decided to take place..)
    We want the prize to be dependent on the customer status AND when this status was set
    (before a specific date), but there doesn’t seem to be a way to set up pricing
    conditions with date ranges (i e "customer status changed before YYYYMMDD
    renders prize X").
    Since we are talking about quite a lot of customers we do not want to add each and every
    one of them as “individual price items” in the pricing conditions tables.
    Does anyone have an idea regarding how to set this up?
    Thanks
    /Marika Wasserman

    Hi Marika,
    condition records have validity (FROM - TO). Let us assume you have a condition record for product A with 50 EUR per piece and this record is valid from 01.01.2014 until 31.12.2014.
    If you create CRM Sales Order having product A at 4.12.2014 and this date is used as pricing date for the conditon determination, then it will find this condition record with price 50 EUR per piece. This 50 EUR should be the froen price.
    Now how can you achieve that for the same CRM Sales Order another product price is determined for certain customer or a certain customer group?
    The idea is to pass an additional pricing attribute, e.g. customer group. Then you can create a new condition table with this field with the key fields product and customer group. In the access seqeunce first the new condition table is checked and if no record is found, then the second conditon table is checked as shown below:
    Access Sequence ABC
    Access 10: condition table with key fields product + customer group
    Access 20: condition table only key field product
    Instead of customer group you define also any other field. You create your own implementation of the BAdI  CRM_COND_COM_BADI that passes this field with a value to pricing.
    Best regards,
    Baris Yalcin

  • Can idoc COND_A04 be used to update/delete existing pricing conditions?

    Hi all,
    I am designing an interface from an external pricing system to SAP, and am currently looking at the COND_A04 idoc as a mechanism to load the prices into SAP.  In testing I've found that this idoc creates pricing conditions very nicely, but I'm wondering if the idoc can also be used to change existing pricing conditons or mark existing pricing conditions for deletion.  Has anyone ever done this with COND_A04?
    I tried deleting an existing condition by populating E1KONH-KNUMH with the condtion record number of the existing condition, and populating E1KONP-LOEVM_KO (deletion indicator) with an 'X'.  Instead of marking the existing condition with the deletion flag, what this did was create a new condition record (same validity period and price) that is marked for deletion.  While functionally this does in fact delete the price (the previous condition is 'overlapped' by the new condition and therefore ignored going forward), it doesn't seem like a clean solution and the resulting change history is very confusing.
    Are there are fields on the idoc that can be set to perform a true change or deletion, vs. simply creating a new condition record???  Any ideas will be most appreciated!
    Thanks,
    Allison

    There could be numerous reasons for the IDoc failure because the message that you are getting is too generic. Btw, Is this the only message you get, check if there are more than 1 status 51 in your IDoc to get some more information.
    Also see the longtext of the message by double clicking on the status message, probably you will get a more comprehensive reason for the failure.
    If nothing of the above helps, try to see the message number and class and see where it is used in the posting program and put a break point at the spot where this message is triggered.
    regards,
    Advait

  • Changing Pricing Conditions in CRM

    Hi,
    We'd like to change an already existing price condition on contracts in CRM using a batch program.
    The prices doesn't exist in R/3 but only in CRM.
    We have run some tests using Function Module
    'CRM_ORDER_MAINTAIN' but the pricing conditions where not saved(the price sheet is updated and also the total net price of the contract).
    Does anyone know of a functon module to use for changing a pricing condition for a contract in CRM ??
    Thanks,
    Björn

    Hi,
    did you find a solution to your question ? I am trying to find an answer to the same subject.
    thanks,
    Isaac

Maybe you are looking for

  • Kernel Panics and Frequent Re-Boots - Help!

    Hi all, I'm new to this, and haven't posted before - I am getting possibly three times a day random reboots and kernel panics (the same thing?). No pattern to the problems. Sometimes I'll close the lid of my Macbook and then a minute later and I'll h

  • FAQ: Will Lightroom work with my camera, or Why won't my raw files open?

    What is a raw file?   A raw file is the unprocessed data that was captured by your camera sensor when you took your picture. The only settings on your camera that apply to this file are aperture, shutter speed, and ISO. This means that any effects yo

  • Got ORA error when trying to execute external file using scheduler

    Hi All, I have executed the below program. In the log i have seen the error like below BEGIN dbms_scheduler.create_job('"TEST_JOB_EXE2"', job_type=>'EXECUTABLE', job_action=> '/home/upncommon/pub/test123' , number_of_arguments=>0, start_date=>TO_TIME

  • New column required in COR6N

    Hello experts, I want to know is there any way to add or insert a new column in goods movement screen of transaction COR6N. Actually as per client requirement they want one more column of calculated output given by goods movement. One is for view onl

  • Applet - EJB Connection

    When I try to make a jndi lookup, I get the following error. Did anybody faced similar problem? The error occurs at the line where I call the look up through the initialcontext object. I have signed my applet. It is working locally, but not from othe