Skip to Content

Dumping variables

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2008 at 12:25 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

    • @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.

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2008 at 12: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á

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 16, 2008 at 01:03 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.