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

internal table

Former Member
0 Likes
508

i have this two internal table

types:begin of y_lt_mkpf,

bldat type mkpf-bldat,

frbnr type mkpf-frbnr,

bktxt type mkpf-bktxt,

end of y_lt_mkpf.

types:begin of y_lt_lfa1,

name1 type lfa1-name1,

end of y_lt_lfa1.

data:y_li_mkpf type table of y_lt_mkpf.

data:y_li_lfa1 type table of y_lt_lfa1.

i want to add the field name1 in the internal table y_li_lfa1 to the internal table y_li_mkpf.

so that i get this internal table

types:begin of y_lt_mkpf,

bldat type mkpf-bldat,

frbnr type mkpf-frbnr,

bktxt type mkpf-bktxt,

name1 type lfa1-name1,

end of y_lt_mkpf.

data:y_li_mkpf type table of y_lt_mkpf.

2 REPLIES 2
Read only

Former Member
0 Likes
426

hi rajan,

U can add t directly.

else if u want to add it through programatically,

use <b>Include structure y_lt_lfa1 </b> in the defination of y_lt_mkpf.

<b>Reward points if useful</b>

Chandra

Read only

dev_parbutteea
Active Contributor
0 Likes
426

Hi,

there is no link (similar filed name) between these two tables. So, you won't be able to move the required field name to first table directly.

Regards.