Application Development 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: 

STRING TO CURR BUT IN VARIABLE

Former Member
0 Kudos

Hi experts ;

I want ask how Am I casting string data to currency . I ınvestigate forum ; and I find this solution

write variable to variable2 currency vbrk-kzwı5.

I have a variable sample code.

  
DATA: TEMP TYPE VBRP-VOLUM.
GV_TOPLAM = TOPLAM_VBRP_NTGEW + TOPLAM_KDV + GV_ISKONTO.
MOVE GV_TOPLAM TO TEMP.
MOVE TEMP TO GV_TOPLAM.
CONDENSE GV_TOPLAM NO-GAPS.

TEMP = 45345,32

I want to be a 45.345,32 currency format. How this is possible. Write statement not useble in my code.

Thanks Regards.

İrfan

1 ACCEPTED SOLUTION

former_member212653
Active Contributor
0 Kudos

This format


45.345,32 

is a display format

so you have to use write statement


DATA: TEMP TYPE VBRP-VOLUM.
GV_TOPLAM = TOPLAM_VBRP_NTGEW + TOPLAM_KDV + GV_ISKONTO.
MOVE GV_TOPLAM TO TEMP.
"MOVE TEMP TO GV_TOPLAM.  <- Change the MOVE statement to WRITE Statement
WRITE TEMP TO GV_TOPLAM. 
CONDENSE GV_TOPLAM NO-GAPS.

2 REPLIES 2

former_member212653
Active Contributor
0 Kudos

This format


45.345,32 

is a display format

so you have to use write statement


DATA: TEMP TYPE VBRP-VOLUM.
GV_TOPLAM = TOPLAM_VBRP_NTGEW + TOPLAM_KDV + GV_ISKONTO.
MOVE GV_TOPLAM TO TEMP.
"MOVE TEMP TO GV_TOPLAM.  <- Change the MOVE statement to WRITE Statement
WRITE TEMP TO GV_TOPLAM. 
CONDENSE GV_TOPLAM NO-GAPS.

0 Kudos

Thanks ; error reason me because I use "Write:" !!

Solved.