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

Problem while entering negative values

Former Member
0 Likes
3,884

Hi Friends,

Good Morning!

Here is the scenario, user wants to create a module pool for his in comming invoices. In that he wants to enter negative values in the input field provided for the 'amount', I created a Module pool program and took the amount (dmbtr) with data type curr. When I try to enter the negative value in the input field I am getting a message 'Negative values not allowed' it is not accepting through the screen, but I can enter the negative value from T code SE11 -> utilities->table control->create entries.

Can any one tell me how I can rectify this problem.

SMP

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,925

Hi

go to the domain of the field that you are using and find the SIGN checkbox is checked or not

if you want to use the negative values the domain SIGN check box should be checked.

Regards

Ramchander Rao.K

4 REPLIES 4
Read only

Former Member
0 Likes
1,926

Hi

go to the domain of the field that you are using and find the SIGN checkbox is checked or not

if you want to use the negative values the domain SIGN check box should be checked.

Regards

Ramchander Rao.K

Read only

0 Likes
1,925

Thanks problem is solved. Thanks once again for your prompt reply.

Read only

Former Member
0 Likes
1,925

hi..

you have to check yuor field catlog for that ALV.


add this in field cat property.
<field_cat>-datatype = 'CURR'.
<field_cat>-REF_TABLE = <table_name>

regards

vivek

Edited by: vivek jain on Nov 27, 2008 6:04 AM

Read only

Former Member
0 Likes
1,925

Hi,

I think dmbtr field type is problem here,

Try to change this field type, take any type which will allow both positive and negative values.

Regards,

Kusuma.