<?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: Sales Order Simulation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285793#M498101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Here is a sample code to get the conditions in all its details. This one is for header conditions, but if you have them at item level, you need to do the same but give an item number instead of '000000' that I have in here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: comm_head_i LIKE komk,&lt;/P&gt;&lt;P&gt;      comm_head_e LIKE komk,&lt;/P&gt;&lt;P&gt;      i_skomv     LIKE komv OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_tkomv     LIKE komv OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_skomp     LIKE komp OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_skonh     LIKE konh OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_skonp     LIKE konp OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_skonm     LIKE konm OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_skonw     LIKE konw OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SD_SALES_PRICING_INFORMATION'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_POSNR          = '000000'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     i_read_doc       = 'X'&lt;/P&gt;&lt;P&gt;     i_vbeln          = p_vbeln&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     e_komk           = comm_head_i&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   E_KOMP           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FXKONV           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FTKOMV           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'PRICING_GET_CONDITIONS'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            comm_head_i     = comm_head_i&lt;/P&gt;&lt;P&gt;            read_conditions = 'X'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            comm_head_e     = comm_head_e&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            skomv           = i_skomv&lt;/P&gt;&lt;P&gt;            tkomv           = i_tkomv&lt;/P&gt;&lt;P&gt;            skomp           = i_skomp&lt;/P&gt;&lt;P&gt;            skonh           = i_skonh&lt;/P&gt;&lt;P&gt;            skonp           = i_skonp&lt;/P&gt;&lt;P&gt;            skonm           = i_skonm&lt;/P&gt;&lt;P&gt;            skonw           = i_skonw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2007 05:33:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-21T05:33:03Z</dc:date>
    <item>
      <title>Sales Order Simulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285789#M498097</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 simulating a sales order using the function BAPI_SALESORDER_SIMULATE. This is working fine, but i don't have access to sales order header conditions, i only have access to item conditions. Is this normal? How can i have access to sales order header conditions when simulating a sales order? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 14:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285789#M498097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T14:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Simulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285790#M498098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set bapicond-itm_number to '000000' and try .&lt;/P&gt;&lt;P&gt;(Note :  use conditions which are allowed at header level, like Freight ..etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 01:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285790#M498098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T01:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Simulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285791#M498099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry Siva, but the BAPI_SALESORDER_SIMULATE doesn't have a table for condition entries but only a table for Condition output so where do you entry your header conditions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI_SALESORDER_CREATEFROMDAT2 in TESTRUN mode can simulate and has a table ORDER_CONDITIONS_IN where you can put itm_number to '000000' for header conditions. But I need to use BAPI_SALESORDER_SIMULATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pati, Do you have found your answer ?&lt;/P&gt;&lt;P&gt;And do you have succeed to entry several conditions on the same item ? If yes, how do you do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 16:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285791#M498099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T16:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Simulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285792#M498100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No... i didn't found the solution yet..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 05:25:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285792#M498100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T05:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Simulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285793#M498101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Here is a sample code to get the conditions in all its details. This one is for header conditions, but if you have them at item level, you need to do the same but give an item number instead of '000000' that I have in here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: comm_head_i LIKE komk,&lt;/P&gt;&lt;P&gt;      comm_head_e LIKE komk,&lt;/P&gt;&lt;P&gt;      i_skomv     LIKE komv OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_tkomv     LIKE komv OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_skomp     LIKE komp OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_skonh     LIKE konh OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_skonp     LIKE konp OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_skonm     LIKE konm OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_skonw     LIKE konw OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SD_SALES_PRICING_INFORMATION'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_POSNR          = '000000'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     i_read_doc       = 'X'&lt;/P&gt;&lt;P&gt;     i_vbeln          = p_vbeln&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     e_komk           = comm_head_i&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   E_KOMP           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FXKONV           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FTKOMV           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'PRICING_GET_CONDITIONS'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            comm_head_i     = comm_head_i&lt;/P&gt;&lt;P&gt;            read_conditions = 'X'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            comm_head_e     = comm_head_e&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            skomv           = i_skomv&lt;/P&gt;&lt;P&gt;            tkomv           = i_tkomv&lt;/P&gt;&lt;P&gt;            skomp           = i_skomp&lt;/P&gt;&lt;P&gt;            skonh           = i_skonh&lt;/P&gt;&lt;P&gt;            skonp           = i_skonp&lt;/P&gt;&lt;P&gt;            skonm           = i_skonm&lt;/P&gt;&lt;P&gt;            skonw           = i_skonw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 05:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285793#M498101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T05:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Order Simulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285794#M498102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We just want to simulate header &amp;amp; items pricing conditions with BAPI_SALESORDER_SIMULATE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 08:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-simulation/m-p/2285794#M498102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T08:02:54Z</dc:date>
    </item>
  </channel>
</rss>

