Skip to Content

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

alv currency for Japan

I want to show the ouput put order value in Alv report in Japan currency 'Yen' i.e. no decimal value.

But for Europe the same order value has to be shown in decimal.

What field catalog values I need to pass.

Here GIT_REPORT is the internal table which will be used in display ALV.

I can't pass C as datatype since I want summation of column .

GIT_REPORT-NETWR has datatype as VBAK-NETWR.

decimals_out as '0' but doesn't work.

PERFORM build_fieldcatalog USING :

1 'NETWR' 'P' 'GIT_REPORT' 'X' ' ' 'R'.

FORM build_fieldcatalog USING value(p_count) TYPE i

value(p_fieldname)

value(p_inttype)

value(p_tablename)

value(p_length) TYPE i

value(p_text)

VALUE(p_sum)

value(p_hotspot)

value(p_just).

DATA ls_fieldcat TYPE slis_fieldcat_alv.

  • Append to the Catalog

CLEAR ls_fieldcat.

ls_fieldcat-col_pos = p_count.

ls_fieldcat-fieldname = p_fieldname.

ls_fieldcat-inttype = p_inttype.

ls_fieldcat-tabname = p_tablename.

ls_fieldcat-outputlen = p_length.

ls_fieldcat-reptext_ddic = p_text.

ls_fieldcat-do_sum = p_sum.

ls_fieldcat-hotspot = p_hotspot.

ls_fieldcat-just = p_just.

APPEND ls_fieldcat TO gt_fieldcat.

endform.

Please let me know your inputs on this

Regards

Prashant

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