<?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: regarding Function Modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-modules/m-p/5077721#M1179384</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;Here is the code to fetch the details.&lt;/P&gt;&lt;P&gt;hope this helps !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


TABLES : ENLFDIR.


*---- SELECTION-SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1.
SELECT-OPTIONS:      s_area FOR ENLFDIR-area.
SELECTION-SCREEN END OF BLOCK b1.


types : begin of tp_data,
        AREA TYPE RS38L_AREA,
        FUNCNAME TYPE RS38L_FNAM,
        end of tp_data.

types : begin of tp_final,
        AREA TYPE RS38L_AREA,
        count type i,
        end of tp_final.

data : t_data type standard table of tp_data with header line,
       t_final type standard table of tp_final with header line.

data : l_cnt type i,
       l_area type rs38l_area.

select funcname
       area
       from ENLFDIR
       into corresponding fields of table t_data
       where area in s_area.
if sy-subrc eq 0.
sort t_data by area funcname .
endif .



Loop at t_data.
l_cnt = l_cnt + 1 .
l_area = t_data-area.
at end of area.
t_final-area = l_area.
t_final-count = l_cnt.
append t_final.
clear t_final.
clear  : l_cnt,
         l_area.
endat.
endloop.


sort t_final by area.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Jan 2009 07:12:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-31T07:12:14Z</dc:date>
    <item>
      <title>regarding Function Modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-modules/m-p/5077720#M1179383</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 want to fetch the function groups and function modules from enlfdir table, then i have to count the number of function modules for each function group and should display the number  in output in alv.&lt;/P&gt;&lt;P&gt;by using the describe statement i can able to get the number for one function group, if i use multiple selection of function groups in selection screen it is not giving the correct values(it is giving same values for all the function groups) can any one help me  how to write code for this.  &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;Alka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2009 06:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-modules/m-p/5077720#M1179383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-31T06:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: regarding Function Modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-modules/m-p/5077721#M1179384</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;Here is the code to fetch the details.&lt;/P&gt;&lt;P&gt;hope this helps !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


TABLES : ENLFDIR.


*---- SELECTION-SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1.
SELECT-OPTIONS:      s_area FOR ENLFDIR-area.
SELECTION-SCREEN END OF BLOCK b1.


types : begin of tp_data,
        AREA TYPE RS38L_AREA,
        FUNCNAME TYPE RS38L_FNAM,
        end of tp_data.

types : begin of tp_final,
        AREA TYPE RS38L_AREA,
        count type i,
        end of tp_final.

data : t_data type standard table of tp_data with header line,
       t_final type standard table of tp_final with header line.

data : l_cnt type i,
       l_area type rs38l_area.

select funcname
       area
       from ENLFDIR
       into corresponding fields of table t_data
       where area in s_area.
if sy-subrc eq 0.
sort t_data by area funcname .
endif .



Loop at t_data.
l_cnt = l_cnt + 1 .
l_area = t_data-area.
at end of area.
t_final-area = l_area.
t_final-count = l_cnt.
append t_final.
clear t_final.
clear  : l_cnt,
         l_area.
endat.
endloop.


sort t_final by area.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2009 07:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-modules/m-p/5077721#M1179384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-31T07:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: regarding Function Modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-modules/m-p/5077722#M1179385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope you ve resolved the problem . Please update .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2009 08:21:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-modules/m-p/5077722#M1179385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-31T08:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: regarding Function Modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-modules/m-p/5077723#M1179386</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 got the output.  Thanks a lot for your help.  i am giving you full points&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;Alka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 13:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-modules/m-p/5077723#M1179386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T13:20:19Z</dc:date>
    </item>
  </channel>
</rss>

