Application Development and Automation 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: 
Read only

Debugging Field Exits

Former Member
0 Likes
733

Hi,

I am trying to create a field exit on Outline Agreement Field(KONNR) in ME21N. Can anybody plz guide me how I can debug the Function Module at the time of excuting the Transaction.

Thanks in advance,

Rinku.

1 ACCEPTED SOLUTION
Read only

vinod_gunaware2
Active Contributor
0 Likes
681

No.Field exit can not debug. Field exits have to be tested in isolation in the development environment. To analyze problems that occur only in the screen environment, the relevant variables can be written to the file system using TRANSFER... and can be analyzed there.

Check whether you have assigned a value to the OUTPUT field.

The following ABAP statements are not allowed in the function modules of field exits:

BREAK-POINT,

CALL SCREEN, CALL DIALOG, CALL TRANSACTION, SUBMIT,

COMMIT WORK, ROLLBACK WORK,

COMMUNICATION RECEIVE,

EXIT FROM STEP-LOOP,

MESSAGE I, MESSAGE W.

regards

vinod

6 REPLIES 6
Read only

FredericGirod
Active Contributor
0 Likes
681

Hi,

search in the forum, field-exit could not be debug.

Good luck

Fred

Read only

vinod_gunaware2
Active Contributor
0 Likes
682

No.Field exit can not debug. Field exits have to be tested in isolation in the development environment. To analyze problems that occur only in the screen environment, the relevant variables can be written to the file system using TRANSFER... and can be analyzed there.

Check whether you have assigned a value to the OUTPUT field.

The following ABAP statements are not allowed in the function modules of field exits:

BREAK-POINT,

CALL SCREEN, CALL DIALOG, CALL TRANSACTION, SUBMIT,

COMMIT WORK, ROLLBACK WORK,

COMMUNICATION RECEIVE,

EXIT FROM STEP-LOOP,

MESSAGE I, MESSAGE W.

regards

vinod

Read only

0 Likes
681

Thank You Vinod and Fredrick.

Vinod can you please elaborate on how I can analyse using TRANSFER.

Thanks

Read only

0 Likes
681

Hi,

look here:

Andreas

Read only

0 Likes
681

Hi again,

I am entering the outline agreement no. in the item list.

When I press enter it should display the amount corresponding to the no. Till this step its going fine however when by mistake an enter is pressed again it takes amount as outline agreement no. and output is going wrong.

I tried writing Field Exit for the same but didnt help much. So I have taken up writing a BADI. Can anybody tell me a BADI for subscreen(Item List).

Thanks,

Rinku

Read only

Former Member
0 Likes
681

Hi Rinku

You can put message 'E' statement in your field exit and display the values in message statement. this is the good way of debugging field exits.

Best Regards

Naresh