Académique Documents
Professionnel Documents
Culture Documents
Field exits:
To write your own field documentation, proceed as follows:
1. Call the Project management transaction by choosing Utilities Enhancements
Project management from the ABAP Workbench menu.
2. Choose Text enhancements Data elements New DE cust. docu.
The system displays a dialog box.
3. Specify the data elements name.
If you want to see a list of all the screens where this data element appears, choose Ref.
to screen before proceeding to the next step. The reference list shows you how many
standard R/3 screens your new documentation will affect.
4. Choose Change from the application toolbar.
5. On the next screen, ensure that the checkbox labelled Make available SAP
documentation in the form of an INCL is activated.
6. Choose Create.
7. Write your own documentation.
8. Save your changes.
*----------------------------------------------------------------------------------------------Steps:
Create a module pool program (ZENH1).
Create a screen (100).Enter fields for ZDEPT table.
Create a transaction code ZENH1.
*----------------------------------------------------------------------------------------------SCREEN EXIT:
Create a function group with name XZFG97
Activate the program SAPLXZFG97.
Create a subscreen (200) with program as SAPLXZFG97.
In SMOD, enter as follows:
Screen
No
0100
Subscreen
Area
SUB1
Include or
Subscreen
Function group No
SAPLXZFG97
0200
Text
Note:
While creating screen exit,
Screen numbers should be 4 digits.
Specify the TABLES ZEMP in the module pool program for the fields that are to be
displayed in the subscreen.
Check the screen type for subscreen.
CALL CUSTOMER-SUBSCREEN <SubscreenArea> including <SubScrPrg>
<SubScrName>.
*----------------------------------------------------------------------------------------------MENU EXIT:
1. Add the new menu item in Menu painter.
Technical name = +<3 digit>
Ex: +001
2. In the module pool program,
CASE SY-UCOMM.
WHEN +001.
CALL CUSTOMER-FUNCTION 001.
ENDCASE.
*----------------------------------------------------------------------------------------------FUNCTION EXIT:
3. Create a function group with any name (ZFG91).
Create a function module with the following name:
EXIT_<MpoolName>_001
Write the below code in the include program.
MESSAGE ID 'ZMSG' TYPE 'I' NUMBER '100'.
-Message for enhancement( menu exit)
*----------------------------------------------------------------------------------------------
Function exit
The naming convention for function exits is as follows:
Prefix: EXIT_
Suffix: 3 digits
Example:
If the module pool SAPMS38M contains the command CALL CUSTOMER-FUNCTION '001', it branches to
the function module EXIT_SAPMS38M_001 when you activate the enhancement component.