‎2009 Feb 16 8:47 AM
hi,
i'v a prob. when i fatch data from database get it into internal table then when i call scrren ( table control)
when my value is in negative then it gave dump
i want to show negative value in table control
pl. help me
mukesh
‎2009 Feb 16 8:49 AM
Hi,
Try typing 'V' in the text of the particular field where you are expecting the -ve value.
‎2009 Feb 16 8:49 AM
i dont think dump is due to -ve value ,
please check puttting break-point once more.
regards
‎2009 Feb 16 8:50 AM
hi,
Instead of using the field in its original format say , type i or p, move that field to target field of type char using
write source to target or
move source to target.and use this particular target field in your table control.
This will resolve
thanks
Sharath
‎2009 Feb 16 9:00 AM
‎2009 Feb 16 9:01 AM
Hi
DATA N TYPE P DECIMALS 2.
DATA M TYPE P DECIMALS 2 VALUE '-5.55'.
N = SIGN( M ). WRITE: / 'SIGN: ', N.
o/p
SIGN: 1.00-
when -1
move the value to character and display the character value.
‎2009 Feb 16 9:25 AM
Hi ,
does the DOMAIN of that field allows -ve values ? , if it doent allow u , then u need to use any other domain which allows -Ve values .
option2. check
andrew's reply .
regards
Prabhu
Edited by: Prabhu Peram on Feb 16, 2009 5:26 PM
‎2009 Feb 16 9:43 AM
Hi Mukesh,
the call screen statement with negative value
ex: call screen -100. does NOT give dump...its checked out..
it might be giving dump due to some other reason in ur program...
Regards,
Mdi.Deeba
‎2009 Feb 16 10:00 AM
Hi,
Just add 'V' to the text property of the table control field.
Open the screen layout, double click on the field, and change the TEXT property from '______' to 'V______' if you want the -ve sign before the value or '______V' if you want it after the value.
regards,
Jinson
‎2009 Feb 16 10:12 AM
Hi Mukesh,'
In the screen painter. double click that col in table control and check its data type..It should be able to take -ve values.
‎2009 May 14 2:48 PM
Hello Mukesh,
I have encountered same opportunity before. Solution: Proceed to Screen Painter > Layout > double-click Field with Amount > Dict Tab then check the checkbox that says 'With Sign'.
Hope this helps.
Dodie Plata
‎2009 Sep 14 9:08 AM