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

Call function in debug mode

Former Member
0 Likes
2,669

Hi,

when I´m on the test function screen of se37, I can run the function in debugging mode and it´s starting with the debugger on the first code line.

Is it also call a function from a report in this debugging mode?

thank you!

reward points guaranteed

8 REPLIES 8
Read only

Former Member
0 Likes
1,345

Hi Michael,

UInless you put a breakpoint in the funtion module , the funtion module used in program will not run in debug mode

while testing FM, there will be a separe radiobutton for debuggin mode, so this will not effect the use of that FM in ur program

Read only

Former Member
0 Likes
1,345

yes u can do it..

place a breakpoint wer the function is called..in the report

Run it..

While running it ll go into debug mode from where the function is called.

Hope dis helps

Read only

amit_khare
Active Contributor
0 Likes
1,345

Put a session break-point on the CALL Function statement, then it will do.

Read only

Former Member
0 Likes
1,345

Hi

in debug mode we don't have any functionality to call a function . but you can debug a FM

Read only

0 Likes
1,345

Thank you for your answers...

Let me explain a little bit more in detail, what I want to do.

I have an XML interface function which is going to be called by an

external application about RFC, reading binary data,

interpreting that as XML and doing something in the SAP system afterwards.

As the system is a 4.6C I can´t debug externally, I want to provide

a debugging function in a monitoring application for that.

As people are using the monitoring, which are not familiar with all

the code behind that, I want to start the debugging mode by myself,

without setting a breakpoint.

Let me describe it like this:

When you type in /H in the transaction field in the SAP menu bar, the

debugging mode is going to be started for further actions.

All I want to do is starting that /h debug mode without typing anything

in the transaction field, just inside of the report.

How can I do that?

Michael

Read only

0 Likes
1,345

hi,

yes, you can do that. just enter /h then hit enter the debug mode will switch on. Then you just press execute it will go it debug page.

Read only

0 Likes
1,345

Hey!

I´ll do that WITHOUT entering /h in the input field.... I´ll do that inside the program!

Something like:

set_debug_mode(true)

call function ......

set_debug_mode(false)

Read only

0 Likes
1,345

Hi

inside program you can set a BREAK-POINT stament to set a break points thats all , you can't put any code to start the debug

The ABAP Debugger is an integrated test tool within the ABAP Workbench. You use it to check the program logic and to find errors in the source code of an ABAP program. In the Debugger, you can step through the source code of a program. The running program is interrupted after each step, allowing you to check its processing logic and the results of individual statements.

As of Release 6.10, you can also run Business Server Pages (BSP) in the debugging mode. You can also display and set breakpoints here. Business Server Pages can be displayed in the Object Navigator when you select an appropriate application under BSP Application.

<b>Rewar di fusefull</b>