2014 Oct 28 7:36 AM
Hi,
I have dynamically created internal table, work area, and a variable.
I assigned a field of dynmic structure <ls_tab1> to dyn variable <lv_sol_id>.
But when executing, I am getting dump "Type conflict error when calling RFC".
88
89 IF <lt_tab1> IS NOT INITIAL.
90 LOOP AT <lt_tab1> ASSIGNING <ls_tab1>.
93 assign COMPONENT 'OBJECTNO' OF STRUCTURE <ls_tab1> to <lv_sol_id>.
94
>>>>> CALL FUNCTION 'SMSYCL_SM_GET_ASSIGNED_SYSTEMS'
96 EXPORTING
97 iv_groupname = <lv_sol_id>
98 * IV_LOGCMP =
99 iv_read_inactive = abap_true
100 * IV_ROLE = ' '
101 IMPORTING
102 et_group_systems = <lt_prd_system>
103 EXCEPTIONS
104 group_does_not_exist = 1
105 error = 2
106 OTHERS = 3.
Please help me how can i solve this.
2014 Oct 28 7:39 AM
2014 Oct 28 7:44 AM
Hi Fred,
I defined as below.
CREATE DATA lv_sol_id TYPE ('SMSY_GROUPNAME').
CREATE DATA lt_prd_system TYPE ('SMSY_T_GRP_SYST').
ASSIGN lv_sol_id->* TO <lv_sol_id>.
ASSIGN lt_prd_system->* TO <lt_prd_system>.
regards,
Satish
2014 Oct 28 7:51 AM
it's the assignation not the define.
field-symbols : <..> type any ? table ?
regards
Fred
2014 Oct 28 9:01 AM
I defined like this.
field-symbols: <lt_prd_system> type any table.
regards,
Satish
2014 Oct 28 9:31 AM
I think it's your issue, you could not use a type table with a parameter of a function importing/exporting ..
try to put a simple field to check this.
regards
Fred