‎2008 Aug 14 3:14 PM
Hi,
I am calling a method decared in a global class (se24) in my program. The method requires an import value TITLE which is defined as STRING.
In the program, I pass a text message to this global method. See the following:
call method ZW_UPDATE=>F1HELP
EXPORTING
TITLE = text-002.
However, when I try to run the program, it complains that "TEXT-002" is not type-compatible with formal parameter "TITLE".
How can I get around with this problem?
Thanks,
Anna
‎2008 Aug 14 3:16 PM
define a string variable and pass it like the below.
data: str type string.
str = '23243245235235t2fgsdfgdgsergegewwewefawef'(002).
call method ZW_UPDATE=>F1HELP
EXPORTING
TITLE = str.
‎2008 Aug 14 3:15 PM
‎2008 Aug 14 3:16 PM
define a string variable and pass it like the below.
data: str type string.
str = '23243245235235t2fgsdfgdgsergegewwewefawef'(002).
call method ZW_UPDATE=>F1HELP
EXPORTING
TITLE = str.
‎2008 Aug 14 3:17 PM
Hi,
you can not pass the text element directly to the method or function module. you need to declare the data variable with type C or String and then need to pass it to FM/Method.
I hope it will solve your query.
Thanks,
Kamesh Bathla
‎2008 Aug 14 3:47 PM