ABAP log

January 8, 2007

Exploring the structure of ABAP programs.

Filed under: ABAP, SAP — abaplog @ 8:56 pm

In some cases, you need to read and analyse the structure of your ABAP program’s variables (fields and internal tables, for example). There are some function modules that can be used to get the symbols (names of fields and internal tables) of any program and then read the type information:

GET_TABLES
GET_GLOBAL_SYMBOLS
GET_COMPONENT_LIST

To be sure that you read the last version, it’s a good idea to generate the program with GENERATE REPORT. From my experience, the functions can sometimes fail (with a short dump), and I could not understand why. I simply excluded the programs from my list (that was a mass check program).

A couple of other helpful functions:

RS_GET_ALL_INCLUDES
RS_GET_MAINPROGRAMS

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: