Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Need to check the Debugging is on or not

Hi Experts,

I have one Z function module , in this there is an another function module which is running in Background task.

eg :

CALL FUNCTION 'ZTEST_RAISE_EXCEPTION'

in BACKGROUND TASK

if the fucntion module is running in background task then we are not able to debug the Function module.

for this i need to do check here...

if debugging is ON

Run the same function module in foreground

eg : CALL FUNCTION 'ZTEST_RAISE_EXCEPTION'

else.

Run in Background.

eg :

CALL FUNCTION 'ZTEST_RAISE_EXCEPTION'

in BACKGROUND TASK

endif.

i have tried with the system field SY-DEBUG, but it is working. please help me. is there any other way to do this.

Thanks

SAP main

Former Member
Not what you were looking for? View more on this topic or Ask a question