<?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: Using a snippet of a function module source code to own program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-snippet-of-a-function-module-source-code-to-own-program/m-p/8355411#M1640524</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've managed to use the call method but my problem now is to read all data at the same time. Again, can anyone help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 02:29:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-02T02:29:23Z</dc:date>
    <item>
      <title>Using a snippet of a function module source code to own program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-snippet-of-a-function-module-source-code-to-own-program/m-p/8355410#M1640523</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 need some help, currently I am using this FM COPF_OPC_ITEM_READ_MULTIPLE to read some data and that FM will give value and result. However, this FM can only use up to 15 items. I am trying to using it for more that 15 items, lets say about 100 to 1000 or more. In the source code of this FM I've found this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_opc_item=&amp;gt;read_value_multi&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      items            = l_item_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is fine because i can populate "itemalias" and "plant" in the itab. However, I'm not sure how to populate or read the value and resulttext as what the FM did. I've tried to copy the FM define read_text, but failed and apparently got some dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&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;Edited by: Qidran on Nov 1, 2011 7:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 03:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-snippet-of-a-function-module-source-code-to-own-program/m-p/8355410#M1640523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-01T03:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using a snippet of a function module source code to own program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-snippet-of-a-function-module-source-code-to-own-program/m-p/8355411#M1640524</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've managed to use the call method but my problem now is to read all data at the same time. Again, can anyone help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 02:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-snippet-of-a-function-module-source-code-to-own-program/m-p/8355411#M1640524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-02T02:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using a snippet of a function module source code to own program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-snippet-of-a-function-module-source-code-to-own-program/m-p/8355412#M1640525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qidran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure for a solution to your exact problem, but, can hint you to try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To copy a FM code or functionality, it is recommended you copy the entire Function Group. &lt;/P&gt;&lt;P&gt;2. All references to standard FM can remain with the changes in your Z code.&lt;/P&gt;&lt;P&gt;3. This will take care of the dumps and you should be able to execute your Z FM.&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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pranav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 07:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-snippet-of-a-function-module-source-code-to-own-program/m-p/8355412#M1640525</guid>
      <dc:creator>former_member222709</dc:creator>
      <dc:date>2011-11-02T07:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using a snippet of a function module source code to own program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-snippet-of-a-function-module-source-code-to-own-program/m-p/8355413#M1640526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, I've managed to using th FM functionality already, as you said I've copied the whole prog and for the looping part I've loop an itab before and after the CALL METHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 07:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-snippet-of-a-function-module-source-code-to-own-program/m-p/8355413#M1640526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-02T07:15:47Z</dc:date>
    </item>
  </channel>
</rss>

