Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

sap abap currency conversion in words issue

$
0
0

HI Friends

 

I hope you all doing good.

 

I have an issue while converting currency into words i have used bellow code

 

DATA l_spell LIKE spell.
* If the currency is INR
   IF P_CURR = 'INR'.
     CALL FUNCTION 'Z_FI_AMT_WRDS_CONVERT'
       EXPORTING
         AMT  = P_P_WAGE
       IMPORTING
         WORD = P_L_WRDS.

     CONCATENATE '(' P_L_WRDS INTO P_L_WRDS.
     CONCATENATE P_L_WRDS ')' INTO P_L_WRDS.



* If the currency is USD
   ELSEIF P_CURR = 'USD'.
     CALL FUNCTION 'SPELL_AMOUNT'
       EXPORTING
         AMOUNT   = P_P_WAGE
         LANGUAGE = SY-LANGU
       IMPORTING
         IN_WORDS = l_spell.

     CONCATENATE '$' l_spell-word INTO P_L_WRDS.


when INR it is converting fine into words suppose for ex 311.06  it is showing RUPEES THREE HUNDRES ELEVEN SIX PAISA

IF USD it is not displaying properly it is showing $THIRTY ONE THOUSAND ONE HUNDERD SIX is displaying.


Please help me
*


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>