‎2006 May 17 8:28 AM
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.
‎2006 May 17 8:38 AM
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
‎2006 May 17 8:29 AM
Hi,
search in the forum, field-exit could not be debug.
Good luck
Fred
‎2006 May 17 8:38 AM
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
‎2006 May 17 8:57 AM
Thank You Vinod and Fredrick.
Vinod can you please elaborate on how I can analyse using TRANSFER.
Thanks
‎2006 May 17 9:34 AM
‎2006 May 17 11:05 AM
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
‎2006 May 17 1:14 PM
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