<?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: Please help with 'Pricing' function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791555#M340497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;can you give me sample code reg. what to pass?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Dec 2006 16:49:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-22T16:49:06Z</dc:date>
    <item>
      <title>Please help with 'Pricing' function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791553#M340495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am trying to use function module 'Pricing' but the table it_komv is still empty even after calling. I am basically trying to print some free of charge items on invoice sapscript and hence I am using 'Pricing' function in the print program. I am passing the below parameters. Please tell me whatelse I need to pass/not to pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_komk-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;      wa_komk-kalsm = vbdkr-kalsm.&lt;/P&gt;&lt;P&gt;      wa_komk-kappl = 'V'.&lt;/P&gt;&lt;P&gt;      wa_komk-waerk = vbdkr-waerk.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     wa_komk-knumv = vbdkr-knumv.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      wa_komk-knuma = vbdkr-knuma.&lt;/P&gt;&lt;P&gt;      wa_komk-vbtyp = vbdkr-vbtyp.&lt;/P&gt;&lt;P&gt;      wa_komk-land1 = vbdkr-land1.&lt;/P&gt;&lt;P&gt;      wa_komk-vkorg = vbdkr-vkorg.&lt;/P&gt;&lt;P&gt;      wa_komk-vtweg = vbdkr-vtweg.&lt;/P&gt;&lt;P&gt;      wa_komk-spart = vbdkr-spart.&lt;/P&gt;&lt;P&gt;      wa_komk-prsdt = vbdkr-erdat.&lt;/P&gt;&lt;P&gt;      wa_komk-kurst = vbdkr-kurst.&lt;/P&gt;&lt;P&gt;      wa_komk-kurrf = vbdkr-kurrf.&lt;/P&gt;&lt;P&gt;      wa_komk-kurrf_dat = vbdkr-kurrf_dat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      wa_komp-kposn = vbdpr-posnr.&lt;/P&gt;&lt;P&gt;      wa_komp-kursk = vbdpr-kursk.&lt;/P&gt;&lt;P&gt;      wa_komp-kursk_dat = vbdpr-kursk_dat.&lt;/P&gt;&lt;P&gt;      wa_komp-werks = vbdpr-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'PRICING'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        CALCULATION_TYPE        = 'A'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          comm_head_i             = wa_komk&lt;/P&gt;&lt;P&gt;          comm_item_i             = wa_komp&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        PRELIMINARY             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        NO_CALCULATION          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;         comm_head_e             = wa_komk&lt;/P&gt;&lt;P&gt;         comm_item_e             = wa_komp&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;          tkomv                   = it_komv&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        SVBAP                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        REBATE_DETERMINED       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 16:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791553#M340495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T16:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with 'Pricing' function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791554#M340496</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 using the Function module RV_PRICE_PRINT_ITEM to get the pricing information..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 16:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791554#M340496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T16:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with 'Pricing' function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791555#M340497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;can you give me sample code reg. what to pass?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 16:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791555#M340497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with 'Pricing' function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791556#M340498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly populate this fields bcoz&lt;/P&gt;&lt;P&gt;KOMK, KOMP structures  has many fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR KOMK.
KOMK-MANDT = SY-MANDT.
KOMK-KALSM = VBDKR-KALSM.
KOMK-FKART = VBDKR-FKART.
KOMK-KAPPL = 'V'.
IF VBDKR-KAPPL NE SPACE.
KOMK-KAPPL = VBDKR-KAPPL.
ENDIF.
KOMK-WAERK = VBDKR-WAERK.
KOMK-KNUMV = VBDKR-KNUMV.
KOMK-VBTYP = VBDKR-VBTYP.

KOMK-BUKRS = VBDKR-BUKRS.
KOMK-BELNR = VBDKR-VBELN.
KOMP-KPOSN = VBDPR-POSNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Then pass the fm 

CALL FUNCTION 'RV_PRICE_PRINT_ITEM'
EXPORTING
COMM_HEAD_I = KOMK
COMM_ITEM_I = KOMP
IMPORTING
COMM_HEAD_E = KOMK
COMM_ITEM_E = KOMP
TABLES
TKOMV = TKOMV
TKOMVD = TKOMVD.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 16:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791556#M340498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T16:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with 'Pricing' function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791557#M340499</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;Check this example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: vbdkr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: s_komk type KOMK.&lt;/P&gt;&lt;P&gt;data: s_komp type komp.&lt;/P&gt;&lt;P&gt;data: t_komv like KOMV occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: t_komvd like komvd occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Input&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;s_komk-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;s_komk-knumv = vbdkr-knumv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RV_PRICE_PRINT_ITEM'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    comm_head_i       = s_komk&lt;/P&gt;&lt;P&gt;    comm_item_i       = s_komp&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    tkomv             = t_komv&lt;/P&gt;&lt;P&gt;    tkomvd            = t_komvd&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the program RVADIN01 for a sample..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&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,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 16:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791557#M340499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T16:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with 'Pricing' function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791558#M340500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Krishen, did you ever get this to work?  I have the exact same issue and was having the same results with the Pricing function module.  Did you end up using the other function module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 21:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-pricing-function-module/m-p/1791558#M340500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T21:25:42Z</dc:date>
    </item>
  </channel>
</rss>

