cancel
Showing results for 
Search instead for 
Did you mean: 

removal of rupees

Former Member
0 Kudos

i used hr_in_chg_inr_wrds to display amount in words.it's getting displayed as 'one thousand rupees'.now the user doesn't want 'rupees' at the end.he wants only 'one

thousand'.please tell how to remove 'rupees' for whatever amount he gives.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

HI,

REPORT ZTEST.

data: AMT_IN_NUM like PC207-BETRG.

data: words(200) type c.

AMT_IN_NUM = '57.5'.

CALL FUNCTION 'HR_IN_CHG_INR_WRDS'

EXPORTING

AMT_IN_NUM = AMT_IN_NUM

IMPORTING

AMT_IN_WORDS = words

  • EXCEPTIONS

  • DATA_TYPE_MISMATCH = 1

  • OTHERS = 2

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

write:/ words.

and i got the answer FIFTY SEVEN Rupees FIFTY Paise

Regards

Former Member
0 Kudos

please tell how to remove 'Rupees' in FIFTY SEVEN Rupees FIFTY Paise.

former_member196280
Active Contributor
0 Kudos

USe this it will solve your problem

REPLACE<b> 'RUPEES'</b> with ' ' IN <Variable name> " check the case for rupees..

Regards,

SaiRam