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

star structure?

Former Member
0 Likes
563

Does any one know why do we put start (*) sometimes 2 declare work areas, eg watts the diff between

TABLES: sadr and

TABLES: *sadr

Thanks

Sameer

2 REPLIES 2
Read only

Former Member
0 Likes
445

Hi

It mean it needs to use the workarea of the same table twice.

TABLES:  <TABLE>,
               *<TABLE>.

It's like to define:

TABLES:  <TABLE>.
DATA:  WA TYPE <TABLE>.

In the samples it declares two workarea based on the same structure.

SELECT * FROM SADR WHERE .....
   IF SADR-<FIELD> = ............
      SELECT * FROM *SADR WHERE .....

In this way I can do two queries for the same table and store the result in two different workarea without to lose the result of the first query.

Max

Read only

0 Likes
445

Got it.

Thanks Max.