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

Regarding internal table

Former Member
0 Likes
883

hii frnds,

i have an internal table in a standard program as it_pos like rfposxext occurs 1 with header line.

now i want to create a new internal table as itpos and i want to add two more fields in it .

can anyone say wht is the syntax for it.

7 REPLIES 7
Read only

Former Member
0 Likes
827

hi,

u can use include structure statement.

data: begin of itpos occurs 0.

include structure rfposxext .

data: <> type <> ,

<> type <>,

end of itpos.

thanq,

rajesh.k

Read only

Former Member
0 Likes
827

Hi Radhika,

the syntax is:

data: begin of it_pos1 occurs 0, (assume table name is catsdb)

data include <structure name>,

pernr like catsdb-perner,

wokdate like catsdb-aorkdate,

end of it_pos1.

i hope it'll work.

do u want the same fields of it_pos in it_pos1?then let me know,bcaz m not much clear wid ur query.

Regards,

Sneha.

Edited by: sneha kumari on Jun 10, 2009 11:46 AM

Read only

Former Member
0 Likes
827

hi,

Try this..



data: begin of itpos occurs 0.
data: include structure rfposxext .
data: field1  type <type of field> .
data: field2  type <type of field> . 
end of itpos.

hope this helps

Regards

RItesh Jha

Read only

Former Member
0 Likes
827

Hi,

Try this.

data: begin of it_pos1 occurs 0.

include structure it_pos .

data: field1 type c,

field2 type c ,

end of itpos.

Read only

Former Member
0 Likes
827

Hi ,

try this,

data: begin of itpos occurs 0.

data: include structure rfposxext .

data: field1 type <type of field> .

data: field2 type <type of field> .

end of itpos.

Please let me know if you need any more details.

Thanks and regards,

Rajeshwar.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
827

check whether any spots are available

Read only

0 Likes
827

else is there any process to know the fileds in the internal table it_tab???