<?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: BADI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325104#M166687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BADI is just an object-oriented version of user-exit. Instead of entering program code into some function module (as in customer-exit), you define some class which has to implement predefined methods and those methods are fired at predefined points just like an old user-exit. Some BADI can have multiple independent implementations which is much better for software deployment as several developers can implement the same BADI independently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Difference between BADI and User Exits &lt;/P&gt;&lt;P&gt;Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software. &lt;/P&gt;&lt;P&gt;As with customer exits two different views are available: &lt;/P&gt;&lt;P&gt;In the definition view, an application programmer predefines exit points in a source that allow specific industry sectors, partners, and customers to attach additional software to standard SAP source code without having to modify the original object. &lt;/P&gt;&lt;P&gt;In the implementation view, the users of Business Add-Ins can customize the logic they need or use a standard logic if one is available. &lt;/P&gt;&lt;P&gt;In contrast to customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP and customer solutions), but instead allow for a multi-level system landscape (SAP, partner, and customer solutions, as well as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure. &lt;/P&gt;&lt;P&gt;SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR. &lt;/P&gt;&lt;P&gt;The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and enhancements that can be used actively by any number of customers at the same time. In addition, Business Add-Ins can be defined according to filter values. This allows you to control add-in implementation and make it dependent on specific criteria (on a specific Country value, for example). &lt;/P&gt;&lt;P&gt;All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique are defined in a manner that allows customers to include their own enhancements in the standard. A single Business Add-In contains all of the interfaces necessary to implement a specific task. &lt;/P&gt;&lt;P&gt;The actual program code is enhanced using ABAP Objects. In order to better understand the programming techniques behind the Business Add-In enhancement concept, SAP recommends reading the section on ABAP Objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="151608"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 May 2006 07:38:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-26T07:38:04Z</dc:date>
    <item>
      <title>BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325103#M166686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the difference between BADI and user exit,how to chosec badi or user exit.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 07:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325103#M166686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T07:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325104#M166687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BADI is just an object-oriented version of user-exit. Instead of entering program code into some function module (as in customer-exit), you define some class which has to implement predefined methods and those methods are fired at predefined points just like an old user-exit. Some BADI can have multiple independent implementations which is much better for software deployment as several developers can implement the same BADI independently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Difference between BADI and User Exits &lt;/P&gt;&lt;P&gt;Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software. &lt;/P&gt;&lt;P&gt;As with customer exits two different views are available: &lt;/P&gt;&lt;P&gt;In the definition view, an application programmer predefines exit points in a source that allow specific industry sectors, partners, and customers to attach additional software to standard SAP source code without having to modify the original object. &lt;/P&gt;&lt;P&gt;In the implementation view, the users of Business Add-Ins can customize the logic they need or use a standard logic if one is available. &lt;/P&gt;&lt;P&gt;In contrast to customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP and customer solutions), but instead allow for a multi-level system landscape (SAP, partner, and customer solutions, as well as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure. &lt;/P&gt;&lt;P&gt;SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR. &lt;/P&gt;&lt;P&gt;The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and enhancements that can be used actively by any number of customers at the same time. In addition, Business Add-Ins can be defined according to filter values. This allows you to control add-in implementation and make it dependent on specific criteria (on a specific Country value, for example). &lt;/P&gt;&lt;P&gt;All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique are defined in a manner that allows customers to include their own enhancements in the standard. A single Business Add-In contains all of the interfaces necessary to implement a specific task. &lt;/P&gt;&lt;P&gt;The actual program code is enhanced using ABAP Objects. In order to better understand the programming techniques behind the Business Add-In enhancement concept, SAP recommends reading the section on ABAP Objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="151608"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 07:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325104#M166687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T07:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325105#M166688</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;check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sudheer.a&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 07:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325105#M166688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T07:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325106#M166689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BADI and USER-EXITS functionality point of view they do same. &lt;/P&gt;&lt;P&gt;BADI is Latest one which in interms of Interface and Methods (Object Oriented Approach).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user-exits are like function modules generally, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 07:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325106#M166689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T07:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325107#M166690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BADIs (Business Add-Ins) are the new way in which SAP allows you to enter additional logic into an application, and is based on OO ABAP. (Methods in Interfaces) &lt;/P&gt;&lt;P&gt;Transactions SE18/SE19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User-Exit is a specific place in a transaction-process where SAP offers third parties to include there own business functionality. Actually User-Exit is the namespace used for Exits programmed by SAP specifically&lt;/P&gt;&lt;P&gt;for SD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the other modules it's called Customer-Exit.=20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can also create a customer exit.&lt;/P&gt;&lt;P&gt;Customer Exits are the older method (which is still supported), whereby you create an include that is in a function module, which is called when the customer exit is activated. &lt;/P&gt;&lt;P&gt;Transactions CMOD/SMOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 08:52:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325107#M166690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T08:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325108#M166691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Suresh,&lt;/P&gt;&lt;P&gt;  Here is the difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Difference Between BADI and User Exits&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As with customer exits two different views are available: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the definition view, an application programmer predefines exit points in a source that allow specific industry sectors, partners, and customers to attach additional software to standard SAP source code without having to modify the original object.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the implementation view, the users of Business Add-Ins can customize the logic they need or use a standard logic if one is available. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast to customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP and customer solutions), but instead allow for a multi-level system landscape (SAP, partner, and customer solutions, as well as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and enhancements that can be used actively by any number of customers at the same time. In addition, Business Add-Ins can be defined according to filter values. This allows you to control add-in implementation and make it dependent on specific criteria (on a specific Country value, for example). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique are defined in a manner that allows customers to include their own enhancements in the standard. A single Business Add-In contains all of the interfaces necessary to implement a specific task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual program code is enhanced using ABAP Objects. In order to better understand the programming techniques behind the Business Add-In enhancement concept, SAP recommends reading the section on ABAP Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these Links too&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=172792" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=172792&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 08:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325108#M166691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T08:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325109#M166692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BADI is reusable and use OOPs concepts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2006 07:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325109#M166692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-29T07:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325110#M166693</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;badis are based on OOPs concept ...and functionality altogether the same...&lt;/P&gt;&lt;P&gt;use this program to find enhancement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; Report  ZPJA_PM002 (V2)                                            &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;                                                                    &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; Text Elements:                                                     &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; P_DEVC Show user-exits from development class                      &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; P_LIMIT Limit submit program selection                             &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; P_FUNC Show function modules                                       &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; P_SUBM Show submit programs                                        &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; S01    Selection data (TCode takes precedence  over program name)  &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;report  zpja_pm002&lt;/P&gt;&lt;P&gt;  no standard page heading&lt;/P&gt;&lt;P&gt;  line-size 158.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*tables: enlfdir.     "Additional Attributes for Function Modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: tabix      like sy-tabix,&lt;/P&gt;&lt;P&gt;      w_linnum   type i,&lt;/P&gt;&lt;P&gt;      w_off      type i,&lt;/P&gt;&lt;P&gt;      w_index    like sy-tabix,&lt;/P&gt;&lt;P&gt;      w_include  like trdir-name,&lt;/P&gt;&lt;P&gt;      w_prog     like trdir-name,&lt;/P&gt;&lt;P&gt;      w_incl     like trdir-name,&lt;/P&gt;&lt;P&gt;      w_area     like rs38l-area,&lt;/P&gt;&lt;P&gt;      w_level,&lt;/P&gt;&lt;P&gt;      w_str(50)  type c,&lt;/P&gt;&lt;P&gt;      w_funcname like tfdir-funcname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: c_fmod(40) type c value 'Function modules selected: ',&lt;/P&gt;&lt;P&gt;           c_subm(40) type c value 'Submit programs selected: ',&lt;/P&gt;&lt;P&gt;           c_col1(12) type c value 'Enhanmt Type',&lt;/P&gt;&lt;P&gt;           c_col2(40) type c value 'Enhancement',&lt;/P&gt;&lt;P&gt;           c_col3(30) type c value 'Program/Include',&lt;/P&gt;&lt;P&gt;           c_col4(20) type c value 'Enhancement Name',&lt;/P&gt;&lt;P&gt;           c_col5(40) type c value 'Enhancement Description'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Work Areas: ABAP Workbench&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of wa_d010inc.&lt;/P&gt;&lt;P&gt;data: master type d010inc-master.&lt;/P&gt;&lt;P&gt;data: end of wa_d010inc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa_tfdir.&lt;/P&gt;&lt;P&gt;data: funcname type tfdir-funcname,&lt;/P&gt;&lt;P&gt;      pname    type tfdir-pname,&lt;/P&gt;&lt;P&gt;      include  type tfdir-include.&lt;/P&gt;&lt;P&gt;data: end of wa_tfdir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa_tadir.&lt;/P&gt;&lt;P&gt;data: devclass type tadir-devclass.&lt;/P&gt;&lt;P&gt;data: end of wa_tadir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa_tstc.&lt;/P&gt;&lt;P&gt;data: pgmna type tstc-pgmna.&lt;/P&gt;&lt;P&gt;data: end of wa_tstc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa_tstcp.&lt;/P&gt;&lt;P&gt;data: param type tstcp-param.&lt;/P&gt;&lt;P&gt;data: end of wa_tstcp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa_enlfdir.&lt;/P&gt;&lt;P&gt;data: area type enlfdir-area.&lt;/P&gt;&lt;P&gt;data: end of wa_enlfdir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Work Areas: BADIs&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of wa_sxs_attr.&lt;/P&gt;&lt;P&gt;data: exit_name type sxs_attr-exit_name.&lt;/P&gt;&lt;P&gt;data: end of wa_sxs_attr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa_sxs_attrt.&lt;/P&gt;&lt;P&gt;data: text type sxs_attrt-text.&lt;/P&gt;&lt;P&gt;data: end of wa_sxs_attrt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Work Areas: Enhancements&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of wa_modsap.&lt;/P&gt;&lt;P&gt;data: member type modsap-member.&lt;/P&gt;&lt;P&gt;data: end of wa_modsap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa_modsapa.&lt;/P&gt;&lt;P&gt;data: name type modsapa-name.&lt;/P&gt;&lt;P&gt;data: end of wa_modsapa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa_modsapt.&lt;/P&gt;&lt;P&gt;data: modtext type modsapt-modtext.&lt;/P&gt;&lt;P&gt;data: end of wa_modsapt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Work Areas: Business Transaction Events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of wa_tbe01t.&lt;/P&gt;&lt;P&gt;data: text1 type tbe01t-text1.&lt;/P&gt;&lt;P&gt;data: end of wa_tbe01t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa_tps01t.&lt;/P&gt;&lt;P&gt;data: text1 type tps01t-text1.&lt;/P&gt;&lt;P&gt;data: end of wa_tps01t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;user-exits&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;types: begin of t_userexit,&lt;/P&gt;&lt;P&gt;      type(12) type c,&lt;/P&gt;&lt;P&gt;      pname    like trdir-name,&lt;/P&gt;&lt;P&gt;      txt(300),&lt;/P&gt;&lt;P&gt;      level    type c,&lt;/P&gt;&lt;P&gt;      modname(30) type c,&lt;/P&gt;&lt;P&gt;      modtext(40) type c,&lt;/P&gt;&lt;P&gt;end of t_userexit.&lt;/P&gt;&lt;P&gt;data: i_userexit type standard table of t_userexit with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Function module developmnet classes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;types: begin of t_devclass,&lt;/P&gt;&lt;P&gt;      clas   like trdir-clas,&lt;/P&gt;&lt;P&gt;end of t_devclass.&lt;/P&gt;&lt;P&gt;data: i_devclass type standard table of t_devclass with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Submit programs&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;types: begin of t_submit,&lt;/P&gt;&lt;P&gt;      pname     like trdir-name,&lt;/P&gt;&lt;P&gt;      level,&lt;/P&gt;&lt;P&gt;      done,&lt;/P&gt;&lt;P&gt;end of t_submit.&lt;/P&gt;&lt;P&gt;data: i_submit type standard table of t_submit with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Source code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;types: begin of t_sourcetab,                        "#EC * (SLIN lügt!)&lt;/P&gt;&lt;P&gt;        line(200),                                  "#EC * (SLIN lügt!)&lt;/P&gt;&lt;P&gt;      end of t_sourcetab.                           "#EC * (SLIN lügt!)&lt;/P&gt;&lt;P&gt;data: sourcetab type standard table of t_sourcetab with header line.&lt;/P&gt;&lt;P&gt;data c_overflow(30000) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Description of an ABAP/4 source analysis token&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: i_stoken type standard table of stokex with header line.&lt;/P&gt;&lt;P&gt;data wa_stoken like i_stoken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Description of an ABAP/4 source analysis statement&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: i_sstmnt type standard table of sstmnt with header line."#EC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;keywords for searching ABAP code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;types: begin of t_keywords,&lt;/P&gt;&lt;P&gt;      word(30),&lt;/P&gt;&lt;P&gt;end of t_keywords.&lt;/P&gt;&lt;P&gt;data: keywords type standard table of t_keywords with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;function modules within program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;types: begin of t_fmodule,&lt;/P&gt;&lt;P&gt;      name   like rs38l-name,&lt;/P&gt;&lt;P&gt;      pname  like trdir-name,&lt;/P&gt;&lt;P&gt;      pname2 like trdir-name,&lt;/P&gt;&lt;P&gt;      level,&lt;/P&gt;&lt;P&gt;      bapi,&lt;/P&gt;&lt;P&gt;      done,&lt;/P&gt;&lt;P&gt;end of t_fmodule.&lt;/P&gt;&lt;P&gt;data: i_fmodule type standard table of t_fmodule with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; Selection Options                                                  &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;selection-screen begin of block selscr1 with frame title text-s01.&lt;/P&gt;&lt;P&gt;parameter: p_pname like trdir-name memory id rid,&lt;/P&gt;&lt;P&gt;           p_tcode like syst-tcode,&lt;/P&gt;&lt;P&gt;           p_limit(4) type n default 100,&lt;/P&gt;&lt;P&gt;           p_devc  like rihea-dy_ofn default ' ',&lt;/P&gt;&lt;P&gt;           p_func  like rihea-dy_ofn default ' ',&lt;/P&gt;&lt;P&gt;           p_subm  like rihea-dy_ofn default ' '.&lt;/P&gt;&lt;P&gt;selection-screen end of block selscr1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; START-OF-SELECTION                                                 &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_pname is initial and p_tcode is initial.&lt;/P&gt;&lt;P&gt;    message e008(hrfpm).  "Make entry on the selection screen&lt;/P&gt;&lt;P&gt;    stop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ensure P_LIMIT is not zero.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_limit = 0.&lt;/P&gt;&lt;P&gt;    p_limit = 1.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform data_select.&lt;/P&gt;&lt;P&gt;  perform get_submit_data.&lt;/P&gt;&lt;P&gt;  perform get_fm_data.&lt;/P&gt;&lt;P&gt;  perform get_additional_data.&lt;/P&gt;&lt;P&gt;  perform data_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; Form DATA_SELECT                                                   &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;                                                                    &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;form data_select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data selection message to sap gui&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;    destination 'SAPGUI'&lt;/P&gt;&lt;P&gt;    keeping logical unit of work&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      text                  = 'Get programs/includes'       "#EC NOTEXT&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      system_failure&lt;/P&gt;&lt;P&gt;      communication_failure&lt;/P&gt;&lt;P&gt;    .                                                       "#EC *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;determine search words&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  keywords-word = 'CALL'.&lt;/P&gt;&lt;P&gt;  append keywords.&lt;/P&gt;&lt;P&gt;  keywords-word = 'FORM'.&lt;/P&gt;&lt;P&gt;  append keywords.&lt;/P&gt;&lt;P&gt;  keywords-word = 'PERFORM'.&lt;/P&gt;&lt;P&gt;  append keywords.&lt;/P&gt;&lt;P&gt;  keywords-word = 'SUBMIT'.&lt;/P&gt;&lt;P&gt;  append keywords.&lt;/P&gt;&lt;P&gt;  keywords-word = 'INCLUDE'.&lt;/P&gt;&lt;P&gt;  append keywords.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not p_tcode is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get program name from TCode&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    select single pgmna from tstc into wa_tstc-pgmna&lt;/P&gt;&lt;P&gt;                 where tcode eq p_tcode.&lt;/P&gt;&lt;P&gt;    if not wa_tstc-pgmna is initial.&lt;/P&gt;&lt;P&gt;      p_pname = wa_tstc-pgmna.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TCode does not include program name, but does have refereve TCode&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      select single param from tstcp into wa_tstcp-param&lt;/P&gt;&lt;P&gt;                   where tcode eq p_tcode.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        check wa_tstcp-param(1)   = '/'.&lt;/P&gt;&lt;P&gt;        check wa_tstcp-param+1(1) = '*'.&lt;/P&gt;&lt;P&gt;        if wa_tstcp-param ca ' '.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        w_off = sy-fdpos + 1.&lt;/P&gt;&lt;P&gt;        subtract 2 from sy-fdpos.&lt;/P&gt;&lt;P&gt;        if sy-fdpos gt 0.&lt;/P&gt;&lt;P&gt;          p_tcode = wa_tstcp-param+2(sy-fdpos).&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        select single pgmna from tstc into wa_tstc-pgmna&lt;/P&gt;&lt;P&gt;               where tcode eq p_tcode.&lt;/P&gt;&lt;P&gt;        p_pname = wa_tstc-pgmna.&lt;/P&gt;&lt;P&gt;        if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;          message e110(/saptrx/asc) with 'No program found for: '&lt;/P&gt;&lt;P&gt;p_tcode."#EC NOTEXT&lt;/P&gt;&lt;P&gt;          stop.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        message e110(/saptrx/asc) with 'No program found for: ' p_tcode.&lt;/P&gt;&lt;P&gt;"#EC NOTEXT&lt;/P&gt;&lt;P&gt;        stop.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call customer-function aus Program coding&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  read report p_pname into sourcetab.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e017(enhancement) with p_pname raising no_program."#EC *&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  scan abap-source sourcetab tokens     into i_stoken&lt;/P&gt;&lt;P&gt;                             statements into i_sstmnt&lt;/P&gt;&lt;P&gt;                             keywords   from keywords&lt;/P&gt;&lt;P&gt;                             overflow into c_overflow&lt;/P&gt;&lt;P&gt;                             with includes.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             WITH ANALYSIS.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if sy-subrc &amp;gt; 0. "keine/syntakt. falsche Ablauflog./Fehler im Skanner&lt;/P&gt;&lt;P&gt;    message e130(enhancement) raising syntax_error.         "#EC *&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check I_STOKEN for entries&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear w_linnum.&lt;/P&gt;&lt;P&gt;  describe table i_stoken lines w_linnum.&lt;/P&gt;&lt;P&gt;  if w_linnum gt 0.&lt;/P&gt;&lt;P&gt;    w_level = '0'.&lt;/P&gt;&lt;P&gt;    w_prog = ''.&lt;/P&gt;&lt;P&gt;    w_incl = ''.&lt;/P&gt;&lt;P&gt;    perform data_search tables i_stoken using w_level w_prog w_incl.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                        "DATA_SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; Form GET_FM_DATA                                                   &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;                                                                    &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;form get_fm_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data selection message to sap gui&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;    destination 'SAPGUI'&lt;/P&gt;&lt;P&gt;    keeping logical unit of work&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      text                  = 'Get function module data'    "#EC NOTEXT&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      system_failure&lt;/P&gt;&lt;P&gt;      communication_failure&lt;/P&gt;&lt;P&gt;    .                                                       "#EC *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Function module data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  sort i_fmodule by name.&lt;/P&gt;&lt;P&gt;  delete adjacent duplicates from i_fmodule comparing name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_fmodule where done  ne 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear:   i_stoken, i_sstmnt, sourcetab, wa_tfdir, w_include .&lt;/P&gt;&lt;P&gt;    refresh: i_stoken, i_sstmnt, sourcetab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear wa_tfdir.&lt;/P&gt;&lt;P&gt;    select single funcname pname include from tfdir into wa_tfdir&lt;/P&gt;&lt;P&gt;                            where funcname = i_fmodule-name.&lt;/P&gt;&lt;P&gt;    check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'FUNCTION_INCLUDE_SPLIT'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        program = wa_tfdir-pname&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        group   = w_area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    concatenate 'L' w_area 'U' wa_tfdir-include into w_include.&lt;/P&gt;&lt;P&gt;    i_fmodule-pname  = w_include.&lt;/P&gt;&lt;P&gt;    i_fmodule-pname2 = wa_tfdir-pname.&lt;/P&gt;&lt;P&gt;    modify i_fmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read report i_fmodule-pname into sourcetab.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      scan abap-source sourcetab tokens     into i_stoken&lt;/P&gt;&lt;P&gt;                                 statements into i_sstmnt&lt;/P&gt;&lt;P&gt;                                 keywords   from keywords&lt;/P&gt;&lt;P&gt;                                 with includes.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;gt; 0.&lt;/P&gt;&lt;P&gt;        message e130(enhancement) raising syntax_error.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check i_stoken for entries&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      clear w_linnum.&lt;/P&gt;&lt;P&gt;      describe table i_stoken lines w_linnum.&lt;/P&gt;&lt;P&gt;      if w_linnum gt 0.&lt;/P&gt;&lt;P&gt;        w_level = '1'.&lt;/P&gt;&lt;P&gt;        w_prog  = i_fmodule-pname2.&lt;/P&gt;&lt;P&gt;        w_incl =  i_fmodule-pname.&lt;/P&gt;&lt;P&gt;        perform data_search tables i_stoken using w_level w_prog w_incl.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_devc = 'X'.&lt;/P&gt;&lt;P&gt;    loop at i_fmodule.&lt;/P&gt;&lt;P&gt;      clear: wa_tadir, wa_enlfdir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select single area from enlfdir into wa_enlfdir-area&lt;/P&gt;&lt;P&gt;                            where funcname = i_fmodule-name.&lt;/P&gt;&lt;P&gt;      check not wa_enlfdir-area is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select single devclass into wa_tadir-devclass&lt;/P&gt;&lt;P&gt;                      from tadir where pgmid    = 'R3TR'&lt;/P&gt;&lt;P&gt;                                   and object   = 'FUGR'&lt;/P&gt;&lt;P&gt;                                   and obj_name = wa_enlfdir-area.&lt;/P&gt;&lt;P&gt;      check not wa_tadir-devclass is initial.&lt;/P&gt;&lt;P&gt;      move wa_tadir-devclass to i_devclass-clas.&lt;/P&gt;&lt;P&gt;      append i_devclass.&lt;/P&gt;&lt;P&gt;      i_fmodule-done = 'X'.&lt;/P&gt;&lt;P&gt;      modify i_fmodule.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    sort i_devclass.&lt;/P&gt;&lt;P&gt;    delete adjacent duplicates from i_devclass.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                        "GET_FM_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; Form GET_SUBMIT_DATA                                               &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;                                                                    &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;form get_submit_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data selection message to sap gui&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;    destination 'SAPGUI'&lt;/P&gt;&lt;P&gt;    keeping logical unit of work&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      text                  = 'Get submit data'             "#EC NOTEXT&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      system_failure&lt;/P&gt;&lt;P&gt;      communication_failure&lt;/P&gt;&lt;P&gt;    .                                                       "#EC *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sort i_submit.&lt;/P&gt;&lt;P&gt;  delete adjacent duplicates from i_submit comparing pname.&lt;/P&gt;&lt;P&gt;  w_level = '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_submit where done ne 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear:   i_stoken, i_sstmnt, sourcetab.&lt;/P&gt;&lt;P&gt;    refresh: i_stoken, i_sstmnt, sourcetab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read report i_submit-pname into sourcetab.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      scan abap-source sourcetab tokens     into i_stoken&lt;/P&gt;&lt;P&gt;                                 statements into i_sstmnt&lt;/P&gt;&lt;P&gt;                                 keywords   from keywords&lt;/P&gt;&lt;P&gt;                                 with includes.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       message e130(enhancement) raising syntax_error.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        continue.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check i_stoken for entries&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      clear w_linnum.&lt;/P&gt;&lt;P&gt;      describe table i_stoken lines w_linnum.&lt;/P&gt;&lt;P&gt;      if w_linnum gt 0.&lt;/P&gt;&lt;P&gt;        w_prog  = i_submit-pname.&lt;/P&gt;&lt;P&gt;        w_incl = ''.&lt;/P&gt;&lt;P&gt;        perform data_search tables i_stoken using w_level w_prog w_incl.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;restrict number of submit program selected for processing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    describe table i_submit lines w_linnum.&lt;/P&gt;&lt;P&gt;    if w_linnum ge p_limit.&lt;/P&gt;&lt;P&gt;      w_level = '1'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    i_submit-done = 'X'.&lt;/P&gt;&lt;P&gt;    modify i_submit.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                       "GET_SUBMIT_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; Form DATA_SEARCH                                                   &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;                                                                    &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;form data_search tables p_stoken structure stoken&lt;/P&gt;&lt;P&gt;                        using p_level p_prog p_incl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at p_stoken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear i_userexit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    tabix = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;    i_userexit-level = p_level.&lt;/P&gt;&lt;P&gt;    if i_userexit-level = '0'.&lt;/P&gt;&lt;P&gt;      if p_incl is initial.&lt;/P&gt;&lt;P&gt;        i_userexit-pname = p_pname.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        concatenate  p_pname '/' p_incl into i_userexit-pname.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      if p_incl is initial.&lt;/P&gt;&lt;P&gt;        i_userexit-pname = p_prog.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        concatenate  p_prog '/' p_incl into i_userexit-pname.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Include&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if p_stoken-str eq 'INCLUDE'.&lt;/P&gt;&lt;P&gt;      check p_level eq '0'.    " do not perform for function modules&lt;/P&gt;&lt;P&gt;*(2nd pass)&lt;/P&gt;&lt;P&gt;      w_index = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;      read table p_stoken index w_index into wa_stoken.&lt;/P&gt;&lt;P&gt;      check not wa_stoken-str cs 'STRUCTURE'.&lt;/P&gt;&lt;P&gt;      check not wa_stoken-str cs 'SYMBOL'.&lt;/P&gt;&lt;P&gt;      read table i_submit with key pname = wa_stoken-str.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        i_submit-pname = wa_stoken-str.&lt;/P&gt;&lt;P&gt;        i_submit-level = p_level.&lt;/P&gt;&lt;P&gt;        append i_submit.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Enhancements&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if p_stoken-str eq 'CUSTOMER-FUNCTION'.&lt;/P&gt;&lt;P&gt;      clear w_funcname.&lt;/P&gt;&lt;P&gt;      read table p_stoken index tabix.&lt;/P&gt;&lt;P&gt;      translate p_stoken-str using ''' '.&lt;/P&gt;&lt;P&gt;      condense p_stoken-str.&lt;/P&gt;&lt;P&gt;      if p_prog is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'EXIT' p_pname p_stoken-str into w_funcname&lt;/P&gt;&lt;P&gt;                     separated by '_'.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        concatenate 'EXIT' p_prog p_stoken-str into w_funcname&lt;/P&gt;&lt;P&gt;               separated by '_'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      select single member from modsap into wa_modsap-member&lt;/P&gt;&lt;P&gt;            where member = w_funcname.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.   " check for valid enhancement&lt;/P&gt;&lt;P&gt;        i_userexit-type = 'Enhancement'.&lt;/P&gt;&lt;P&gt;        i_userexit-txt  = w_funcname.&lt;/P&gt;&lt;P&gt;        append i_userexit.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        clear wa_d010inc.&lt;/P&gt;&lt;P&gt;        select single master into wa_d010inc-master&lt;/P&gt;&lt;P&gt;              from d010inc&lt;/P&gt;&lt;P&gt;                 where include = p_prog.&lt;/P&gt;&lt;P&gt;        concatenate 'EXIT' wa_d010inc-master p_stoken-str into&lt;/P&gt;&lt;P&gt;w_funcname&lt;/P&gt;&lt;P&gt;               separated by '_'.&lt;/P&gt;&lt;P&gt;        i_userexit-type = 'Enhancement'.&lt;/P&gt;&lt;P&gt;        i_userexit-txt  = w_funcname.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BADIs&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if p_stoken-str cs 'cl_exithandler='.&lt;/P&gt;&lt;P&gt;      w_index = sy-tabix + 4.&lt;/P&gt;&lt;P&gt;      read table p_stoken index w_index into wa_stoken.&lt;/P&gt;&lt;P&gt;      i_userexit-txt = wa_stoken-str.&lt;/P&gt;&lt;P&gt;      replace all occurrences of '''' in i_userexit-txt with space.&lt;/P&gt;&lt;P&gt;      i_userexit-type = 'BADI'.&lt;/P&gt;&lt;P&gt;      append i_userexit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Business transaction events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if p_stoken-str cs 'OPEN_FI_PERFORM'.&lt;/P&gt;&lt;P&gt;      i_userexit-type = 'BusTrEvent'.&lt;/P&gt;&lt;P&gt;      i_userexit-txt = p_stoken-str.&lt;/P&gt;&lt;P&gt;      replace all occurrences of '''' in i_userexit-txt with space.&lt;/P&gt;&lt;P&gt;      i_userexit-modname =  i_userexit-txt+16(8).&lt;/P&gt;&lt;P&gt;      case i_userexit-txt+25(1).&lt;/P&gt;&lt;P&gt;        when 'E'.&lt;/P&gt;&lt;P&gt;          clear wa_tbe01t.&lt;/P&gt;&lt;P&gt;          select single text1 into wa_tbe01t-text1 from tbe01t&lt;/P&gt;&lt;P&gt;                           where event = i_userexit-txt+16(8)&lt;/P&gt;&lt;P&gt;                             and spras = sy-langu.&lt;/P&gt;&lt;P&gt;          if wa_tbe01t-text1 is initial.&lt;/P&gt;&lt;P&gt;            i_userexit-modtext = ''.            "#EC NOTEXT&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            i_userexit-modtext = wa_tbe01t-text1.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;          i_userexit-modname+8 = '/P&amp;amp;S'.                    "#EC NOTEXT&lt;/P&gt;&lt;P&gt;        when 'P'.&lt;/P&gt;&lt;P&gt;          clear wa_tps01t.&lt;/P&gt;&lt;P&gt;          select single text1 into wa_tps01t-text1 from tps01t&lt;/P&gt;&lt;P&gt;                           where procs = i_userexit-txt+16(8)&lt;/P&gt;&lt;P&gt;                             and spras = sy-langu.&lt;/P&gt;&lt;P&gt;          i_userexit-modtext = wa_tps01t-text1.&lt;/P&gt;&lt;P&gt;          i_userexit-modname+8 = '/Process'.&lt;/P&gt;&lt;P&gt;      endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      append i_userexit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Program exits&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if p_stoken-str cs 'USEREXIT_'.&lt;/P&gt;&lt;P&gt;      i_userexit-type = 'Program Exit'.&lt;/P&gt;&lt;P&gt;      i_userexit-txt = p_stoken-str.&lt;/P&gt;&lt;P&gt;      replace all occurrences of '''' in i_userexit-txt with space.&lt;/P&gt;&lt;P&gt;      append i_userexit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Submit programs&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if p_stoken-str cs 'SUBMIT'.&lt;/P&gt;&lt;P&gt;      check p_level eq '0'.    " do not perform for function modules&lt;/P&gt;&lt;P&gt;*(2nd pass)&lt;/P&gt;&lt;P&gt;      check not p_stoken-str cs '_'.   " ensure not SUBMIT_XXX&lt;/P&gt;&lt;P&gt;      w_index = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;      read table p_stoken index w_index into wa_stoken.&lt;/P&gt;&lt;P&gt;      check not wa_stoken-str cs '_'.   " ensure not SUBMIT_XXX&lt;/P&gt;&lt;P&gt;      replace all occurrences of '''' in wa_stoken-str with space.&lt;/P&gt;&lt;P&gt;      read table i_submit with key pname = wa_stoken-str.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        i_submit-pname = wa_stoken-str.&lt;/P&gt;&lt;P&gt;        i_submit-level = p_level.&lt;/P&gt;&lt;P&gt;        append i_submit.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Perform routines (which reference external programs)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if p_stoken-str cs 'PERFORM'.&lt;/P&gt;&lt;P&gt;      check p_level eq '0'.    " do not perform for function modules&lt;/P&gt;&lt;P&gt;*(2nd pass)&lt;/P&gt;&lt;P&gt;      w_index = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;      read table p_stoken index w_index into wa_stoken.&lt;/P&gt;&lt;P&gt;      if not wa_stoken-ovfl is initial.&lt;/P&gt;&lt;P&gt;        w_off = wa_stoken-off1 + 10.&lt;/P&gt;&lt;P&gt;        w_str = c_overflow+w_off(30).&lt;/P&gt;&lt;P&gt;        find ')' in w_str match offset w_off.&lt;/P&gt;&lt;P&gt;        w_off = w_off + 1.&lt;/P&gt;&lt;P&gt;        wa_stoken-str = w_str(w_off).&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check wa_stoken-str cs '('.&lt;/P&gt;&lt;P&gt;      w_off = 0.&lt;/P&gt;&lt;P&gt;      while sy-subrc  = 0.&lt;/P&gt;&lt;P&gt;        if wa_stoken-str+w_off(1) eq '('.&lt;/P&gt;&lt;P&gt;          replace section offset w_off length 1 of wa_stoken-str with ''&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;          replace all occurrences of ')' in wa_stoken-str with space.&lt;/P&gt;&lt;P&gt;          read table i_submit with key pname = wa_stoken-str.&lt;/P&gt;&lt;P&gt;          if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;            i_submit-pname = wa_stoken-str.&lt;/P&gt;&lt;P&gt;            append i_submit.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;          exit.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          replace section offset w_off length 1 of wa_stoken-str with ''&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;          shift wa_stoken-str left deleting leading space.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endwhile.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Function modules&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if p_stoken-str cs 'FUNCTION'.&lt;/P&gt;&lt;P&gt;      clear i_fmodule.&lt;/P&gt;&lt;P&gt;      check p_level eq '0'.    " do not perform for function modules&lt;/P&gt;&lt;P&gt;*(2nd pass)&lt;/P&gt;&lt;P&gt;      w_index = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;      read table p_stoken index w_index into wa_stoken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;     if wa_stoken-str cs 'WF_'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     if wa_stoken-str cs 'IF_'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       break-point.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if wa_stoken-str cs 'BAPI'.&lt;/P&gt;&lt;P&gt;        i_fmodule-bapi = 'X'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      replace first occurrence of '''' in wa_stoken-str with space.&lt;/P&gt;&lt;P&gt;      replace first occurrence of '''' in wa_stoken-str with space.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 4.   " didn't find 2nd quote (ie name truncated)&lt;/P&gt;&lt;P&gt;        clear wa_tfdir.&lt;/P&gt;&lt;P&gt;        concatenate wa_stoken-str '%' into wa_stoken-str.&lt;/P&gt;&lt;P&gt;        select single funcname into wa_tfdir-funcname from tfdir&lt;/P&gt;&lt;P&gt;                     where funcname like wa_stoken-str.&lt;/P&gt;&lt;P&gt;        if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          i_fmodule-name = wa_tfdir-funcname.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          continue.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        i_fmodule-name = wa_stoken-str.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_fmodule-level = p_level.&lt;/P&gt;&lt;P&gt;      append i_fmodule.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                        "DATA_SEARCH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; Form GET_ADDITIONAL_DATA                                           &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;                                                                    &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;form get_additional_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data selection message to sap gui&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;    destination 'SAPGUI'&lt;/P&gt;&lt;P&gt;    keeping logical unit of work&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      text                  = 'Get additional data'         "#EC NOTEXT&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      system_failure&lt;/P&gt;&lt;P&gt;      communication_failure&lt;/P&gt;&lt;P&gt;    .                                                       "#EC *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_userexit.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Enhancement data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if  i_userexit-type cs 'Enh'.&lt;/P&gt;&lt;P&gt;      clear: wa_modsapa.&lt;/P&gt;&lt;P&gt;      select single name into wa_modsapa-name from modsap&lt;/P&gt;&lt;P&gt;                        where member = i_userexit-txt.&lt;/P&gt;&lt;P&gt;      check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      i_userexit-modname = wa_modsapa-name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear wa_modsapt.&lt;/P&gt;&lt;P&gt;      select single modtext into wa_modsapt-modtext from modsapt&lt;/P&gt;&lt;P&gt;                        where name = wa_modsapa-name&lt;/P&gt;&lt;P&gt;                                     and sprsl = sy-langu.&lt;/P&gt;&lt;P&gt;      i_userexit-modtext = wa_modsapt-modtext.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BADI data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if  i_userexit-type eq 'BADI'.&lt;/P&gt;&lt;P&gt;      clear wa_sxs_attr.&lt;/P&gt;&lt;P&gt;      select single exit_name into wa_sxs_attr-exit_name from sxs_attr&lt;/P&gt;&lt;P&gt;                                    where exit_name = i_userexit-txt.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        i_userexit-modname = i_userexit-txt.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        i_userexit-modname = 'Dynamic call'.                "#EC NOTEXT&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      clear wa_sxs_attrt.&lt;/P&gt;&lt;P&gt;      select single text into wa_sxs_attrt-text from sxs_attrt&lt;/P&gt;&lt;P&gt;                                     where exit_name =&lt;/P&gt;&lt;P&gt;wa_sxs_attr-exit_name&lt;/P&gt;&lt;P&gt;                                       and sprsl = sy-langu.&lt;/P&gt;&lt;P&gt;      i_userexit-modtext = wa_sxs_attrt-text.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    modify i_userexit.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get enhancements via program package&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear wa_tadir.&lt;/P&gt;&lt;P&gt;  select single devclass into wa_tadir-devclass from tadir&lt;/P&gt;&lt;P&gt;                             where pgmid    = 'R3TR'&lt;/P&gt;&lt;P&gt;                               and object   = 'PROG'&lt;/P&gt;&lt;P&gt;                               and obj_name = p_pname.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    clear: wa_modsapa, wa_modsapt.&lt;/P&gt;&lt;P&gt;    select name from modsapa into wa_modsapa-name&lt;/P&gt;&lt;P&gt;                          where devclass = wa_tadir-devclass.&lt;/P&gt;&lt;P&gt;      select single modtext from modsapt into wa_modsapt-modtext&lt;/P&gt;&lt;P&gt;                          where name = wa_modsapa-name&lt;/P&gt;&lt;P&gt;                            and sprsl = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      read table i_userexit with key modname = wa_modsapa-name.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        i_userexit-modtext = wa_modsapt-modtext.&lt;/P&gt;&lt;P&gt;        i_userexit-type = 'Enhancement'.                    "#EC NOTEXT&lt;/P&gt;&lt;P&gt;        i_userexit-modname  = wa_modsapa-name.&lt;/P&gt;&lt;P&gt;        i_userexit-txt = 'Determined from program DevClass'."#EC NOTEXT&lt;/P&gt;&lt;P&gt;        i_userexit-pname = 'Unknown'.                       "#EC NOTEXT&lt;/P&gt;&lt;P&gt;        append i_userexit.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                        "GET_ADDITIONAL_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp; Form DATA_DISPLAY                                                  &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;                                                                    &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;P&gt;form data_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data selection message to sap gui&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;    destination 'SAPGUI'&lt;/P&gt;&lt;P&gt;    keeping logical unit of work&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      text                  = 'Prepare screen for display'  "#EC NOTEXT&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      system_failure&lt;/P&gt;&lt;P&gt;      communication_failure&lt;/P&gt;&lt;P&gt;    .                                                       "#EC *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sort i_userexit by type txt modname.&lt;/P&gt;&lt;P&gt;  delete adjacent duplicates from i_userexit comparing txt modname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;format headings&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  write: 'Enhancements from main program'.                  "#EC NOTEXT&lt;/P&gt;&lt;P&gt;  write: /.&lt;/P&gt;&lt;P&gt;  uline.&lt;/P&gt;&lt;P&gt;  format color col_heading.&lt;/P&gt;&lt;P&gt;  write: /    sy-vline,&lt;/P&gt;&lt;P&gt;         (12) c_col1,                    "Enhanmt Type&lt;/P&gt;&lt;P&gt;              sy-vline,&lt;/P&gt;&lt;P&gt;         (40) c_col2,                    "Enhancement&lt;/P&gt;&lt;P&gt;              sy-vline,&lt;/P&gt;&lt;P&gt;         (30) c_col3,                    "Program/Include&lt;/P&gt;&lt;P&gt;              sy-vline,&lt;/P&gt;&lt;P&gt;         (20) c_col4,                    "Enhancement name&lt;/P&gt;&lt;P&gt;              sy-vline,&lt;/P&gt;&lt;P&gt;         (40) c_col5,                    "Enhancement description&lt;/P&gt;&lt;P&gt;              sy-vline.&lt;/P&gt;&lt;P&gt;  format reset.&lt;/P&gt;&lt;P&gt;  uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;format lines&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at i_userexit.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set line colour&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    case i_userexit-type.&lt;/P&gt;&lt;P&gt;      when 'Enhancement'.&lt;/P&gt;&lt;P&gt;        format color 3 intensified off.&lt;/P&gt;&lt;P&gt;      when 'BADI'.&lt;/P&gt;&lt;P&gt;        format color 4 intensified off.&lt;/P&gt;&lt;P&gt;      when 'BusTrEvent'.&lt;/P&gt;&lt;P&gt;        format color 5 intensified off.&lt;/P&gt;&lt;P&gt;      when 'Program Exit'.&lt;/P&gt;&lt;P&gt;        format color 6 intensified off.&lt;/P&gt;&lt;P&gt;      when others.&lt;/P&gt;&lt;P&gt;        format reset.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;    write: / sy-vline,&lt;/P&gt;&lt;P&gt;             i_userexit-type,&lt;/P&gt;&lt;P&gt;             sy-vline,&lt;/P&gt;&lt;P&gt;             i_userexit-txt(40),&lt;/P&gt;&lt;P&gt;             sy-vline,&lt;/P&gt;&lt;P&gt;             i_userexit-pname(30),&lt;/P&gt;&lt;P&gt;             sy-vline,&lt;/P&gt;&lt;P&gt;             i_userexit-modname(20),&lt;/P&gt;&lt;P&gt;             sy-vline,&lt;/P&gt;&lt;P&gt;             i_userexit-modtext(40),&lt;/P&gt;&lt;P&gt;             sy-vline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  format reset.&lt;/P&gt;&lt;P&gt;  uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;user-exits from development class of function modules&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_devc = 'X'.&lt;/P&gt;&lt;P&gt;    write: /.&lt;/P&gt;&lt;P&gt;    write: / 'User-exits from function module development class'."#EC&lt;/P&gt;&lt;P&gt;*NOTEXT&lt;/P&gt;&lt;P&gt;    write: 157''.&lt;/P&gt;&lt;P&gt;    uline (90).&lt;/P&gt;&lt;P&gt;    write: 157''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at i_devclass.&lt;/P&gt;&lt;P&gt;      clear wa_modsapa.&lt;/P&gt;&lt;P&gt;      select name from modsapa into wa_modsapa&lt;/P&gt;&lt;P&gt;                   where devclass = i_devclass-clas.&lt;/P&gt;&lt;P&gt;     select single name modtext into corresponding fields of wa_modsapt&lt;/P&gt;&lt;P&gt;                                   from modsapt&lt;/P&gt;&lt;P&gt;                                     where name  = wa_modsapa-name&lt;/P&gt;&lt;P&gt;                                       and sprsl = sy-langu.&lt;/P&gt;&lt;P&gt;        format color 3 intensified off.&lt;/P&gt;&lt;P&gt;        write: / sy-vline,&lt;/P&gt;&lt;P&gt;                 (12) 'Enhancement',&lt;/P&gt;&lt;P&gt;                 sy-vline,&lt;/P&gt;&lt;P&gt;                wa_modsapa-name,&lt;/P&gt;&lt;P&gt;                sy-vline,&lt;/P&gt;&lt;P&gt;                wa_modsapt-modtext,&lt;/P&gt;&lt;P&gt;                sy-vline.&lt;/P&gt;&lt;P&gt;      endselect.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;    uline (90).&lt;/P&gt;&lt;P&gt;    format reset.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  describe table i_fmodule lines w_linnum.&lt;/P&gt;&lt;P&gt;  write: / c_fmod , at 35 w_linnum.                         "#EC NOTEXT&lt;/P&gt;&lt;P&gt;  write: 157''.&lt;/P&gt;&lt;P&gt;  if p_func = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display fuction modules used in program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    uline (38).&lt;/P&gt;&lt;P&gt;    write: 157''.&lt;/P&gt;&lt;P&gt;    loop at i_fmodule.&lt;/P&gt;&lt;P&gt;      write: sy-vline,&lt;/P&gt;&lt;P&gt;             i_fmodule-name,&lt;/P&gt;&lt;P&gt;             sy-vline,&lt;/P&gt;&lt;P&gt;             i_fmodule-bapi,&lt;/P&gt;&lt;P&gt;             sy-vline.&lt;/P&gt;&lt;P&gt;      write: 157''.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;    uline (38).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  describe table i_submit lines w_linnum.&lt;/P&gt;&lt;P&gt;  write: / c_subm , at 35 w_linnum.                         "#EC NOTEXT&lt;/P&gt;&lt;P&gt;  write: 157''.&lt;/P&gt;&lt;P&gt;  if p_subm = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display submit programs used in program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    uline (44).&lt;/P&gt;&lt;P&gt;    write: 157''.&lt;/P&gt;&lt;P&gt;    loop at i_submit.&lt;/P&gt;&lt;P&gt;      write: sy-vline,&lt;/P&gt;&lt;P&gt;             i_submit-pname,&lt;/P&gt;&lt;P&gt;             sy-vline.&lt;/P&gt;&lt;P&gt;      write: 157''.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;    uline (44).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;issue message with number of user-exits displayed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  describe table i_userexit lines w_linnum.&lt;/P&gt;&lt;P&gt;  message s697(56) with w_linnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                        "DATA_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward points and close the thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gunjan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2006 07:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1325110#M166693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-29T07:34:37Z</dc:date>
    </item>
  </channel>
</rss>

