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: 

TABLES: *ZTABLE.

Former Member
0 Kudos

Hi,

I'm new to ABAP and hopefully someone can help me by explaining what is the actual intended usage of the above statement?

Basically what is the main difference between these 2 statements below

1. TABLES *ZTABLE; and

2. TABLES ZTABLE?

Thanks in advance.

Rgds,

Michael M. Woo

3 REPLIES 3

Peter_Inotai
Active Contributor
0 Kudos

It just another internal table with different name.

In SAP standard programs normally it's used for the following purpose:

In change mode in ZTABLE you have the old values, in the *ZTABLE you have the new values, what the user entered, so the program can compare if anything was changed or not.

Peter

0 Kudos

Hello Peter / Michael,

There is a slight correction that I must like to make here.

The TABLES statement does not create an internal table. It merely creates a work-area whose structure is defined in the ABAP dictionary.

Regards,

Anand Mandalika.

0 Kudos

Sorry, you're right...

(I didn't use TABLES statement recently as it's not allowed in ABAP OO.)

Peter