Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
sujeet2918
Active Contributor

Field Exit and Field Enhancement


Field Exit:


Field exit is used to write your custom logic against field, it is no longer used by SAP after 4.6C as SAP has come up with lots of user exit and enhancement options. However this document illustrates the way we can use field exit in our SAP.

Go to Transaction Code CMOD then put Transaction Code PRFB in Command Prompt.

Then Go to Menu option ‘Field Exit -> Create’, it will come to below shown screen.

Or

Run the Program RSMODPRF without parameters.

Execute the program.

Now, once we create FIELD_EXIT_XXXX function Module, then it will get triggered every time we use that field.

Set the profile parameter abap/field exit = YES and restart the system.

And before using this field exit, we need to assign it to program and screen.

To assign field exit to a screen, go to Transaction Code PRFB and select your Data Element and click on Assign program/ screen.

Field Enhancement:


Example:  As we can see in below screen shot, we have VBAK-AUART field with Data Element description ‘SD document category’. Now we will use Field Enhancement Technique to Change this Data Element Description to “Test Document Category”.

Go to Transaction Code CMOD and follow the path as shown in below screen.

Make Changes to description.

Save it and now check the changes.

13 Comments