Monday, June 4, 2018

AMOUNT CONVERT IN WORD IN SAP ABAP.


1. AMOUNT CONVERT IN WORD IN SAP ABAP.
REPORT ZSWIN_TO_WO.

PARAMETERSpi_amt TYPE pc207-betrg.
DATA:       vi_amt TYPE char100.

CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
  
EXPORTING
    amt_in_num         
pi_amt
  
IMPORTING
    amt_in_words       
vi_amt
  
EXCEPTIONS
    data_type_mismatch 
1
    
OTHERS             2.

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

WRITE'Amount Convert in Words: 'vi_amt.

No comments:

Post a Comment