<?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: BAPI_SAG_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create/m-p/11125114#M1905077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing, sometimes there is no other option. While reading your first post I thought to reply to you suggesting debug, i guess you were trying to avoid it. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1273/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2015 04:52:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-05-18T04:52:09Z</dc:date>
    <item>
      <title>BAPI_SAG_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create/m-p/11125112#M1905075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been having a great deal of difficulty getting this BAPI to work corrrectly.&amp;nbsp; I am not new to the world of BAPIs and have used them for other purposes, creating SOs and material records, etc, but this one has me stumped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short, my issue is that this BAPI does not seem to save the net price at the item level, however in test mode it does.&amp;nbsp; Let me provide some detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a program which will import an Excel file with relevant vendor and material data and generate a schedule agreement for the specified vendor.&amp;nbsp; There is of course processing in between for verifying and processing the data before exectuing the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am populating the the following accoring to typical BAPI procedure, HEADER/HEADERX; ITEM/ITEMX; ACCOUNT/ACCOUNTX; ITEM_COND_VALIDITY/ITEM_COND_VALIDITYX; AND ITEM_CONDITION/ITEM_CONDITIONX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a type LP agreement and the item lines doe not have an item type so, my understanding is that I can populate the net price.&amp;nbsp; If I execute the function in test mode, ITEM-NET_PRICE is preserved as entered, as expected.&amp;nbsp; When I execute normally, the NET_PRICE is set to zero, yet the schedule agreement is created along with the line items and relevant conditions with their correct values.&amp;nbsp; When the newly created SA is opened in ME32L you get a warning due to the missing net price.&amp;nbsp; I should also note, the return messages do not mention any issue with net price, only successfuly creation of the SA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure I am missing something simple here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have combed through the dozens of OSS notes associated to this function, almost all of which have already been incorporated.&amp;nbsp; We are running 7.4 SP05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also done an exhaustive search on SCN and the web with no success.&amp;nbsp; I found this document, &lt;A __default_attr="10388" __jive_macro_name="document" class="jive_macro_document jive_macro" data-orig-content="Create or Change Scheduling Agreement Using Standard SAP BAPI" href="https://community.sap.com/" modifiedtitle="true" title="Create or Change Scheduling Agreement Using Standard SAP BAPI,"&gt;&lt;/A&gt; which I followed, but still have the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if anyone else has had this or a similar issue with this BAPI.&amp;nbsp; If I need to provide additional detail, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 12:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create/m-p/11125112#M1905075</guid>
      <dc:creator>jdloranger</dc:creator>
      <dc:date>2015-05-15T12:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SAG_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create/m-p/11125113#M1905076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, after a day of debugging the code... &lt;SPAN __jive_emoticon_name="cry" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1273/images/emoticons/cry.gif"&gt;&lt;/SPAN&gt;&amp;nbsp; I have found the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my source Excel file, the starting date of the pricing condition was in the future, which prevented the net price from being preserved in the appropriate field on the line item.&amp;nbsp; When I think about it, it makes perfect sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can be my own worst enemy sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good weekend to all.&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 20:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create/m-p/11125113#M1905076</guid>
      <dc:creator>jdloranger</dc:creator>
      <dc:date>2015-05-15T20:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SAG_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create/m-p/11125114#M1905077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing, sometimes there is no other option. While reading your first post I thought to reply to you suggesting debug, i guess you were trying to avoid it. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1273/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 04:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create/m-p/11125114#M1905077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-18T04:52:09Z</dc:date>
    </item>
  </channel>
</rss>

