<?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: Function Module does not fetch value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616556#M276119</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 have given you the other alternative bcoz there is a limitation while calling this FM: RV_PRICE_PRINT_HEAD.&lt;/P&gt;&lt;P&gt;If you see the comments and code of Include: LV61AA11, you can understand the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* mechanism to controll which conditions are already part of table TKOMV&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Every time a pricing result is read from database the key is put into&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABGL. Also TABGL is updated if we've lines in TKOMV assigned to a&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;special key but entry in TABGL (case 2).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Originally TABGL was established to handle following pathological&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;case: condition successfully read from DB -&amp;gt; entry in TABGL. Then all&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read conditions where deleted during processing (e.g. manually&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;deletion etc.). If we run into this routine again no records should&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;be redetermined from DB...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  read table tabgl with table key knumv = komk-knumv&lt;/P&gt;&lt;P&gt;       transporting no fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Case 1:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;conditions have been already read because there is a fitting entry in&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABGL. Exit immediately if caller doesn't want to force DB access.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;  if sy-subrc eq 0. ---&amp;gt;&amp;lt;b&amp;gt; First time SY-SUBRC NE 0 so no problem&amp;lt;/b&amp;gt;    
     if generell_lesen ne 'X'. &amp;lt;b&amp;gt;--&amp;gt; Later runs SY-SUBRC  eq 0 and generell_lesen value is SPACE&amp;lt;/b&amp;gt;.
        exit.
    endif.
  else.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this clarifies your doubt now.&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>Tue, 03 Oct 2006 09:02:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-03T09:02:04Z</dc:date>
    <item>
      <title>Function Module does not fetch value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616552#M276115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the fm RV_PRICE_PRINT_HEAD to fetch condition records. When I run this fm in SE37 for a particular document(vbeln) number, the values are fetched correctly into the internal tables TKOMV and TKOMVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same fm does not fetch values when I run for second time for the same document(vbeln). This means :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I will go to SE37, type RV_PRICE_PRINT_HEAD, supply the export parameters in COMM_HEAD_I, execute it and obtain the condition records (Till this time absolutely fine)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Now, press Back (F3), Let the export parameters in "COMM_HEAD_I" will remain same. Just press Execute (F8). Then condition values are not fetched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could any body help in this regard...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Thimmappa Hegde&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 08:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616552#M276115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T08:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module does not fetch value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616553#M276116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thimmappa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try saving the values in test data directory and for the next test, access it from test data directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Preema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 08:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616553#M276116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T08:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module does not fetch value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616554#M276117</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;  Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Use FM: RV_KONV_SELECT for retreiving condition details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Pass 'X' for GENERAL_READ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Here if you pass space it will work first time and wont work for the later immediate executions, whereas if you pass 'X' it will work for later executions too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please check the same.&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>Tue, 03 Oct 2006 08:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616554#M276117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T08:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module does not fetch value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616555#M276118</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;To be more specific,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to take out only the values of internal table "tkomvd" to obtain all header conditions for a document. That is why in I am using the fm "RV_PRICE_PRINT_HEAD" in my report program. This fm will fetch correct values when I run the report for first time. Where as the same fm does not fetch values when I run the same report with the same selection screen values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I run the report again by typing the transaction SE38 and same selection screen values, the function module fetch the values in the internal table tkomvd. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Thimmappa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 08:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616555#M276118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T08:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module does not fetch value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616556#M276119</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 have given you the other alternative bcoz there is a limitation while calling this FM: RV_PRICE_PRINT_HEAD.&lt;/P&gt;&lt;P&gt;If you see the comments and code of Include: LV61AA11, you can understand the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* mechanism to controll which conditions are already part of table TKOMV&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Every time a pricing result is read from database the key is put into&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABGL. Also TABGL is updated if we've lines in TKOMV assigned to a&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;special key but entry in TABGL (case 2).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Originally TABGL was established to handle following pathological&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;case: condition successfully read from DB -&amp;gt; entry in TABGL. Then all&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read conditions where deleted during processing (e.g. manually&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;deletion etc.). If we run into this routine again no records should&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;be redetermined from DB...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  read table tabgl with table key knumv = komk-knumv&lt;/P&gt;&lt;P&gt;       transporting no fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Case 1:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;conditions have been already read because there is a fitting entry in&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABGL. Exit immediately if caller doesn't want to force DB access.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;  if sy-subrc eq 0. ---&amp;gt;&amp;lt;b&amp;gt; First time SY-SUBRC NE 0 so no problem&amp;lt;/b&amp;gt;    
     if generell_lesen ne 'X'. &amp;lt;b&amp;gt;--&amp;gt; Later runs SY-SUBRC  eq 0 and generell_lesen value is SPACE&amp;lt;/b&amp;gt;.
        exit.
    endif.
  else.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this clarifies your doubt now.&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>Tue, 03 Oct 2006 09:02:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616556#M276119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T09:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module does not fetch value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616557#M276120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this function module to initialize the price print buffer before calling RV_PRICE_PRINT_HEAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RV_PRICE_PRINT_GET_BUFFER'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            i_print_from_buffer = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 16:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616557#M276120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T16:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module does not fetch value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616558#M276121</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 had the same issue. The problem, as said before more or less, is that once you read the records from BBDD you can't read them from again on the same session. You just gotta read them from buffer instead using this FM:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RV_PRICE_PRINT_HEAD_BUFFER&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though Volker's way works using SE37 to execute the FM's, I couln't make it work on an Abap program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this could be marked as "Answered".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: John Smith on Feb 14, 2011 5:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 16:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-does-not-fetch-value/m-p/1616558#M276121</guid>
      <dc:creator>marcelogb</dc:creator>
      <dc:date>2011-02-14T16:00:19Z</dc:date>
    </item>
  </channel>
</rss>

