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

how do i modify internal table contents which contains a nested structure

Former Member
0 Likes
834

hi,

can anybody explain me how do i modify a nested structured a internal table.

i am trying to modify a field in a nested structured internal table.

also, i have another question..

here is issue.

imagine..

there is two internal table..

but i need to compare only 3 fields ..how do i do it..

if i want to compare two internal.

for example

if h_it[ ] NE i_it [ ] " if i want to compare two internal table..

but my issue..is two compare some field in the internal table...i am looking for easy approach ..not routine loop thru process ..which i know how do it.

Edited by: Deepan Gunalan on May 19, 2009 11:53 PM

hi,

can anybody explain me how do i modify a nested structured a internal table.

i am trying to modify a field in a nested structured internal table.

also, i have another question..

here is issue.

imagine..

there is two internal table..

but i need to compare only 3 fields ..how do i do it..

if i want to compare two internal.

for example

if h_it[ ] NE i_it [ ] " if i want to compare two internal table..

but my issue..is two compare some field in the internal table...i am looking for easy approach ..not routine loop thru process ..which i know how do it.

Edited by: Deepan Gunalan on May 19, 2009 11:53 PM

2 REPLIES 2
Read only

Former Member
0 Likes
605

Try to move the 3 fields into another table (provided type/length/Sequence are same) & then compare the TB1[] = tb2[].

Also, for the nested structure use this:

types: begin of P1,

F1(10) type c,

F2(20) type c,

end of P1,

begin of P2,

C1(10) type c,

C2(20) type c,

end of P2.

data: begin of S1,

F0 type x.

include type P1 as P.

data: f3 type i,

f4 type p,

end of S1,

begin of S2,

C0 type i.

include type P2 as P.

data: C3 type x,

C4 type f,

end of S2.

S1-PART = S2-PART.

Hope this helps.

Read only

Former Member
0 Likes
605

Hi Deepan,

This requirement has been clearly explained in the SAP Demo program..

Check the transaction ABAPDOCU please.....

Or Check the Demo Program DEMO_STRUCTURE

Thanks,

Babu Kilari