<?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: SCREEN EXITS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420834#M821548</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;please refer to the following links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/what-is-user-exits.html" target="test_blank"&gt;http://www.sap-img.com/abap/what-is-user-exits.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/abap/difference-between-user-exits-screen-exits-field-exits.html" target="test_blank"&gt;http://www.sap-basis-abap.com/abap/difference-between-user-exits-screen-exits-field-exits.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sreelakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 08:59:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-20T08:59:05Z</dc:date>
    <item>
      <title>SCREEN EXITS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420829#M821543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to modify a standard screen for add somes objects, and someone tell me about the screen exits, but i don´t have any information about this. Can someone give me some information or url with information about the screen exits. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thankyou very much beforehand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420829#M821543</guid>
      <dc:creator>franciscojavier_carrillom</dc:creator>
      <dc:date>2008-02-20T08:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: SCREEN EXITS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420830#M821544</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;hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Pls reward if help.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to implement screen exit for a SAP standard transaction &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Introduction&lt;/P&gt;&lt;P&gt;SAP provides standard transactions to enter data into database. But a client may want to maintain some additional information in SAP other than what is provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make provisions for this, additional screens have to be provided and additional fields must be added into appropriate database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To pave way for this, SAP has provided the option for screen exits. Usually, SAP provides the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An append structure in the database table with the new fields. &lt;/P&gt;&lt;P&gt;A subscreen area into the standard screen &amp;#150; where the programmer can attach his subscreen of his own program with the new fields. &lt;/P&gt;&lt;P&gt;A function group under which the new subscreen has to be created with the new fields. &lt;/P&gt;&lt;P&gt;Function exits to synchronize the PBO and PAI of the standard SAP program with the PBO and PAI of the subscreen &amp;#150; so that data can flow back and forth between the standard SAP program and the program written by the developer for the subscreen. These function modules also exist in the same function group under which the subscreen will have to be developed. &lt;/P&gt;&lt;P&gt;Finally, a linkage has to be done between the subscreen area of standard SAP screen with the custom subscreen constructed by the developer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typically, SAP provides an enhancement in which the developer can create an append structure, use the function exits to synchronize the PBO and PAI of the standard SAP program and the custom subscreen program, and make the necessary linking( as mentioned above in step 4. But, again, this is not a hard and fast rule. Linking in some case, is also done by configurations.) SAP also usually provides the name of the function group under which the subscreen has to be developed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Necessary guidance about implementing a screen exit development is usually available in the Documentation section of the enhancement ( can be availed by transaction SMOD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pre-Requisites&lt;/P&gt;&lt;P&gt;The developer to work on screen exit should have essential knowledge on the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DDIC concepts, including the knowledge of append structure. &lt;/P&gt;&lt;P&gt;Concept of SAP Enhancements and implementing them using Projects. &lt;/P&gt;&lt;P&gt;Concept of function exits. &lt;/P&gt;&lt;P&gt;Knowledge on Module Pool &amp;#150; including subscreens, Tabstrip controls etc. &lt;/P&gt;&lt;P&gt;Steps&lt;/P&gt;&lt;P&gt;Guidelines&lt;/P&gt;&lt;P&gt;So, a developer can follow the guidelines mentioned below to implement a screen exit to a standard SAP transaction, as and when required:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find out the Required Enhancements&lt;/P&gt;&lt;P&gt;Go to SMOD. Press F4 in the Enhancement field. In the next popup window, click pushbutton &amp;#145;SAP Applications&amp;#146;. A list will appear that contains information on all the enhancements, categorized under functional areas. Developer must search for the enhancements relevant to his functional area of interest &amp;#150; for e.g., Purchasing, Asset Accounting, etc. &lt;/P&gt;&lt;P&gt;Note down the enhancements. Then, come to the initial screen of SMOD and view the documentation of each enhancement to find out which one is required for your development. &lt;/P&gt;&lt;P&gt;Utilize the Enhancement in a Project&lt;/P&gt;&lt;P&gt;After you have found one, do as directed in the documentation. Generally, the steps are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a project using CMOD including your enhancement. &lt;/P&gt;&lt;P&gt;Create the append structure with new fields. &lt;/P&gt;&lt;P&gt;Go to the desired function group and create a subscreen with the new fields. Write PBO and PAI for the subscreen, if required. &lt;/P&gt;&lt;P&gt;Use the function exits in the enhancement to link the PBO and PAI of the subscreen with that of the main SAP program supporting the SAP transaction. &lt;/P&gt;&lt;P&gt;Maintain necessary linkage between the subscreen area of standard SAP program with the custom subscreen developed along with the custom program name. This can be done in the project (developed by CMOD including the enhancement) or outside as a part of configuration. &lt;/P&gt;&lt;P&gt;Activate the project. &lt;/P&gt;&lt;P&gt;Test to ensure that required functionality are met. &lt;/P&gt;&lt;P&gt;Case Study 1&lt;/P&gt;&lt;P&gt;Add three new custom fields for Asset master and maintain information for them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement&lt;/P&gt;&lt;P&gt;Three fields in the legacy system have to be maintained in Asset master. These fields are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original Asset number &amp;#150; 20 characters &lt;/P&gt;&lt;P&gt;Location 2 &amp;#150; 15 Characters. &lt;/P&gt;&lt;P&gt;Model no &amp;#150; 20 characters &lt;/P&gt;&lt;P&gt;Location 2 should start with &amp;#145;L&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pre-Analysis&lt;/P&gt;&lt;P&gt;Finding out the Enhancement&lt;/P&gt;&lt;P&gt;As described above, the enhancement is determined. It was found, that enhancement AIST0002 will serve the purpose. It contains the following components (can be viewed by transaction SMOD):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit Type Description EXIT_SAPL1022_001 Function Exit Check of User-Defined Fields when Using Create and Change BAPI EXIT_SAPLAIST_002 Function Exit Transfer Data for User Subscreens in PBO. EXIT_SAPLAIST_003 Function Exit Transfer of User-Defined Fields to SAP Master Data Transactions CI_ANLU Customizing Include Include structure to add new fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Studying the Function Exits&lt;/P&gt;&lt;P&gt;The function module level documentation for the function exits are then viewed from transaction SE37. The documentation clearly laid out for the purpose for their use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT_SAPLAIST_002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module Level Documentation&lt;/P&gt;&lt;P&gt;This function module is called by asset master data maintenance at the start of the dialog. (When changing, it is called after reading of the data from the database; when creating it is called after the transfer of the default values from the asset class and reference asset.) The purpose of the function module is to enable this function group to recognize the master data. For interpreting or controlling master data fields that are important for user fields, it is possible to transfer to global variables at this point, so that they can be recognized when the user subscreens are processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import Parameters&lt;/P&gt;&lt;P&gt;Understanding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module is called at the PBO to pass the information retrieved from the database to pass them to the custom subscreen and its underlying program. Import parameter : I_ANLU will be populated with the values for user-defined fields which will be passed to the subscreen program. So, there must be some sort of variable assignment from I_ANLU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT_SAPLAIST_003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module Documentation: This function module is called by SAP asset master data maintenance after the screens are processed, but before saving. The purpose of the function module is to transfer fields entered on user sub-screens of SAP asset data maintenance to the database for updating. The export parameter for this function module is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Understanding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module will be used to transfer the user entered data in the subscreen fields to the main SAP program, which will then be saved into the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Studying the Documentation of the Enhancement&lt;/P&gt;&lt;P&gt;The enhancement documentation (as is viewed from the initial screen of SMOD] also supports the idea. Moreover, it informs that we need to develop a subscreen under function group XAIS. This is the function group under which the two function exit modules also exist. So, if the custom subscreen refers to the global data of the function group XAIS, then those values will also be available to these function exits as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going to SE80 and viewing the function group XAIS helps us to inform that there are three DDIC tables declared for it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deciding the Final course of Action&lt;/P&gt;&lt;P&gt;After making all the investigations, the final course of action was determined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SrlNo Step Justification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A project has to be created using transaction CMOD where the enhancement AIST0002 will be included. &lt;/P&gt;&lt;P&gt;Customizing include CI_ANLU has to be created with the custom fields demanded When CI_ANLU will be developed, the custom fields will get appended to the database table ANLU. Also, these fields will be used to create screen fields in the new subscreen. &lt;/P&gt;&lt;P&gt;A custom subscreen, say, 9000 will be developed under function group XAIS. The screen group for the screen will be &amp;#145;CUST&amp;#146; (or any name). The three custom fields added to table ANLU (by creating CI_ANLU) will be used to create new fields in the screen. &lt;/P&gt;&lt;P&gt;In the PAI of the subscreen, validation for Location to start with &amp;#145;L&amp;#146; will be added. The subscreen with three new fields has to be developed so that it can be attached to a subscreen area of the asset master screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the custom include of the function exit module &amp;#145;EXIT_SAPLAIST_002&amp;#146;, the following code will be written:- &lt;/P&gt;&lt;P&gt;ANLU = I_ANLU. I_ANLU is the import parameter of this FM. The value is assigned to the global variable ANLU, referring which the three new subscreen fields are developed. So, data retrieved from database table ANLU will be passed to this FM as I_ANLU by the standard SAP main program. The value will be taken and passed to the global variable of the function group XAIS, so that the three custom fields (referring to ANLU of XAIS) get populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the custom include of the function exit module &amp;#145;EXIT_SAPLAIST_003&amp;#146;, the following code will be written:- &lt;/P&gt;&lt;P&gt;E_ANLU = ANLU. The changed values in the subscreen fields exist in global variable ANLU for the function group XAIS. This function exit module will pass the data back to the SAP main program as E_ANLU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proper linkage/configuration has to be done so that the new subscreens get linked to the appropriate subscreen area of the Asset master screen. This has to be done &amp;#150; otherwise, the new custom subscreen will not be displayed in the Asset master screens. &lt;/P&gt;&lt;P&gt;Development&lt;/P&gt;&lt;P&gt;Creating a Project to include the enhancement&lt;/P&gt;&lt;P&gt;Go to transaction CMOD and create a project. &lt;/P&gt;&lt;P&gt;Enter a description for the project. Then, click on the pushbutton &amp;#145;Enhancement Assignments&amp;#146; in the Application Toolbar. &lt;/P&gt;&lt;P&gt;Enter the name of the enhancement and Save. &lt;/P&gt;&lt;P&gt;Go to &amp;#145;Components&amp;#146;. &lt;/P&gt;&lt;P&gt;Creating Custom Include for ANLU&lt;/P&gt;&lt;P&gt;The screen shown below will appear, showing all the enhancement components under the assignment AIST0002. Double-click on the name of the Include Structure to create it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the include structure with three new fields, as required. Then, save and activate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Develop the subscreen and the program&lt;/P&gt;&lt;P&gt;Go to transaction SE80. For the function group XAIS, create a new subscreen 9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create it as subscreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, go to the Layout of the screen and create three new fields from Database table ANLU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drag the fields in the screen body and place them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, save and activate the screen and come back to screen flow editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the PAI module to add validation for field &amp;#147;Location 2&amp;#148;, as required .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate the whole function group and come out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write code in the Function Exits to synchronize the programs&lt;/P&gt;&lt;P&gt;Now, code has to be written in the function modules EXIT_SAPLAIST_002 and EXIT_SAPLAIST_003 so that data flows to and fro between the main SAP program and custom subscreen program. For that, go back to transaction CMOD and change the function exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write code in the function module EXIT_SAPLAIST_002 called once at the beginning of the transaction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write code in EXIT_SAPLAIST_003 to pass the data from the subscreen to SAP main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, activate everything &amp;#150; the whole project and come out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Complete the configuration to link the subscreen&lt;/P&gt;&lt;P&gt;The development portion is complete. Now, linking of the subscreen has to be done with the subscreen area of the main program. In most of the cases, this linking can be done in the enhancement itself. But, here, requirement is a bit different. It is done by configuration using SPRO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assets are created under Asset class. And for each asset class, there is a layout assigned to it. For a layout, there are multiple tab pages assigned to it. And, for each tab page, there are multiple screen groups/field groups assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, the requirement is to create these three custom fields in the tab page &amp;#145;General&amp;#146; of asset master screen ( AS01/AS02/AS03/AS91).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Determine the Layout&lt;/P&gt;&lt;P&gt;To achieve this, first of all, we need to find out which layout is assigned to asset class 1000.For that, go to transaction AOLK( information has to be obtained from functional consultant).Select the Asset Class &amp;#145;1000&amp;#146; and click on folder &amp;#145;General Assignment of Layout&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, for Asset class 1000, for all the user groups, tab layout SAP is assigned. Since layout &amp;#145;SAP&amp;#146; cannot be changed, it has to be copied and manipulated to include our screen group. Later, the new layout has to be assigned over here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create new tab layout&lt;/P&gt;&lt;P&gt;Go to transaction AOLA. Copy the tab layout &amp;#145;SAP&amp;#146; to create another layout, say, YSUB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System will copy all the settings and will inform you about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select your newly created layout and double-click on the folder &amp;#145;Tab page titles&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to put your custom fields in the tab page &amp;#147;General&amp;#148;. So, select this tab page entry and double-click on the folder "Position of Groups".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, all the field groups currently residing in the tab-page &amp;#147;General&amp;#148; are shown. Add an entry for your newly created fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the group box from the list. An entry will come with &amp;#147;U&amp;#148; padded with the custom subscreen prepared by you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, save and come out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign the new Layout to Asset Class&lt;/P&gt;&lt;P&gt;Now, go to tcode AOLK and assign tab layout YSUB for asset class 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save and come out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test the Exit&lt;/P&gt;&lt;P&gt;Everything is over. Now, go to transaction code AS01/02/03 or AS91 to deal with an asset of asset class 1000. You will see your new fields added to the screen. Add values to them&amp;#133;save. Then, enter into the tcodes again to see whether the values entered by you are being displayed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original Source: ittoolbox.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420830#M821544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T08:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: SCREEN EXITS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420831#M821545</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;hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Reward if help.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen Exit is nothing but enhancing the screen like creating some more fields, subscreen and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Go to the screen&lt;DEL&gt;&amp;gt;System&lt;/DEL&gt;&amp;gt;Status--&amp;gt;Program (Double&lt;/P&gt;&lt;P&gt;click this program. It will take you to the program.&lt;/P&gt;&lt;P&gt;2. Now, Goto--&amp;gt;Object Directory Entry.&lt;/P&gt;&lt;P&gt;3. Make a note the package name.&lt;/P&gt;&lt;P&gt;4. Now run the transactions SMOD, press F4 and enter the&lt;/P&gt;&lt;P&gt;above noted package, press enter.&lt;/P&gt;&lt;P&gt;5. It will display list of Exits.&lt;/P&gt;&lt;P&gt;6. Now go back to the initial screen SMOD.&lt;/P&gt;&lt;P&gt;7. Specify the exit name here and select the radio button&lt;/P&gt;&lt;P&gt;Components.&lt;/P&gt;&lt;P&gt;8. It will display four group boxes one for FM, second&lt;/P&gt;&lt;P&gt;for Fcodes, thrid for Screen areas and last for&lt;/P&gt;&lt;P&gt;includes.&lt;/P&gt;&lt;P&gt;9. Goto transaction CMOD, create a new project, and&lt;/P&gt;&lt;P&gt;click the button "Enhancement assignments" and&lt;/P&gt;&lt;P&gt;specify your enhancements that you got in SMOD.&lt;/P&gt;&lt;P&gt;10. Now bouble clikc the enhancement, it will take you to editor with some includes starting with Z, double clikc the include you want to edit and proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you just go through these links also&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1255460"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction" target="test_blank"&gt;http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction&lt;/A&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="213897"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/advancedsearch?query=how%20to%20find%20screen%20exits&amp;amp;cat=sdn_all" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/advancedsearch?query=how%20to%20find%20screen%20exits&amp;amp;cat=sdn_all&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420831#M821545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T08:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: SCREEN EXITS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420832#M821546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets follow following step by step example for PO screen modification :&lt;/P&gt;&lt;P&gt;Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen&amp;#146;s flow logic.&lt;/P&gt;&lt;P&gt;the tcode is cmod...&lt;/P&gt;&lt;P&gt;1.From the main screen of the Project management transaction, proceed as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Enhancement components and choose Change. &lt;/P&gt;&lt;P&gt;2.Choose Edit component. &lt;/P&gt;&lt;P&gt;3.Choose the screen exit and double click on it &lt;/P&gt;&lt;P&gt;4.Create your subscreen using the Screen Painter. &lt;/P&gt;&lt;P&gt;5.Design your screen to be added to the standard screen and activate the particular screen and return back to the flow logic . &lt;/P&gt;&lt;P&gt;6.Choose the PAI and PBO to write down the logic.&lt;/P&gt;&lt;P&gt;7.Generate your screen and choose Back (the green arrow) to return to the Project management transaction.&lt;/P&gt;&lt;P&gt;8.Go to the transaction ME22 to view the customer defined screen exit.&lt;/P&gt;&lt;P&gt;9.Enter the purchase order number and press Enter.&lt;/P&gt;&lt;P&gt;10.Go to the menu header --&amp;gt; Details. &lt;/P&gt;&lt;P&gt;11.Purchase number is visible on the standard screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420832#M821546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T08:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: SCREEN EXITS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420833#M821547</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;&amp;amp;#9679;      Screen Exits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen exits add fields to screens in applications. SAP creates screen exits by placing special subscreen areas on a standard screen and calling a customer subscreen from the standard screen&amp;amp;#8217;s flow logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mahi&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420833#M821547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T08:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: SCREEN EXITS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420834#M821548</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;please refer to the following links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/what-is-user-exits.html" target="test_blank"&gt;http://www.sap-img.com/abap/what-is-user-exits.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/abap/difference-between-user-exits-screen-exits-field-exits.html" target="test_blank"&gt;http://www.sap-basis-abap.com/abap/difference-between-user-exits-screen-exits-field-exits.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sreelakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420834#M821548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T08:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: SCREEN EXITS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420835#M821549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://wiki.ittoolbox.com/index.php/Implement_a_screen_exit_to_a_standard_SAP_transaction" target="test_blank"&gt;http://wiki.ittoolbox.com/index.php/Implement_a_screen_exit_to_a_standard_SAP_transaction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/abap/how-to-find-a-screen-exit-in-a-given-sap-standard-t-code.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/abap/how-to-find-a-screen-exit-in-a-given-sap-standard-t-code.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420835#M821549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: SCREEN EXITS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420836#M821550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXITS are useful to add new functionality/ flds to standard SAP transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open any Tran.. like VA02&lt;/P&gt;&lt;P&gt;go to its pgm name by menu system-&amp;gt;status&lt;/P&gt;&lt;P&gt;dbl clk on Pgm name&lt;/P&gt;&lt;P&gt;Goto Attributes menu&lt;/P&gt;&lt;P&gt;Note the Pachkage name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto trn..SMod&lt;/P&gt;&lt;P&gt;press f4&lt;/P&gt;&lt;P&gt;specify package name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U wuill get the list exits available&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:01:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420836#M821550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: SCREEN EXITS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420837#M821551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Screen exits allow you to add your own fields to specified screens in standard R/3 transactions. To take advantage of customer-specific subscreens, you first need to create projects as described in the section Creating an add-on project. Then, you must include the SAP enhancement that contains the screen exit you want to use in your project. From the main screen of the Project management transaction, proceed as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Enhancement components and choose Change. &lt;/P&gt;&lt;P&gt;The system lists all customer exits contained in the enhancements included in your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place the cursor on the screen exit you want to create your own subscreen for. &lt;/P&gt;&lt;P&gt;Choose Edit component. &lt;/P&gt;&lt;P&gt;The system prompts you to enter a development class for your subscreen. Use the development class that contains all of the objects created for this specific enhancement project. The system then transfers you to the Screen Painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create your subscreen using the Screen Painter. &lt;/P&gt;&lt;P&gt;Add modules to the screen flow logic as needed. &lt;/P&gt;&lt;P&gt;Enter the name of the module in the flow logic editor, then double-click on the module name and the system automatically creates the module in the corresponding function module program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generate your screen and choose Back (the green arrow) to return to the Project management transaction.&lt;/P&gt;&lt;P&gt;Once you activate your enhancement project, the fields defined in your subscreen will appear in the standard R/3 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Predefined Screen Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use a screen exit, you need to be aware of how your subscreen and the fields it contains relate to the data on the standard R/3 screen. The global data defined in the standard SAP program is not known to the program that controls your customer subscreen. In the same way, the fields you use in your subscreen are not known to the SAP program in which they appear. To compensate for this problem, SAP creates special flow logic modules when defining screen exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP creates a special Process Before Output module (PBO module) with a function module exit. You can use this function module exit to transfer specific field values from the SAP program to your customer subscreen. SAP also includes a Process After Input (PAI) module that has a function module exit for transferring values back from your subscreen to the SAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module exits in these PBO and PAI modules are only activated if you create actual modules for each exit. For more information on how to create customer-specific function modules, refer to the section Creating customer-specific function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The import and export parameters for the PBO and PAI function module exits are predefined by SAP. As a result, you can only transfer values to and from your subscreen if they correspond to the parameters determined in the existing function module exit interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps for Screen exits are :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP provides standard transactions to enter data into database. But a client may want to maintain some additional information in SAP other than what is provided. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make provisions for this, additional screens have to be provided and additional fields must be added into appropriate database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To pave way for this, SAP has provided the option for screen exits. Usually, SAP provides the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An append structure in the database table with the new fields. &lt;/P&gt;&lt;P&gt;A subscreen area into the standard screen &amp;#150; where the programmer can attach his subscreen of his own program with the new fields. &lt;/P&gt;&lt;P&gt;A function group under which the new subscreen has to be created with the new fields. &lt;/P&gt;&lt;P&gt;Function exits to synchronize the PBO and PAI of the standard SAP program with the PBO and PAI of the subscreen &amp;#150; so that data can flow back and forth between the standard SAP program and the program written by the developer for the subscreen. These function modules also exist in the same function group under which the subscreen will have to be developed. &lt;/P&gt;&lt;P&gt;Finally, a linkage has to be done between the subscreen area of standard SAP screen with the custom subscreen constructed by the developer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typically, SAP provides an enhancement in which the developer can create an append structure, use the function exits to synchronize the PBO and PAI of the standard SAP program and the custom subscreen program, and make the necessary linking( as mentioned above in step 4. But, again, this is not a hard and fast rule. Linking in some case, is also done by configurations.) SAP also usually provides the name of the function group under which the subscreen has to be developed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Necessary guidance about implementing a screen exit development is usually available in the Documentation section of the enhancement ( can be availed by transaction SMOD). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pre-Requisites&lt;/P&gt;&lt;P&gt;The developer to work on screen exit should have essential knowledge on the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DDIC concepts, including the knowledge of append structure. &lt;/P&gt;&lt;P&gt;Concept of SAP Enhancements and implementing them using Projects. &lt;/P&gt;&lt;P&gt;Concept of function exits. &lt;/P&gt;&lt;P&gt;Knowledge on Module Pool &amp;#150; including subscreens, Tabstrip controls etc. &lt;/P&gt;&lt;P&gt;Steps&lt;/P&gt;&lt;P&gt;Guidelines&lt;/P&gt;&lt;P&gt;So, a developer can follow the guidelines mentioned below to implement a screen exit to a standard SAP transaction, as and when required: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find out the Required Enhancements&lt;/P&gt;&lt;P&gt;Go to SMOD. Press F4 in the Enhancement field. In the next popup window, click pushbutton &amp;#145;SAP Applications&amp;#146;. A list will appear that contains information on all the enhancements, categorized under functional areas. Developer must search for the enhancements relevant to his functional area of interest &amp;#150; for e.g., Purchasing, Asset Accounting, etc. &lt;/P&gt;&lt;P&gt;Note down the enhancements. Then, come to the initial screen of SMOD and view the documentation of each enhancement to find out which one is required for your development. &lt;/P&gt;&lt;P&gt;Utilize the Enhancement in a Project&lt;/P&gt;&lt;P&gt;After you have found one, do as directed in the documentation. Generally, the steps are as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a project using CMOD including your enhancement. &lt;/P&gt;&lt;P&gt;Create the append structure with new fields. &lt;/P&gt;&lt;P&gt;Go to the desired function group and create a subscreen with the new fields. Write PBO and PAI for the subscreen, if required. &lt;/P&gt;&lt;P&gt;Use the function exits in the enhancement to link the PBO and PAI of the subscreen with that of the main SAP program supporting the SAP transaction. &lt;/P&gt;&lt;P&gt;Maintain necessary linkage between the subscreen area of standard SAP program with the custom subscreen developed along with the custom program name. This can be done in the project (developed by CMOD including the enhancement) or outside as a part of configuration. &lt;/P&gt;&lt;P&gt;Activate the project. &lt;/P&gt;&lt;P&gt;Test to ensure that required functionality are met. &lt;/P&gt;&lt;P&gt;Case Study 1&lt;/P&gt;&lt;P&gt;Add three new custom fields for Asset master and maintain information for them &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement&lt;/P&gt;&lt;P&gt;Three fields in the legacy system have to be maintained in Asset master. These fields are: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original Asset number &amp;#150; 20 characters &lt;/P&gt;&lt;P&gt;Location 2 &amp;#150; 15 Characters. &lt;/P&gt;&lt;P&gt;Model no &amp;#150; 20 characters &lt;/P&gt;&lt;P&gt;Location 2 should start with &amp;#145;L&amp;#146;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pre-Analysis&lt;/P&gt;&lt;P&gt;Finding out the Enhancement&lt;/P&gt;&lt;P&gt;As described above, the enhancement is determined. It was found, that enhancement AIST0002 will serve the purpose. It contains the following components (can be viewed by transaction SMOD): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit Type Description EXIT_SAPL1022_001 Function Exit Check of User-Defined Fields when Using Create and Change BAPI EXIT_SAPLAIST_002 Function Exit Transfer Data for User Subscreens in PBO. EXIT_SAPLAIST_003 Function Exit Transfer of User-Defined Fields to SAP Master Data Transactions CI_ANLU Customizing Include Include structure to add new fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Studying the Function Exits&lt;/P&gt;&lt;P&gt;The function module level documentation for the function exits are then viewed from transaction SE37. The documentation clearly laid out for the purpose for their use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT_SAPLAIST_002 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module Level Documentation&lt;/P&gt;&lt;P&gt;This function module is called by asset master data maintenance at the start of the dialog. (When changing, it is called after reading of the data from the database; when creating it is called after the transfer of the default values from the asset class and reference asset.) The purpose of the function module is to enable this function group to recognize the master data. For interpreting or controlling master data fields that are important for user fields, it is possible to transfer to global variables at this point, so that they can be recognized when the user subscreens are processed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import Parameters&lt;/P&gt;&lt;P&gt;Understanding &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module is called at the PBO to pass the information retrieved from the database to pass them to the custom subscreen and its underlying program. Import parameter : I_ANLU will be populated with the values for user-defined fields which will be passed to the subscreen program. So, there must be some sort of variable assignment from I_ANLU. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT_SAPLAIST_003 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module Documentation: This function module is called by SAP asset master data maintenance after the screens are processed, but before saving. The purpose of the function module is to transfer fields entered on user sub-screens of SAP asset data maintenance to the database for updating. The export parameter for this function module is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Understanding &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module will be used to transfer the user entered data in the subscreen fields to the main SAP program, which will then be saved into the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Studying the Documentation of the Enhancement&lt;/P&gt;&lt;P&gt;The enhancement documentation (as is viewed from the initial screen of SMOD] also supports the idea. Moreover, it informs that we need to develop a subscreen under function group XAIS. This is the function group under which the two function exit modules also exist. So, if the custom subscreen refers to the global data of the function group XAIS, then those values will also be available to these function exits as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going to SE80 and viewing the function group XAIS helps us to inform that there are three DDIC tables declared for it: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deciding the Final course of Action&lt;/P&gt;&lt;P&gt;After making all the investigations, the final course of action was determined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SrlNo Step Justification &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A project has to be created using transaction CMOD where the enhancement AIST0002 will be included. &lt;/P&gt;&lt;P&gt;Customizing include CI_ANLU has to be created with the custom fields demanded When CI_ANLU will be developed, the custom fields will get appended to the database table ANLU. Also, these fields will be used to create screen fields in the new subscreen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A custom subscreen, say, 9000 will be developed under function group XAIS. The screen group for the screen will be &amp;#145;CUST&amp;#146; (or any name). The three custom fields added to table ANLU (by creating CI_ANLU) will be used to create new fields in the screen. &lt;/P&gt;&lt;P&gt;In the PAI of the subscreen, validation for Location to start with &amp;#145;L&amp;#146; will be added. The subscreen with three new fields has to be developed so that it can be attached to a subscreen area of the asset master screens. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the custom include of the function exit module &amp;#145;EXIT_SAPLAIST_002&amp;#146;, the following code will be written:- &lt;/P&gt;&lt;P&gt;ANLU = I_ANLU. I_ANLU is the import parameter of this FM. The value is assigned to the global variable ANLU, referring which the three new subscreen fields are developed. So, data retrieved from database table ANLU will be passed to this FM as I_ANLU by the standard SAP main program. The value will be taken and passed to the global variable of the function group XAIS, so that the three custom fields (referring to ANLU of XAIS) get populated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the custom include of the function exit module &amp;#145;EXIT_SAPLAIST_003&amp;#146;, the following code will be written:- &lt;/P&gt;&lt;P&gt;E_ANLU = ANLU. The changed values in the subscreen fields exist in global variable ANLU for the function group XAIS. This function exit module will pass the data back to the SAP main program as E_ANLU. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proper linkage/configuration has to be done so that the new subscreens get linked to the appropriate subscreen area of the Asset master screen. This has to be done &amp;#150; otherwise, the new custom subscreen will not be displayed in the Asset master screens. &lt;/P&gt;&lt;P&gt;Development&lt;/P&gt;&lt;P&gt;Creating a Project to include the enhancement&lt;/P&gt;&lt;P&gt;Go to transaction CMOD and create a project. &lt;/P&gt;&lt;P&gt;Enter a description for the project. Then, click on the pushbutton &amp;#145;Enhancement Assignments&amp;#146; in the Application Toolbar. &lt;/P&gt;&lt;P&gt;Enter the name of the enhancement and Save. &lt;/P&gt;&lt;P&gt;Go to &amp;#145;Components&amp;#146;. &lt;/P&gt;&lt;P&gt;Creating Custom Include for ANLU&lt;/P&gt;&lt;P&gt;The screen shown below will appear, showing all the enhancement components under the assignment AIST0002. Double-click on the name of the Include Structure to create it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the include structure with three new fields, as required. Then, save and activate it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Develop the subscreen and the program&lt;/P&gt;&lt;P&gt;Go to transaction SE80. For the function group XAIS, create a new subscreen 9000. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create it as subscreen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, go to the Layout of the screen and create three new fields from Database table ANLU. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drag the fields in the screen body and place them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, save and activate the screen and come back to screen flow editor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the PAI module to add validation for field &amp;#147;Location 2&amp;#148;, as required . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate the whole function group and come out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write code in the Function Exits to synchronize the programs&lt;/P&gt;&lt;P&gt;Now, code has to be written in the function modules EXIT_SAPLAIST_002 and EXIT_SAPLAIST_003 so that data flows to and fro between the main SAP program and custom subscreen program. For that, go back to transaction CMOD and change the function exits. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write code in the function module EXIT_SAPLAIST_002 called once at the beginning of the transaction: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write code in EXIT_SAPLAIST_003 to pass the data from the subscreen to SAP main program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, activate everything &amp;#150; the whole project and come out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Complete the configuration to link the subscreen&lt;/P&gt;&lt;P&gt;The development portion is complete. Now, linking of the subscreen has to be done with the subscreen area of the main program. In most of the cases, this linking can be done in the enhancement itself. But, here, requirement is a bit different. It is done by configuration using SPRO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assets are created under Asset class. And for each asset class, there is a layout assigned to it. For a layout, there are multiple tab pages assigned to it. And, for each tab page, there are multiple screen groups/field groups assigned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, the requirement is to create these three custom fields in the tab page &amp;#145;General&amp;#146; of asset master screen ( AS01/AS02/AS03/AS91). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Determine the Layout&lt;/P&gt;&lt;P&gt;To achieve this, first of all, we need to find out which layout is assigned to asset class 1000.For that, go to transaction AOLK( information has to be obtained from functional consultant).Select the Asset Class &amp;#145;1000&amp;#146; and click on folder &amp;#145;General Assignment of Layout&amp;#146;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, for Asset class 1000, for all the user groups, tab layout SAP is assigned. Since layout &amp;#145;SAP&amp;#146; cannot be changed, it has to be copied and manipulated to include our screen group. Later, the new layout has to be assigned over here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create new tab layout&lt;/P&gt;&lt;P&gt;Go to transaction AOLA. Copy the tab layout &amp;#145;SAP&amp;#146; to create another layout, say, YSUB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System will copy all the settings and will inform you about that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select your newly created layout and double-click on the folder &amp;#145;Tab page titles&amp;#146;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to put your custom fields in the tab page &amp;#147;General&amp;#148;. So, select this tab page entry and double-click on the folder "Position of Groups". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, all the field groups currently residing in the tab-page &amp;#147;General&amp;#148; are shown. Add an entry for your newly created fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the group box from the list. An entry will come with &amp;#147;U&amp;#148; padded with the custom subscreen prepared by you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, save and come out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign the new Layout to Asset Class&lt;/P&gt;&lt;P&gt;Now, go to tcode AOLK and assign tab layout YSUB for asset class 1000. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save and come out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test the Exit&lt;/P&gt;&lt;P&gt;Everything is over. Now, go to transaction code AS01/02/03 or AS91 to deal with an asset of asset class 1000. You will see your new fields added to the screen. Add values to them&amp;#133;save. Then, enter into the tcodes again to see whether the values entered by you are being displayed or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if found helpful&amp;#133;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exits/m-p/3420837#M821551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:03:25Z</dc:date>
    </item>
  </channel>
</rss>

