Updating a condition record or deleting it

Hi All,
I have a requirement where i upload products along with discount through a job . They are getting maintained through SAPCND/MNT_MAINTAIN_OW and on the WEB UI we can find it on CPGOE_ABLOCKS/OVELProducts and CRMCMP_CND/CONDRECLISTVIEW . Now there is a requirement where i have to append a new product or update the product along with discount . Appending a new product is wroking fine , but for updation case it is adding the new product along with discount but not removing the old product and discount .
I tried to use /SAPCND/MNT_DELETE_OW but was getting the error "The condition records are not found in the buffer" . And also while debugging i found that it was first going to Maintain FM and then to the DELETE FM , but i am not able to find the certain parameter which is getting passed from maintain to delete the record .
Is there any other way of achieving this requirement?
Thanks in advance,
Mithun

hi
create key-commit trigger
DECLARE
FormErr   NUMBER;
dbErrNo   NUMBER;
dbErrTxt  VARCHAR2(200);
FormTxt   VARCHAR2(80);
ErrTyp    VARCHAR2(3) ;
BEGIN
  commit;
    FormErr := ERROR_CODE;
    IF FormErr = 40400 THEN
      -- get the database error and text
      dbErrNo := DBMS_ERROR_CODE;
      dbErrTxt := DBMS_ERROR_TEXT;
      -- display the real problem
      MESSAGE('ORA'||TO_CHAR(dbErrNo)||': '||dbErrTxt, ACKNOWLEDGE);
    ELSE
      -- get the form messages
      FormTxt := ERROR_TEXT;
      ErrTyp := ERROR_TYPE;
      -- show the complete form message and error
      MESSAGE(ErrTyp || '-' || TO_CHAR(FormErr) || ': ' || FormTxt);
    END IF;
    RAISE FORM_TRIGGER_FAILURE;
END;sarah

Similar Messages

  • How to update all condition records at a time with some percentage or some

    Dear Sir,
    In PRD system we have more than 600 condtion records.
    Noe desiel hikes happend, due to that client want to update all condition records(600) at a time with required percentage or required value.
    How to update all records at a time
    With regards
    Lakshmikanth

    Hi,
    Through BDC or LSMW first you have to do the recording for particular transaction code and then base on that u have to prepare the flat file to upload the file for the same.
    For BDC programing you have to take the help of ABAP progmer but LSMW you can also do.
    For more information about LSMW plz go to following link :
    [LSMW |http://www.slideshare.net/arun_bala1/sap-sd-lsmw-legacy-system-migration-workbench/]
    [Step-by-Step Guide for using LSMW|www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc ]
    BDC
    [BDC Call Transaction|http://www.sapdevelopment.co.uk/bdc/bdc_ctcode.htm]
    [BDC Recording|http://www.sapdevelopment.co.uk/bdc/bdc_recording.htm]
    But it would be better for you to please contact to your ABAPer for BDC programming.
    Cheers...

  • FM'S or BAPI to update the condition records in VB22 transaction

    Hi,
    I need your help in getting the FM'S or BAPI to update the condition records in sales deal.
    The transaction is VB22.
    If you can send me a smaple code it will be really helpful.
    Regards,
    Sasi

    Check this:
    http://www.sapnet.ru/viewtopic.php?p=1644
    Bapi for VK11 & VK12
    Reddy

  • Values not updating in Condition records

    Hi All,
    Small question for you all -
    We have a condition record for TAX (ZVAT) this has three access sequences on it, one of these feilds for access is the HT (OIHANTYP),
    Nowe the problem is when HT = 01 then Vat should be calculated at the correct rate of which it does, but when you change the HT code to 02 then the Condition does not update, the only way around this is to carry out new pricing not ideal,
    Also if after changing the HT code and saving the order the order still does not update.
    Just as a side we also use scales and this works fine, if you amned the qty up then the rate chages automatically with these adjustments, it only seems to be when we change the HT that this problem occurs.
    Also just notice we are also using split valuation items, so also the batch needs to be maintained, if you get the right combination of Batch and HT then the condition updates all o, any ideas where this maybe set?
    Any help or comments are most welcome
    Regards
    Steve
    Edited by: Steve Cane on May 20, 2009 12:32 PM

    Hi Steve,
    If the field is available in VBAP or VBKD,  get in touch with an abapper and try the code in the below mentioned exits in MV45AFZB:
    USEREXIT_NEW_PRICING_VBAP
    Option for entry of preconditions for carrying out pricing again (e.g. changes made to a certain item field could be used as the precondition for pricing to be carried out again).
    USEREXIT_NEW_PRICING_VBKD
    Option for entry of preconditions for carrying out pricing again (e.g. changes to the customer group or price group could be set as the preconditions for the system to carry out pricing again).
    Regards,
    Naveen Aggarwal

  • Mass updation of Condition Records.

    Hi All,
    I need to update Condition Exclusion Indicator in Condition Record for 3 Z Conditions. I have checked it is not possible using Mass Maintenance. Could you suggest either I should use LSMW or Scat to update all the records.
    Thanks & Regards,
    Sam Rock.

    Hi Sam,
    I suggest LSMW.
    Regards,
    MT

  • Condition record getting deleted

    Hello,
    We have an issue with pricing condition ZPRO (basic price ).
    Our users created a sales order, let's say on 16.12.10 and the basic price ZPRO is determined based on the conditon record. Now on 17.12.10 , users are doing a re-determination of pricing for whatever reasons and to their surpirse, the condition type ZPRO is not appearing again in sales order. On checking the condition record for ZPRO, the same does not exist. They are not aware on how the condition record for ZPRO is getting deleted.
    They created again condition record for ZPRO and then re-determines pricing in sales order and then the ZPRO appears again in sales order.
    Now the above scenario (condtion getting deleted ) is happening for some more sales order !!
    We need to analyse why the condition record for ZPRO is getting deleted and how ?
    Can someone suggest how to check the same and why the above is happening ?
    regds
    Pamela

    hi Pam,
    please follow the given instructions:
    i guess that means condition record is being deleted by some body.
    because after deleting acondition record it will activate the deletion indicator checkbox & after a sales order is created the next movement it will say condition record does not exist.
    because thie condition records are dependent on validity periods.
    suppose the user is trying to create two condition records with in the same validity period one after the other.
    it will create only one and it will throw an POP UP message for the second one in this combination condition record existslie that with pretty good explanation.
    to find the user - goto VA02 - ENVIRONMENT - CHANGES if the relevant condition record is delted then it will show the name and date of record deletion
    hope this clears your issue.

  • Condition Update and Condition Record

    Hi Friends
    We have maintained Condition record validity and same will be used for u201CCondition updateu201Dfeature.
    Condition Update says that Condition record to be executed only first 10 orders for one customer as per our configuration and from 11th order on ward new condition record to be triggered automatically.
    Note: we are not sure that how long customer will take time to finish first 10 orders.
    So kindly let me know if there is any way to resolve above mentioned issue.
    Warm Regards
    Vijay

    hi Raghu,
    thanks for the your response but condition record is based on material ....and you must be expecting if it is on customer based we can manage it through validity right ....but how can we sure that customer will be closing his orders by some time.
    please let me know if you have any volition.
    warm regards
    Vijay

  • Deleting a condition record

    hi guys,
    i want to delete a condition record using VK12, am selecting the row and pressing the icon 'Delete Row' but its not working out, and the row still remains the same(the condition record not getting deleted). More over, the 'Deletion ID' is selected in the condition record.
    how do i delete the condition record in this case. this is very urgent. plz send the replies ASAP.
    thanks in advance.
    kumar.

    Dear Kumar,
    There are two possible procedures for deleting conditions. There is either immediate deletion or a deletion flag for archiving at a later date. You enter the type of deletion that should be proposed during condition maintenance into Customizing for a condition type, . When deleting immediately, a dialog box can be created which indicates immediate deletion but offers a deletion flag as an
    alternative.
    <b>Deletion Flag</b>
    You can mark condition records for deletion. These are then no longer taken into consideration during automatic pricing. However they remain as condition records in the system until the next archiving update. This means you can reset a deletion and reactivate a condition record.
    <b>Physical Deletion</b>
    If you use physical deletion, the condition record disappears immediately. It is no longer available during condition record maintenance or pricing. This deletion cannot be reset once it has been carried out. You have to recreate the condition record if you need it again. To be more exact, the reference to the condition record for pricing and condition record maintenance is deleted completely with physical deletion. The actual condition record must be kept for old documents.
    Recommendation:
    SAP recommends the physical deletion procedure. The deletion flag improves upwards compatibility in the system.
    A pricing error can occur when using hierarchical accesses in combination with the deletion indicator (See the hierarchical access documentation in the SAP library).
    The deletion flag used to be used as a replacement for a missing release procedure. This is no longer necessary, as there is now a separate release procedure available (see the release procedure in the SAP library).
    Physical deletion can be included using the change documents – for example deletions in a specific period (Report RV16ACHD).
    Reward points if this is helpful.
    Regards,
    Naveen.

  • Delete condition record??

    how to delete condition record from VK11. can i have t code plz.

    Hi,
    Just to add,
    There are two possible procedures for deleting conditions. There is either immediate deletion or a deletion flag for archiving at a later date. You enter the type of deletion that should be proposed during condition maintenance into Customizing for a condition type, . When deleting immediately, a dialog box can be created which indicates immediate deletion but offers a deletion flag as an alternative.
    <b>Deletion Flag</b>
    You can mark condition records for deletion. These are then no longer taken into consideration during automatic pricing. However they remain as condition records in the system until the next archiving update. This means you can reset a deletion and reactivate a condition record.
    <b>Physical Deletion</b>
    If you use physical deletion, the condition record disappears immediately. It is no longer available during condition record maintenance or pricing. This deletion cannot be reset once it has been carried out. You have to recreate the condition record if you need it again. To be more exact, the reference to the condition record for pricing and condition record maintenance is deleted completely with physical deletion. The actual condition record must be kept for old documents.
    <b>Recommendation:</b>
    SAP recommends the physical deletion procedure. The deletion flag improves upwards compatibility in the system.
    A pricing error can occur when using hierarchical accesses in combination with the deletion indicator (See the hierarchical access documentation in the SAP library).
    The deletion flag used to be used as a replacement for a missing release procedure. This is no longer necessary, as there is now a separate release procedure available (see the release procedure in the SAP library).
    Physical deletion can be included using the change documents – for example deletions in a specific period (Report RV16ACHD).
    Hope this helps. Please reward if useful.
    Thanks & Regards
    Sadhu Kishore

  • How to delete a condition record

    hi,
    i maintained one condition record and deleted it in chane mode i.e using t.code vk12. Again if i make new condition records the system showing "validity dates are over lapping".
    wt is it?

    hi srinivas,
    go to VK12 , there you can see the record maintained and the validity period. Just do one thing, select your condition record and change the valid to date in the past. Thn you will get a warning below that the date is in past, just press enter and save the record. Then if you go and check the record it will not be there. Then created your new condition record.
    I hope i have answered your query. reward points if solution helps.
    Regards,
    Allabaqsh G. Patil

  • How to update purchase order when creating a new condition records

    Hi,
      We have the system configured so that whenever we update a condition record, a change pointer is generated. Then we the use of standard reports RMEBEIN4 and RMEBEIN, all open purchase order having that condition type is updated. However this only works when we update existing condition record. When we create a new condition record, this does not work even though the change pointer is created. Do the reports mentionned above works for the this case or another standard report that should be trigger.
    Thank you for your help

    hi,
    May be this is working for the conditions already existing in the info record for the PO's.  so when you have new condition record it updates only after you amend the PO with that condition and save it.
    Kiran

  • Updating condition records in an outbound delivery

    Hi,
    I'm trying to update condition records in an outbound delivery but couldn't find any suitable BAPI for the same so I just implemented the BADI 'le_shp_delivery_proc' and called a FM inside the method SAVE_DOCUMENT_PREPARE' which does a call transaction to VL02N to update the condition records. But the problem now is that, when I try to save this delivery, again the same BADI is triggered and goes through the same process of call transaction and thus gives me an error message that the delivery is locked as it indeed is.
    Can somebody suggest a way out of this problem. ??
    Thanks
    Ashish

    Hi,
    @praveen: I tried the solution provided by you and it worked for me in this context. But it seems this BADI gets triggered every time the delivery is getting saved. So for my test purposes, I'm triggering this BADI in a program, but in actual scenario, the BADI would be called on every sy-ucomm = 'SICH_T' i.e. SAVE. hence, I can't separate my piece of code using this condition.
    I'm trying to call my FM(update module in collective run mode) inside this BADI in backgrnd task as a separate unit but this doesn't seem to work.
    Any more suggestions?
    Thanks
    Ashish

  • 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,

  • Conditional Record update

    Hello all,
    I have a requirement like this. Whenever a user create or change a PO, Then the info record should updated in me12 and also condition records  needs to be updated in conditional records. I know how to update info records. But i dont know the FM or Bapi to update the conditional records from the PO. Please let me know the solution to update the info condition whenever Po Changed or manual Po created.
    Thanks in advance,
    Ravi

    Hi,
    You cannot change the conditions in the info record from the PO as info record has time dependent conditions and PO had time independent conditions.
    You can only update the last reference document in the info record and also the order price history in the info record but not conditions.
    hope it helps u
    reward if useful
    Rohit

  • Condition record exist, but has not been set

    I am creating proforma invoice for STO replenishment delivery. I am getting error log "Billing type contains split criteria, n invoiced:123456789, invoice not required". But I am able to save it. I used all standard settings for copy control and billing type.
    For the proforma invoice the condition records are picking up some times and some times not picking up. In the analysis its showing "Condition record exist, but has not been set". When I update with carry out new pricing some times its updating with condition records some times not. I need a solution urgently. Please help.
    Edited by: k c on Nov 4, 2009 7:50 AM

    Hello,
    The message "condition record exists, but has not been set" tells you
    that the condition record exists, but has not  been set in the document.
    If pricing was carried out again for the document item, then the
    condition would be set.
    This can have different causes:
    The condition was deleted manually in the item condition screen.
    The condition record was created later. Please note that order
    processing and pricing have buffer mechanisms. This means that a newly
    added condition record might only be found after order processing have
    been left completely and then started again.
    When an item was added, the condition record was accessed with key
    fields other than change time. This could lead to different results in
    the requirements check at the time of adding and the change time. This
    can occur when modifications are made.
    In billing (or when copying orders): Certain condition types were not
    determined in the source document (this is usually controlled by the
    pricing requirements). When creating the document, the document flow
    (TVCPF,TVCPA) is processed using a pricing type that does not
    redetermine these condition types, although they are supposed to be
    called via the requirments."
    Please check if any of those reasons apply to your problem.
    Note that the condition type is determined just in the moment when
       the billing item is created. And it then that the userexit fills the
       field. When you save the billing document, pricing is called.
       Please ensure that you have any userexits switched off and then test
       this issue again.
    If you have access to OSS notes. please see:
         24832      Pricing rules / TVC
        130416     Requirements in the condition preliminary st
          27636     Message: Condition exists (removed manually)
        859876     Condition is missing: Message VE 108 or VE 008
    I hope you find this information very helpful and hopefully it will solve your problem.
    Regards,
    Martina McElwain
    SD - Forum Moderator

Maybe you are looking for

  • IMac will not wake from sleep after 10.4.8 Update

    Recently after a couple of software updates my IMac goes to sleep and the Bluetooth keyboard and mouse will not wake it. The option for wake with Bluetooth is checked. I zapped the PRAM and also checked the HD, Nothing has changed. NOTE: No new softw

  • How to pass attribute of type java.util.ArrayList Property to a Tag

    How do I pass an attribute of type, java.util.ArrayList<my.entity.Property> to a Tag implementation class? Please advise! Thanks, Joe package my.tags; import java.io.IOException; import java.util.ArrayList; import javax.servlet.jsp.tagext.SimpleTagSu

  • Can't log-in to iCloud in System Preferences using Apple ID

    Hi, I've recently updated to iCloud and have now also recently got a new MacBook Pro Retina running Lion 10.7.4 I'm trying to log in to iCloud through System Preferences but when I enter my Apple iD password - it won't accept it - the process just ha

  • Waking for backup - USB unmounted...sometimes

    It will take a couple of more days of experiments to define this problem, but I thought I would go ahead and post. I have my system (20" Alu iMac) set to sleep after an hour of inactivity and wake up at 12:30am, if needed, to execute a cron job (have

  • Consumption of data model created using Screen Scraping

    Dear All, I have created a GW Data Model for recording a standard SAP transaction and subsequently created its GW Consumption Model in SAP Netweaver Gateway.This will return a REST service.This REST service supports 'CRUD' (CREATE,READ,UPDATE.DELETE)