Friday, November 25, 2016

Indian Currency Amount to Word

In the following program we are converting an amount into words. The amount is Indian currency which is converted into text. Here we are calling a standard function module HR_IN_CHG_INR_WRDS  and after that we are converting the case of words.

REPORT zsr_test NO STANDARD PAGE HEADING.

PARAMETERS p_amt TYPE pc207-betrg.
DATA v_amt TYPE char100.

CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
  EXPORTING
    amt_in_num         p_amt
  IMPORTING
    amt_in_words       v_amt
  EXCEPTIONS
    data_type_mismatch 1
    OTHERS             2.

CALL FUNCTION 'ISP_CONVERT_FIRSTCHARS_TOUPPER'
  EXPORTING
    input_string  v_amt
    separators    ' '
  IMPORTING
    output_string v_amt.

WRITE'Amount in Words: 'v_amt.




5 comments:

Anonymous said...

Thanks for the great information.It was so nice Program Thank you for valuable informationsap video tutorials

Anonymous said...


This article is really contains lot more information about This Topic on sap video tutorials

Anonymous said...


Thank you for giving this best information. It’s a very nice topic.sap video tutorials

Anonymous said...

SAP Success Factors Real Time Hands on Training in Chennai...

Don't always Depend on Training Institute Alone and so please aware of Best Trainers too..

http://thecreatingexperts.com/sap-successfactors-training-in-chennai/

If You need a Best Trainer over SAP Success Factors Means??? Please ready for an DEMO From the Trainer MR.Karthick
CONTACT:8122241286

Both Classroom/Online Training is Available!!!!!!

Unknown said...

Thanks for your info...Here THE CREATING EXPERTS provide hands on training with real time scenarios

http://thecreatingexperts.com/sap-abap-training-in-chennai/

contact +91-08122241286