Application Development 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: 

Output field ALV

Former Member
0 Kudos

Good Night,

I have a report ALV that display data of a table internal.

However the output in the field have that output as

97.950, but the system in the ALV the display as 979,50.

There is any way where can display the information as is in the table.

Regards.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi, Sanew, i think the field you want to display is a currency amount or a quantity field.

If it is a currency amount, please reference your currency,

if it is a quantity field, please reference your unit,

then you can get what you want, please try.

6 REPLIES 6

Former Member
0 Kudos

Hi, Sanew, i think the field you want to display is a currency amount or a quantity field.

If it is a currency amount, please reference your currency,

if it is a quantity field, please reference your unit,

then you can get what you want, please try.

0 Kudos

Hi, the field is BSID-DMBTR.

W_POSI = W_POSI + 1.

GT_FIELDCAT-TABNAME = 'it_salida'.

GT_FIELDCAT-FIELDNAME = 'VR_IVA'.

GT_FIELDCAT-DDICTXT = 'L'.

GT_FIELDCAT-SELTEXT_L = 'Valor IVA'.

GT_FIELDCAT-COL_POS = W_POSI.

GT_FIELDCAT-REF_TABNAME = 'BSEG'.

GT_FIELDCAT-REF_FIELDNAME = 'DMBTR'.

APPEND GT_FIELDCAT. CLEAR GT_FIELDCAT.

Regards

0 Kudos

see the corrections.

W_POSI = W_POSI + 1.
   GT_FIELDCAT-TABNAME = 'IT_SALIDA'. " Use CAPS always it_salida'.
   GT_FIELDCAT-FIELDNAME = 'VR_IVA'.
   GT_FIELDCAT-DDICTXT = 'L'.
   GT_FIELDCAT-DECIMALS_OUT = 3.   "also give this
   GT_FIELDCAT-SELTEXT_L = 'Valor IVA'.
   GT_FIELDCAT-COL_POS = W_POSI.
   GT_FIELDCAT-REF_TABNAME = 'BSEG'. 
   GT_FIELDCAT-REF_FIELDNAME = 'DMBTR'. 
   APPEND GT_FIELDCAT. CLEAR GT_FIELDCAT.

0 Kudos

Thank You.

Issue Solve.

Regards,

former_member188685
Active Contributor
0 Kudos

if the fieldcatalog mention the DECIMAL_OUT = 3 for the column which you are getting the output like that.and see.

Former Member
0 Kudos

Hi,

Go To-su01or take help of your basis guy.

Give your user name then press 'change'.

In the defaults tab in the 'decimal notation' field select your desired type.

Regards

Debarshi