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 with negative currency values

Former Member
0 Likes
1,291

Hello everyone,

I have a screen 0100 with table control only for output of values from an internal table of type ZVALUES, in which ZVALUES is a structure with the following fields:

DMBTR type CURR16

DMBE2 type CURR16

DMBE3 type CURR16

WAERS type CUKY

When i created the table control, i used the wizard and then used "from dictionary" to pull all fields and drag them to table control.

Now, everythings works fine as long as the values are positive. But whenever a value is < 0 i get a dump with DYNPRO_ERROR_CONVERSION.

Is this normal ? Do i have to do anything special so the TC allows negative values ?

Thanks in advance,

Santi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
751

Hi,

These two links would solve.

Regards

Sajid

Hi,

These two links would solve.

Regards

Sajid

4 REPLIES 4
Read only

Former Member
0 Likes
752

Hi,

These two links would solve.

Regards

Sajid

Read only

Former Member
0 Likes
751

Hi!

move those fields in a character type field and display it there in a character type field,

You will not get the error.

or create a type declaration of your ztable and take those fields as char type and then loop an display those fields in table control...

i hope this will not give Dump.

Regards.

Read only

deepak_dhamat
Active Contributor
0 Likes
751

hi ,

You problem is for conversion .

On screen negative values are not allowed .

SO do one thing quantity field which you want to display on screen make it as character type and then take that field on screen .

do all operation on quantity field and and assign it to character field .

your problem will sovle .

Regards

Deepak .

Read only

0 Likes
751

Problem solved. Thank you for all your fast answers.