Field Exit is an Enhancement Technique in SAP ABAP. As part of the extension concept, SAP ABAP allows you to install a field exit for each screen field. Similar to the conversion exit, the system branches at the field exit at DCI (DATA COMMUNICATIONS INPUT) to a function module, if the field is an input field and a function code gets triggered.
Modification Available: Available for all domains.
How to find if transaction has above modification technique available?
The function module must adhere to the following naming convention:
Infix: Data Element Name
Suffix: _0 to _9 (optional), _A to _Z
The interface is automatically generated during the creation of the function module, and has 2 parameters:
- Import parameter: INPUT
- Export parameter: OUTPUT
After a function code has been triggered the contents of the field are made available to the FB via the “INPUT” import parameter. You can edit this and, when changed, make it available to the ABAP/4 processor in “OUTPUT”. The input field contents are usually passed on: you can simply write OUTPUT = INPUT.
Note: Field exits are only taken into account during screen generation if the parameter abap/fieldexit = ‘YES’ is set in the system profile.
The following ABAP statements are not allowed in the function modules of field exits:
- CALL SCREEN, CALL DIALOG, CALL TRANSACTION, SUBMIT,
- COMMIT WORK, ROLLBACK WORK,
- COMMUNICATION RECEIVE,
- EXIT FROM STEP-LOOP,
- MESSAGE I, MESSAGE W.
If, e.g., you have activated the field exit for the data element ‘PROGRAM’, then the fields of all the screens, which refer to the data element ‘PROGRAM’, branch to the function module FIELD_EXIT_PROGRAM. This includes the field ‘Program’ of the initial screen SAPMS38M0100 in transaction SE38, for example.
If you do not want the function module to be accessed from all screens, assign particular screens to the data element PROGRAM. By allocating an exit number, it is also possible to branch to other function modules with the corresponding suffix _0 … _Z.
As soon as you activate an exit, the corresponding screens are invalidated.
For further information on Enhancement Techniques, refer my blog.
In case you need assistance in SAP ABAP Enhancement Techniques, please contact us. Please send us your questions, comments or assistance request, and our team would be glad to assist you.
Please send us your questions, comments or assistance, and our team would be glad to assist you.
By Gopichand Panghate. (on behalf of SAP Consulting Team)
SAP :: Streamlined
We offer variety of services including SAP ECC ,SAP HR,SAP BW,SAP CRM, SAP SCM,SAP BPM, Business Objects, SAP ABAP Development, SAP BASIS and SAP NetWeaver consulting. We have expertise in providing implementation,development, SAP Migration and SAP support services to SAP customers across diverse industries at a global level.
Have a question on SAP? Write to our SAP Architect.
(We promise a no-obligation consulting reply)