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: 

Dumping variables

former_member737583
Participant
0 Kudos

I need to find some errors with logic which is really complicated (a lot of export to database, exports to memory, idoc used to pass data, no documentation, some task are run in job or run using submit at one time). So the logic is non-linear.

For some submits and jobs I want to check what is passed using

"export to database" or what state have some variables. Running programs used in jobs manually is useless while they are using exports and imports.

Is there in ABAP any functionality which allows dumping variables to string like print_r() in PHP or vardump() or maybe there is possibility to store variables values in logs. I assume that such functionality is somewhere in SAP, because we can see dump of variables in st22.

I tried to force shortdump by divide by zero, but included in st22 dumps of variables are not satisfying me.

Any idea what to do?

4 REPLIES 4

Former Member
0 Kudos

You don't want to use BREAK-POINT and stop the run and check variables at that point?

0 Kudos

@Paul: I can't do that because of complicated logic. E.g. in one program is created a job. Inside this job some data are passed into memory - also an export to database is used. After those exports some other programs through submit are called an e.g. IDOC is created and processed


* Process created IDOC
  SUBMIT rbdprocess
    WITH p_idoc   = edidc_ls-docnum
    WITH p_nodisp = 'X'
    AND RETURN.

then again some jobs called.

This is not my code and I need to find some bugs => I need to determine if some values are properly calculated but this is hard when you do know exactly what is currently exported to database or to memory.

Former Member
0 Kudos

Hi!

You might try out to put a log file to the application server.

Open a file, and write your variables into it.

Keywords: OPEN DATASET, CLOSE DATASET.

Regards

Tamá

former_member737583
Participant
0 Kudos

I just send needed values through email (to SBWP).