Application Development 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: 

Authorization object - dump on field type due to character

Former Member
0 Kudos

Hi all,

As i have created an Authorization object

AUTHORITY-CHECK OBJECT 'YINF_BYTE'

ID 'Y_BYTE_CON' FIELD lv_byte_count.

While creating the authorization field ('Y_BYTE_CON' ), the data type I defined is ABAP_MSIZE.Similarly the type of the variable('LV_BYTE_COUNT) i am passing to the authorization object

is of the same type (i.e.,ABAP_MSIZE).

I am getting an syntax error 'LV_BYTE_COUNT must be a Character type field',Please help me out in resolving this.

Thanks in advance,

Ram

Edited by: Julius Bussche on Feb 20, 2009 9:19 AM

Please use meaningfull subject titles

3 REPLIES 3

Former Member
0 Kudos

Hi ramprasad,

You need to use the data type as ABAPTYPE. As abaptype is a charector data type.

Regards,

Chinmaya

0 Kudos

Hi Chinmaya,

Which data type i need to go with ABAPTYPE..? is it the variable i am passing to the authorization object or the authorization field i need to change as ABAPTYPE..?

Plz advice me.

Thanks,

Ram

0 Kudos

For both the fields you need to have them declared either as abaptype or simply as char.