Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug the field exits

Former Member
0 Kudos
2,048

Dear All,

How to debug the field exits. Please let me know.

Urgent.

Regards,

Karthik.

4 REPLIES 4

Former Member
0 Kudos
133

go to rsmodprf program in se 38 and then give ur data element of field which is having field exit..execute and then put cursor on ur concerned field exit there and click on button Edit FM ,it will take u to the SE37 screen of tht FM..just put a breakpoint in tht FM .

now when u will execute ur program and trigger the field exit ,the program will stop to tht breakpoint and u can debug it then

reward if helpfull

amit

raymond_giuseppi
Active Contributor
0 Kudos
133

Look at OSS note Note 29377 - FAQs: field exits (CMOD) https://service.sap.com/sap/support/notes/29377

5. Can field exits be debugged ?

No. Field exits must be tested separately in the ABAP/4 Development Workbench. For errors which only occur in the screen environment, it is helpful to write interesting variables to the file system using TRANSFER... . These can then be analysed there.

Sorry

Former Member
0 Kudos
133

first of all have you created the fnmodule for that be sure.

run RSMODPRF in se38 without giving any selection criteria.

now search for your dataelement.

check the correct prog name and screen no assign for that or not and it is active or not.

now in application toolbar you will get Edit fm button. click that.

it will go to se37 fnmodule sourcecode. put a breakpoint there.

regards

shiba dutta

Former Member
0 Kudos
133

Hi karthik,

1. We cannot debug field exits.

2. For a workaround,

we can put a MESSAGE of type I

to display the value of the variable.

3. For detecting whether the field exit is working/getting triggered,

we can simply put

MESSAGE as the first line of the code.

regards,

amit m.