<?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 create a sales document using  BAPI_SALESORDER_CREATEFROMDAT2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286690#M154111</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 interface repository.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://ifr.sap.com" target="test_blank"&gt;http://ifr.sap.com&lt;/A&gt; Go to Logistics-&amp;gt;Sales and Distribution -&amp;gt; Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or u can varify this also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a where-used list you can find, where this FM is used, and in the debugger you can see the passed values.&lt;/P&gt;&lt;P&gt;(OK, you still have to find in which transaction it's used, but you can use the where used list.)&lt;/P&gt;&lt;P&gt;Eg it's used in FM IDOC_INPUT_SALESORDER_CREATEFR, I guess it's called during Idoc creation, so put a break-point there and check what happens....may be you need to set up your ALE for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Apr 2006 13:54:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-04T13:54:53Z</dc:date>
    <item>
      <title>How to create a sales document using  BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286688#M154109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai i was un able to create a sales order using the BAPI can you help me out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 13:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286688#M154109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-04T13:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sales document using  BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286689#M154110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer the following links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/fu036.htm" target="test_blank"&gt;http://www.sap-img.com/fu036.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 13:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286689#M154110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-04T13:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sales document using  BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286690#M154111</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 interface repository.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://ifr.sap.com" target="test_blank"&gt;http://ifr.sap.com&lt;/A&gt; Go to Logistics-&amp;gt;Sales and Distribution -&amp;gt; Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or u can varify this also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a where-used list you can find, where this FM is used, and in the debugger you can see the passed values.&lt;/P&gt;&lt;P&gt;(OK, you still have to find in which transaction it's used, but you can use the where used list.)&lt;/P&gt;&lt;P&gt;Eg it's used in FM IDOC_INPUT_SALESORDER_CREATEFR, I guess it's called during Idoc creation, so put a break-point there and check what happens....may be you need to set up your ALE for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 13:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286690#M154111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-04T13:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sales document using  BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286691#M154112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          clear:   l_order_header,&lt;/P&gt;&lt;P&gt;                   l_salesdocument,&lt;/P&gt;&lt;P&gt;                   l_order_partners,&lt;/P&gt;&lt;P&gt;                   l_order_items,&lt;/P&gt;&lt;P&gt;                   l_order_schdl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          refresh: it_order_items,&lt;/P&gt;&lt;P&gt;                   it_order_partners,&lt;/P&gt;&lt;P&gt;                   it_order_schdl,&lt;/P&gt;&lt;P&gt;                   it_return.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;???????? get from material ...&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        Order header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          l_order_header-doc_type          = 'ZQBV'.&lt;/P&gt;&lt;P&gt;          l_order_header-distr_chan        = '10'.&lt;/P&gt;&lt;P&gt;          l_order_header-division          = '00'.&lt;/P&gt;&lt;P&gt;          if g_qals-werk eq '1100'.&lt;/P&gt;&lt;P&gt;            l_order_header-sales_org         = '1000'.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            if g_qals-werk eq '3100'.&lt;/P&gt;&lt;P&gt;              l_order_header-sales_org         = '3000'.&lt;/P&gt;&lt;P&gt;            else.&lt;/P&gt;&lt;P&gt;              message i001(00) with text-005.&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          l_order_header-purch_no_c        = g_qals-prueflos.  " &amp;lt;= lot&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        Partner data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          l_order_partners-partn_role      = 'AG'.&lt;/P&gt;&lt;P&gt;          l_order_partners-partn_numb      = g_qals-kunnr.&lt;/P&gt;&lt;P&gt;          append l_order_partners to it_order_partners.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        Order items =&amp;gt; only one&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          l_order_items-itm_number         = 10.&lt;/P&gt;&lt;P&gt;          l_order_items-material           = g_qals-matnr.&lt;/P&gt;&lt;P&gt;          l_order_items-target_qty         = 1.&lt;/P&gt;&lt;P&gt;          append l_order_items to it_order_items.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        Schedules for quantity&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          l_order_schdl-itm_number         = 10.&lt;/P&gt;&lt;P&gt;          l_order_schdl-req_qty            = 1.        " &amp;lt;=  only 1 !&lt;/P&gt;&lt;P&gt;          append l_order_schdl to it_order_schdl.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        Conditions for value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          l_order_conditions-itm_number    = 10.&lt;/P&gt;&lt;P&gt;          l_order_conditions-cond_type     = 'PR00'.&lt;/P&gt;&lt;P&gt;          l_order_conditions-cond_value    = g_effort_sum.&lt;/P&gt;&lt;P&gt;          l_order_conditions-currency      = g_effort_unit.&lt;/P&gt;&lt;P&gt;          append l_order_conditions to it_order_conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        BAPI to create sales order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           SALESDOCUMENTIN               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              ORDER_HEADER_IN               = l_order_header&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           ORDER_HEADER_INX              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           SENDER                        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           BINARY_RELATIONSHIPTYPE       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           INT_NUMBER_ASSIGNMENT         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           BEHAVE_WHEN_ERROR             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           LOGIC_SWITCH                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           TESTRUN                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           CONVERT                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              SALESDOCUMENT                 = l_salesdocument&lt;/P&gt;&lt;P&gt;            TABLES&lt;/P&gt;&lt;P&gt;              RETURN                        = it_return&lt;/P&gt;&lt;P&gt;              ORDER_ITEMS_IN                = it_order_items&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           ORDER_ITEMS_INX               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              ORDER_PARTNERS                = it_order_partners&lt;/P&gt;&lt;P&gt;              ORDER_SCHEDULES_IN            = it_order_schdl&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           ORDER_SCHEDULES_INX           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              ORDER_CONDITIONS_IN           = it_order_conditions&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           ORDER_CONDITIONS_INX          =&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_CFGS_BLOB               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           ORDER_CFGS_VK                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           ORDER_CFGS_REFINST            =&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_TEXT                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           ORDER_KEYS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           EXTENSIONIN                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           PARTNERADDRESSES              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                    .&lt;/P&gt;&lt;P&gt;          if not l_salesdocument is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          order successfully created&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            message i001(00) with text-001 l_salesdocument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 13:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286691#M154112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-04T13:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sales document using  BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286692#M154113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check whether you are calling the function module BAPI_TRANSACTION_COMMIT after calling BAPI_SALESORDER_CREATEFROMDAT2.&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;Sreekanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 17:58:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286692#M154113</guid>
      <dc:creator>sreekanthgo</dc:creator>
      <dc:date>2006-04-04T17:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sales document using  BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286693#M154114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of saying 'I am unable to', it will help if you specify the exact problem you are facing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using, 'I am getting such and such error' or &lt;/P&gt;&lt;P&gt;'everything looks ok and no error messages returned, but when I check in VA03, it says document does not exist'.. etc.(commit not done)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you will have a better chance of getting a correct answer quickly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 21:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-sales-document-using-bapi-salesorder-createfromdat2/m-p/1286693#M154114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-04T21:29:31Z</dc:date>
    </item>
  </channel>
</rss>

