Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

CFIELDNAME issue with currency decimal ALV list display

I am using the following code to do the sum of the currency field with currency code in the subtotal place.

But when i am using the cfieldname fieldcat i have the decimal issue in the currency amount column. But i am getting the currency unit in the subtotal column.

* Total amount

  ls_fieldcat-fieldname = 'TOTAL_AMT'.

  ls_fieldcat-tabname = 'LT_TAB'.

  ls_fieldcat-col_pos = 5.

  ls_fieldcat-seltext_l = 'TOTAL PRICE'.

  ls_fieldcat-outputlen = 18.

  ls_fieldcat-do_sum = 'X'.

  ls_fieldcat-cfieldname = 'WAERS'.

  APPEND ls_fieldcat TO lt_fieldcat.

  CLEAR ls_fieldcat.

The currency amount has the type of p  lenght 14 dec 2. Please share your ideas!



Former Member
Not what you were looking for? View more on this topic or Ask a question