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

How to call program variables without passing as parameters

Former Member
0 Likes
713

Respected Members,

I had read one blog some days back base on the above topic that is system variables.

In that it is clearly mention how you can play with system variables but nw i am unable to find that blog.

In that it has mention u can view it through call stack of debugging mode.

IF somebody please forward me the link of that blog then it will grateful to me.

THanks a lot.

Respected Members,

I had read one blog some days back base on the above topic that is system variables.

In that it is clearly mention how you can play with system variables but nw i am unable to find that blog.

In that it has mention u can view it through call stack of debugging mode.

IF somebody please forward me the link of that blog then it will grateful to me.

THanks a lot.

3 REPLIES 3
Read only

Former Member
0 Likes
659

Hi

While debugging If the program is loaded in memory, it can read a variable of the program writing in the prompt of debug:

(<PROGRAM NAM>)<VARIABLE NAME>

So if it needs to do in abap code it has to use the field-symbols:

DATA: VARIABLE_NAME(30).

FIELD-SYMBOLS: <FS_FIELD> TYPE ANY.

VARIABLE_NAME = '(SAPMV45A)VBAK'.

ASSIGN (VARIABLE_NAME) TO <FS_FIELD>.

Now <FS_FIELD> is a pointer linked to the variable VBAK of program SAPMV45A

If you need to see an internal table, so not a flat variable:

FIELD-SYMBOLS: <ITAB> TYPE TABLE.

VARIABLE_NAME = '(SAPMV45A)XVBAP[]'.

ASSIGN (VARIABLE_NAME) TO <ITAB>.

Max

Read only

0 Likes
659

Thanks Max.

It is a very helpful reply .

It will be more helpful to me if u able to send the link of that blog also.

I want to read once more that blog.

Once more Thanks to you to give me reply and good answer.

Max can i have your email id ,i have so many querries to ask u.

Read only

0 Likes
659

Hi

U can find it in my user profile

Max