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: 

Error Message: cannot be converted to the row type of "TS_INSERTLOG"

calvinkarlo
Explorer
0 Kudos
1,702

Hello my friends,

TYPES: BEGIN OF y_output.

INCLUDE TYPE ZKXX_SU_LOG.

END OF y_output.

DATA: ts_insertlog TYPE STANDARD TABLE of ZKXX_SU_LOG,

s_insertlog TYPE y_output.


APPEND s_insertlog TO ts_insertlog.

I encounter this error.

"S_INSERTLOG" cannot be converted to the row

type of "TS_INSERTLOG". The reverse is also not

possible.

how can I fix this?

Thanks!

1 ACCEPTED SOLUTION

Tomas_Buryanek
Active Contributor
0 Kudos
1,668

Hello,

there are more options:

1) If you want to declare structure localy:

TYPES: BEGIN OF y_output.
  INCLUDE TYPE ZKXX_SU_LOG.
END OF y_output.
DATA: ts_insertlog TYPE TABLE of y_output,
s_insertlog LIKE LINE OF ts_insertlog.

2) If you do not need local type:

DATA: ts_insertlog TYPE TABLE of ZKXX_SU_LOG,
s_insertlog LIKE LINE OF ts_insertlog.
-- Tomas --
1 REPLY 1

Tomas_Buryanek
Active Contributor
0 Kudos
1,669

Hello,

there are more options:

1) If you want to declare structure localy:

TYPES: BEGIN OF y_output.
  INCLUDE TYPE ZKXX_SU_LOG.
END OF y_output.
DATA: ts_insertlog TYPE TABLE of y_output,
s_insertlog LIKE LINE OF ts_insertlog.

2) If you do not need local type:

DATA: ts_insertlog TYPE TABLE of ZKXX_SU_LOG,
s_insertlog LIKE LINE OF ts_insertlog.
-- Tomas --