<?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 Wrong CFOP determination via BAPI BAPI_SALESORDER_CREATEFROMDAT2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cfop-determination-via-bapi-bapi-salesorder-createfromdat2/m-p/10241203#M1828329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;I need some help on the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;When I create a Sales document manually (tcode VA01), CFOP code is determined correctly. But when I try to do the same process, using BAPI BAPI_SALESORDER_CREATEFROMDAT2, with same data ( Sold-To Party and Ship-To Party, material code...), CFOP code is determined wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;The SD consultant already checked the configuration in SPRO and everything looks fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;I went thru debug and found that the FM SD_PARTNER_DATA_GET is called for both process, but internal table GVT_LOCAL_MEMORY is NOT filled when running BAPI and it IS filled when running VA01 (this internal table has VBPA - Partners - data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;This causes a NO_OBJECT_FOUND exception, which makes the program to read the address data from KNA1 (FM J_1B_SD_ADDRESS_READ), with the wrong address number, instead the address form Sales Order, since it's an On Time Customer - WE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;The weirdest thing is that it was working perfectly 3 days ago. We first noticed the problem in QAS environment, but in DEV Sandbox the error is the same now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;The scenario is an Interstate Sales Order. We are about 30 days from Go-Live and now this came thru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 12:51:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-05-06T12:51:33Z</dc:date>
    <item>
      <title>Wrong CFOP determination via BAPI BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cfop-determination-via-bapi-bapi-salesorder-createfromdat2/m-p/10241203#M1828329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;I need some help on the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;When I create a Sales document manually (tcode VA01), CFOP code is determined correctly. But when I try to do the same process, using BAPI BAPI_SALESORDER_CREATEFROMDAT2, with same data ( Sold-To Party and Ship-To Party, material code...), CFOP code is determined wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;The SD consultant already checked the configuration in SPRO and everything looks fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;I went thru debug and found that the FM SD_PARTNER_DATA_GET is called for both process, but internal table GVT_LOCAL_MEMORY is NOT filled when running BAPI and it IS filled when running VA01 (this internal table has VBPA - Partners - data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;This causes a NO_OBJECT_FOUND exception, which makes the program to read the address data from KNA1 (FM J_1B_SD_ADDRESS_READ), with the wrong address number, instead the address form Sales Order, since it's an On Time Customer - WE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;The weirdest thing is that it was working perfectly 3 days ago. We first noticed the problem in QAS environment, but in DEV Sandbox the error is the same now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;The scenario is an Interstate Sales Order. We are about 30 days from Go-Live and now this came thru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 12:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cfop-determination-via-bapi-bapi-salesorder-createfromdat2/m-p/10241203#M1828329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-06T12:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong CFOP determination via BAPI BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cfop-determination-via-bapi-bapi-salesorder-createfromdat2/m-p/10241204#M1828330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thiago,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this was working good all this while, the easiest way is to identify all the transports that moved to Q in the last 3 days. You should be able to able to pin point the one that is causing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 13:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cfop-determination-via-bapi-bapi-salesorder-createfromdat2/m-p/10241204#M1828330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-06T13:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong CFOP determination via BAPI BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cfop-determination-via-bapi-bapi-salesorder-createfromdat2/m-p/10241205#M1828331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Vikram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have done that. There was no transport request (workbench or customizing) that could have changed anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked that BAPI doesn't pass on the same functions as VA01, such as SD_PARTNER_DATA_PUT, SD_PARTNER_SINGLE_MODIFY, among others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 13:13:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cfop-determination-via-bapi-bapi-salesorder-createfromdat2/m-p/10241205#M1828331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-06T13:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong CFOP determination via BAPI BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cfop-determination-via-bapi-bapi-salesorder-createfromdat2/m-p/10241206#M1828332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thiago, if you suspect the problem with BAPI, I wonder why. How could your bapi have worked all this while and stopped suddenly? was there any note applied on the system?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 13:24:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cfop-determination-via-bapi-bapi-salesorder-createfromdat2/m-p/10241206#M1828332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-06T13:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong CFOP determination via BAPI BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cfop-determination-via-bapi-bapi-salesorder-createfromdat2/m-p/10241207#M1828333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vikran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's something we are investigating, but there´s nothing much left to look for since I did not change BAPI's standard code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile, to bypass this problem, I'll try to re-determinate CFOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 13:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cfop-determination-via-bapi-bapi-salesorder-createfromdat2/m-p/10241207#M1828333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-06T13:54:53Z</dc:date>
    </item>
  </channel>
</rss>

