<?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: How to upload a data using BAPI_SALESORDER_CREATEFROMDAT2 without using LSM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-data-using-bapi-salesorder-createfromdat2-without-using-lsm/m-p/2584500#M591278</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;My requirement is that I want to create Upload the data from an input file on my PC and then create sales orders out of it. I tried first using LSMW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to try it out through coding and using the BAPI_SALESORDER_CREATEFROMDAT2 function module and I need the steps to proceed with it and finally i want to display messages such as number of sales orders created, number of records failed, Total Number of records processed etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you got what is my requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2007 09:13:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-07T09:13:28Z</dc:date>
    <item>
      <title>How to upload a data using BAPI_SALESORDER_CREATEFROMDAT2 without using LSM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-data-using-bapi-salesorder-createfromdat2-without-using-lsm/m-p/2584497#M591275</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;       I want to upload a data from an input file on the presentation server using BAPI_SALESORDER_CREATEFROMDAT2 first uploading the data and then creating sales orders out of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I will be highly obliged if anyone can guide me with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I have tried the same using LSMW got succeeded in posting the idocs correctly and now I want to do it without using LSMW. The main intention of not using LSMW is that after creating sales orders, I want to display the messages related to number of sales order created, Number of records uploaded, Number of records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-data-using-bapi-salesorder-createfromdat2-without-using-lsm/m-p/2584497#M591275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T11:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a data using BAPI_SALESORDER_CREATEFROMDAT2 without using LSM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-data-using-bapi-salesorder-createfromdat2-without-using-lsm/m-p/2584498#M591276</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;BAPI_SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;Sales order: Create Sales Order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;You can use this method to create sales orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must enter at least sales order header data (via ORDER_HEADER_IN structure) and partner data (via the ORDER_PARTNERS table) as input parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the item data via the ORDER_ITEMS_IN table. You can allocate item numbers manually, by filling in the relevant fields, or the system does it, according to the settings for Customizing, by leaving the relevant fields blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Credit cards can be transferred via the BAPICCARD structure, on the one hand, data for card identification, on the other, data for a transaction which has taken place in an external system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have created the sales order successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announced via the RETURN parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no sales area has been created in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If a clear sales area cannot be created, you will receive a system message, and the sales order will not be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;1. Mandatory entries:&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN : DOC_TYPE     Sales document type&lt;/P&gt;&lt;P&gt;                   SALES_ORG    Sales organization&lt;/P&gt;&lt;P&gt;                   DISTR_CHAN   Distribution channel&lt;/P&gt;&lt;P&gt;                   DIVISION     Division&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER_PARTNERS..: PARTN_ROLE   Partner role, SP sold-to party&lt;/P&gt;&lt;P&gt;                   PARTN_NUMB   Customer number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_IN..: MATERIAL     Material number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Ship-to party:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no ship-to party is entered, use the following: Ship-to party =&lt;/P&gt;&lt;P&gt;sold-to party.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Commit control:&lt;/P&gt;&lt;P&gt;The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that can be carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. German key words:&lt;/P&gt;&lt;P&gt;The following key words must be entered in German, independantly of&lt;/P&gt;&lt;P&gt;the logon language:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOC_TYPE     Sales document type, for example: TA for standard order&lt;/P&gt;&lt;P&gt;PARTN_ROLE   Partner role, for example: WE for ship-to party&lt;/P&gt;&lt;P&gt;Further Information&lt;/P&gt;&lt;P&gt;You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;SALESDOCUMENTIN&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN&lt;/P&gt;&lt;P&gt;ORDER_HEADER_INX&lt;/P&gt;&lt;P&gt;SENDER&lt;/P&gt;&lt;P&gt;BINARY_RELATIONSHIPTYPE&lt;/P&gt;&lt;P&gt;INT_NUMBER_ASSIGNMENT&lt;/P&gt;&lt;P&gt;BEHAVE_WHEN_ERROR&lt;/P&gt;&lt;P&gt;LOGIC_SWITCH&lt;/P&gt;&lt;P&gt;TESTRUN&lt;/P&gt;&lt;P&gt;CONVERT&lt;/P&gt;&lt;P&gt;SALESDOCUMENT&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_IN&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_INX&lt;/P&gt;&lt;P&gt;ORDER_PARTNERS&lt;/P&gt;&lt;P&gt;ORDER_SCHEDULES_IN&lt;/P&gt;&lt;P&gt;ORDER_SCHEDULES_INX&lt;/P&gt;&lt;P&gt;ORDER_CONDITIONS_IN&lt;/P&gt;&lt;P&gt;ORDER_CONDITIONS_INX&lt;/P&gt;&lt;P&gt;ORDER_CFGS_REF&lt;/P&gt;&lt;P&gt;ORDER_CFGS_INST&lt;/P&gt;&lt;P&gt;ORDER_CFGS_PART_OF&lt;/P&gt;&lt;P&gt;ORDER_CFGS_VALUE&lt;/P&gt;&lt;P&gt;ORDER_CFGS_BLOB&lt;/P&gt;&lt;P&gt;ORDER_CFGS_VK&lt;/P&gt;&lt;P&gt;ORDER_CFGS_REFINST&lt;/P&gt;&lt;P&gt;ORDER_CCARD&lt;/P&gt;&lt;P&gt;ORDER_TEXT&lt;/P&gt;&lt;P&gt;ORDER_KEYS&lt;/P&gt;&lt;P&gt;EXTENSIONIN&lt;/P&gt;&lt;P&gt;PARTNERADDRESSES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 05:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-data-using-bapi-salesorder-createfromdat2-without-using-lsm/m-p/2584498#M591276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T05:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a data using BAPI_SALESORDER_CREATEFROMDAT2 without using LSM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-data-using-bapi-salesorder-createfromdat2-without-using-lsm/m-p/2584499#M591277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ameet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I know your requirement clearly? Are you expecting the program code or the step to build your own code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 07:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-data-using-bapi-salesorder-createfromdat2-without-using-lsm/m-p/2584499#M591277</guid>
      <dc:creator>Anjhi</dc:creator>
      <dc:date>2007-08-06T07:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a data using BAPI_SALESORDER_CREATEFROMDAT2 without using LSM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-data-using-bapi-salesorder-createfromdat2-without-using-lsm/m-p/2584500#M591278</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;My requirement is that I want to create Upload the data from an input file on my PC and then create sales orders out of it. I tried first using LSMW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to try it out through coding and using the BAPI_SALESORDER_CREATEFROMDAT2 function module and I need the steps to proceed with it and finally i want to display messages such as number of sales orders created, number of records failed, Total Number of records processed etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you got what is my requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 09:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-data-using-bapi-salesorder-createfromdat2-without-using-lsm/m-p/2584500#M591278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T09:13:28Z</dc:date>
    </item>
  </channel>
</rss>

