<?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_SALESORDER_CREATEFROMDAT2 for Substitute Materials in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-for-substitute-materials/m-p/7303344#M1534504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had a similar issue before with the 'CHANGE' function - I'm guessing that your item category groups are different between the materials and you are trying to switch to an item category that's different than the default?  I know that the BAPI calls do not handle forced subs very well.  If we wanted to force a substitution on an order for a material and change anything else from the default on that order item, we had to call the change BAPI twice.  I addressed this with SAP, especially the point that the VA01/VA02 behavior was different than the BAPI call behavior and the response was 'As designed, too bad'.  You may need to sub the material during creat then switch the default item category using the change function.  Obviously, this isn't ideal from a performance perspective.  I 'fixed' this issue by modifying the code in program FV45PFAP_VBAP_FUELLEN_TEIL_2 with certain restrictions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Sep 2010 15:19:32 GMT</pubDate>
    <dc:creator>brad_bohn</dc:creator>
    <dc:date>2010-09-07T15:19:32Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CREATEFROMDAT2 for Substitute Materials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-for-substitute-materials/m-p/7303341#M1534501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using BAPI_SALESORDER_CREATEFROMDAT2 for creating Sales Order using the data upload from a excel sheet.&lt;/P&gt;&lt;P&gt;I am facing some error "No item category available (Table T184 ZOR NORM  XXXX") (XXXX is the item category for Substituted materials). I am populating the item numbers pro-grammatically and passing it to BAPI FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know, what values need to be populated to the BAPI structures to achieve this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and how to determine whether substitution exists for a material?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 18:26:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-for-substitute-materials/m-p/7303341#M1534501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-06T18:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 for Substitute Materials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-for-substitute-materials/m-p/7303342#M1534502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried creating the sales order in VA01 and check if you are able to create for substitution materials? Does that get created correctly?  You can search in the forum how the data have to be passed to the function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 06:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-for-substitute-materials/m-p/7303342#M1534502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-07T06:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 for Substitute Materials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-for-substitute-materials/m-p/7303343#M1534503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sujay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried creating orders in VA01 using the same material. It is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched the forum, but could not find any related information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 13:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-for-substitute-materials/m-p/7303343#M1534503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-07T13:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 for Substitute Materials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-for-substitute-materials/m-p/7303344#M1534504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had a similar issue before with the 'CHANGE' function - I'm guessing that your item category groups are different between the materials and you are trying to switch to an item category that's different than the default?  I know that the BAPI calls do not handle forced subs very well.  If we wanted to force a substitution on an order for a material and change anything else from the default on that order item, we had to call the change BAPI twice.  I addressed this with SAP, especially the point that the VA01/VA02 behavior was different than the BAPI call behavior and the response was 'As designed, too bad'.  You may need to sub the material during creat then switch the default item category using the change function.  Obviously, this isn't ideal from a performance perspective.  I 'fixed' this issue by modifying the code in program FV45PFAP_VBAP_FUELLEN_TEIL_2 with certain restrictions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 15:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-for-substitute-materials/m-p/7303344#M1534504</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-09-07T15:19:32Z</dc:date>
    </item>
  </channel>
</rss>

