cancel
Showing results for 
Search instead for 
Did you mean: 

Resulttype of "IS_EE_ORG_ASS_REPL_REQ-ORG_ASSIGNMENT[... ]" cannot be converted into the type of

PTecnico
Explorer
0 Kudos
141

Hi experts

Result type of "IS_EE_ORG_ASS_REPL_REQ-ORG_ASSIGNMENT[... ]" cannot be converted into the type of
"LT_FIN".

This is the code:

TYPES : BEGIN OF gty_displaydata_order,
    INCLUDE TYPE SFIOM_S_REPL_REQ_ORG_ASS_EXTND,
    persg       TYPE persg.
TYPES END OF gty_displaydata_order.

DATA :lt_fin  TYPE TABLE OF gty_displaydata_order .
DATA(lv_cont) = lines( is_ee_org_ass_repl_req-org_assignment ).

IF lv_cont >= 2.
  APPEND LINES OF is_ee_org_ass_repl_req-org_assignment[ lv_cont - 1 ] TO lt_fin .
ELSEIF lv_cont = 1.
  APPEND is_ee_org_ass_repl_req-org_assignment[ lv_cont ] TO lt_fin.
ENDIF.

Regards

 

View Entire Topic
raymond_giuseppi
Active Contributor
0 Kudos

AFAIK sfiom_s_repl_req_org_ass_extnd is an internal table of line structure sfiom_s_repl_req_org_ass_extnd. Compare in your system this structure definition with the one defined in your code, then adapt your definition and/or your code.

PTecnico
Explorer
0 Kudos

Hi Raymon, I have done several changes and the error is the same

My requirement is define a TYPES with the following information, and create a internal table of this type.

TYPES : BEGIN OF gty_displaydata_order,
    INCLUDE TYPE SFIOM_S_REPL_REQ_ORG_ASS_EXTND,
    persg       TYPE persg.
TYPES END OF gty_displaydata_order.

DATA :lt_fin  TYPE TABLE OF gty_displaydata_order .

Then I need add records to this internal table, however this generate the error:

I share the following information

PTecnico_0-1737192014322.png

Regards