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: 

Structure as last field in Dynamic Int.table?

former_member194669
Active Contributor
0 Kudos
127

Hi,

I am creating an dynamic internal table as like the following


  call method cl_alv_table_create=>create_dynamic_table
    exporting
      it_fieldcatalog = pt_fieldcat
    importing
      ep_table        = g_hts.
  assign g_hts->* to <i_hts1>.

but while creating the dynamic internal table i need to add CHKBX field in the last with type as mentioned below


types: CHKBX        type lvc_t_styl.

"--> Here lvc_t_styl is structure.

Any info how to create a field catalog for this?

1 ACCEPTED SOLUTION

uwe_schieferstein
Active Contributor
0 Kudos
93

Hello

You may have a look at my Wiki posting:

[Creating Flat and Complex Internal Tables Dynamically using RTTI|https://wiki.sdn.sap.com/wiki/display/Snippets/CreatingFlatandComplexInternalTablesDynamicallyusingRTTI]

Regards

Uwe

2 REPLIES 2

uwe_schieferstein
Active Contributor
0 Kudos
94

Hello

You may have a look at my Wiki posting:

[Creating Flat and Complex Internal Tables Dynamically using RTTI|https://wiki.sdn.sap.com/wiki/display/Snippets/CreatingFlatandComplexInternalTablesDynamicallyusingRTTI]

Regards

Uwe

0 Kudos
93

Thanks Uwe,

This is what i am looking for. That solved my problem