<?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 Problem in Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module/m-p/2138988#M450310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every one&lt;/P&gt;&lt;P&gt;i have strange problem in FM&lt;/P&gt;&lt;P&gt;when iam debugging the program iam getting the values in the output.&lt;/P&gt;&lt;P&gt;If i execute directly i am not getting the value. i am sending the code.&lt;/P&gt;&lt;P&gt;if i use WAIT UP TO 1 SECONDS i am getting the output.&lt;/P&gt;&lt;P&gt;but that is not the proper way as far as i know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to populate the internal table TKOMV.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Please send the solution, it's very urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'RV_PRICE_PRINT_REFRESH'&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        tkomv = tkomv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    KOMK-MANDT = SY-MANDT.&lt;/P&gt;&lt;P&gt;    KOMK-KALSM = ORDER_HEADER_OUT-KALSM.&lt;/P&gt;&lt;P&gt;    KOMK-KAPPL = V_KAPPL.&lt;/P&gt;&lt;P&gt;    KOMK-WAERK = ORDER_HEADER_OUT-WAERK.&lt;/P&gt;&lt;P&gt;    KOMK-KNUMV = ORDER_HEADER_OUT-KNUMV.&lt;/P&gt;&lt;P&gt;    KOMK-KNUMA = ORDER_HEADER_OUT-KNUMA.&lt;/P&gt;&lt;P&gt;    KOMK-VBTYP = ORDER_HEADER_OUT-VBTYP.&lt;/P&gt;&lt;P&gt;    KOMK-VKORG = ORDER_HEADER_OUT-VKORG.&lt;/P&gt;&lt;P&gt;    KOMK-VTWEG = ORDER_HEADER_OUT-VTWEG.&lt;/P&gt;&lt;P&gt;    KOMK-SPART = ORDER_HEADER_OUT-SPART.&lt;/P&gt;&lt;P&gt;    KOMK-BUKRS = ORDER_HEADER_OUT-BUKRS_VF.&lt;/P&gt;&lt;P&gt;    KOMK-PRSDT = ORDER_HEADER_OUT-ERDAT.&lt;/P&gt;&lt;P&gt;    KOMK-KURST = ORDER_HEADER_OUT-KURST.&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 = KOMK&lt;/P&gt;&lt;P&gt;            COMM_ITEM_I = KOMP&lt;/P&gt;&lt;P&gt;            LANGUAGE    = 'E'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            COMM_HEAD_E = KOMK&lt;/P&gt;&lt;P&gt;            COMM_ITEM_E = KOMP&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            TKOMV       = TKOMV&lt;/P&gt;&lt;P&gt;            TKOMVD      = TKOMVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2007 14:50:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-02T14:50:27Z</dc:date>
    <item>
      <title>Problem in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module/m-p/2138988#M450310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every one&lt;/P&gt;&lt;P&gt;i have strange problem in FM&lt;/P&gt;&lt;P&gt;when iam debugging the program iam getting the values in the output.&lt;/P&gt;&lt;P&gt;If i execute directly i am not getting the value. i am sending the code.&lt;/P&gt;&lt;P&gt;if i use WAIT UP TO 1 SECONDS i am getting the output.&lt;/P&gt;&lt;P&gt;but that is not the proper way as far as i know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to populate the internal table TKOMV.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Please send the solution, it's very urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'RV_PRICE_PRINT_REFRESH'&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        tkomv = tkomv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    KOMK-MANDT = SY-MANDT.&lt;/P&gt;&lt;P&gt;    KOMK-KALSM = ORDER_HEADER_OUT-KALSM.&lt;/P&gt;&lt;P&gt;    KOMK-KAPPL = V_KAPPL.&lt;/P&gt;&lt;P&gt;    KOMK-WAERK = ORDER_HEADER_OUT-WAERK.&lt;/P&gt;&lt;P&gt;    KOMK-KNUMV = ORDER_HEADER_OUT-KNUMV.&lt;/P&gt;&lt;P&gt;    KOMK-KNUMA = ORDER_HEADER_OUT-KNUMA.&lt;/P&gt;&lt;P&gt;    KOMK-VBTYP = ORDER_HEADER_OUT-VBTYP.&lt;/P&gt;&lt;P&gt;    KOMK-VKORG = ORDER_HEADER_OUT-VKORG.&lt;/P&gt;&lt;P&gt;    KOMK-VTWEG = ORDER_HEADER_OUT-VTWEG.&lt;/P&gt;&lt;P&gt;    KOMK-SPART = ORDER_HEADER_OUT-SPART.&lt;/P&gt;&lt;P&gt;    KOMK-BUKRS = ORDER_HEADER_OUT-BUKRS_VF.&lt;/P&gt;&lt;P&gt;    KOMK-PRSDT = ORDER_HEADER_OUT-ERDAT.&lt;/P&gt;&lt;P&gt;    KOMK-KURST = ORDER_HEADER_OUT-KURST.&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 = KOMK&lt;/P&gt;&lt;P&gt;            COMM_ITEM_I = KOMP&lt;/P&gt;&lt;P&gt;            LANGUAGE    = 'E'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            COMM_HEAD_E = KOMK&lt;/P&gt;&lt;P&gt;            COMM_ITEM_E = KOMP&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            TKOMV       = TKOMV&lt;/P&gt;&lt;P&gt;            TKOMVD      = TKOMVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 14:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module/m-p/2138988#M450310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T14:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module/m-p/2138989#M450311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function module may be using select .. endselect in between..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;A select ... endselect statement gives dump when u debug it!! because of the COMMIT statement issued in between ...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 14:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module/m-p/2138989#M450311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T14:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module/m-p/2138990#M450312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that many of these function execute the actual update in background. You can check the database if it is already updated or otherwise find yourself a BAPI that performs the same task as your functions, but that work synchronously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 15:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module/m-p/2138990#M450312</guid>
      <dc:creator>johndeconinck</dc:creator>
      <dc:date>2007-04-02T15:06:56Z</dc:date>
    </item>
  </channel>
</rss>

