<?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: BAPI_SALESORDER_SIMULATE problems in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374255#M1236202</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;Changing SP to AG seems to have soulved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wierd it workind in se37 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Lisa M Simonsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2009 12:04:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-11T12:04:21Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_SIMULATE problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374247#M1236194</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 am using this FM to simulate a salesorder but it is working a bit wierd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use the transaction se37 and call the FM BAPI_SALESORDER_SIMULATE the results are shown perfect. But calling the FM BAPI_SALESORDER_SIMULATE within a program with the exsact same parameters produces the error Pleas enter Sold-to or Ship-to party. This is provided in both senarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 08:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374247#M1236194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T08:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_SIMULATE problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374248#M1236195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass the Sold to party (Or) ship to party value to the FM "CONVERSION_EXIT_ALPHA_INPUT" before passing the value to BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the out come value of  "CONVERSION_EXIT_ALPHA_INPUT" u pass it to BAPI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 08:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374248#M1236195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T08:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_SIMULATE problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374249#M1236196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;example:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSALESORDER_SIMULATE.&lt;/P&gt;&lt;P&gt;DATA: order_header_in LIKE bapisdhead,&lt;/P&gt;&lt;P&gt;      order_items_in LIKE TABLE OF bapiitemin,&lt;/P&gt;&lt;P&gt;      return LIKE bapireturn,&lt;/P&gt;&lt;P&gt;      wa_order_items_in LIKE LINE OF order_items_in,&lt;/P&gt;&lt;P&gt;      order_partners LIKE TABLE OF bapipartnr,&lt;/P&gt;&lt;P&gt;      wa_order_partners LIKE LINE OF order_partners,&lt;/P&gt;&lt;P&gt;      order_items_out LIKE TABLE OF bapiitemex,&lt;/P&gt;&lt;P&gt;      wa_order_items_out LIKE LINE OF order_items_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill order_header_in&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;order_header_in-doc_type = 'TA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill order_items_in&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;wa_order_items_in-material = '000000000000020927'.&lt;/P&gt;&lt;P&gt;wa_order_items_in-req_qty = '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_order_items_in TO order_items_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill order_items_in&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;wa_order_partners-partn_role = 'AG'.&lt;/P&gt;&lt;P&gt;wa_order_partners-partn_numb = '0000000001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_order_partners TO order_partners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Execute Function Module BAPI_SALESORDER_SIMULATE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'BAPI_SALESORDER_SIMULATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    order_header_in           = order_header_in&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    return                    = return&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    order_items_in            = order_items_in&lt;/P&gt;&lt;P&gt;    order_partners            = order_partners&lt;/P&gt;&lt;P&gt;    order_items_out           = order_items_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The return structure gives any error messages&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;WRITE: return-message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Print out the order items&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT order_items_out INTO wa_order_items_out.&lt;/P&gt;&lt;P&gt;  WRITE: wa_order_items_out-material,&lt;/P&gt;&lt;P&gt;         wa_order_items_out-short_text,&lt;/P&gt;&lt;P&gt;         wa_order_items_out-subtotal_2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 10:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374249#M1236196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T10:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_SIMULATE problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374250#M1236197</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;This is the code i am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Order header&lt;/P&gt;&lt;P&gt;          wa_order_header_in-doc_type = 'ZOR'.&lt;/P&gt;&lt;P&gt;          wa_order_header_in-sales_org = salesorganization.&lt;/P&gt;&lt;P&gt;          wa_order_header_in-distr_chan = distchannel.&lt;/P&gt;&lt;P&gt;          wa_order_header_in-division = division.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Order items&lt;/P&gt;&lt;P&gt;       LOOP AT it_material_list INTO wa_material_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          wa_order_items_in-itm_number = counter.&lt;/P&gt;&lt;P&gt;          wa_order_items_in-material = wa_material_list-material.&lt;/P&gt;&lt;P&gt;          wa_order_items_in-target_qty = '1000'.&lt;/P&gt;&lt;P&gt;          wa_order_items_in-req_qty = '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          APPEND wa_order_items_in TO it_order_items_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          add 10 to counter.&lt;/P&gt;&lt;P&gt;          ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*order header&lt;/P&gt;&lt;P&gt;          wa_order_partners-partn_role = 'SP'.&lt;/P&gt;&lt;P&gt;          wa_order_partners-partn_numb = customerno.&lt;/P&gt;&lt;P&gt;          APPEND wa_order_partners TO it_order_partners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'BAPI_SALESORDER_SIMULATE'&lt;/P&gt;&lt;P&gt;               EXPORTING&lt;/P&gt;&lt;P&gt;                    order_header_in    = wa_order_header_in&lt;/P&gt;&lt;P&gt;               TABLES&lt;/P&gt;&lt;P&gt;                    order_items_in     = it_order_items_in&lt;/P&gt;&lt;P&gt;                    order_partners     = it_order_partners&lt;/P&gt;&lt;P&gt;                    order_condition_ex = it_order_condition_ex&lt;/P&gt;&lt;P&gt;                    MESSAGETABLE = messagetable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 11:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374250#M1236197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T11:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_SIMULATE problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374251#M1236198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any information to this problem cos i cannot get this FM to work from the codeing &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 12:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374251#M1236198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T12:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_SIMULATE problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374252#M1236199</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;Try to check the partener code: are you sure is SP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to check in TPAUM table if the internal code is different from output code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 12:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374252#M1236199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T12:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_SIMULATE problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374253#M1236200</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;it works fine when i run the bapi in se37 then the result i expect comes out but when doing it from the program it give me the error .. so it should be right &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Lisa M simonsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 12:17:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374253#M1236200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T12:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_SIMULATE problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374254#M1236201</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;When u run the BAPI by SE37, all input data are automatically converted to input format by the convertion routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example u insert 1 as customer code, and the system'll convert it in 0000000001, as the convetion routine ALPHA is assigned to customer field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The partner rule field PARTN_ROLE uses the convertion routine PARVW based on table TPAUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That doesn't happen in your program, so u make sure to transfer the value in the right (input) format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway u aren't transfering the "Sold-to party" (partner rule AG) and the "Ship-to party" (partner rule WE), but only Forwarding agent (partner SP).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Sold-to Party is mandatary, and usally the system loads  Ship-to party automatically (if the customer has only one), so it's strange your BAPI can work in SE37 without  Sold-to Party.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*order header&lt;/P&gt;&lt;P&gt;wa_order_partners-partn_role = 'SP'. &amp;lt;----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; &lt;STRONG&gt;It should be AG?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;wa_order_partners-partn_numb = customerno.&lt;/P&gt;&lt;P&gt;APPEND wa_order_partners TO it_order_partners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 12:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374254#M1236201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T12:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_SIMULATE problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374255#M1236202</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;Changing SP to AG seems to have soulved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wierd it workind in se37 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Lisa M Simonsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 12:04:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374255#M1236202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T12:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_SIMULATE problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374256#M1236203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 12:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-problems/m-p/5374256#M1236203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T12:05:11Z</dc:date>
    </item>
  </channel>
</rss>

