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

data declaration of internal table

Former Member
0 Likes
752

Hi,

i want to understand some part of code. i have a structure, aaa based on which an internal table is created as given below

DATA *xaaa TYPE HASHED TABLE OF aaa WITH HEADER LINE.

what does the * mean before xaaa ?

also if i need another such internal table can i just say

Data *yaaa LIKE *xaaa.

will this work ?

thaanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
731

well the * is in this case just a character like any other. could be a o or a p as well or anything else.

your suspicion about the data declaration of another internal table of same structure is correct, this will work.

BUT back to the * problem. There is a certain scheme behind this. When you scan some SAP programms you will very often come over itabs like *vbap, xvbap, yvbap.

i dont really know the scheme behind this but there is something like in xtable are the old records BEFORE changing or stuff like that. you may inform yourself about that topic.

Hi,

i want to understand some part of code. i have a structure, aaa based on which an internal table is created as given below

DATA *xaaa TYPE HASHED TABLE OF aaa WITH HEADER LINE.

what does the * mean before xaaa ?

also if i need another such internal table can i just say

Data *yaaa LIKE *xaaa.

will this work ?

thaanks

5 REPLIES 5
Read only

Former Member
0 Likes
732

well the * is in this case just a character like any other. could be a o or a p as well or anything else.

your suspicion about the data declaration of another internal table of same structure is correct, this will work.

BUT back to the * problem. There is a certain scheme behind this. When you scan some SAP programms you will very often come over itabs like *vbap, xvbap, yvbap.

i dont really know the scheme behind this but there is something like in xtable are the old records BEFORE changing or stuff like that. you may inform yourself about that topic.

Read only

Former Member
0 Likes
731

Hi Friend ,

1 . This type of programs and declarations is generally done by Basis people , such type of programs are

dynamically generated . And their naming convention is also different like '$P00005B' ,

2. some programs developed before few years back , like in sap 3.0 version or even lower versions , such

type of coding is possible .

Thanks ,

Reward if usefull.......

Read only

0 Likes
731

hmm. so it does not carry any special meaning like pointers in c/c++ ? its just another naming style ?

Read only

0 Likes
731

aye just a naming style.

Read only

0 Likes
731

thank you all.