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 control

Former Member
0 Likes
894

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

11 REPLIES 11
Read only

Former Member
0 Likes
864

Hi,

Try typing 'V' in the text of the particular field where you are expecting the -ve value.

Read only

Former Member
0 Likes
864

i dont think dump is due to -ve value ,

please check puttting break-point once more.

regards

Read only

Former Member
0 Likes
864

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

Read only

Former Member
0 Likes
864

Hi Mukesh,

Go through the following thread if its of any help:

[;

Read only

viquar_iqbal
Active Contributor
0 Likes
864

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.

Read only

Former Member
0 Likes
864

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

Read only

Former Member
0 Likes
864

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

Read only

Former Member
0 Likes
864

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

Read only

Former Member
0 Likes
864

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.

Read only

Former Member
0 Likes
864

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

Read only

Former Member
0 Likes
864

thanks