Application Development 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: 

How to see data of an itab in a background process?

0 Kudos
342

Hi, in order to solve a problem I have to debug a background task.

I tried to debug it with the transaction SM37, but the breakpoints I've set in SE80 didn't work. And the when trying to walk there step by step I end up in a maze of SAP standard components.

Basically I just need to know what data an itab contains, when the "INSERT" statement is called. So I was wondering, is there maybe a way to output the contents of the itab into a separate spool?

Or are there other methods, how I can check the content of this itab?

3 REPLIES 3

FredericGirod
Active Contributor
296

old bad method : put a wait ... seconds, in SM50 set the process line and ask for a debug program

DominikTylczyn
Active Contributor
0 Kudos
296

frdric.girod It's a good trick. I tend to implement it with an infinite loop:

data: lv_debug value 'X'.
while lv_debug = 'X'. endwhile.

That gives me ample time to catch the process in SM50 and go to debug. Then lv_debug variable can be cleared and I can proceed. A check to sy-uname can be added in the WHILE condition so the processing loops only for specified users.

Maciej_Domagała
Contributor
296

See this thread: how to debug background job