SAP BLOG How to debug BTE event in APP

SAP Blog

Kayıtlı Üye
Katılım
22 Ara 2017
Mesajlar
1,925
Tepki puanı
7
Puanları
6
Hello SAPers!

When you implement custom functionalities via BTE for automatic payment program e.g. event 00001820 “Payment program: item selection”, you might need to debug the execution of FMs for troubleshooting purposes. The problem is that these FMs are executed in background mode and session breakpoints that you set are not triggered during runtime. That was the trouble I had when I was preparing material for my previous post on APP. Here is a small trick on how to trigger debugging session in online mode.

In F110 prepare parameters for payment proposal:

01_app_parameters.jpg


In SE37 set breakpoint in your custom FM:

02_session_breakpoint.jpg


Go to SE38, indicate program name SAPF110S, then navigate to include F110MAIN. Put another session breakpoint on line 39:

03_session_breakpoint.jpg


Execute program SAPF110S. Indicate proposal run ID / date and mark it as “Proposal run” in field PARXVORL. Run the program.

04_sel_screen.jpg


Once debug session will be triggered, adjust the value of variable XDEBUG to “X” and continue with execution of program. Please note important prerequisite, your developer account should have enough authorization to adjust the values in debug mode.

05_debug.jpg


Execution of the program will stop again in your custom FM and you’ll be able to review its execution.

06_debug_sesssion-1.jpg




I hope that this post was interesting and you found something of value:) Your suggestions and comments are welcome!

Regards,

Bohdan Petrushchak

Okumaya devam et...
 
Üst