Need to delete duplicate condition types from ME22N

Hi Experts,
I have a requirement to delete duplicates from ME22N, header and item.
Scenario : On adding condition in header the same will be reflected in items and vice versa.
I tried using ME_PROCESS_PO_CUST and userexit RV61AFZB.but not resolved.
Kindly suggest.
Regards,
Mohammed Samiuddin.

Hi -
The CHECK method gets triggered when you click 'SAVE' and 'CHECK' in ME21N / ME22N but may not trigger when you press 'enter'.
PROCESS_HEADER triggers incase any change to header details but not (always) for change in header conditions. PROCESS_ITEM get triggered when change in item data for a particular item.
If you to use CHECK method.
You can get the header as well as item conditions, you can get in this method.
DATA:   lw_header_data       TYPE mepoheader,  
              li_items            TYPE purchase_order_items,
             lw_items             TYPE LINE OF purchase_order_items,
               lw_item_data         TYPE mepoitem,
            li_item_data        TYPE STANDARD TABLE OF mepoitem,
              li_item_conditions  TYPE mmpur_tkomv.
   IF im_header IS NOT INITIAL.
      CALL METHOD im_header->get_data
        RECEIVING
          re_data = lw_header_data.
      CALL METHOD im_header->get_items
        RECEIVING
          re_items = li_items.
      LOOP AT li_items INTO lw_items.
        lv_items = lw_items-item.
        CLEAR lw_items-item.
        CALL METHOD lv_items->get_data
          RECEIVING
            re_data = lw_item_data.
        APPEND lw_item_data TO li_item_data.
        CLEAR lw_item_data.
CALL METHOD lv_items->get_conditions
          IMPORTING
            ex_conditions = li_item_conditions.
    ENDLOOP.
ENDIF.
But I am not sure if you will able to set the conditions in the check method. You can try.

Similar Messages

  • Deletion of Condition type from contract.

    Hi Experts,
    In contracts (1000), there is one wrong condition type is displaying and I don't want to delete one by one in every contract,
    Can anyone advise that how to delete same condition type in all contracts through one modification?
    regards,
    Dhiru.

    Hi,
      If you want to delete line item condition then use BAPI  "BAPI_SALESORDER_CHANGE".
    Regards,
    Siraj

  • Restrict duplicate condition type in va01

    Hello Experts.
    I want to restrict user from entering duplicate condition types in tcode va01, how can I go about it?
    Is there any user exit or BADI available, if yes please let me know how to go about it
    Thanks in Advance...

    HI deven,
    Check any one from the below :
    Enhancement
    V45S0001                                Update sales document from configuration
    V45S0003                                MRP-relevance for incomplete configuration
    V45S0004                                Effectivity type in sales order
    V45W0001                                SD Service Management: Forward Contract Data to Item
    V46H0001                                SD Customer functions for resource-related billing
    V60F0001                                SD Billing plan (customer enhancement) diff. to billing plan
    SDAPO001                                Activating Sourcing Subitem Quantity Propagation
    V45A0001                                Determine alternative materials for product selection
    SDTRM001                                Reschedule schedule lines without a new ATP check
    V45A0002                                Predefine sold-to party in sales document
    V45A0003                                Collector for customer function modulpool MV45A
    V45A0004                                Copy packing proposal
    V45P0001                                SD customer function for cross-company code sales
    V45L0001                                SD component supplier processing (customer enhancements)
    V45E0002                                Data transfer in procurement elements (PRreq., assembly)
    V45E0001                                Update the purchase order from the sales order
    Business Add-in
    BADI_SD_SCH_GETWAGFZ                    Scheduling Agreement: Read WAGFZ from S073
    Regards
    Abhii

  • Restrict to insert Duplicate Condition Types

    Hi,
    During PO creation with Freight Condition - ZFR1, user is able to insert this condition TWICE.
    Means Freight Condition is showing 2 times in Conditions...due to this My purchase register report get incorrect data...
    How to restrict user to insert Duplicate Condition Type???
    Please guide..

    Hi,
    If you want Freight Condition - ZFR1 should not enter again or not possible to enter by user  & select D {Not possible to process manually} in Manual entries in M/06 t.code in 'Changes which can be made' segment'
    NOTE:
    As you needed keep Freight Condition type- ZFR1 to be appeared in the PO as automatic, so then maintain the condition record (t.code MEK1) with condition type ZFR1
    OR check routine or design to write a routine & assign to Freight Condition - ZFR1 in M/08( in MM Schema), so it should not enter again or not possible to enter by user(can appear only once).
    Regards,
    Biju K

  • User needs to delete a line item from old STO

    Hi all,
    User needs to delete a line item from old stock transfer order and would like to be advised what he needs to do to delete the line item from the STO.
    On the STO, Goods Issue done and reversed also. Delivery completed indicator not checked. I aslo found that the payment has been made for the line item 40 for Freight. Carrier charges. It seems that the payment has been made/cleared to the vendor.  I think Due to this reason they are unable to remove this line item from STO. They have attempted to delete or block an item that is not yet closed. All down (advance) payments made to date have been taken into account.
    Can you please advice how to resolve this problem?
    Thanks in advance..
    Regards
    Suresh

    Hi,
    Delivery completed tick is also there for STO PO. If you are not getting it then check settings. Also you can mark deletion indicator for that line item. Or minimise quantity to goods received quantity.
    For STO if delivery is made from delivering plant but Goods receipt not done in receiving plant then that material remains in transit. Can viewed with ME5t. In this case that line item cannot be delted or delivery completed.
    Still your client wants to complete these type also better to leave decision to business if they want to reverse delivery (Stock of issuing plant will increase) or make Gr ( Stock of receiving plant will increase) Although they can adjust later with physical inventry process and make stock in system to real physical stock
    Regs,
    Appie

  • Identify TAX condition type from pricing procedure

    Hello,
    I need to identify Tax condition type for various countries used in Old sales orders.We are moving to an external Tax engine and I need to identify what condition are being used to calculate tax in various countries. I know the pricing procedure but we have a lot of sales order and there is no documentation available.Is there any table where I can filter based on the sales org from existing sales order and find the Corresponding Tax condition type.
    Regards,
    Amanda

    One option is
    you have to execute SE16, input table KONV where you maintain the tax condition type and execute.
    System will populate all SD documents that are having that tax condition type.  There you have to copy the field "Doc. condition" and paste it in VBAK table in SE16 so that you will get all sale orders.
    The other option is
    you need to identify what access sequence is maintained for that tax condition type which you can see in V/06.  Next go to V/07, select this access sequence and execute.  There check what tables are maintained.  For example, in your case, it could be table 110.  So you have to develop a query by table joining A110 and VBAK in SQVI where you can take sale orders based on sales organisation.
    thanks
    G. Lakshmipathi

  • Automatic deletion batch valuation type from PO after cancellation GR

    Hi, colleagues
    I need your guidance.
    The problem is:
    We have batch management with different valuation types.(valuation type is connected to batch) In mm03 valuation category is "X".
    Process:We make standart Purchase order, then MIGO where we put batch(with automatic valuation type for this batch) then we make cancellation of GR and try to make GR with another batch and valuation type. System gives mistake: m7043.
    As I understand, when we made GR firstly, system have written this  valuation type into PO and the following GR for this PO can be only with this valuation type.
    Have you any ideas how to make automatic! deletion of valuation type from PO after cancellation? Fields batch and valuation type in PO are hidden and users must not change it in PO.
    Mabe there are some notes or you can provide some other ideas?
    Thanks in advance
    Regards

    Pavlo Sydorenko wrote:
    As I understand, when we made GR firstly, system have written this  valuation type into PO and the following GR for this PO can be only with this valuation type.
    No. In standard, if you will do GR for batch number XXX, then system will not update the same batch number in PO (neither batch field nor valuation type field).
    At the time of making PO leave the batch and valuation type field as blank.
    Then check. I've checked the scenario. System is allowing to do GR with other batch number.

  • Restrict referance of pricing and condition type from latest PO.

    Hi Experts,
    I am creating Purchase order and at the time of creation of purchase order system is copying prices and condition types from latest PO.
    Which is not desirable to our business process, when I dig out I found out that in standard SAP system
    The system looks at pricing in the hierarchy order as below:
    u2022     Contracts/scheduling agreement
    u2022     Condition records
    u2022     Info Records
    u2022     Last purchase document
    So can some one help me with information how to restrict system to follow this referance of pricing.
    I want to enter price as well as condition type manualy every time user create a purchasing document.
    Also i want to know can it be restricted specificaly for few document type.
    Thanks
    Best Regards
    Ritesh

    Hi sir
    can we try this
    Use the user parameter EVO to indicate that no price adoption from last Purchase Order must take place:
    IMG: MM -> Purchasing -> Environment data -> Default values for Buyers
    -> Setting for Default values.
    Select or setup a default value and on the "price adoption" tab you may choose how copying of conditions from last purchase order must behave. Select "Do not copy".
    Then assign this default value to the user, using the EVO parameter.
    [http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/price-to-flow-from-info-record-at-plant-level-813066]
    [Re: new info record with same details as archive one.;
    check following notes it may helfull
    569885 About Info Record Update indicator (EKPO-SPINF)
    13127 Update in info record from PO, quotation, contract
    430543 FAQ: Purchasing info record
    675523
    456691
    Regards
    Kailas ugale

  • Need to delete corrupt digital book from icloud

    Hi have a corrupt digital book sent to my device from Amazon
    Before they can resend a valid copy I need to delete original corrupt copy from ICloud.
    I do not know how to do this so can anyone help?

    If you cannot get this information from the seller
    Removing a device from a previous owner’s account
    You need to return the Device for a refund, as you will not be able to re-activate it.

  • Condition types from Central Contract not copied into Purchase Order

    Hi,
    When creating a central contract from SRM to ECC, all the condition types are copied well.
    But when creating a shopping cart from SRM or a PO in ECC referencing the created central contract, the condtion types are not displayed in the conditions tab. (Only Condtion type PB00 is displayed.).
    What can I do to assure, that all the condition types from the contract are displayed in the PO.
    Do I have to do some customizing, or is there a SAP Notes to resolve this.
    Regards,
    Alexander

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • Condition types from SRM to backend

    Hi All,
    When accepted bid (complex prices with condition types) is converted to PO, in backend PO is created with net price only. Is there a way to move the condition types also to backend. Can we use any Badi in this case?
    Thanks in advance.
    Will reward full points for the reply.
    Venu

    Hi
    <b>Either you need to maintain the Condition types locally in SRM system by maintaining Z tables and then create your own logic for pricing in SRM. I guess, this will be much more complex activity.</b>
    <u>I know there is some issues, but, Anyways, you have to go for this approach.
    You need to go for custom fields and then get the data passed back over to R/3 PO using any of the BADIs
    BBP_CREATE_PO_BACK / BBP_TARGET_OBJECTS / BBP_TARGET_OBJTYPE / BBP_CREATE_PO_NEW
    in SE18 Transaction.
    Refer OSS note - 672960 and 485891 for creating customer fields.</u>
    Also, incase this don't suits your requiremnents, Please raise an OSS message with SAP.
    Regards
    - Atul

  • Duplicate condition types in processing rebates

    Hi,
    I have created two rebate agreements in the system right now.
    Whenever i run a sales cycle the condition type BO01 is used twice instead of once which results in giving discount twice for the same order.
    Is there any way to avoid duplication of condition types.
    How to solve this issue, pl help..

    Hi
    You have maintained two rebate arrangemnts here and sytem is determining accordingly.
    Thats the reason you need to ensure the combination being used in the condition type.
    If both the records are valid i am not seeing an issue here.
    If your issue is same condition type. then you need to maintain different condition types for different combinations,.
    For example: Key Combination -> Condition type
    Customer/ Material - B001
    Customer/ Sales area - B002
    Maintain two condition types for both combinations instead of maintaining it is the same.
    So they get determined accordigly.
    Thanks & Regards
    Kishore

  • Duplicate condition type in contract header

    Dear Experts,
    In contract (VA43) header, i am getting duplicate Condition type (zcondition type). This condition type is not duplicate at Item level.
    Also at header level where dupluicacy is there, it has both Statiscal indicator marked and unmarked rows. No access sequence has been assigned for the condition type.
    My requirement is there should not be duplicate condition type at header level. Find below screenshot for the same.
    Please guide me what should be the required steps to rectify the error.
    Best Regards,

    You can also create conditions at header level, however, these can only be discounts or surcharges. These master conditions are used by Pricing in SAP Enterprise Buyer to determine a gross price. For details, check SAP help at
    http://help.sap.com/saphelp_srm30/helpdata/en/ee/d9df3bbcce4b37e10000000a114084/content.htm
    The following thread might be useful to you as well Pricing Condition in Contract

  • I need to delete duplicate photos on mac easy please

    i need to delete duplicate photos on my mac but it has to be easy, easy, for I am really dumb, dumb

    Got Duplicates with iPhoto?   Take a look at some of these 3rd party applications that are designed to help you locate and eliminate duplicates. 
    1.  iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/.
    2.  iPhoto Duplicate Cleaner - http://iphotoduplicatecleaner.com.
    3.  Gemini:  The duplicate finder - https://itunes.apple.com/us/app/gemini-the-duplicate-finder/id463541543?mt=12.
    - support phone no. - 1 877 562 2729.  Works for more than just iPhoto (can look for duplicates files as well). 
    4. Duplicate Annihilator - http://duplicate-annihilator.en.softonic.com/mac.  and http://www.maclife.com/article/howtos/how_get_rid_duplicates_iphoto.
    5.  Decloner - http://www.pixelespressoapps.com/decloner/.

  • Flowing of the Condition  type from Sales Order to invoice

    Dear All,
    I'm facing a problme in the copying the condition types from Sales order to Invoice.
    The details are as mentioed below:
    I have a Condition type CONC and made the Copy of the Condition typs as ZDIS.So that CONC's value will be debited and ZDIS' value will be credited in the FI..
    But ALL the condition types which i have mentioed including tax and discounts condition types are copying from Sales order to invoice.Except CONC.
    I have checked all the copy controls,i'm sure those are OK.Bcoz other condition types are working perfectly fine.
    What could be the reason for this???
    Will be any setting for on condition type level for copy controls???
    Please Guide me its URGENT.
    Thanks
    Vinay

    hi
    from which condition type u have copied this CONC , can u pl elaborate more on this.
    and just write what is exact scenario and whats going wrong?
    in copy controls check for pricing source and pricing type.
    regards
    mandar

Maybe you are looking for