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.

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.