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

Container alv-Editable cell

Former Member
0 Likes
362

Hi,

I need to change a program.There should be editable cells depending on values in it.

I have added a field internal table which is displaying. (CELLSTYLES  type  LVC_T_STYL) For sniping cells. But when ı add this field.

"ZTAZAM_S05" must be a flat structure. You cannot use internal tables,

strings, references, or structures as components. -

There are performs which are using this structure

ex.

form get_selected_rows  tables alv structure ztazam_s05
                         using  ucomm.

ztazam_s05 is structure of internal table .

How can ı move a structure which has an internal table in it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
320

Hi, try for the code as below.

types : begin of ty_struct,

             f1 type ....,

             f2 type......,

             f3 type <tabletype>,

           end of ty_struct.

data : wa_struct type ty_struct,

         t_struct type table of ty_struct.

data : wa_st  like line of <tabletype>.

        wa_st-<filed1> = ....

        wa_st-<field2> = ...

       append wa_st to wa_struct-f3.

In this way we can populate the data for the field which is of type internal table.

If this is not the case can u give some more clarification regarding your problem.

1 REPLY 1
Read only

Former Member
0 Likes
321

Hi, try for the code as below.

types : begin of ty_struct,

             f1 type ....,

             f2 type......,

             f3 type <tabletype>,

           end of ty_struct.

data : wa_struct type ty_struct,

         t_struct type table of ty_struct.

data : wa_st  like line of <tabletype>.

        wa_st-<filed1> = ....

        wa_st-<field2> = ...

       append wa_st to wa_struct-f3.

In this way we can populate the data for the field which is of type internal table.

If this is not the case can u give some more clarification regarding your problem.