‎2009 Jun 10 10:18 AM
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.
‎2009 Jun 10 10:21 AM
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
‎2009 Jun 10 10:29 AM
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
‎2009 Jun 10 10:30 AM
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
‎2009 Jun 10 10:32 AM
Hi,
Try this.
data: begin of it_pos1 occurs 0.
include structure it_pos .
data: field1 type c,
field2 type c ,
end of itpos.
‎2009 Jun 10 10:35 AM
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.
‎2009 Jun 10 10:52 AM
‎2009 Jun 13 7:16 AM
else is there any process to know the fileds in the internal table it_tab???