<?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: LOC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651325#M879432</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 don't think that there exist a function module that gives you the exact number of line of ABAP report of Function Module.&lt;/P&gt;&lt;P&gt;But you can do the following to have the info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line for a ABAP program&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;        line(255) TYPE c,&lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ipgm OCCURS 0,&lt;/P&gt;&lt;P&gt;         pgm TYPE tadir-obj_name,&lt;/P&gt;&lt;P&gt;       END OF ipgm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : i_tfdir type standard table of tfdir with header line initial size 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT obj_name FROM tadir INTO TABLE ipgm&lt;/P&gt;&lt;P&gt;   WHERE pgmid = 'R3TR' AND object = 'PROG' AND obj_name ='ABAP_name'.&lt;/P&gt;&lt;P&gt;   READ REPORT ipgm-pgm INTO itab.&lt;/P&gt;&lt;P&gt;   DESCRIBE TABLE itab LINES l_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line for a Function module&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  SELECT *  FROM tfdir INTO TABLE i_tfdir WHERE funcname = 'function_name'.&lt;/P&gt;&lt;P&gt;  LOOP AT i_tfdir.&lt;/P&gt;&lt;P&gt;    CLEAR l_lines.&lt;/P&gt;&lt;P&gt;    CONCATENATE i_tfdir-pname 'U'  i_tfdir-include into ipgm-pgm.&lt;/P&gt;&lt;P&gt;    ipgm-pgm = ipgm-pgm+3.&lt;/P&gt;&lt;P&gt;    READ REPORT ipgm-pgm INTO itab.&lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE itab LINES l_lines.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help&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: Jürgen Degraeve on Apr 8, 2008 7:52 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jürgen Degraeve on Apr 8, 2008 7:53 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jürgen Degraeve on Apr 8, 2008 7:55 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 05:52:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T05:52:04Z</dc:date>
    <item>
      <title>LOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651324#M879431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any table to show the exact no. of lines of code in a program or a function module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 04:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651324#M879431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T04:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: LOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651325#M879432</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 don't think that there exist a function module that gives you the exact number of line of ABAP report of Function Module.&lt;/P&gt;&lt;P&gt;But you can do the following to have the info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line for a ABAP program&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;        line(255) TYPE c,&lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ipgm OCCURS 0,&lt;/P&gt;&lt;P&gt;         pgm TYPE tadir-obj_name,&lt;/P&gt;&lt;P&gt;       END OF ipgm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : i_tfdir type standard table of tfdir with header line initial size 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT obj_name FROM tadir INTO TABLE ipgm&lt;/P&gt;&lt;P&gt;   WHERE pgmid = 'R3TR' AND object = 'PROG' AND obj_name ='ABAP_name'.&lt;/P&gt;&lt;P&gt;   READ REPORT ipgm-pgm INTO itab.&lt;/P&gt;&lt;P&gt;   DESCRIBE TABLE itab LINES l_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line for a Function module&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  SELECT *  FROM tfdir INTO TABLE i_tfdir WHERE funcname = 'function_name'.&lt;/P&gt;&lt;P&gt;  LOOP AT i_tfdir.&lt;/P&gt;&lt;P&gt;    CLEAR l_lines.&lt;/P&gt;&lt;P&gt;    CONCATENATE i_tfdir-pname 'U'  i_tfdir-include into ipgm-pgm.&lt;/P&gt;&lt;P&gt;    ipgm-pgm = ipgm-pgm+3.&lt;/P&gt;&lt;P&gt;    READ REPORT ipgm-pgm INTO itab.&lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE itab LINES l_lines.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help&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: Jürgen Degraeve on Apr 8, 2008 7:52 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jürgen Degraeve on Apr 8, 2008 7:53 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jürgen Degraeve on Apr 8, 2008 7:55 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 05:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651325#M879432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T05:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: LOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651326#M879433</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;This Function module 'RPY_PROGRAM_READ' output will be an internal table with the &lt;/P&gt;&lt;P&gt;specified program name's code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i EXPORT 'ZTEST' as the program name,&lt;/P&gt;&lt;P&gt;The function module gives me the codes of the 'ZTEST' in the internal table IT_CODE[] in TABLES of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'RPY_PROGRAM_READ'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;         language                  = sy-langu&lt;/P&gt;&lt;P&gt;          program_name              = 'ZTEST'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WITH_INCLUDELIST          = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ONLY_SOURCE               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ONLY_TEXTS                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_LATEST_VERSION       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WITH_LOWERCASE            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROG_INF                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INCLUDE_TAB               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SOURCE                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         source_extended           = it_code[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TEXTELEMENTS              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         cancelled                 = 1&lt;/P&gt;&lt;P&gt;         not_found                 = 2&lt;/P&gt;&lt;P&gt;         permission_error          = 3&lt;/P&gt;&lt;P&gt;         OTHERS                    = 4&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;                                     or use,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ REPORT prog INTO itab [MAXIMUM WIDTH INTO wid] &lt;/P&gt;&lt;P&gt;                           [STATE state]. &lt;/P&gt;&lt;P&gt;to get the code of a program into your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 06:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651326#M879433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T06:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: LOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651327#M879434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jürgen Degraeve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;sharin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 06:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651327#M879434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T06:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: LOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651328#M879435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, glad I could help you out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 06:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651328#M879435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T06:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: LOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651329#M879436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jagannathan krishnan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 06:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651329#M879436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T06:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: LOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651330#M879437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, If i knew any answer i would definitely help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 07:00:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loc/m-p/3651330#M879437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T07:00:17Z</dc:date>
    </item>
  </channel>
</rss>

