<?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: Problem in creating sales order using the FM  BAPI_SALESORDER_CREATEFROMDAT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834259#M355256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;Thanks for your suggestion. I have to use bapi_salesorder_createfromdat1 only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2007 08:50:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-09T08:50:36Z</dc:date>
    <item>
      <title>Problem in creating sales order using the FM  BAPI_SALESORDER_CREATEFROMDAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834255#M355252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt; I have writen the below codes to create a sales order but it is showing the error message that ' sales order type OR is not defined'. Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:itab_header like bapisdhead occurs 0 with header line,&lt;/P&gt;&lt;P&gt;     itab_item   like bapiitemin  occurs 0 with header line,&lt;/P&gt;&lt;P&gt;     itab_partner like BAPIPARTNR occurs 0 with header line,&lt;/P&gt;&lt;P&gt;     itab_return like bapireturn1,&lt;/P&gt;&lt;P&gt;     soldtoparty like bapisoldto occurs 0 with header line,&lt;/P&gt;&lt;P&gt;     shiptoparty like bapishipto occurs 0 with header line,&lt;/P&gt;&lt;P&gt;     salesdoc like BAPIVBELN-VBELN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab_header-doc_type = 'OR'.&lt;/P&gt;&lt;P&gt;itab_header-sales_org = '1000'.&lt;/P&gt;&lt;P&gt;itab_header-distr_chan = '10'.&lt;/P&gt;&lt;P&gt;itab_header-division = '00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab_item-material = 'M-01'.&lt;/P&gt;&lt;P&gt;itab_item-req_qty = '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab_partner-partn_role = 'AG'.&lt;/P&gt;&lt;P&gt;itab_partner-partn_numb = '1000'.&lt;/P&gt;&lt;P&gt;append itab_partner.&lt;/P&gt;&lt;P&gt;clear itab_partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab_partner-partn_role = 'WE'.&lt;/P&gt;&lt;P&gt;itab_partner-partn_numb = '1000'.&lt;/P&gt;&lt;P&gt;append itab_partner.&lt;/P&gt;&lt;P&gt;clear itab_partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ORDER_HEADER_IN           = itab_header&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WITHOUT_COMMIT            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONVERT_PARVW_AUART       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   SALESDOCUMENT              = salesdoc&lt;/P&gt;&lt;P&gt;   SOLD_TO_PARTY              = soldtoparty&lt;/P&gt;&lt;P&gt;   SHIP_TO_PARTY              = shiptoparty&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BILLING_PARTY             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   RETURN                     = itab_return&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    ORDER_ITEMS_IN            = itab_item&lt;/P&gt;&lt;P&gt;    ORDER_PARTNERS            = itab_partner.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_ITEMS_OUT           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CFGS_REF            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CFGS_INST           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CFGS_PART_OF        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CFGS_VALUE          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CCARD               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CFGS_BLOB           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_SCHEDULE_EX         =.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab_return-type ne 'E'.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      WAIT = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   RETURN        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  write: salesdoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  write: itab_return-message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 07:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834255#M355252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T07:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating sales order using the FM  BAPI_SALESORDER_CREATEFROMDAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834256#M355253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dillip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to use 'BAPI_SALESORDER_CREATEFROMDAT2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 08:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834256#M355253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T08:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating sales order using the FM  BAPI_SALESORDER_CREATEFROMDAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834257#M355254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dillip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to use 'BAPI_SALESORDER_CREATEFROMDAT2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 08:10:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834257#M355254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T08:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating sales order using the FM  BAPI_SALESORDER_CREATEFROMDAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834258#M355255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in the config whether this document type is allowed for your sales area.&lt;/P&gt;&lt;P&gt;you can check this in se16 as well , &lt;/P&gt;&lt;P&gt;see if the table vbak has any entries with the sales area as the one you are using in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunmit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 08:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834258#M355255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T08:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating sales order using the FM  BAPI_SALESORDER_CREATEFROMDAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834259#M355256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;Thanks for your suggestion. I have to use bapi_salesorder_createfromdat1 only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 08:50:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834259#M355256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T08:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating sales order using the FM  BAPI_SALESORDER_CREATEFROMDAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834260#M355257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunmit,&lt;/P&gt;&lt;P&gt;Thanks for quick reply but I am sorry it didn't help me because before writing the program I have checked in VA01 giving the same record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 08:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834260#M355257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T08:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating sales order using the FM  BAPI_SALESORDER_CREATEFROMDAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834261#M355258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dillip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPIs BAPI_SALESORDER_CREATE... have certain limitations. In case of BAPI_SALESORDER_CREATEFROMDAT1 you can only create orders for business object 'BUS2032'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have the RFC-enabled function module &amp;lt;b&amp;gt;SD_SALESORDER_CREATE&amp;lt;/b&amp;gt; available in your system (which I doubt) then you should use this fm instead of the BAPIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 10:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834261#M355258</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-01-09T10:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating sales order using the FM  BAPI_SALESORDER_CREATEFROMDAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834262#M355259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks to all of you who tried to help me. I got the point where I was wrong.&lt;/P&gt;&lt;P&gt;convesion_exit_alpha_input will be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dillip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 06:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-sales-order-using-the-fm-bapi-salesorder-createfromdat/m-p/1834262#M355259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T06:44:48Z</dc:date>
    </item>
  </channel>
</rss>

