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

problem with ALV amount field display

Former Member
0 Likes
615

hi friend!!

i have a editable ALv out put and in that i am displaying Amount and quantity field. In O/p if i enter 100 its taking as 100,00 .Please tell me how to correct the same.

Plz help me

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
580

Try to fill the Ref_fieldname and Ref_tabname in the fieldcatalog.

also specify decimals = 0 for the column which you are editing.

fieldcat-ref_fieldname = 'KWMENG'.
fieldcat-ref_tabname = 'VBAP'.
fieldcat-decimals_out = 0.
"if you want decimals then specify the number how many you want

hi friend!!

i have a editable ALv out put and in that i am displaying Amount and quantity field. In O/p if i enter 100 its taking as 100,00 .Please tell me how to correct the same.

Plz help me

3 REPLIES 3
Read only

Former Member
0 Likes
581

Try to fill the Ref_fieldname and Ref_tabname in the fieldcatalog.

also specify decimals = 0 for the column which you are editing.

fieldcat-ref_fieldname = 'KWMENG'.
fieldcat-ref_tabname = 'VBAP'.
fieldcat-decimals_out = 0.
"if you want decimals then specify the number how many you want

Read only

Former Member
0 Likes
580

Are you tried no_zero?

fieldcat-tabname = 'T_OUT'.

fieldcat-fieldname = 'DMBTR'.

fieldcat-col_pos = '10'.

fieldcat-seltext_m = 'Amount'.

fieldcat-outputlen = 4.

fieldcat-no_zero = 'X'.

  • fieldcat-no_out = 'X'.

APPEND fieldcat TO fieldtab.

CLEAR fieldcat.

Read only

Former Member
0 Likes
580

thanks