02-20-2009 5:35 AM
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
02-20-2009 6:40 AM
Hi ramprasad,
You need to use the data type as ABAPTYPE. As abaptype is a charector data type.
Regards,
Chinmaya
02-20-2009 7:07 AM
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
02-20-2009 7:45 AM
For both the fields you need to have them declared either as abaptype or simply as char.