2023 Apr 24 8:20 AM
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 notpossible.
how can I fix this?
Thanks!
2023 Apr 24 8:34 AM
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.
2023 Apr 24 8:34 AM
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.