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: 

Type conflict when calling RFC

0 Kudos
211

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.

5 REPLIES 5

FredericGirod
Active Contributor
0 Kudos
165

Hi,

how did you define <LT_PRD_SYSTEM>  ?

regards

Fred

0 Kudos
165

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

0 Kudos
165

it's the assignation  not the define.

field-symbols : <..> type any ? table ?

regards

Fred

0 Kudos
165

I defined like this.

field-symbols: <lt_prd_system> type any table.

regards,

Satish

0 Kudos
165

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