SAP Decimal conversion

Decimal conversion

SAP KONV use currency factor

 

IF ls_vbrp-zmwskz IS NOT INITIAL AND ls_vbrp-zmwskz NE c_z1.
l_kbetr = ls_konv-kbetr.
” Begin of changes by meghnas on 17/12/2017 to make vat rate fractional with countrywise
CALL FUNCTION ‘FC_DECIMALS’
EXPORTING
e_currency = gs_vbrk-waerk
IMPORTING
i_factor = l_fact
EXCEPTIONS
convt_no_number = 1
OTHERS = 2.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
l_kbetr = l_kbetr / l_fact.

Leave a Reply

Your email address will not be published. Required fields are marked *