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

Declaring generic type inside an internal table

Former Member
0 Likes
578

Hi All,

I want to declare one generic internal table type inside an internal table.Can anyone tell how to achieve this?

Thanks in advance.

3 REPLIES 3
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
538

itab type table.

Read only

0 Likes
538

This will throw an error saying "TABLE IS GENERIC TYPE AND CAN BE USED FOR FORMAL PARAMETER OR FOR FIELD-SYMBOLS ONLY"

ok...Can you tell me how to give reference for an dynamic internal table to an field of internal table?

Read only

muhammad_sohail
Participant
0 Likes
538

Dear,

BEGIN OF itab,

date type sy-datum, " For Date type

str1 type c, " For character type

str2(30) type c, " For character type length (30)

num type i, " For integer type

Project tYPE prps-posid, " For Standard type

END OF itab.

You can put any type of data in an internal table as above.

Thanks and Regards,

Sohail