Application Development and Automation 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: 
Read only

Accessing Internal Tables from an ABAP Debugger Script

mike_mcinerney
Participant
0 Likes
808

Hi,

This is a question concerning internal table data access using an ABAP Debugger Script .


Lets say I have a program that has a table.

     data lt_document type table of bkpf .

I want to create a debugger script that will break if any of the records in   lt   has a blart value of 'SA'  ( ls-blart = 'SA' ).


     METHOD script.


     data lt type table of bkpf .

     data ls type          bkpf .


     " some kind of script wizard access
     " routine to populate lt


     loop at ls into lt .
       if ls-blart = 'SA' ,
         me->break( ).
       endif .
     endloop .

     ENDMETHOD.

How do I read the table lt_document into lt ?

Thanks...

3 REPLIES 3
Read only

Former Member
0 Likes
598

can you now pass the table to the method script?

regards,

swanand

Read only

arindam_m
Active Contributor
0 Likes
598

Hi,

May be possible by the watch-point reached option.

Cheers,

Arindam

Read only

former_member209120
Active Contributor