‎2009 Jan 06 10:27 AM
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
‎2009 Jan 06 10:33 AM
data:var(50) type c.
var = yyy
call function ab
imp
xxx = var.
‎2009 Jan 06 10:29 AM
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!!
‎2009 Jan 06 10:36 AM
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
‎2009 Jan 06 10:33 AM
data:var(50) type c.
var = yyy
call function ab
imp
xxx = var.
‎2009 Jan 06 10:40 AM
‎2009 Jan 06 10:40 AM
‎2009 Jan 06 10:40 AM
‎2009 Jan 06 10:43 AM
‎2009 Jan 06 11:13 AM
‎2009 Jan 06 10:35 AM
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.
‎2009 Jan 06 10:40 AM
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