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 get address of an variable in the ABAP debugger

channu_s
Participant
0 Kudos

Hello All,

   Can we get the the address of an variable in the ABAP Debugger?

Thanks and Regards

CB

6 REPLIES 6

matt
Active Contributor
0 Kudos

OK, interesting. Why do you need the variable address? What are you trying to achieve?

0 Kudos

Hello Matthew,

   When I trying to  get the  concept of "Call by value" and "Call by reference" , I got this thought.

So just trying to know what it is .

Thanks

CB

,

pavan_prabhu
Active Participant
0 Kudos

Hello Channu,

As far as I know, it is not possible, and as far as I'm concerned, that's a good thing.

It is not possible to get memory address of a variable in ABAP.

You can try it yourself. Declare a reference variable.

For example.

DATA: flag TYPE flag,

          gref TYPE REF TO data.

flag = 'X'.

GET REFERENCE OF flag INTO gref.

Check the value of gref in debugger. what you see in the debugger is not the "value". 

It is just a representation of the reference.



0 Kudos

...or similar by using field symbol. You actually do not know the address but can manipulate the field directly.

But would be nice to know what this is for...

0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi Channu,

Good idea....!!!!!!!!!!!

Pls check if it helps...

http://scn.sap.com/thread/1393837

Thanking You All.