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

creating internal table same as <fs>

former_member463678
Participant
0 Likes
427

Hello Experts,

I have <fs> contains 12 fields. the fields to this <fs> are dynamically created. Now I want to create internal table having same structure as <fs>.

Is it possible?

Pls suggest...........

Thanks in advance.

Zak.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
398

Hi Zakir,

Yes it is possible. Try for example like :

FIELD-SYMBOLS :
  <fs> TYPE vbak.

DATA :
  t_tab LIKE STANDARD TABLE OF <fs>.

Regards,

Swapna.

Hello Experts,

I have <fs> contains 12 fields. the fields to this <fs> are dynamically created. Now I want to create internal table having same structure as <fs>.

Is it possible?

Pls suggest...........

Thanks in advance.

Zak.

2 REPLIES 2
Read only

Former Member
0 Likes
399

Hi Zakir,

Yes it is possible. Try for example like :

FIELD-SYMBOLS :
  <fs> TYPE vbak.

DATA :
  t_tab LIKE STANDARD TABLE OF <fs>.

Regards,

Swapna.

Read only

Former Member
0 Likes
398

Hi,

Is ur <fs> a structure having all the 12 fields. Thenu can build the field catalogue from that using the FM LVC_FIELD_CATALOG_MERGE.

Using that field catalogue, a dynamic internal table can be created using call method cl_alv_table_create=>create_dynamic_table

-Satya Priya