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

Table cotrol decimals not displaying

Former Member
0 Likes
962

Hi All,

I have designed the screen 1000 with table control and displaying the quantity values.

1. Intially as the quantity values are not allowing the -ve values at the table control level, I have defined the fields at table control as characters and can displayed even the -ve values also.

2. But now, there is another problem now is, the character fields are having decimals also (.00). Initially I can able to display the screen with decimals also. But while some user action on the screen, it is saying that decimal values are not allowed.

Kindly advice.

Regards

Ramesh.

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
888

Hi,

Is this the standard message? Can you debug and see where you are getting this message? I believe this message is coming for some other field.

solution is refer your table control field to a domain that allows negative values. You can check it in table DD01L by passing the data type as QUAN and signflag = X.

eg: Domain ABC_QUANT

Check below sample code where in one parameter allows negative values and other wont.

PARAMETERS: po_quan TYPE ABC_QUANT,
            po_quan1 TYPE vbap-zmeng.

Thanks,

Vinod.

Edited by: Vinod Vemuru on Mar 17, 2010 8:16 PM

4 REPLIES 4
Read only

vinod_vemuru2
Active Contributor
0 Likes
889

Hi,

Is this the standard message? Can you debug and see where you are getting this message? I believe this message is coming for some other field.

solution is refer your table control field to a domain that allows negative values. You can check it in table DD01L by passing the data type as QUAN and signflag = X.

eg: Domain ABC_QUANT

Check below sample code where in one parameter allows negative values and other wont.

PARAMETERS: po_quan TYPE ABC_QUANT,
            po_quan1 TYPE vbap-zmeng.

Thanks,

Vinod.

Edited by: Vinod Vemuru on Mar 17, 2010 8:16 PM

Read only

0 Likes
888

Hi Vinod,

Still I am getting the conversion error for -ve values even though, I have assigned the domain as ABC_QUANT.

May I know where I am doing mistake.

Regards

Ramesh.

Read only

0 Likes
888

Hi,

What is the error you are getting? why don't you debug and see where you are getting the error?

Thanks,

Vinod.

Read only

Former Member
0 Likes
888

Hi Vinod,

Solved it. In the screen attributes of the tablecontrol field, we have an option called 'With sign'.

Thanks for your help.

Regards

Ramesh.