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

Error while calling class in report

Former Member
0 Likes
779

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.

5 REPLIES 5
Read only

deepak_dhamat
Active Contributor
0 Likes
740

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.

Read only

0 Likes
740

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

Read only

0 Likes
740

hi ,

Which is string Field ?

Regards

Deepak.

Read only

0 Likes
740

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.

Read only

Former Member
0 Likes
740

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