2009 May 19 10:52 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
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
2009 May 19 11:15 PM
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.
2009 May 20 4:44 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |