<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Duplicate condition records with BAPI_SALESORDER_CREATEFROMDAT2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-condition-records-with-bapi-salesorder-createfromdat2/m-p/1485595#M226633</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;Condition record which mentioned comes into the sales order twice through BAPI because automatic pricing customization. It can be changed from automatic to manual pricing to fix the error but ıt also need to be added to sales order manually. While keeping the automatic pricing save_document_prepare_exit can be taken into consideration to modify the condition record while comes from Bapi as twice. &lt;/P&gt;</description>
    <pubDate>Sat, 23 Jan 2021 16:36:45 GMT</pubDate>
    <dc:creator>former_member96</dc:creator>
    <dc:date>2021-01-23T16:36:45Z</dc:date>
    <item>
      <title>Duplicate condition records with BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-condition-records-with-bapi-salesorder-createfromdat2/m-p/1485591#M226629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating a sales order with function module BAPI_SALESORDER_CREATEFROMDAT2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I'm having is that I want to change one of the rates on a percentage based condition type when I create the sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I pass the data in the parameter ORDER_CONDITIONS_IN and set the COND_UPDAT field to 'X'. When the sales order gets created though, two condition records are created for this condition type. One is created with the determined rate (from pricing) and another one with the rate that I passed to the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam populating  UPDATEFLAG to 'U' in ORDER_CONDITIONS_INX parameter  still duplicate recod is coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the below coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_bapicond-itm_number = '10'.&lt;/P&gt;&lt;P&gt;*...Dealer Commision&lt;/P&gt;&lt;P&gt;wa_bapicond-cond_type  = 'ZCOA'.&lt;/P&gt;&lt;P&gt;wa_bapicond-cond_value = '1000.00'.&lt;/P&gt;&lt;P&gt;wa_bapicond-currency   = 'INR'.&lt;/P&gt;&lt;P&gt;wa_bapicond-cond_updat = gc_x.&lt;/P&gt;&lt;P&gt;APPEND wa_bapicond TO gt_bapicond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_bapicondx-itm_number = '10'.&lt;/P&gt;&lt;P&gt;wa_bapicondx-cond_type  = 'ZCOA'.&lt;/P&gt;&lt;P&gt;wa_bapicondx-cond_value = gc_x.&lt;/P&gt;&lt;P&gt;wa_bapicondx-updateflag = 'U'.&lt;/P&gt;&lt;P&gt;wa_bapicondx-currency = gc_x.&lt;/P&gt;&lt;P&gt;APPEND wa_bapicondx TO gt_bapicondx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used Logic_switch-pricing to 'G'. Still it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how i should omit duplicate record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 10:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-condition-records-with-bapi-salesorder-createfromdat2/m-p/1485591#M226629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T10:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate condition records with BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-condition-records-with-bapi-salesorder-createfromdat2/m-p/1485592#M226630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Depending on the Condition type characteristics you might find two. Only one line of both records will be in blue colour which shows the active record for the order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Only record with the active state will be considered for operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Reward for helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 10:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-condition-records-with-bapi-salesorder-createfromdat2/m-p/1485592#M226630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T10:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate condition records with BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-condition-records-with-bapi-salesorder-createfromdat2/m-p/1485593#M226631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eswar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it. what ever i pass though BAPI is the active one. But i do not want the duplicate one. Please help me how to acieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 10:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-condition-records-with-bapi-salesorder-createfromdat2/m-p/1485593#M226631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T10:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate condition records with BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-condition-records-with-bapi-salesorder-createfromdat2/m-p/1485594#M226632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I think you have to check customizing. If a condition type is defined as automatic in customizing for certain access sequence so a more item is added.&lt;/P&gt;&lt;P&gt;Create an order without conditions (in the BAPI) and the check if the duplicate one is still there. If so, the solution is to change the customizing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 13:02:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-condition-records-with-bapi-salesorder-createfromdat2/m-p/1485594#M226632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T13:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate condition records with BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-condition-records-with-bapi-salesorder-createfromdat2/m-p/1485595#M226633</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;Condition record which mentioned comes into the sales order twice through BAPI because automatic pricing customization. It can be changed from automatic to manual pricing to fix the error but ıt also need to be added to sales order manually. While keeping the automatic pricing save_document_prepare_exit can be taken into consideration to modify the condition record while comes from Bapi as twice. &lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 16:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-condition-records-with-bapi-salesorder-createfromdat2/m-p/1485595#M226633</guid>
      <dc:creator>former_member96</dc:creator>
      <dc:date>2021-01-23T16:36:45Z</dc:date>
    </item>
  </channel>
</rss>

