Documente Academic
Documente Profesional
Documente Cultură
*
break prism_bi.
IF w_sale-waerk = 'USD'.
"""""""""""""""""""""""""""""""""""""""""
CALL FUNCTION 'BAPI_EXCHANGERATE_GETDETAIL'
EXPORTING
rate_type = 'M'
from_curr = 'USD'
to_currncy = 'HKD'
date
= w_sale-fkdat
IMPORTING
exch_rate = it_exchange
return
= it_return.
"""""""""""""""""""""
EXPORTING
rate_type
from_curr
to_currncy
date
IMPORTING
exch_rate
return
=
=
=
=
'M'
'EUR'
'HKD'
w_sale-fkdat
= it_exchange
= it_return.
else.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""SAHK""""""""""""""""
""""""""
ELSEIF w_bsad-bukrs = 'SAHK'.
IF w_sale-waerk = 'USD'.
"""""""""""""""""""""""""""""""""""""""""""
CALL FUNCTION 'BAPI_EXCHANGERATE_GETDETAIL'
EXPORTING
rate_type = 'M'
from_curr = 'USD'
to_currncy = 'HKD'
date
= w_sale-fkdat
IMPORTING
exch_rate = it_exchange
return
= it_return.
"""""""""""""""""""
""""""""""""""""""""
= 'GBP'.
'BAPI_EXCHANGERATE_GETDETAIL'
=
=
=
=
'M'
'GBP'
'USD'
w_sale-fkdat
= it_exchange
= it_return.
IMPORTING
exch_rate = it_exchange
return
= it_return.
it_exchange-exch_rate = it_exchange-exch_rate / it_exchange-from_factor.
lprice = w_sale-netwr * it_exchange-exch_rate.
CLEAR : it_exchange-exch_rate.
ENDIF.
"""""""""""""""""""""""""""""""""""""""""""""""""""SLON""""""""""""""""""""""
""""""""""""""""""""""""""""
ELSEIF w_bsad-bukrs = 'SLON'.
IF w_sale-waerk = 'USD'.
CALL FUNCTION 'BAPI_EXCHANGERATE_GETDETAIL'
EXPORTING
rate_type = 'M'
from_curr = 'USD'
to_currncy = 'GBP'
date
= w_sale-fkdat
IMPORTING
exch_rate = it_exchange
return
= it_return.
it_exchange-exch_rate = it_exchange-exch_rate / it_exchange-from_factor.
lprice = w_sale-netwr * it_exchange-exch_rate.
CLEAR : it_exchange-exch_rate.
ELSEIF w_sale-waerk = 'EUR'.
CALL FUNCTION 'BAPI_EXCHANGERATE_GETDETAIL'
EXPORTING
rate_type = 'M'
from_curr = 'EUR'
to_currncy = 'GBP'
date
= w_sale-fkdat
IMPORTING
exch_rate = it_exchange
return
= it_return.
it_exchange-exch_rate = it_exchange-exch_rate / it_exchange-from_factor.
lprice = w_sale-netwr * it_exchange-exch_rate.
CLEAR : it_exchange-exch_rate.
ENDIF.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""SOMK"""""""""""""
""""""""""""""""""""""""""""""""""
ELSEIF w_bsad-bukrs = 'SOMK'.
IF w_sale-waerk = 'USD'.
CALL FUNCTION 'BAPI_EXCHANGERATE_GETDETAIL'
EXPORTING
rate_type = 'M'
from_curr = 'USD'
to_currncy = 'KES'
date
= w_sale-fkdat
IMPORTING
exch_rate = it_exchange
return
= it_return.
it_exchange-exch_rate = it_exchange-exch_rate / it_exchange-from_factor.
lprice = w_sale-netwr * it_exchange-exch_rate.
CLEAR : it_exchange-exch_rate.
exch_rate = it_exchange
return
= it_return.
it_exchange-exch_rate = it_exchange-exch_rate / it_exchange-from_factor.
lprice = w_sale-netwr * it_exchange-exch_rate.
CLEAR : it_exchange-exch_rate.
ENDIF.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""SOSA""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""
ELSEIF w_bsad-bukrs = 'SOSA'.
IF w_sale-waerk =
CALL FUNCTION
EXPORTING
rate_type
from_curr
to_currncy
date
IMPORTING
exch_rate
return
'USD'.
'BAPI_EXCHANGERATE_GETDETAIL'
=
=
=
=
'M'
'USD'
'ZAR'
w_sale-fkdat
= it_exchange
= it_return.