Skip to Content

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

STRING TO CURR BUT IN VARIABLE

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

Tags:
Former Member
Former Member replied

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 View this answer in context
Not what you were looking for? View more on this topic or Ask a question