‎2008 Nov 27 4:51 AM
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
‎2008 Nov 27 4:53 AM
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
‎2008 Nov 27 4:53 AM
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
‎2008 Nov 27 5:04 AM
Thanks problem is solved. Thanks once again for your prompt reply.
‎2008 Nov 27 4:56 AM
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
‎2008 Nov 27 4:57 AM
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.