Delete condition records in VA01

Hi,
   I am trying to write a BDC for VA01. There are SOME(not all) unwanted condtion records comming. how can i remove those condition records (Goto - > Header - > Conditions) thru BDC.
Regards,
Naveen Vishal

HI NAVEEN,
                goto vk12,choose the condition types which you dont want to be in the sales order,select the line and delete the condition record and save.
you have to delete all the access sequence condition record for that condition types.
then it will not appear in the sales order,
but the best way is to do it in the configaration settings in v/08
regards
senya

Similar Messages

  • Is their any function module for deleting condition record i am trying

    Hi Experts,
    Is their any function module for deleting condition record i am trying  this way.......
    DATA: TABLE (4) TYPE C.
    DATA: KNUM LIKE KONH-KNUMH
    DATA: K_VEWE LIKE T681-KVEWE VALUE 'A'.
    DATA: T681_STR LIKE T681.
    DATA: LV_NUM TYPE I.
    GET PARAMETERS
    PARAMETERS: TABNO LIKE T681-KOTABNR.
    PARAMETERS: TESTMODE DEFAULT 'X' AS CHECKBOX.
    REFRESH INT_KNUMH.
    Select single * from T681 into T681_STR
    where kvewe = K_VEWE AND
    KOTABNR = TABNO.
    IF SY-SUBRC NE 0.
    WRITE: / 'No entry in T681 for number ', TABNO.
    WRITE: / 'Check whether corresponding condition table exists.'.
    EXIT.
    ENDIF.
    TABLE = T681_STR-KOTAB.
    SELECT KNUMH FROM (TABLE) INTO KNUM.
    SELECT SINGLE * FROM KONH WHERE KNUMH = KNUM.
    IF SY-SUBRC NE 0.
    INT_KNUMH-KNUMH = KNUM.
    COLLECT INT_KNUMH.
    ENDIF.
    ENDSELECT.
    DESCRIBE TABLE INT_KNUMH LINES LV_NUM.
    IF LV_NUM EQ 0.
    WRITE: / 'No inconsistent entries found.'.
    WRITE: / 'Each record in the condition table has a corresponding.'.
    WRITE: / 'entry in the KONH table.'.
    EXIT.
    ENDIF.
    LOOP AT INT_KNUMH.
    IF TESTMODE IS INITIAL.
    DELETE FROM (TABLE) WHERE
    KNUMH = INT_KNUMH-KNUMH.
    IF SY-SUBRC = 0.
    WRITE: / 'KNUMH =', INT_KNUMH-KNUMH(10), ' deleted from table ' ,TABLE.
    ELSE.
    WRITE: / 'DELETE: SY-SUBRC is', SY-SUBRC , ' FOR KNUMH = ' .
    WRITE: INT_KNUMH-KNUMH(10).
    ENDIF.
    ELSE.
    WRITE: / 'TESTRUN: KNUMH =', INT_KNUMH-KNUMH(10).
    ENDIF.
    ENDLOOP.
    is their any Standerd Function module  for comparing  tables if the condition record not exist in it has to exit if it is their then compare  those two tables if not exist in one table also that has  to be delete  the condition record
    Please let me know .....

    Hi,
       You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
    Regards
    Kiran Sure

  • Delete Condition Records

    Hi,
    I have a requirement to delete condition records. Please let me know if there is any BAPI or Function Module which deletes the condition records from VK12. Its very urgent.
    Thanks,
    Meenu

    Meenu,
    Use VK12 and set the deletion flag.
    The deletion flag means that the record is logically deleted and not phisically.
    some of the conditions records cannot be delete, example 'MWST'.
    In such cases, the best way is to change the end date to the current date.
    more adding for you;
    In v/06 for your condition type check the field delete fr. DB
    If you set this field as A or B,then only you will be able to delete the condition record permanently via VK12.Otherwise you can only set deletion indicator.
    Amit.

  • 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

  • FM or BAPI for creating/deleting condition records for an output type

    Hi all,
               what is the FM or BAPI for creating and deleting the condition records for a Z(custom) output type.

    You can use trasaction SXDA_TOOLS.....
    object type BUS3003
    program type BINP
    program/method RM06IBI0
    but the fields must be sequentially written in the txt, with every space inclusive....

  • Deleting condition records

    Hi Experts
    i created a condition types JMOP instead of JMIP in FV11,how can i delete the condition type,
    please advice me.
    Thanks in advance

    Hi,
    Go to FV12, refer the same condition record and select the row and hit the delete row icon in the bottom
    Result : Deletion indicator for condition record has been set
    Regards
    Merwyn

  • Condition records in va01 transaction

    Hi friends,
    I have a requirment.
    in va01 transaction , at the line item level iam entering a  material number and order quantity and  when i press enter i get the corresponding values for that particular line item.
    now iam double clicking on that particluar line item(matnr) and clicking on the conditions tab.
    there in the condtion type i will get what all the condition types are maintianed for that particular line item.
    now my requirment is i need to add another concdtion type manully
    say 'ZABC' and hit enter. the pricing for that particlular contion type 'ZABC' will be Determined.
    Now  can any one tell me in which internal table will i get all the condition type,
    coz i need to do some additional check for the  the manual entry'ZABC'  (condition type ) which i have given .
    which user exit should i use it.
    remember i need user exit for condition type check but not for pricing bsaed on the contion type
    Regards
    Priyanka.

    EDI1                                   EDI2                              EDI3
    CONTROL
    DATA    1
        cond class            B                                  B                                   A
        calculat type          C                                  C                                  B
        condition category  J                                  W                                  W
    i have tick the follwoing check boxes in CHANGES WHICH CAN BE MADE 
                             amount/percent                   amount/percent           amount/percent                           
                             item condtion                      item condtion              item condtion
                             delete                                 delete                        delete
                                                                                    calculate type

  • 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 condition type records from PO

    Hi all,
       I have put custom fields ( for condition type ) under customer data tab in PO (ME21N) line item.
    While creating/changing PO, I have to delete condition records under conditions tab based on the custom fields which I have defined in the customer data tab.
    Is there any badi or function module to delete required condition records in PO?
    Thanks in Advance.
    Udaya Madhav

    Hi uday,
    Please Use the FM
    RSDRD_SEL_DELETION
    Hope this will be Helpful
    Thanks
    kalyan

  • Delete Condition Type Depending on Item category Va01

    HI all,
    I wan to delete condition record depending on item category. I have a good link from sap.This link explains how to hide the condition but i want the  delete the condition. was badly struck here.
    http://wiki.sdn.sap.com/wiki/display/ABAP/ManipulatingPricingconditionsdisplayinSalesdocumentwithUserExit-LV69AFZZ
    Regards,
    madhu
    Edited by: madhurao123 on Mar 24, 2011 2:19 PM

    Hi,
    We had a similar requirement once, and towards the end we realised that deleteing rather than hiding it was a bad idea.
    Think beyond the scope, that if a future sales order created with reference needs this condition record; manual entry will again be dependent on your pricing procedure and is a mess.
    But if you do want to delete it; go into debugging and decide which user exit you would want to use and delete that line of the condition record from XKOMV table for that Sales Order

  • Deletion of condition record (vk11) from Database

    Dear,
    can anybody tell me how to delete condition record completely from database nt delettion flag.
    regards,
    Debesh

    Hi,
    I think archive the condition record is better option for you insted of deleting it !!!!
    For archiving please go through the below link.
    http://help.sap.com/saphelp_45b/helpdata/en/8d/3e5ae4462a11d189000000e8323d3a/content.htm
    Hope this will help you to resolve your query!
    Regards,
    KRishna O

  • Billing Output condition record deleted by user

    Hi,
    User had removed the existing condition record and created new condition record for billing output condition. I had checked in B011 and B904 table and couldn't identified the user who had deleted the exisitng record. I could see the new condition record details in this table.
    Do we have any table which will hold the deleted condition record details or is there any way i can find the details of this conditon record.
    Thanks

    Hi,
    You can test the CHANGE LOGS in the Transaction code SCU3
    Goto the Transaction code and enter the Table B011 and choose the option as TABLE and execute, it will give the entries of change logs done during a certain period of time
    You can aslo find the Details using the Program  RSVTPROT
    Here if you didnt find the CHANGE LOGS then need to activate the Table in order to display the change logs.
    Hope it will work.
    regards,
    santosh

  • Tracking deleted pricing condition records

    Hello,
    I Have a condition record for a condition type with a  particular price of USD 100 with validity date from 1.10.09 to 30.10.09.
    Now we create another condition record for the same condition type with a new price of USD 50 with same valid date from 1.10.09 to 30.10.09..
    So now the systems delete the old condition reocord of USD 100.This is standard sap.
    Now I want to know is there any way of tracking the deleted condition records like  the ones the system has deleted. If there is no standard report and if we have to develop a Z report, then how to develop that since the tables do not contain the old conditon records.
    regards
    sachin

    Hi,
    Yes, from the condition table that you are going to maintain the condition records (check the condition table assigned to the access sequence, from the condition type), we will get all the condition records maitained for specific combination/material
    Now go to se16 and enter the condition table name and give the proper selection criteria then you will get all the condition record numbers maintained to your selection with validity dates. then you can go to KONP and pass the condition record and you can get the condition values for that particular combination with proper validity dates.
    (Actually from VK13/VK12 based on validity date that we have mentioned in the selection screen will display the condition record valid on that paricular date, from the system those condition records will not be deleted at all)
    OR
    There are two possible methods of displaying change documents:
    Choose Environment -> Changes -> For condition record.
    Change data for the selected condition record(s) will be displayed.
    Choose Environment -> Changes -> Report.
    A selection screen will appear where you can choose multiple criteria for displaying change documents. The result of the selection report is displayed.
    Regards,
    Satya

  • Problem in deleting child record

    Hi,
    I have a requirement to remove the child records.
    I have two database tables (without any foreign key or database constraints). I have created EOs (ParentEO and ChildEO) and Association. I have created view objects (ParentVO with a transient attribute called "SelectFlag" and ChildVO) based on EOs.
    I have created a MollyViewLink and created Application module (MollyAM) .VOs are associated with AM.
    For detail records, I have created delete icon and I have written below code to handle the deleteChild event in detail region's controller:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if ("deleteChild".equals(pageContext.getParameter(EVENT_PARAM)))
    MollyAMImpl am = (MollyAMImpl)pageContext.getApplicationModule(webBean);
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    System.out.println("Child ROW Reference =="+rowReference);
    MollyUserDetailsVORowImpl voRow = (MollyUserDetailsVORowImpl)am.findRowByRef(rowReference);
    String parentID = voRow.getId().toString();
    System.out.println("ID is : "+ parentID);
    voRow.remove();
    System.out.println("Child row deleted successfully...");
    am.getTransaction().commit();
    When I click on delete icon at child record, I get below SOP messages:
    Child ROW Reference ==MollyAM.MollyUserDetailsVO_MollyViewLink_MollyUserDetailsVO:MollyUserDetailsVO_MollyViewLink_MollyUserDetailsVO_0{null}
    ID is : 52
    Child row deleted successfully...
    Child record is also being removed from UI. But when I query the database, I can still see the records there. For me, it seems like commit is not affecting the child table.
    Similar code to delete the parent record is working fine.
    Thanks!!!

    Hi Vinod ,
    I am deleting condition record number if  know any function module  please let me know
    problem happing in PRD for particular condition numer it showing INTERNAL ERROR (This is the condition table A923)
    that condition number is their in KONH but not their in KONP because of that  INTERNAL ERROR occuring
    for that i have writen code for that deleting the condition number  ....
    if know any thing please let me know

  • 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

Maybe you are looking for

  • Maximum height of main window

    Dear experts, I would like to know what is the maximum height i can give for main window. How to print data in next line. How to give reduce space or increase space after text field.

  • How I can receive information about focus on the JButton?

    I create keyListener for Window. Then button OK has focus, method isSelected() returns false. I want know has button focus or no. How I can make it?

  • Please help me interface visa to c8051f320 Mc

    is the  driver of c8051f320 necessary to be installed while interfacing it  through visa? what if the driver is unavailable ? is there any other way out?

  • Number of receivers who accept stratus

    What is the maximum number of receivers who accept stratus in a multicast connection 1-n.? What is the bandwidth consumed by transmission? 1 x n? 1 x 1? thanks sorry for my English.

  • Error -2147024891 (Access is denied)

    Dear all, within a SAP NW installation there comes an error: Error -2147024891 (Access is denied) in execution of system call ´IADsGroup::SetInfo´ with parameter (), line (1075) .... I think that the problem is wit OS authorisations but the installat