We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-abap] How to get global variables of a program?

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by Lukasz Pegiel (SAP Specialist (ABAP, PP, MM))
on Aug 2 at 10:06 AM
Thanks Ben.

I can find there selection-screen options & parameters but for variables data is not readable at the moment for me. I think it's in part 'DATV' but the result table need some additional coding for sure. As this statement is 'internal use only' there is no additional description of results. Even our friend Google do not have any advice.

I tried also scan abap-source and I think I could use tokens & structures tables to achieve my goal, but i need to re-think if doing it would not be to much effort to do this FM.

The other solution could be to keep always global definitions of variables in separate include and then read report would be also easy to use.

If anyone see another solution then please share it with me.

BR
Lukasz

---------------Original Message---------------
From: Lukasz Pegiel
Sent: Tuesday, August 02, 2011 3:39 AM
Subject: How to get global variables of a program?

Hello,

I'd like to create a FM or class to be able to free all data from global declaration (tables, work areas, objects) but I cannot find any efficient way of retrieving global variables from a program. I know I could read the source code but I'd like to avoid it as programming it would be to complex. I've tried to debug SE80 to see how the tree with variables is populated but i couldn't found it yet.

Do any of you know the way how to simple retrieve them? Maybe you've done something similar?

Thanks in advance for any tip.
Lukasz

__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
Lukasz Pegiel
SAP ABAP Helper

Posted helpful replies on 5 threads in a group to earn a Bronze Achievement
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language