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

ABAP: how to know one parameter were read when debugging

Former Member
0 Likes
590

Dear ABAPers,

When debugging, we can create watchpoint to determine when that parameter has been changed value. I'd like to know whether is there a way to know when one parameter are read.

For example, to know where vbak-vbeln is read, can the debugger break at the statement like:

xvbeln = vbak-vbeln.

Best Regards,

Dear ABAPers,

When debugging, we can create watchpoint to determine when that parameter has been changed value. I'd like to know whether is there a way to know when one parameter are read.

For example, to know where vbak-vbeln is read, can the debugger break at the statement like:

xvbeln = vbak-vbeln.

Best Regards,

3 REPLIES 3
Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
548

Hi Nattapong,

In the example you gave, vbak-vbeln is not being read but used to assign a value to xbeln. So, if you want to know where vbak-vbeln is being read (in other words, where it is being assigned a value for the first time), you simply need to create a watchpoint on vbak-vbeln.

Read only

Former Member
0 Likes
548

Thanks for your reply, but it's not my requirement. I know that using watchpoint would detect when the variable is assigned. My requrement is that when is it refrered or used.

To more clarification, my requirement, I want to ensure that if I change the SO value at the user-exit; I must not effect the standard codes.

<User-exit>      => MY IMPLEMENTATION HERE!!!

......

<Standard code>

.......

IF vbak-vbeln is initial.

.....

[I want to skip the statements of getting standard SO number]

......

ENDIF.

Read only

0 Likes
548

Hi,

For this you have to do a global find of the vairable.

Regards,

Kartik