Skip to Content

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

How to convert the character value to currency/numeric

Hi,

See the sample code here

data: v_qtr_field(7).

data: w_low_limit like glt0-kslvt,

w_amount like glt0-hslvt.

w_low_limit = 02.

w_max_period = 3.

concatenate 'HSL' w_low_limit into v_qtr_field.

*comment

*I am looking for a field formation thru above code like in GLT0 table like HSL02,HSL03 *etc based on the value user entered in the selection *screen

DO w_max_period TIMES

VARYING w_amount FROM v_qtr_field NEXT v_qtr_field + 1.

t_trans_values-dmbe2 = t_trans_values-dmbe2 + w_amount.

ENDDO.

I am facing problem in the Do loop as it wont allows multiple data types. can you suggest me how to convert the v_qtr_field whose data type is character to currency?

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