Application Development 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: 

How to Declare an internal table in Defining Global classes using SE24.

Former Member
0 Kudos

Hi All,

I have quick question.

Suppose i want to include an internal table in the public section of my goblal Class suing SE24 Transaction, How could i possibly do it.

TYPES: begin of imat,

matnr type mara-matnr,

mtart type mara-mtart,

matkl type mara-matkl,

ersda type mara-ersda,

end of imat.

suppose i want to include this internal table in the public section of my Global Class ZCL_MAT_DETAILS.

Could someone please tell me how to do it in detail.

In the Types Tab, I couldn't figure out how to do it.

Thanks,

Matt

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Create a table type with those fields and the declare a table of that type in the public section. Hope it helps.

4 REPLIES 4

Former Member
0 Kudos

Create a table type with those fields and the declare a table of that type in the public section. Hope it helps.

0 Kudos

Thanks Naren for Quick Reply.

You want me to create a table/structure in SE11 ?? What do you want me to do ???

Thanks once again

0 Kudos

Create a table type in SE11 and then use it in SE24.

Former Member
0 Kudos

Hi,

Click the TYPES tab..

Give the type name under the type column..Then click the extended button in the same row...Then do the declaration there..save and activate...Then you can use the type in your method to create an internal table.

TYPES: begin of imat,

matnr type mara-matnr,

mtart type mara-mtart,

matkl type mara-matkl,

ersda type mara-ersda,

end of imat.

Thanks

Naren