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 declaration -OO ABAP

Former Member
0 Likes
1,707

Hi,

I am looking to declare an internal table using OO objects. My declaration are as follows..

TYPES : Begin of itab,

f1 type c,

f2 type c,

...............

..............

End of itab.

DATA : itab1 type standard table of itab.

DATA: wa_tab type itab.

I have an internal table to say itab_pa2001 which i am reading all the records of pernr into ITAB_PA2001.To get the text i want to select * from t5*** into ..... Finally wht am looking is to move some of the fields into the final table ITAB. Could you please let me know how to set this up as i am getting wrong values when i am looping as below.

how to declare a structure in ITAB using ABAP OO....??

LOOP at ITAB_PA2001 into wa_itab.

..........

ENDLOOP.

Thanks,

Vind

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
540

Hi,

Please refer to following links :

[How to declare an internal table in OO-ABAP programming? |;

[sample object oriented ABAP program |http://wiki.sdn.sap.com/wiki/display/Snippets/sampleobjectorientedABAPprogram]

Hope this helps.

Regards,

Chandravadan

2 REPLIES 2
Read only

Former Member
0 Likes
541

Hi,

Please refer to following links :

[How to declare an internal table in OO-ABAP programming? |;

[sample object oriented ABAP program |http://wiki.sdn.sap.com/wiki/display/Snippets/sampleobjectorientedABAPprogram]

Hope this helps.

Regards,

Chandravadan

Read only

Former Member
0 Likes
540

hi,

there is no difference in the declaration of the internal table when you are classes to achieve the task.

it is same as basic programming.