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

Negative values in Table control

Former Member
0 Likes
1,919

hi guys,

i have a table control in which negative values have to be put but when i enter negative values i am getting an error that 'negative values are not allowed'.

Please help.

thanks in Advance.

Regards,

Santosh k.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,029

In the attributes of the field in the table control you need to put template characters to indicate where the sign goes - I think _ _ _ _ _ _ _V (not sure if V is for decimal point or for sign? - I think it is in the ABAP help / Doco, or you could look at a similar field on a standard screen.

Andrew

4 REPLIES 4
Read only

Former Member
0 Likes
1,029

Hi Santhosh,

What is the type of the field.?

Read only

0 Likes
1,029

kurian ,Field type is INT4

Regards,

Santosh Kotra

Read only

0 Likes
1,029

As Andrew says, I think you will need to indicate in the attributes that the field can accept a negative by using a template like "_____________V". Just change this in the screen painter... it's the "Text" field on the Attributes for an Input/Ouput field.

Jonathan

Read only

Former Member
0 Likes
1,030

In the attributes of the field in the table control you need to put template characters to indicate where the sign goes - I think _ _ _ _ _ _ _V (not sure if V is for decimal point or for sign? - I think it is in the ABAP help / Doco, or you could look at a similar field on a standard screen.

Andrew