Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

Field Exit and Field Enhancement

$
0
0

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.

SDN1.JPG

 

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

SDN1.JPG

 

SDN1.JPG

 

Or

Run the Program RSMODPRF without parameters.

SDN1.JPG

Execute the program.

SDN1.JPG

 

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.

SDN1.JPG

 

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”.

SDN1.JPG

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

SDN1.JPG

 

Make Changes to description.

SDN2.JPG

Save it and now check the changes.

SDN1.JPG


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>