Skip to Content

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

how to change currency fields to character fields.

Hi Experts,

I have requirement where I need to change all my currency fields to character fields. Other wise it is giving me a dump saying that


Here is my types ,IT and workarea declarations:

TYPES: BEGIN OF gty_sapgl_to_cim,

gjahr TYPE cosp-gjahr, "Fiscal Year

perbl TYPE cosp-perbl, "Fiscal Month

versn TYPE cosp-versn, "Plan Version

kstar TYPE cosp-kstar, "Cost Element

wrttp TYPE cosp-wrttp, "Value Type

beknz TYPE cosp-beknz, "Debit/credit indicator

wkg001 TYPE cosp-wkg001, "Amount - Period 1

wkg002 TYPE cosp-wkg002, "Amount - Period 2

wkg003 TYPE cosp-wkg003, "Amount - Period 3

wkg004 TYPE cosp-wkg004, "Amount - Period 4

wkg005 TYPE cosp-wkg005, "Amount - Period 5

wkg006 TYPE cosp-wkg006, "Amount - Period 6

wkg007 TYPE cosp-wkg007, "Amount - Period 7

wkg008 TYPE cosp-wkg008, "Amount - Period 8

wkg009 TYPE cosp-wkg009, "Amount - Period 9

wkg010 TYPE cosp-wkg010, "Amount - Period 10

wkg011 TYPE cosp-wkg011, "Amount - Period 11

wkg012 TYPE cosp-wkg012, "Amount - Period 12

wkg013 TYPE cosp-wkg013, "Amount - Period 13

wkg014 TYPE cosp-wkg014, "Amount - Period 14

wkg015 TYPE cosp-wkg015, "Amount - Period 15

wkg016 TYPE cosp-wkg016, "Amount - Period 16

kokrs TYPE cskb-kokrs, "Controlling area

kostl TYPE cskb-kostl, "Cost Center

ktext TYPE cskt-ktext, "Cost Center Name

ltext TYPE csku-ltext, "Cost Element Name

END OF gty_sapgl_to_cim.

DATA : gt_sapgl_to_cim TYPE STANDARD TABLE OF gty_sapgl_to_cim.

DATA : gs_sapgl_to_cim TYPE gty_sapgl_to_cim.

Now I have to change all the amount fields to char fields.

My question is how to convert currency fields to char fields.

Can anybody suggest me how to do it.


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