Application Development and Automation 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: 
Read only

Exception CX_SY_DYN_CALL_ILLEGAL_TYPE when calling function

Former Member
0 Likes
29,210

Hello,

When I call a function module, it gives a runtime error like this:

Runtime error CALL_FUNCTION_CONFLICT_TYPE

Except. CX_SY_DYN_CALL_ILLEGAL_TYPE

The problem is that I'm using something like below:

call function zzz

exporting

xxx = yyy

with:

xxx type char50

yyy type char2

Is there a possibility to transform my char2 into a char50?

By doing this, I would be able to use the function module.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
13,550

data:var(50) type c.

var = yyy

call function ab

imp

xxx = var.

10 REPLIES 10
Read only

Former Member
0 Likes
13,550

Hi Glenn,

Type of the xxx and yyy should be same

so take as below:

DATA:

xxx type char50

yyy type char50

or

xxx type char2

yyy type char2

it will solves your problem

Thanks!!

Read only

0 Likes
13,550

Yes, I know it should be the same, but for some reasons I can't change the types of these parameters.

So I was looking for a transformation of a char2 to a char50.

Thanks

Read only

Former Member
0 Likes
13,551

data:var(50) type c.

var = yyy

call function ab

imp

xxx = var.

Read only

0 Likes
13,550

Thanks, this solved my problem!

Read only

0 Likes
13,550

Thanks, this solved my problem!

Read only

0 Likes
13,550

Thanks! That solved my problem!

Read only

0 Likes
13,550

Thanks.

This helped to solve my problem!

regards

Read only

0 Likes
13,550

Thanks! That solved my problem.

Regards

Read only

christine_evans
Active Contributor
0 Likes
13,550

Whenever you call a function module, always ensure that your import, export etc parameters are typed in exactly the same way as they are typed in the function module. This is a foolproof way of avoiding this type of error and I've never seen why anyone would want to do anything else.

Read only

Former Member
0 Likes
13,548

hi,

do one thing just make the type and size of both the importing and exporting parameter same...

example:-

data: a(10) type c. (importing)

data: b(10) type c. (exporting)

i think this will help u

with regards,

Ritesh J