<?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: Error while creating Sales Order in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-sales-order/m-p/8673941#M1668604</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;You to pass the values to the partner table &lt;STRONG&gt;order_partners&lt;/STRONG&gt; for sold to party and ship to party.&lt;/P&gt;&lt;P&gt;There is a field in this structure &lt;STRONG&gt;Partner Function&lt;/STRONG&gt;. In that you have to pass value &lt;STRONG&gt;SP&lt;/STRONG&gt; for Sold to party and &lt;STRONG&gt;SH&lt;/STRONG&gt; for ship to party.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take reference from VBPA table which is a partner function table to create a sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code :-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    wa_part-parvw = 'SP'.
    wa_part-itm_number = '10'.
    wa_part-partn_numb = '520'
    wa_part-unload_pt = 
    append wa_part to it_part. " it_part is of type BAPIPARNR which is there in BAPI
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jhings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Mar 2012 16:32:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-10T16:32:43Z</dc:date>
    <item>
      <title>Error while creating Sales Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-sales-order/m-p/8673940#M1668603</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i am trying to create Sales Order by using  'BAPI_SALESORDER_CREATEFROMDAT2',the program is giving  the error &lt;/P&gt;&lt;P&gt;'Please enter sold-to-party or ship-to-party'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the header structure 'BAPISDHD1' but there is no field for sold-to party or ship-to party.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the partners structure 'BAPIPARNR'.In this structure there is field 'partn_nub'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I passed values to that field still it giving the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me how to solve this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Gopalakrishna.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 15:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-sales-order/m-p/8673940#M1668603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-10T15:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating Sales Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-sales-order/m-p/8673941#M1668604</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;You to pass the values to the partner table &lt;STRONG&gt;order_partners&lt;/STRONG&gt; for sold to party and ship to party.&lt;/P&gt;&lt;P&gt;There is a field in this structure &lt;STRONG&gt;Partner Function&lt;/STRONG&gt;. In that you have to pass value &lt;STRONG&gt;SP&lt;/STRONG&gt; for Sold to party and &lt;STRONG&gt;SH&lt;/STRONG&gt; for ship to party.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take reference from VBPA table which is a partner function table to create a sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code :-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    wa_part-parvw = 'SP'.
    wa_part-itm_number = '10'.
    wa_part-partn_numb = '520'
    wa_part-unload_pt = 
    append wa_part to it_part. " it_part is of type BAPIPARNR which is there in BAPI
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jhings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 16:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-sales-order/m-p/8673941#M1668604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-10T16:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating Sales Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-sales-order/m-p/8673942#M1668605</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;Thanks for your reply.I solved that error 'Please enter sold-to party or ship-to party'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still it giving the error 'document 35 does not have a document catagery but'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will give you my code what I havae written in my partners tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_partners1-partn_role = 'AG'.&lt;/P&gt;&lt;P&gt;  wa_partners1-PARTN_NUMB = wa_header-sold_to.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; wa_partners1-itm_number = '10'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  append wa_partners1 to it_partners1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_partners1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please suggest me how to solve this error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Gopalakrishna.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Mar 2012 05:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-sales-order/m-p/8673942#M1668605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-11T05:35:58Z</dc:date>
    </item>
  </channel>
</rss>

