2009 Nov 26 3:52 AM
Hi all,
i am working on upgrade project ,from ecc5.0 to ecc6.0,i am getting error like
QTY_TAB-ATP must be a character-type field (data type C,N,D,or T
its already decleared in the program atp like mdps-mng04
ATP is an quantity field ,in the table its decleare in data tyep is p, and length of the field is 13.
i decleared like below
DATA: atp(13) type p. its working fine ,if i decleare C,N,D the field value is not coming in out put.
please suggest me how to do further for this error,is it correct declearation are i need to change.
Regards,
Madhu
2009 Nov 26 4:00 AM
Hello,
When are you getting this error? When you are trying to perform some operation on the quantity field variable?
Vikranth
2009 Nov 26 4:11 AM
Hi vikranth,
its on unicode error ,it shows in the statement on below statement
set parameter id 'ZQ2' field qty_tab-atp .
its fine on decleare like data:atp(13) type c, but in the out put value not coming
if i decleare data:atp(13) type p. its fine i checked in the table mdps-mng04 its on prevois declearance table.
please sugest me its on quantity field incase its get problem when customer enter some value....
madhu
2009 Nov 26 4:12 AM
Declare as DATA : atp type MENGV13.
or DATA : atp type MNG04.
This is same as mdps-mng04 data type.
This will solve your issue.
Edited by: Harsh Bhalla on Nov 26, 2009 9:44 AM
2009 Nov 26 4:14 AM
Seems like you are trying to concatenate this value to a character field or doing some character operation on it.
Create a temporary character field and write the quantity value to it before performing any operations.
Regards
Karthik D
2009 Nov 26 4:22 AM
Hi,
Use Field symbols
FIELD-SYMBOLS <tmp> TYPE C.
ASSIGN QTY_TAB-ATP TO <tmp> CASTING.
Try this...
Hope this helps..