<?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: Can i move a function source to a internal table? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849780#M1319434</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;You need to provide the include name of the FM in the Read Report statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA prog TYPE c LENGTH 30.
DATA itab TYPE TABLE OF string.

prog = 'LZPPUT_TIME_MANAGEMENTU01'.  " ---&amp;gt; FM Include from Function Group

READ REPORT prog INTO itab.
IF sy-subrc EQ 0.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2009 03:56:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-17T03:56:04Z</dc:date>
    <item>
      <title>Can i move a function source to a internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849778#M1319432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Experts..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get a internal table that has a function source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of report program, generelly we can get a internal table about report source as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ REPORT xxxxx  INTO itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i don't know how to get a internal table about function source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i get it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help me please. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;ytkim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 03:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849778#M1319432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T03:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can i move a function source to a internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849779#M1319433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp; Program To Download All The Programs Present In A Package (Dev. Class)
REPORT  z_download_to_desktop.
TABLES: tadir.
TYPES: abapline(255) TYPE c.TYPES: BEGIN OF ty_reposit,
         pgmid    TYPE tadir-pgmid,
         object   TYPE tadir-object,
         obj_name TYPE tadir-obj_name,
         devclass TYPE tadir-devclass,
      END OF ty_reposit.DATA: it_reposit TYPE STANDARD TABLE OF ty_reposit,
      wa_reposit TYPE ty_reposit.DATA: it_repsrc TYPE STANDARD TABLE OF abapline,
      wa_repsrc TYPE abapline.DATA: prog(60)    TYPE c,
      mc_filename TYPE rlgrap-filename,
      filename    TYPE string.
PARAMETERS: p_dev TYPE tadir-devclass.
SELECT pgmid
       object
       obj_name
       devclass
  FROM tadir
  INTO TABLE it_reposit
  WHERE pgmid    = 'R3TR' AND
        object   = 'PROG' AND
        devclass = p_dev.
IF sy-subrc NE 0.
  MESSAGE s001(00) WITH 'No programs available in the given package'.
  EXIT.
ENDIF.
LOOP AT it_reposit INTO wa_reposit.
  prog = wa_reposit-obj_name.
  READ REPORT prog INTO it_repsrc.
  CONCATENATE 'C:\Documents and Settings\Desktop\desktop files'
              prog
              '.txt'
         INTO mc_filename.  filename = mc_filename.
 CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename                = filename
    TABLES
      data_tab                = it_repsrc
      CLEAR prog.
  CLEAR wa_repsrc.ENDLOOP.

  MESSAGE s001(00) WITH 'Check your folder for the Programs downloaded'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 03:47:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849779#M1319433</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-06-17T03:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can i move a function source to a internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849780#M1319434</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;You need to provide the include name of the FM in the Read Report statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA prog TYPE c LENGTH 30.
DATA itab TYPE TABLE OF string.

prog = 'LZPPUT_TIME_MANAGEMENTU01'.  " ---&amp;gt; FM Include from Function Group

READ REPORT prog INTO itab.
IF sy-subrc EQ 0.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 03:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849780#M1319434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T03:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can i move a function source to a internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849781#M1319435</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;Give the FM include name in the while reading the program...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 04:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849781#M1319435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T04:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can i move a function source to a internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849782#M1319436</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 think we can give a include program name in the read statement of report itself it would solve the problem....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 06:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849782#M1319436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T06:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can i move a function source to a internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849783#M1319437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to your answers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i solved the problem myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I turned to a program that name is "FDT_CODE_SEARCH" in ecc 6.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the program has a 'perform' as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM scan_devc_fugr  USING u_devc u_index u_count u_cnt_line.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could solve the problem to analyze 'perform statement' in the above instance.&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, 17 Jun 2009 09:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-i-move-a-function-source-to-a-internal-table/m-p/5849783#M1319437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T09:22:53Z</dc:date>
    </item>
  </channel>
</rss>

