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

regarding QUAN data type

Former Member
0 Likes
2,500

Hi,

iam creating a ztable , with fields LENGTH,BREADTH, HEIGHT. Now my problem is,i have these 3 possibilities in my mind,jus cirrect me and tell me which is the right one..

1. i have created a custom Data Element,with data type NUMC for the above fields.

2.Create a custom Data Element,with data type INT2 for the above fields.

3. Use the standard Data element for these fields (LAENG,BREIT) for which the data type is QUAN, when i tried to use them and activate the table ,i get amessage .... ZPLTMTR-BREADTH (specify reference table AND reference field)...can anybody please explain me how to solve them.

thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,754

Hi,

The correct option is number 3. Your length, bredth and height are only meaningful if they are assigned a unit of measure, and type QUAN will enforce that (hence the error).

If I ask you to build a box 15 by 10 by 10, you could build 15cm by 10cm by 10cm, but if I meant the box in metres you would have built it too small.

Your table needs a field for unit of measure (or possibly 3, depending on whether the measurements are always in the same unit). Click on the 'Currency/Quantity fields' tab of your table and enter your unit field name for each QUAN value.

Regards,

Nick

6 REPLIES 6
Read only

Former Member
0 Likes
1,755

Hi,

The correct option is number 3. Your length, bredth and height are only meaningful if they are assigned a unit of measure, and type QUAN will enforce that (hence the error).

If I ask you to build a box 15 by 10 by 10, you could build 15cm by 10cm by 10cm, but if I meant the box in metres you would have built it too small.

Your table needs a field for unit of measure (or possibly 3, depending on whether the measurements are always in the same unit). Click on the 'Currency/Quantity fields' tab of your table and enter your unit field name for each QUAN value.

Regards,

Nick

Read only

0 Likes
1,754

thanks Nick,for good explanation, but how do i get the reference field and table because i have tried using MARA_MAEBM and i get the error does not exist.

how shud i find wat is the reference table and field.for that?

Read only

0 Likes
1,754

Hi,

I would usualy suggest adding another field to your Z table to hold the unit of measure and using that. However if your Z table relates to the material master you could use MARA-MEINS.

Regards,

Nick

Read only

0 Likes
1,754

thanks nick .i got it,but i have one more doubt that is...im creating these fields length ,breadth for which i have used (LAENG,BRIET)but the data type QUAN is of length 13 characters, now im using theses fields in a screen and when i try to enter 3 digit value into these input fields i get the error ....Entry too long (enter in the format ~.__). and i replace it with 2 digit it will accept.

and one more.

each and every screen field value can be passed to the program only by PRAMAETER id statement or can u please suggest me the best possible way to pass the screen values to the program.

Read only

0 Likes
1,754

Hi,

I suggest you raise some new questions for this problems, as you've marked this question as answered there's only you and me reading it now

Regards,

Nick

Read only

0 Likes
1,754

ok thanks nick an d do reply me