2008 Jun 12 1:23 PM
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?
2008 Jun 12 1:25 PM
You don't want to use BREAK-POINT and stop the run and check variables at that point?
2008 Jun 12 1:49 PM
@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.
2008 Jun 12 1:27 PM
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á
2008 Jun 16 2:03 PM