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 and Parameter id

Former Member
0 Likes
1,184

Dear all

i have a doubt that is...im creating 3 fields LENGTH,BREADTH,THICKNESS 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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,068

Hai,

Screen values may not be passed explicitly.The variable names in your program should be equal to (same) the names of the screen variables.The data is transfered automatically.

Regards,

Venkat

Dear all

i have a doubt that is...im creating 3 fields LENGTH,BREADTH,THICKNESS 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.

5 REPLIES 5
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,068

For a QUAN field (or a CURR) the number of available decimal places is related to the UNIT (rel CUCY) associated to the field (call customizing transaction CUNI)

As you defined a table or structure the reference will come from DDIC, look at [Dictionary Attributes|http://help.sap.com/saphelp_nw70/helpdata/en/d1/801c47454211d189710000e8322d00/content.htm] in [Screen Painter|http://help.sap.com/saphelp_nw70/helpdata/en/d1/801b50454211d189710000e8322d00/frameset.htm]

First read the material master data (MARA) to get the unit and move the MEINS value to the reference field.

Regards,

Raymond

Read only

0 Likes
1,068

Dear all

My question is...im creating a Ztable in which 3 fields LENGTH,BREADTH,THICKNESS for which i have used (LAENG,BRIET) as Data element 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,068

Dear all, any help

Read only

Former Member
0 Likes
1,068

Hi Naren

If you have to consider the commas and dots also in output lenght which is 17

10 digits
3 digits after decimal point 

= 13 "Length

1 decimal point 
3 commas

= 4

13 + 4 = 17 "Output Length

if you enter 1,234,567,890.123 OR 1234567890 it will except

But if you will enter 12345678901 it will not because ... it will not accept 11 digits... less then 11 digits it will except...

also if you pass the 10 digits then decimal point and then upto 3 digits afrter the decimal point then also it will accept...

Try to Debug the code and check the value of the parameter ID you are passing in screen...

Check for the above validation...

also check out the data type must match...

post your code as well here so we can give better suggestion on it...

Also there is no parameter ID for the Dataelement LAENG

For passing values to other report have a look on below thread..

Also Search on SCN using SUBMIT and also have a look on ABAP help for SUBMIT statmetn for better idea...

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

Read only

Former Member
0 Likes
1,069

Hai,

Screen values may not be passed explicitly.The variable names in your program should be equal to (same) the names of the screen variables.The data is transfered automatically.

Regards,

Venkat