<?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: pricing simulation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-simulation/m-p/1614736#M275448</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 shouldnot populate BAPI tables like that.Because fieldnames in the table and fieldnames in the BAPI table are diffrent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You first need to get the data to internal table and move manually all corresponding fields and the append the BAPI table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have good BAPI_SALESORDER_SIMULATE documentation in SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ramakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Sep 2006 20:06:30 GMT</pubDate>
    <dc:creator>venkata_ramisetti</dc:creator>
    <dc:date>2006-09-14T20:06:30Z</dc:date>
    <item>
      <title>pricing simulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-simulation/m-p/1614733#M275445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a program for using bapi_salesorder_simulate.I have to take the input like customer no,material no,sales area details from user and populate the tables order_header_in,order_items_in,order_partners,order_schedule_in .apart from this i have to take some other data from vbak,vbap,vbpa and vbep.I dont understand how to fill in the internal tables for bapi.I have written code like this but donno how far this is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;parameters : kunnr like kna1-kunnr,&lt;/P&gt;&lt;P&gt;             matnr like vbap-matnr,&lt;/P&gt;&lt;P&gt;             vkorg like vbak-vkorg,&lt;/P&gt;&lt;P&gt;             vtweg like vbak-vtweg,&lt;/P&gt;&lt;P&gt;             spart like vbak-spart.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: order_header_in like bapisdhead occurs 0,&lt;/P&gt;&lt;P&gt;      order_items_in like bapiitemin occurs 0,&lt;/P&gt;&lt;P&gt;      order_schedule_in like bapischdl occurs 0,&lt;/P&gt;&lt;P&gt;      order_partners like bapipartnr occurs 0,&lt;/P&gt;&lt;P&gt;      order_condition_ex like bapicond occurs 0,&lt;/P&gt;&lt;P&gt;      wa like bapicond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select auart vkorg vtweg spart erdat from vbak into corresponding fields&lt;/P&gt;&lt;P&gt; of table order_header_in .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select posnr matnr zmeng from vbap into corresponding fields of table&lt;/P&gt;&lt;P&gt;order_items_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select parvw kunnr posnr from vbpa into corresponding fields of table&lt;/P&gt;&lt;P&gt;order_partners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select wmeng posnr from vbep into corresponding fields of table&lt;/P&gt;&lt;P&gt;order_schedule_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2006 19:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-simulation/m-p/1614733#M275445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-14T19:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: pricing simulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-simulation/m-p/1614734#M275446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I think your select statements didnt achieve your requirement.&lt;/P&gt;&lt;P&gt;2) INTO CORRESPONDING will work for some fields which have same field names in both structures.&lt;/P&gt;&lt;P&gt;3) Eg; BAPISDHEAD and VBAK are different to use INTO CORRESPONDING option.&lt;/P&gt;&lt;P&gt;4) First populate internal table for VBAK and LOOP this intetnal table and assign the respective fields to BAPISDHEAD with MOVE statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2006 19:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-simulation/m-p/1614734#M275446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-14T19:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: pricing simulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-simulation/m-p/1614735#M275447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vinay did u use that bapi before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2006 20:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-simulation/m-p/1614735#M275447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-14T20:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: pricing simulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-simulation/m-p/1614736#M275448</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 shouldnot populate BAPI tables like that.Because fieldnames in the table and fieldnames in the BAPI table are diffrent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You first need to get the data to internal table and move manually all corresponding fields and the append the BAPI table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have good BAPI_SALESORDER_SIMULATE documentation in SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ramakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2006 20:06:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-simulation/m-p/1614736#M275448</guid>
      <dc:creator>venkata_ramisetti</dc:creator>
      <dc:date>2006-09-14T20:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: pricing simulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-simulation/m-p/1614737#M275449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Kindly refer to the details that i have given in your&lt;/P&gt;&lt;P&gt;other post. BAPI: BAPI_SALESORDER_SIMULATE is used to&lt;/P&gt;&lt;P&gt;simulate and see how the order is going to be when itz &lt;/P&gt;&lt;P&gt;created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Just pass according to the details give there. You &lt;/P&gt;&lt;P&gt;need not extract the details from VBAK, VBAP &amp;amp; VBEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   You can simulate doing this by creating a variant in&lt;/P&gt;&lt;P&gt;SE37 for this BAPI with various combinations and check &lt;/P&gt;&lt;P&gt;the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2006 03:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-simulation/m-p/1614737#M275449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-15T03:09:05Z</dc:date>
    </item>
  </channel>
</rss>

