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: 

quantity field error

Former Member
0 Kudos
495

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

5 REPLIES 5

Former Member
0 Kudos
213

Hello,

When are you getting this error? When you are trying to perform some operation on the quantity field variable?

Vikranth

Former Member
0 Kudos
213

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

Former Member
0 Kudos
213

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

Former Member
0 Kudos
213

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

Former Member
0 Kudos
213

Hi,

Use Field symbols

FIELD-SYMBOLS <tmp> TYPE C.

ASSIGN QTY_TAB-ATP TO <tmp> CASTING.

Try this...

Hope this helps..