<?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 Function Module PRICING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506315#M1066049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must be aware of the function module &lt;STRONG&gt;PRICING&lt;/STRONG&gt; which simulates (sales order) and returns back TKOMV which contains all the pricing data - condition types and price values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine with a normal material. But when I am trying to call the same for a &lt;STRONG&gt;material which is configurable (variant configuration)&lt;/STRONG&gt; it does &lt;STRONG&gt;not&lt;/STRONG&gt; returns the variant price conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is found in debugging that it looses the value of &lt;STRONG&gt;KOMP-VARCOND&lt;/STRONG&gt; which is perhaps the reason that it does not considers variant conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;U&gt;requirement&lt;/U&gt; is to extract the prices of all possible combination of sold-to / ship-to and materials in different sales area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried &lt;STRONG&gt;BAPI_SALESORDER_SIMULATE&lt;/STRONG&gt; but it does the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be highly appreciated with points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aabhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2008 05:04:13 GMT</pubDate>
    <dc:creator>aabhas_wilmar</dc:creator>
    <dc:date>2008-09-24T05:04:13Z</dc:date>
    <item>
      <title>Function Module PRICING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506315#M1066049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must be aware of the function module &lt;STRONG&gt;PRICING&lt;/STRONG&gt; which simulates (sales order) and returns back TKOMV which contains all the pricing data - condition types and price values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine with a normal material. But when I am trying to call the same for a &lt;STRONG&gt;material which is configurable (variant configuration)&lt;/STRONG&gt; it does &lt;STRONG&gt;not&lt;/STRONG&gt; returns the variant price conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is found in debugging that it looses the value of &lt;STRONG&gt;KOMP-VARCOND&lt;/STRONG&gt; which is perhaps the reason that it does not considers variant conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;U&gt;requirement&lt;/U&gt; is to extract the prices of all possible combination of sold-to / ship-to and materials in different sales area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried &lt;STRONG&gt;BAPI_SALESORDER_SIMULATE&lt;/STRONG&gt; but it does the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be highly appreciated with points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aabhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 05:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506315#M1066049</guid>
      <dc:creator>aabhas_wilmar</dc:creator>
      <dc:date>2008-09-24T05:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module PRICING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506316#M1066050</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 use this FM  PRICING_BUILD_XKOMV. You can simulate the conditions too. But is necessary to pass right values. If you have a problem, try to use the debug in VA01. Put a break point in the FM Pricing and take a look the parameters. You can compare the both structures. If you forget a 'X' for example you will have difference in the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 02:41:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506316#M1066050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T02:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module PRICING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506317#M1066051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somehow, I was able to solve the issue yesterday night after a lot of debugging into VA01 and &lt;STRONG&gt;PRICING&lt;/STRONG&gt;. And the solution is that we just have to call '&lt;STRONG&gt;PRICING_LOAD_VARIANT_KEYS&lt;/STRONG&gt;' before we call PRICING for configurable material. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module populates the structure &lt;STRONG&gt;XVCKEY&lt;/STRONG&gt; but strange, even when the control returns back to the program the structure remains filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, it worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code that may be of help to others:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: l_vckey TYPE STANDARD TABLE OF vckey WITH HEADER LINE.

  l_vckey-kappl = 'V'.
  l_vckey-posnr = '000010'.
  l_vckey-varcond = 'area'.
  l_vckey-factor = 1.
  APPEND l_vckey.

  CALL FUNCTION 'PRICING_LOAD_VARIANT_KEYS'
    EXPORTING
      application = 'V'
      vbeln       = ''
      posnr       = '000010'
    TABLES
      tvckey      = l_vckey.


  CALL FUNCTION 'PRICING'
    EXPORTING
      calculation_type = 'C' 
      comm_head_i      = i_komk "Fill the header
      comm_item_i      = i_komp  "Fill the item (with a configurable material)
    TABLES
      tkomv            = i_tkomv.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;regards,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Aabhas K Vishnoi&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 03:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506317#M1066051</guid>
      <dc:creator>aabhas_wilmar</dc:creator>
      <dc:date>2008-09-26T03:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module PRICING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506318#M1066052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aabhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working this same problem in version 4.7.  Is it possible that you provide me with more detail?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used all your recommendations but it seems that populating the fields for comm_head_i and comm_item_i is very tricky. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will really appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis Leston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 19:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506318#M1066052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-02T19:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module PRICING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506319#M1066053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following information should help you as an example that you need to pass to the &lt;STRONG&gt;comm_head_i&lt;/STRONG&gt; and &lt;STRONG&gt;comm_item_i&lt;/STRONG&gt; parameters of FM &lt;STRONG&gt;PRICING&lt;/STRONG&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Header Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill the header with these values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;i_komk-vkorg	=	
  i_komk-vtweg	=	
  i_komk-spart	=	
  i_komk-vkbur	=	
  i_komk-konda	=	
  i_komk-kdgrp	=	
  i_komk-pltyp	=	
  i_komk-bukrs	=	
  i_komk-waerk	=	
  i_komk-kunnr	=	
  i_komk-kunwe	=	
  i_komk-kappl	=	'V'.
  i_komk-kalsm	=	
  i_komk-prsdt	=	
  i_komk-inco1	=	
  i_komk-kdkg1	=	
  i_komk-trtyp       =     'V'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Item Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill the header with these values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;i_komp-kposn	=	'000010'.
  i_komp-matnr	=	
  i_komp-werks	=	
  i_komp-kondm	=	"Not mandatory
  i_komp-prodh	=	"Not mandatory
  i_komp-mgame	=	
  i_komp-vrkme	=	"Not mandatory
  i_komp-prsfd	=	
  i_komp-evrwr	=	
  i_komp-varcond	=	"Not mandatory&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aabhas K Vishnoi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 00:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506319#M1066053</guid>
      <dc:creator>aabhas_wilmar</dc:creator>
      <dc:date>2008-10-03T00:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module PRICING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506320#M1066054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aabhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is not of more urgency to the company and I am caught by other stuff now.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have  tried putting this piece of coding you sent me inside the query in which I need it but somehow I don't get all the records with the conditions existing for every item in a particular sales order. I just got two records, one per each item of the order I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I appreciate your help and faster response compare to mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any other idea, I will really appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis Leston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 13:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506320#M1066054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T13:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module PRICING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506321#M1066055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Aabhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for me to pass PO number to the function module 'PRICING'.&lt;/P&gt;&lt;P&gt;If so, what set of fields do i need to pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 05:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506321#M1066055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-08T05:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module PRICING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506322#M1066056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing some problem in PRICING FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already sent a thread where i described my problem&lt;/P&gt;&lt;P&gt;Here I am using FM: 'PRICING' for Purchase order Invoice TAX Condition Pricing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And feed the entry in all required field as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first field is CALCULATION TYPE' = 'C'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header data &lt;/P&gt;&lt;P&gt;MANDT &lt;/P&gt;&lt;P&gt;BELNR = EBELN &lt;/P&gt;&lt;P&gt;KNUMV &lt;/P&gt;&lt;P&gt;BUKRS&lt;/P&gt;&lt;P&gt;HWAER = WAERS&lt;/P&gt;&lt;P&gt;LIFNR&lt;/P&gt;&lt;P&gt;ZTERM&lt;/P&gt;&lt;P&gt;KAPPL&lt;/P&gt;&lt;P&gt;KALSM&lt;/P&gt;&lt;P&gt;EKORG&lt;/P&gt;&lt;P&gt;MWSKZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;item data &lt;/P&gt;&lt;P&gt;KPOSN = POSNR&lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;WERKS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the data will not come&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pleaze tell me any other field is required or suggest me the FM from i can get Invoice Condition Prices&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jahnavee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 12:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506322#M1066056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T12:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module PRICING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506323#M1066057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having an issue with FM PRICING while using a Reference Material Number.&lt;/P&gt;&lt;P&gt;I am populating fields KOMP-MATNR with the main material number and KOMP-PMATN and KOMP-SATNR with the &lt;STRONG&gt;reference material number&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I get most conditions in KOMV but some discounts records are missing and field KOMP-NETPR is not accurate.&lt;/P&gt;&lt;P&gt;I tried calling the FM by setting parameter CALCULATION_TYPE to C, B and O but I am not able to obtain the net price of the reference material number.&lt;/P&gt;&lt;P&gt;I've looked in the VA01 process in debug mode but cannot figure out where is the problem.&lt;/P&gt;&lt;P&gt;I also try to use FM SALES_PRICE_READ but I get a message saying "No sales price available in mastr conditions". I am not convinced that this FM could work in my case. I would prefer to use the PRICING FM.&lt;/P&gt;&lt;P&gt;Does anyone has a clue or a coding example to share?&lt;/P&gt;&lt;P&gt;Thank you very much for the help.&lt;/P&gt;&lt;P&gt;Sylvain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 22:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-pricing/m-p/4506323#M1066057</guid>
      <dc:creator>racingpro</dc:creator>
      <dc:date>2015-10-01T22:57:50Z</dc:date>
    </item>
  </channel>
</rss>

