<?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 FM SD_SALESDOCUMENT_CREATE - pricing condition problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sd-salesdocument-create-pricing-condition-problem/m-p/6906622#M1482246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone could help me on this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, my SAP version is &lt;STRONG&gt;4.6c&lt;/STRONG&gt;.  &lt;/P&gt;&lt;P&gt;I've been developing a program that will create a sales contract using FM  SD_SALESDOCUMENT_CREATE.  Overall, the sales contract is being created successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in the item pricing, the pricing condition that I need to create is being duplicated.  I understand that in the pricing procedure the particular condition is being inserted automatically.  The problem is, instead of the FM updating the default inserted pricing condition, it's inserting the one being passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already done a little research through the forums.  I've tried [this|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="89938"&gt;&lt;/A&gt;; suggestion where I create first the document then update it using SD_SALESDOCUMENT_CHANGE.  There is also  [this suggestion|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="60903"&gt;&lt;/A&gt;; that sets the field LOGIC_SWITCH-COND_HANDL, but my version does not have that field.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, there's [this suggestion|http://www.sapfans.com/forums/viewtopic.php?f=13&amp;amp;t=218865&amp;amp;start=0&amp;amp;st=0&amp;amp;sk=t&amp;amp;sd=a] that sets the field LOGIC_SWITCH-PRICING to a particular value.  I tried the initially suggested value of 'G' - Copy pricing elements unchanged and redetermine taxes.  The duplicate condition no longer occurs, but other pricing conditions were removed.  Using other values resulted in either the contract creation failing, or the condition value not updating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, please please can anyone help with my problem?  Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 02:32:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-05T02:32:14Z</dc:date>
    <item>
      <title>FM SD_SALESDOCUMENT_CREATE - pricing condition problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sd-salesdocument-create-pricing-condition-problem/m-p/6906622#M1482246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone could help me on this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, my SAP version is &lt;STRONG&gt;4.6c&lt;/STRONG&gt;.  &lt;/P&gt;&lt;P&gt;I've been developing a program that will create a sales contract using FM  SD_SALESDOCUMENT_CREATE.  Overall, the sales contract is being created successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in the item pricing, the pricing condition that I need to create is being duplicated.  I understand that in the pricing procedure the particular condition is being inserted automatically.  The problem is, instead of the FM updating the default inserted pricing condition, it's inserting the one being passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already done a little research through the forums.  I've tried [this|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="89938"&gt;&lt;/A&gt;; suggestion where I create first the document then update it using SD_SALESDOCUMENT_CHANGE.  There is also  [this suggestion|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="60903"&gt;&lt;/A&gt;; that sets the field LOGIC_SWITCH-COND_HANDL, but my version does not have that field.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, there's [this suggestion|http://www.sapfans.com/forums/viewtopic.php?f=13&amp;amp;t=218865&amp;amp;start=0&amp;amp;st=0&amp;amp;sk=t&amp;amp;sd=a] that sets the field LOGIC_SWITCH-PRICING to a particular value.  I tried the initially suggested value of 'G' - Copy pricing elements unchanged and redetermine taxes.  The duplicate condition no longer occurs, but other pricing conditions were removed.  Using other values resulted in either the contract creation failing, or the condition value not updating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, please please can anyone help with my problem?  Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 02:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sd-salesdocument-create-pricing-condition-problem/m-p/6906622#M1482246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T02:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: FM SD_SALESDOCUMENT_CREATE - pricing condition problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sd-salesdocument-create-pricing-condition-problem/m-p/6906623#M1482247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SALES_CONDITIONS_IN&lt;/P&gt;&lt;P&gt;            ITM_NUMBER                     000010&lt;/P&gt;&lt;P&gt;            COND_ST_NO                     020&lt;/P&gt;&lt;P&gt;            COND_COUNT                     01&lt;/P&gt;&lt;P&gt;            COND_TYPE                      YB05&lt;/P&gt;&lt;P&gt;            COND_VALUE                                           10.000000000&lt;/P&gt;&lt;P&gt;            CURRENCY                       TWD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALES_CONDITIONS_INX&lt;/P&gt;&lt;P&gt;           ITM_NUMBER                     000010&lt;/P&gt;&lt;P&gt;           COND_ST_NO                     020&lt;/P&gt;&lt;P&gt;           COND_COUNT                     01&lt;/P&gt;&lt;P&gt;           COND_TYPE                      YB05&lt;/P&gt;&lt;P&gt;           UPDATEFLAG                     U&lt;/P&gt;&lt;P&gt;           COND_VALUE                     X&lt;/P&gt;&lt;P&gt;           CURRENCY                       X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF the condition is being inserted automatically,you must update it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some import parameters are obligatory,including COND_ST_NO COND_COUNT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 08:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sd-salesdocument-create-pricing-condition-problem/m-p/6906623#M1482247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T08:44:41Z</dc:date>
    </item>
  </channel>
</rss>

