2013 Jun 11 8:35 AM
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.
2013 Jun 11 9:45 AM
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.
2013 Jun 11 9:45 AM
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.