<?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 BAPI_QUOTATION_CREATEFROMDATA2 does not create and update custom condition value. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-does-not-create-and-update-custom-condition/m-p/475106#M15424</link>
    <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I create quotations by using the function module 
BAPI_QUOTATION_CREATEFROMDATA2. So far I was able to create price conditions on the item level by using the following 
code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;I Switch for activating the new condition item handling:
Import parameter LOGIC_SWITCH-COND_HANDLE = 'X'.
&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;
&lt;LI&gt;    wa_cond-itm_number = wa_data-linenumber.&lt;/LI&gt;&lt;LI&gt;    wa_cond-cond_type = 'PR00'.&lt;/LI&gt;&lt;LI&gt;    wa_cond-cond_value = 10.&lt;/LI&gt;&lt;LI&gt;    wa_cond-currency = 'CAD'&lt;/LI&gt;&lt;LI&gt;    insert wa_cond into table tab_cond.&lt;/LI&gt;&lt;LI&gt;    wa_cond_inx-itm_number = wa_data-linenumber.&lt;/LI&gt;&lt;LI&gt;    wa_cond_inx-cond_type = 'PR00'.&lt;/LI&gt;&lt;LI&gt;    wa_cond_inx-updateflag = 'U'.&lt;/LI&gt;&lt;LI&gt;    wa_cond_inx-cond_value = 'X'.&lt;/LI&gt;&lt;LI&gt;    wa_cond_inx-currency = 'X'.&lt;/LI&gt;&lt;LI&gt;    insert wa_cond_inx into table tab_cond_inx.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;However, when I try to create with custom (ZI30) condition values, the standard BAPI doesn't work. I checked ZI30 via VK12, and I was able to see all variant details.&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;  wa_cond-itm_number = wa_data-linenumber.&lt;/LI&gt;&lt;LI&gt;  wa_cond-cond_type = 'ZI30'.&lt;/LI&gt;&lt;LI&gt;  wa_cond-cond_value = 3.&lt;/LI&gt;&lt;LI&gt;  wa_cond-currency = 'CAD'.&lt;/LI&gt;&lt;LI&gt;  insert wa_cond into table tab_cond.&lt;/LI&gt;&lt;LI&gt;  wa_cond_inx-itm_number = wa_data-linenumber.&lt;/LI&gt;&lt;LI&gt;  wa_cond_inx-cond_type = 'ZI30'.&lt;/LI&gt;&lt;LI&gt;  wa_cond_inx-updateflag = 'U'.&lt;/LI&gt;&lt;LI&gt;  wa_cond_inx-cond_value = 'X'.&lt;/LI&gt;&lt;LI&gt;  wa_cond_inx-currency = 'X'.&lt;/LI&gt;&lt;LI&gt;  insert wa_cond_inx into table tab_cond_inx.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Unfortunately the above piece of code does not work. When I call the BAPI I don't even get any error
 message in return table of BAPI.&lt;/P&gt;&lt;P&gt;When I create a quotation manually I can add the condition with an new value via GUI.&lt;/P&gt;&lt;P&gt;Is there a special flag which I have to set when I want to create a custom condition?&lt;/P&gt;&lt;P&gt;regards and many thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2017 04:13:03 GMT</pubDate>
    <dc:creator>former_member295881</dc:creator>
    <dc:date>2017-06-10T04:13:03Z</dc:date>
    <item>
      <title>BAPI_QUOTATION_CREATEFROMDATA2 does not create and update custom condition value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-does-not-create-and-update-custom-condition/m-p/475106#M15424</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I create quotations by using the function module 
BAPI_QUOTATION_CREATEFROMDATA2. So far I was able to create price conditions on the item level by using the following 
code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;I Switch for activating the new condition item handling:
Import parameter LOGIC_SWITCH-COND_HANDLE = 'X'.
&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;
&lt;LI&gt;    wa_cond-itm_number = wa_data-linenumber.&lt;/LI&gt;&lt;LI&gt;    wa_cond-cond_type = 'PR00'.&lt;/LI&gt;&lt;LI&gt;    wa_cond-cond_value = 10.&lt;/LI&gt;&lt;LI&gt;    wa_cond-currency = 'CAD'&lt;/LI&gt;&lt;LI&gt;    insert wa_cond into table tab_cond.&lt;/LI&gt;&lt;LI&gt;    wa_cond_inx-itm_number = wa_data-linenumber.&lt;/LI&gt;&lt;LI&gt;    wa_cond_inx-cond_type = 'PR00'.&lt;/LI&gt;&lt;LI&gt;    wa_cond_inx-updateflag = 'U'.&lt;/LI&gt;&lt;LI&gt;    wa_cond_inx-cond_value = 'X'.&lt;/LI&gt;&lt;LI&gt;    wa_cond_inx-currency = 'X'.&lt;/LI&gt;&lt;LI&gt;    insert wa_cond_inx into table tab_cond_inx.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;However, when I try to create with custom (ZI30) condition values, the standard BAPI doesn't work. I checked ZI30 via VK12, and I was able to see all variant details.&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;  wa_cond-itm_number = wa_data-linenumber.&lt;/LI&gt;&lt;LI&gt;  wa_cond-cond_type = 'ZI30'.&lt;/LI&gt;&lt;LI&gt;  wa_cond-cond_value = 3.&lt;/LI&gt;&lt;LI&gt;  wa_cond-currency = 'CAD'.&lt;/LI&gt;&lt;LI&gt;  insert wa_cond into table tab_cond.&lt;/LI&gt;&lt;LI&gt;  wa_cond_inx-itm_number = wa_data-linenumber.&lt;/LI&gt;&lt;LI&gt;  wa_cond_inx-cond_type = 'ZI30'.&lt;/LI&gt;&lt;LI&gt;  wa_cond_inx-updateflag = 'U'.&lt;/LI&gt;&lt;LI&gt;  wa_cond_inx-cond_value = 'X'.&lt;/LI&gt;&lt;LI&gt;  wa_cond_inx-currency = 'X'.&lt;/LI&gt;&lt;LI&gt;  insert wa_cond_inx into table tab_cond_inx.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Unfortunately the above piece of code does not work. When I call the BAPI I don't even get any error
 message in return table of BAPI.&lt;/P&gt;&lt;P&gt;When I create a quotation manually I can add the condition with an new value via GUI.&lt;/P&gt;&lt;P&gt;Is there a special flag which I have to set when I want to create a custom condition?&lt;/P&gt;&lt;P&gt;regards and many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 04:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-does-not-create-and-update-custom-condition/m-p/475106#M15424</guid>
      <dc:creator>former_member295881</dc:creator>
      <dc:date>2017-06-10T04:13:03Z</dc:date>
    </item>
  </channel>
</rss>

