<?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: Regarding -  BAPI_SALESORDER_CREATEFROMDAT1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052632#M89563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dilip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are passing 'AA' for partner role. It should be 'AG'. Pass customer number with leading zeroes. Also, populate iBAPIPARTNR with SHIP TO PARTY number(with leading zeroes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Importing parameters - 'salesdocument', 'SOLD_TO_PARTY', &lt;/P&gt;&lt;P&gt;'SHIP_TO_PARTY' are retuned by BAPI after successful creation of sales order. Do not populate them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satyanarayana Kotte&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Nov 2005 05:31:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-01T05:31:07Z</dc:date>
    <item>
      <title>Regarding -  BAPI_SALESORDER_CREATEFROMDAT1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052627#M89558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;          I am having a flat file which contains data for creating sales order. But I am unable to create sales order using BAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here first I have created a demo program after wards I will conver it to final program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is my demo source code. Kindly let me know what I am missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dilip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : iBAPISDHEAD like BAPISDHEAD occurs 10 with header line,&lt;/P&gt;&lt;P&gt;       iBAPIITEMIN like BAPIITEMIN occurs 10 with header line,"Item data input&lt;/P&gt;&lt;P&gt;       iBAPIPARTNR like BAPIPARTNR occurs 10 with header line."partners&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iBAPISDHEAD-DOC_NUMBER = '1'.&lt;/P&gt;&lt;P&gt;iBAPISDHEAD-doc_type = 'BV'.&lt;/P&gt;&lt;P&gt;iBAPISDHEAD-SALES_ORG = '1000'.&lt;/P&gt;&lt;P&gt;iBAPISDHEAD-DISTR_CHAN = '10'.&lt;/P&gt;&lt;P&gt;iBAPISDHEAD-DIVISION = '10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append iBAPISDHEAD.&lt;/P&gt;&lt;P&gt;*clear iBAPISDHEAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****Item details&lt;/P&gt;&lt;P&gt;iBAPIITEMIN-ITM_NUMBER = '10'.&lt;/P&gt;&lt;P&gt;iBAPIITEMIN-MATERIAL   = 'SMB_FERT04'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append iBAPIITEMIN.&lt;/P&gt;&lt;P&gt;*clear iBAPIITEMIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;End Item details&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****Partner functions&lt;/P&gt;&lt;P&gt;iBAPIPARTNR-PARTN_ROLE = 'AA'.&lt;/P&gt;&lt;P&gt;iBAPIPARTNR-PARTN_NUMB = '1'.&lt;/P&gt;&lt;P&gt;iBAPIPARTNR-ITM_NUMBER = '10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append iBAPIPARTNR.&lt;/P&gt;&lt;P&gt;*clear iBAPIPARTNR.&lt;/P&gt;&lt;P&gt;*****end partner functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***NEW ADDITION&lt;/P&gt;&lt;P&gt;data : iBAPI_VBELN like BAPIVBELN-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : iBAPISOLDTO like BAPISOLDTO occurs 10 with header line."SOLD TO PARTY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : iBAPISHIPTO like BAPISHIPTO occurs 10 with header line."SHIP TO PARTY&lt;/P&gt;&lt;P&gt;***pass data to BAPISOLDTO&lt;/P&gt;&lt;P&gt;iBAPISOLDTO-SOLD_TO = '1'.&lt;/P&gt;&lt;P&gt;iBAPISOLDTO-NAME = 'Test customer1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append iBAPISOLDTO.&lt;/P&gt;&lt;P&gt;***end pass data to BAPISOLDTO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***pass data to iBAPISHIPTO&lt;/P&gt;&lt;P&gt;iBAPISHIPTO-SHIP_TO = '1'.&lt;/P&gt;&lt;P&gt;iBAPISHIPTO-NAME = 'Test customer1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append iBAPISHIPTO.&lt;/P&gt;&lt;P&gt;***end pass data to BAPISOLDTO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***end addition&lt;/P&gt;&lt;P&gt;&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           = iBAPISDHEAD&lt;/P&gt;&lt;P&gt;   WITHOUT_COMMIT            = 'X'&lt;/P&gt;&lt;P&gt;   CONVERT_PARVW_AUART       = 'X'&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   SALESDOCUMENT             = iBAPI_VBELN&lt;/P&gt;&lt;P&gt;   SOLD_TO_PARTY             = iBAPISOLDTO&lt;/P&gt;&lt;P&gt;   SHIP_TO_PARTY             = iBAPISHIPTO&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BILLING_PARTY             = '1'&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;  TABLES&lt;/P&gt;&lt;P&gt;    ORDER_ITEMS_IN            = iBAPIITEMIN&lt;/P&gt;&lt;P&gt;    ORDER_PARTNERS            = iBAPIPARTNR&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;&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;                    .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2005 10:31:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052627#M89558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-31T10:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding -  BAPI_SALESORDER_CREATEFROMDAT1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052628#M89559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diliip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the return structure or table to know the messages from your BAPI. Maybe there will be the solution of your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgd&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2005 11:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052628#M89559</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-10-31T11:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding -  BAPI_SALESORDER_CREATEFROMDAT1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052629#M89560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Frédéric,&lt;/P&gt;&lt;P&gt;              Thanks for your informative reply. When I use RETURN table there I am getting error &lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;'Please enter sold-to party or ship-to party '&lt;/P&gt; . But if you have look at the code the values of sold to party &amp;amp; ship to party are there in the internal table's header line.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dilip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2005 11:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052629#M89560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-31T11:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding -  BAPI_SALESORDER_CREATEFROMDAT1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052630#M89561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOLD_TO_PARTY and SHIP_TO_PARTY are &amp;lt;u&amp;gt;exporting&amp;lt;/u&amp;gt;parameters of the BAPI. if you want to set SOLD_TO_PARTY and / or SHIP_TO_PARTY explicit, you'll have to do that via ORDER_PARTNERS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2005 15:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052630#M89561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-31T15:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding -  BAPI_SALESORDER_CREATEFROMDAT1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052631#M89562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your partner numbers may need to be in internal format and should already exist in the system. If it is one time customer order that you are creating, then you need to pass the entire address information of the partners.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2005 20:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052631#M89562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-31T20:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding -  BAPI_SALESORDER_CREATEFROMDAT1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052632#M89563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dilip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are passing 'AA' for partner role. It should be 'AG'. Pass customer number with leading zeroes. Also, populate iBAPIPARTNR with SHIP TO PARTY number(with leading zeroes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Importing parameters - 'salesdocument', 'SOLD_TO_PARTY', &lt;/P&gt;&lt;P&gt;'SHIP_TO_PARTY' are retuned by BAPI after successful creation of sales order. Do not populate them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satyanarayana Kotte&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2005 05:31:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052632#M89563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-01T05:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding -  BAPI_SALESORDER_CREATEFROMDAT1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052633#M89564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;        As per your suggestions I have made the changes but still I am unable to create the sales document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dilip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTESTDB01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : iBAPISDHEAD like BAPISDHEAD occurs 10 with header line,&lt;/P&gt;&lt;P&gt;       iBAPIITEMIN like BAPIITEMIN occurs 10 with header line,"Item data input&lt;/P&gt;&lt;P&gt;       iBAPIPARTNR like BAPIPARTNR occurs 10 with header line."partners&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iBAPISDHEAD-doc_type = 'BV'.&lt;/P&gt;&lt;P&gt;iBAPISDHEAD-SALES_ORG = '1000'.&lt;/P&gt;&lt;P&gt;iBAPISDHEAD-DISTR_CHAN = '10'.&lt;/P&gt;&lt;P&gt;iBAPISDHEAD-DIVISION = '10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append iBAPISDHEAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****Item details&lt;/P&gt;&lt;P&gt;iBAPIITEMIN-ITM_NUMBER = '10'.&lt;/P&gt;&lt;P&gt;*HG_LV_ITEM = ''.&lt;/P&gt;&lt;P&gt;*PO_ITM_NO  = ''.&lt;/P&gt;&lt;P&gt;iBAPIITEMIN-MATERIAL   = 'SMB_FERT04'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append iBAPIITEMIN.&lt;/P&gt;&lt;P&gt;*clear iBAPIITEMIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;End Item details&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****Partner functions&lt;/P&gt;&lt;P&gt;iBAPIPARTNR-PARTN_ROLE = 'AG'.&lt;/P&gt;&lt;P&gt;iBAPIPARTNR-PARTN_NUMB = '0000000001'.&lt;/P&gt;&lt;P&gt;iBAPIPARTNR-ITM_NUMBER = '10'.&lt;/P&gt;&lt;P&gt;iBAPIPARTNR-TITLE       ='Company'.&lt;/P&gt;&lt;P&gt;iBAPIPARTNR-name      = 'Test Customer1'.&lt;/P&gt;&lt;P&gt;iBAPIPARTNR-street = 'kandivali'.&lt;/P&gt;&lt;P&gt;iBAPIPARTNR-country ='IN'.&lt;/P&gt;&lt;P&gt;iBAPIPARTNR-POSTL_CODE = '400101'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append iBAPIPARTNR.&lt;/P&gt;&lt;P&gt;*clear iBAPIPARTNR.&lt;/P&gt;&lt;P&gt;*****end partner functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : iBAPI_VBELN like BAPIVBELN-VBELN." value '0020000054'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : iBAPISOLDTO like BAPISOLDTO occurs 10 with header line."SOLD TO PARTY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : iBAPISHIPTO like BAPISHIPTO occurs 10 with header line."SHIP TO PARTY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data iBAPIRETURN1 like BAPIRETURN occurs 10 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***end addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at iBAPISOLDTO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ORDER_HEADER_IN           = iBAPISDHEAD&lt;/P&gt;&lt;P&gt;   WITHOUT_COMMIT            = space&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONVERT_PARVW_AUART       = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   SALESDOCUMENT             = iBAPI_VBELN&lt;/P&gt;&lt;P&gt;   SOLD_TO_PARTY             = iBAPISOLDTO&lt;/P&gt;&lt;P&gt;   SHIP_TO_PARTY             = iBAPISHIPTO&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BILLING_PARTY             = '1'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   RETURN                    = iBAPIRETURN1&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    ORDER_ITEMS_IN            = iBAPIITEMIN&lt;/P&gt;&lt;P&gt;    ORDER_PARTNERS            = iBAPIPARTNR&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;append iBAPIRETURN1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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          = ' '&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;                    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write 10 sy-subrc color 7 inverse on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write :/2 ibapi_vbeln color 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at iBAPIRETURN1.&lt;/P&gt;&lt;P&gt;  write :/2  iBAPIRETURN1-type,5 iBAPIRETURN1-message,iBAPI_VBELN.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 09:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052633#M89564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T09:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding -  BAPI_SALESORDER_CREATEFROMDAT1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052634#M89565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What messages are you getting? Also, you have to use BAPI_TRANSACTION_COMMIT after the call if you don't have any errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 21:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052634#M89565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T21:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding -  BAPI_SALESORDER_CREATEFROMDAT1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052635#M89566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Sold-To party Function is 'AG'.&lt;/P&gt;&lt;P&gt;I don't see Ship-To in your code i.e. Partner function 'WE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mahendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 22:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052635#M89566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T22:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding -  BAPI_SALESORDER_CREATEFROMDAT1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052636#M89567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diliip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below code. I used BAPI_SALESORDER_CREATEFROMDAT2.&lt;/P&gt;&lt;P&gt;Dont forget to call BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Order header&lt;/P&gt;&lt;P&gt;  x_order_header_in-doc_type   = it_file-auart.&lt;/P&gt;&lt;P&gt;  x_order_header_in-sales_org  = it_file-vkorg.&lt;/P&gt;&lt;P&gt;  x_order_header_in-distr_chan = it_file-vtweg.&lt;/P&gt;&lt;P&gt;  x_order_header_in-division   = it_file-spart.&lt;/P&gt;&lt;P&gt;  x_order_header_in-ord_reason = it_file-augru.&lt;/P&gt;&lt;P&gt;  x_order_header_in-purch_no_c = it_file-pohead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Partners data&lt;/P&gt;&lt;P&gt;*-- Sold to party&lt;/P&gt;&lt;P&gt;  it_order_partners-partn_role = 'AG'.&lt;/P&gt;&lt;P&gt;  it_order_partners-partn_numb = it_file-soldto.&lt;/P&gt;&lt;P&gt;  append it_order_partners.&lt;/P&gt;&lt;P&gt;  clear  it_order_partners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--  Ship to party&lt;/P&gt;&lt;P&gt;  it_order_partners-partn_role = 'WE'.&lt;/P&gt;&lt;P&gt;  it_order_partners-partn_numb = it_file-shipto.&lt;/P&gt;&lt;P&gt;  append it_order_partners.&lt;/P&gt;&lt;P&gt;  clear  it_order_partners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Item Details&lt;/P&gt;&lt;P&gt;   it_orders_items_in-itm_number = g_itemno.&lt;/P&gt;&lt;P&gt;   it_orders_items_in-material   = it_file-matnr.&lt;/P&gt;&lt;P&gt;   it_orders_items_in-target_qty = it_file-zmeng.&lt;/P&gt;&lt;P&gt;   it_orders_items_in-target_qu  = it_file-zieme.&lt;/P&gt;&lt;P&gt;   it_orders_items_in-plant      = it_file-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   append it_orders_items_in.&lt;/P&gt;&lt;P&gt;   clear  it_orders_items_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Schedule Lines&lt;/P&gt;&lt;P&gt;   it_order_schedules_in-itm_number = g_itemno.&lt;/P&gt;&lt;P&gt;   it_order_schedules_in-sched_line = c_0001.&lt;/P&gt;&lt;P&gt;   it_order_schedules_in-req_qty    = it_file-zmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   append it_order_schedules_in.&lt;/P&gt;&lt;P&gt;   clear  it_order_schedules_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 23:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-createfromdat1/m-p/1052636#M89567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T23:12:39Z</dc:date>
    </item>
  </channel>
</rss>

