BAPI_PO_CREATE1 condition type are creating duplicate records

Hello Experts,
Currently I am creating Purchase orders using BAPI_PO_CREATE1 . When I am passing Condition related records to the same BAPI , second line item onwards , it creates multiple records of same condition type .
I have also looked into threads in SDN for the same , and they have suggested to create PO using BAPI_PO_CREATE and later use BAPI_PO_CHANGE to pass condition records. I have tried the same , but still second line item onwards it creates multiple records. Please tell me how do I resolve this issue.
Thanks
Trishna

Hello All,
This duplicate condition record creation may happen due to a setting in the MM configuration, where the system tries to pull in the history condition records ,based on the same set of condition record determination parameters.
Please contact the MM functional consultant in your team for settings change in detrmination of condition records under " MM-Purchasing " section.
Best Regards,
Kumaar.S

Similar Messages

  • In va01 condition types are appearing twice

    Hi
    In the pricing conditions screen of sales order I find that all the condition types are appearing twice and also calculted taxes twice.please give me solution

    Hi Swapna,
    Make  Exclusive checkbox in your access sequence in V_T682I.Check your calculation of pricing also.Check there are no of threads on this topic.
    Regards,
    Madhu.

  • SSIS - "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object ' tablename '. The duplicate key value is 1234 . Though there are no duplicate records.

    Hi,
    I am providing support to one of our clients, where we have jobs scheduled to load the data from the tables in the source database to the destination database via SSIS packages. The first time load is a full load where we truncate all the tables in the destination
    and load them from the source tables. But from the next day, we perform the incremental load from source to destination, i.e., only modified records fetched using changed tracking concept will be loaded to the destination. After full load, if we run the incremental
    load, the job is failing with the error on one of the packages "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object '<tablename>'. The duplicate key value is <1234>, even though there are no duplicate records. When we
    try debugging and running the failing package, it runs successfully. We are not able to figure out why the package fails and when we run the next day it runs successfully. Request you to help me in this regard.
    Thank you,
    Bala Murali Krishna Medipally.

    Hi,
    I am providing support to one of our clients, where we have jobs scheduled to load the data from the tables in the source database to the destination database via SSIS packages. The first time load is a full load where we truncate all the tables in the destination
    and load them from the source tables. But from the next day, we perform the incremental load from source to destination, i.e., only modified records fetched using changed tracking concept will be loaded to the destination. After full load, if we run the incremental
    load, the job is failing with the error on one of the packages "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object '<tablename>'. The duplicate key value is <1234>, even though there are no duplicate records. When we
    try debugging and running the failing package, it runs successfully. We are not able to figure out why the package fails and when we run the next day it runs successfully. Request you to help me in this regard.
    Thank you,
    Bala Murali Krishna Medipally.
    I suspect you are trying to insert modified records instead of updating.

  • JEXC and JEXS condition types are missing in client.

    Hi All,
    Condition types JEXC and JEXS are missing in 000 client in our present project( Indian Rollout).
    These condition types are required for domestic calculation of conditions.
    Please throw some light on this issue.
    Note:
    One more thing, all J**** conditions and TAXINN calculation schema were missing in sand box.
    So copied the missing objectsfrom 000 client.
    These were identified from functional perspective.
    concern is will this copying client suffice CIN requirents or not.
    With Regards,
    Vijaykumar P

    HI,
    Please check the SAP master note for TAXINN - 952289 with the entire configuration.
    As per the document in this SAP note - you can configure the tax conditions in different clients as per your requirement.
    Thanks & Regards,

  • FM for creating / maintaining condition types of  PIR ( info record)

    Hi Exparts,
    I required mass creation / updation of condition types of PIR or info records ( in ME11/ ME12 transaction). I tried BDC but it is getting very complex. Is there any FM / BAPI that could be used for this purpose.
    Thanks in advance.
    Regards,
    abhishek

    Purchase Info records data are updated in EINA & EINE Tables and even it updates in A017 (Plant Specific) or A018 (Without Plant Specific) which is called as Material Info record.
    To identify the Condition Types in info records, below are the steps.
    Step 1: Record all the u201Cconditions Records Nou201D from A017 (Plant Specific) or A018 (Without Plant Specific) for the given Info Records.
    Step 2: Based on this u201CStep 1 - condition record nou201D, Search the required u201CCondition Typeu201D in KONP Table by inserting the Cond. Record No and Cond. Type.
    If it is helpful, reward points.
    Regards,
    Muralidharan

  • How to create duplicate records in end routines

    Hi
    Key fields in DSO are:
    Plant
    Storage Location
    MRP Area
    Material
    Changed Date
    Data Fields:
    Safety Stocky
    Service Level
    MRP Type
    Counter_1 (In flow Key figure)
    Counter_2 (Out flow Key Figure)
    n_ctr  (Non Cumulative Key Figure)
    For every record that comes in, we need to create a dupicate record. For the original record, we need to make the Counter_1 as 1 and Counter_2 as 0. For the duplicate record, we need to update Changed_Date to today's date and rest of the values will remain as is and update the counter_1 as 0 and counter_2 as -1. Where is the best place to write this code in DSO. IS it End
    routine?
    please let me know some bais cidea of code.

    Hi Uday,
    I have same situation like Suneel and have written your logic in End routine DSO as follows:
    DATA: l_t_duplicate_records TYPE TABLE OF TYS_TG_1,
          l_w_duplicate_record TYPE TYS_TG_1.
    LOOP AT RESULT_PACKAGE ASSIGNING <result_fields>.
        MOVE-CORRESPONDING <result_fields> TO l_w_duplicate_record.
        <result_fields>-/BIC/ZPP_ICNT = 1.
        <result_fields>-/BIC/ZPP_OCNT = 0.
        l_w_duplicate_record-CH_ON = sy-datum.
        l_w_duplicate_record-/BIC/ZPP_ICNT = 0.
        l_w_duplicate_record-/BIC/ZPP_OCNT = -1.
        APPEND l_w_duplicate_record TO  l_t_duplicate_records.
    ENDLOOP.
    APPEND LINES OF l_t_duplicate_records TO RESULT_PACKAGE.
    I am getting below error:
    Duplicate data record detected (DS ZPP_O01 , data package: 000001 , data record: 4 )     RSODSO_UPDATE     19     
    i have different requirement for date. Actually my requirement is to populate the CH_ON date as mentioned below:
    sort the records based on the key and get the latest CH_ON value with unique Plant,sloc, material combination and populate
    that CH_ON value for duplicate record.
    Please help me to resolve this issue.
    Thanks,
    Ganga

  • Condition types for a info record

    hi can someone pls tell me how do i config the following scenario :
    my client has 10 condition types
    out of which 5 condition types should compulsorily appear in my Po
    and remaining 5 should default from inforecord...however even in info record , no other condition types apaty from this 5 condition types should be allowed .....that is in all my info records only these 5 condition records are allowed for a client

    Hi Joyti,
    For this u have to ---
    1.COpy condtion type PB00 and make new condition type sap ZB00
    2.Copy pricing procedure RM0002  to  say ZRM002.
    3.Delete PB00 contion type from ZRM002 and replace it by ZB00.
    4.Maintain only 5 contion types in this pricing procedure which u want in inforecord.
    Thats it. Now when u will try to created inforecord - only these 5 contions type which r entered in pricing procedure ZRM002 will be seen .And when u will Create Po the Pricing procedure which u have created will be triggered based on Vendor and pur. Org .
    Thank you
    Reards
    Amar Zarkar

  • Data loader : Import -- creating duplicate records ?

    Hi all,
    does anyone have also encountered the behaviour with Oracle Data Loader that duplicate records are created (also if i set the option: duplicatecheckoption=externalid) When i am checking the "import request queue - view" the request parameters of the job looks fine! ->
    Duplicate Checking Method == External Unique ID
    Action Taken if Duplicate Found == Overwrite Existing Records
    but data loader have created new records where the "External Unique ID" is already existent..
    Very strange is that when i create the import manually (by using Import Wizard) exactly the same import does work correct! Here the duplicate checking method works correct and the record is updated....
    I know the data loader has 2 methods, one for update and the other for import, however i do not expect that the import creates duplicates if the record is already existing, rather doing nothing!
    Anyone else experiencing the same ?? I hope that this is not expected behaviour!! - by the way method - "Update" works fine.
    thanks in advance, Juergen
    Edited by: 791265 on 27.08.2010 07:25
    Edited by: 791265 on 27.08.2010 07:26

    Sorry to hear about your duplicate records, Juergen. Hopefully you performed a small test load first, before a full load, which is a best practice for data import that we recommend in our documentation and courses.
    Sorry also to inform you that this is expected behavior --- Data Loader does not check for duplicates when inserting (aka importing). It only checks for duplicates when updating (aka overwriting). This is extensively documented in the Data Loader User Guide, the Data Loader FAQ, and in the Data Import Options Overview document.
    You should review all documentation on Oracle Data Loader On Demand before using it.
    These resources (and a recommended learning path for Data Loader) can all be found on the Data Import Resources page of the Training and Support Center. At the top right of the CRM On Demand application, click Training and Support, and search for "*data import resources*". This should bring you to the page.
    Pete

  • Inventory Issue: Movement type 905 creating two records in BI.

    Hello Experts,
    We have a problem in Inventory scenario implemented in our system.After the month load completion in Snap shot Cube,we are getting quantity mismatch between BI and ECC values.I found out that there are records exist with movement type 905 creating problem.
    we have only one record in ECC while there are two records exist in BI with one have reversal indicator on it and other does not have reversal indicator.Qty is same in both of the case ,also the record which have reversal indicator have Process key 100 while the record with out reversal indicator doesn't have any process key.And in further update from ODs ZMMDS104 to ICSNAP1 ,in update rule we are adding or subtracting on the basis of process key as per standard Inventory scenario implementation.
    So am i right that this Movement type is creating problem ..?
    Does any one faces this issue earlier...?
    and if this is issue then how to resolve this ?
    Please advice as soon as possible as it becomes a high priority issue in client space.
    Thanks in Advance
    Regards,
    Yash Raj.

    Hi Aduri,
    Thanks for the quick reply.
    I ma new to inventory field,can you please guide me how to check your advice details in the system like you
    said "Recheck the Reversal Indicated Qty because if it has reverse indicator it should come from ECC or from ODS Check the Same at Change Log Table to trace the Changes."
    What do you mean by "or from ODS" do you mean that ODS could create this entry ..? also this ODs ZMMDS104 is got daily loaded by delta from 2lis_03_bf . but this record is related to period 12/2008.and now we are in period 1/2009 (as i am trying to reconciling the data for last period) so i Guess there is no chance to find out this entry in change log.
    Also "Try to see at DS field for the Process Key/Movement type with Reverse Indicator At ECC. "
    How to check the same in data source?
    Also "If you don't have the Reverse postings at ECC without process Key then you can  report on the same to the Functional Team/Client. But before that make sure  that you have reverse postings without process key assigned to it."
    I checked in the ECC system(RSA3) There is only one record exist in for that material document it has positive quantity and material movement type 905 with movement indicator L.
    Waiting for your response.
    Thanks once again 
    Regards,
    Yash Raj

  • Query creating duplicate records

    Hi
    I need to create a report that gives the po number, po line item number, material number and the delivery post code.
    I have created a query with the following tables:
    EKKO, EKPO, EBAN, VBEP, VBAK, VBPA, ADRC.
    I have deleted the wrong link between EKKO and EKPO and retained all other links as suggested.
    Could anybody let me know why there are duplicate records in the report pls?
    Thanks
    Desp09

    Desp09 wrote:
    Hi
    >
    > I have connected
    >
    > EKKO-EBELN to EKPO
    >
    >  EKPO -EBELN and EKPO-EBELP  to the same of EBAN
    >
    > also EKPO-BANFN and EKPO-BNFPO to the same of EBAN
    >
    > EBAN-BANFN and EBAN-BNFPO to VBEP
    >
    > VBEP-VBELN to VBAK-VBELn
    >
    > VBAK-VBELN to VBPA-VBELN
    >
    > VBPA-ADRNR to ADRC-ADDRNUMBER.
    >
    > This is the first time I have created a query so if you can kindly explain the logic of the error it would help in my future reports.
    >
    > Thanks
    > Priya
    Hi Priya,
    You can simplify the process if you make use of the LDB, which will fetch the same report with std LDB available in the system.
    You can define multiple infosets and  pull the fields for easier approach.
    Regards
    Shiva

  • Can we maintain diff tax codes for one tax condition type in creating CRs

    Hi Gurus,
    Can we maintain diff tax codes for one tax condition type during maintaining of Condition Records. (Taxes)
    For example in VK11 screen for different combination of tax classification for customer and tax classification for material and
    tax codes like P0, P1, P2 etc. If so which tax code will be picked during creation of sales order? Pls help me........
    Regards.......Divakaran

    Hi Karan,
    Yes we can.
    For example you have three tax code
    P0 -- 0% (Fully exempt)
    P1-- 5% (Half tax)
    P2 -- 10% (Full tax)
    Now when you create the condition record then you have to create the three condition record for one condition type
    MWST
    Country -- tax classification of customer -- tax classification of material -- Tax % -- Tax code
    IN  -
    >  0 (Tax exempt) -
    > 1 (Full tax) -
    > 0 -
    >  P0
    IN  -
    > 1 (half Tax ) -
    >1  (Full tax) -
    > 5% -
    >  P1
    IN  -
    > 2 (Full Tax ) -
    > 1 (Full tax) -
    > 10% -
    >  P2
    Hope it helps,
    Regards,
    MT
    Edited by: M T on Mar 23, 2010 4:19 PM
    Edited by: M T on Mar 23, 2010 7:27 PM

  • Condition types are to be deleted from pricing procedure

    Dear Experts,
    I want to delete the condition types in the pricing procedure which are currently used on production system by my client. open purchase orders are exists, Purchase orders with GR and IR completed are also exists with those condition types.
    So please guide me on what are prerequisites for deleting condition types? Which purchase order processing is to be completed before deleting condition types !
    Thanks in Advance

    Thanks Murlidharan !
    Ya, please tell me the search for POs with condition type.
    Conditions are deleted and affected the 300 POs, Approx. 600 GRs and Invoices.
    it affected like -
    a) PO Quantity 10 EA, Per unit price 10Rs
        Material Basis Price = 100 Rs
    b) Suppose Condition ZFCP - 10%
        Condition Amount = 10 Rs.
        The total order Amount = 110
    The Goods Receipt and Invoices were posted already with Amount 110.
    Stock Account as well GR/IR clearing account was heat with Amount 110 Rs.
    Also Goods issue has been made for those items.
    Conditions were deleted after completion all above mentioned procedures.
    And as the effect of condition deletion every where system is showing Amount posted only 100. Like, In PO, Stock Account, GR/IR Account and Vendor Account.
    And I have to resolve the issue.
    I have checked for the Subsequent debit option in invoice. but it will not work with Stock Account effect.
    So only one option is there, Documents reverse (GR and invoice)
    But i am Confused on that because Goods Issue has been posted for those items.
    Waiting for yeply

  • Passing of condition type while creating an order

    Hello Friends,
    I am stuck in a unique situation.
    I can create an order using BAPI_SALESORDER_CREATEFROMDAT1  .
    However I have to pass condition type 'ZAB'.But this BAPI does not have any provision to pass the condition type.
    Please guide me as to how this can be achieved.
    Solutions will be rewarded handsomely with points.
    Regards
    Nilesh

    Hello vasu
    thanks a lot for your suggestion.
    I am checking BAPISDHD1 the data type for the field kschl to pass the
    exact condition type.
    However I dont see any foeld where yoy can pass the condition type.
    Do you know which is the exact field where we can pass it.
    Oncae again thanks a lot for your suggestion
    Regards
    Nilesh

  • Condition Types Are Missing After Sales Doc Replicated to R3

    Hi
    we're implementing quotation management replicated to R/3 system.
    the replication from CRM works fine, pricing is determined in R/3 perffecly.
    however, first item has condition records replicated back to CRM as we want it.
    but the subsequent items has no condition type replicated at all.
    any lead is really appreciated.
    JD

    Can you set a parameter-id PRC_TRACE in your user profile. This trace when activated will perform pricing condition analysis in CRM. If a different user id is used to replicate sales documents please set this parameter for the same.
    Also make sure if your pricing procedure is in sync in both CRM and R3.
    Naresh

  • Oracle.jbo.AttrValException: Attribute test in TestEO is required. (When trying to create duplicate Record)

    I am facing an issue when trying to create a Duplicate Record.
    Ist time when I create a record, its created Successfully.
    I have Attribute validations which should not accept duplicate values, So to check that I tried to create the record with same values to display proper warning message.
    After entering all the values (same values which i already entered in 1st record), when I tab out its showing as Red color border for that field, its expecting behaviour so no problem with that...
    Then I click on Submit or Next button, now it's showing pop-up with expected warning message along with unexpected Exception message.
    oracle.jbo.AttrValException: Attribute test in TestEO is required
    The test field is mandatory in EO, VO and .jsff.  Could any body please help me what i missed here.
    My JDEV version: 11.1.17.0
    Regards
    Gowreenath

    Hi Popz,
    Thanks for your reply. 
    I am using fnd:applicationsPanel next button as nextAction="next", so i didn't find immediate property in fnd:applicationPanel. 
    So, I tried 2 things based on your comment.
    1. nextPartialSubmit ="true"... this option is also not worked.
    2. In my Test attribute added immediate="true" this is also not worked.
    If you have any id how to set immediate property or related property in fnd:applicationPanel for nextAction.  Please let me know.
    Thanks
    Gowreenath

Maybe you are looking for