‎2011 Apr 19 5:44 AM
Hi All.
Iam calling a customizes class in the report program.
I have declared data based on class type, even though getting error like The type of "V_OBJEK" cannot be converted to the type of "V_TPLNR".
eg:
I need to pass value from ausp-objek to v_tplnr ( type is TPLNR ) both are diffrent data type .
so create a filed as v_objek ( type char30 ).
Now pasing value from ausp-objek to v_objek variable.
v_objek = ausp-objek
then moving values from v_objek to v_tplnr .here getting error.
Could you help me to resolve this doubts.
Regards.
Ram.
‎2011 Apr 19 6:02 AM
hi,
ausp-objek is type CHAR 50
TPLNR is type char 30 .
as the length is different
make changes according to there length
regards
Deepak.
‎2011 Apr 19 6:28 AM
Hi.
Thanks for your reply.I have no error when values passing from ausp-objek to STRING field.
but getting error when value are passing from String to TPLNR..Please help me.
Regards.
Ram
‎2011 Apr 19 6:35 AM
‎2011 Apr 19 6:50 AM
hi ,
when values passing from ausp-objek to STRING field .
ausp-objek have length 50 and string type does not have fixed length so it accepts those fixed length value
where as in case of string to fixed length it will accept only character upto its fixed length
can you tell me what value you are passing from string to Fixed charater .
Regards
Deepak.
‎2011 Apr 19 7:52 AM
Hi Jayaram,
This is my understanding about your requirment.
data:
g_objek type ausp-objek,
g_tplnr type TPLNR," This is of type (CHAR 30)
v_objek type char30.
MOVE g_objek to v_objek.
MOVE v_objek to g_tplnr.Is this understanding correst ?
If so what is the error you are getting here ?
I coudn't find any issue in passing values like this.
Regards
HM