Skip to Content
0
Former Member
Mar 09, 2007 at 10:46 AM

type problems

15 Views

Hi

My issues is: pls look into following simple code to understand my problem.

call method l_obj1->method1

importing

i_para1 = a_para1.

call method l_obj2->method2

exporting

e_para1 = a_para1.

l_obj1 and l_obj2 are two objects of their respective classes.

from my first method i am importing parameter from method1 to variable a_para1 and passing the same to method2 of class for which l_obj2 is the instance.

the issue is: i_para1 and a_para1 are type compatible

but e_para1 and a_para1 are not type compatible.

but still i have to pass the variable a_para1 to e_para1.

How to do that: i am new to type casting.

pls help.

Deepak