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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 |