<?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 Exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit/m-p/2441080#M546381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for your reply. I searched Exit for vendor master to add a field. But I didnt got any exit for this. Can anyone tell me the BADI name for adding a field in vendor master?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2007 06:34:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-21T06:34:30Z</dc:date>
    <item>
      <title>Screen Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit/m-p/2441077#M546378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   How to add a new field in vendor master? I searched the forum but I am not clear in those? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 08:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit/m-p/2441077#M546378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T08:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit/m-p/2441078#M546379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&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;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI of the subscreen &amp;#150; so that data can flow back and forth between the standard SAP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program and the program written by the developer for the subscreen. These function modules &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;structure, use the function exits to synchronize the PBO and PAI of the standard SAP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program and the custom subscreen program, and make the necessary linking( as mentioned &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above in step 4. But, again, this is not a hard and fast rule. Linking in some case, is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also done by configurations.) SAP also usually provides the name of the function group &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#145;SAP Applications&amp;#146;. A list will appear that contains information on all the enhancements, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;categorized under functional areas. Developer must search for the enhancements relevant to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;custom subscreen developed along with the custom program name. This can be done in the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;project (developed by CMOD including the enhancement) or outside as a part of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will serve the purpose. It contains the following components (can be viewed by transaction &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Create and Change BAPI EXIT_SAPLAIST_002 Function Exit Transfer Data for User &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subscreens in PBO. EXIT_SAPLAIST_003 Function Exit Transfer of User-Defined Fields to SAP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(When changing, it is called after reading of the data from the database; when creating it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is called after the transfer of the default values from the asset class and reference &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;asset.) The purpose of the function module is to enable this function group to recognize &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the master data. For interpreting or controlling master data fields that are important for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user fields, it is possible to transfer to global variables at this point, so that they can &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;database to pass them to the custom subscreen and its underlying program. Import parameter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;: I_ANLU will be populated with the values for user-defined fields which will be passed to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maintenance after the screens are processed, but before saving. The purpose of the function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module is to transfer fields entered on user sub-screens of SAP asset data maintenance to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the idea. Moreover, it informs that we need to develop a subscreen under function group &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XAIS. This is the function group under which the two function exit modules also exist. So, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the custom subscreen refers to the global data of the function group XAIS, then those &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;included. &lt;/P&gt;&lt;P&gt;Customizing include CI_ANLU has to be created with the custom fields demanded When CI_ANLU &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will be developed, the custom fields will get appended to the database table ANLU. Also, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the screen will be &amp;#145;CUST&amp;#146; (or any name). The three custom fields added to table ANLU &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subscreen with three new fields has to be developed so that it can be attached to a &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;global variable ANLU, referring which the three new subscreen fields are developed. So, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data retrieved from database table ANLU will be passed to this FM as I_ANLU by the standard &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP main program. The value will be taken and passed to the global variable of the function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function group XAIS. This function exit module will pass the data back to the SAP main &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;appropriate subscreen area of the Asset master screen. This has to be done &amp;#150; otherwise, the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that data flows to and fro between the main SAP program and custom subscreen program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subscreen area of the main program. In most of the cases, this linking can be done in the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enhancement itself. But, here, requirement is a bit different. It is done by configuration &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to it. For a layout, there are multiple tab pages assigned to it. And, for each tab page, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1000.For that, go to transaction AOLK( information has to be obtained from functional &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;consultant).Select the Asset Class &amp;#145;1000&amp;#146; and click on folder &amp;#145;General Assignment of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layout &amp;#145;SAP&amp;#146; cannot be changed, it has to be copied and manipulated to include our screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;asset class 1000. You will see your new fields added to the screen. Add values to them&amp;#133;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save. Then, enter into the tcodes again to see whether the values entered by you are being &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;displayed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original Source: ittoolbox.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 08:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit/m-p/2441078#M546379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T08:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit/m-p/2441079#M546380</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;It depends on which release you're using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your release is greater than 4.6C, you can enhance it by BADI (go to Vendor Customizing: the node Master Record). Here you can develop a BADI in order to create a new TAB to change/display your Z-FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your release is 4.6c or lower one I believe you need to change the std program or you can try to use the BTE for Additional Components)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;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 Jun 2007 09:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit/m-p/2441079#M546380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T09:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit/m-p/2441080#M546381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for your reply. I searched Exit for vendor master to add a field. But I didnt got any exit for this. Can anyone tell me the BADI name for adding a field in vendor master?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 06:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-exit/m-p/2441080#M546381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T06:34:30Z</dc:date>
    </item>
  </channel>
</rss>

