Convert First character to Upper case in SAP ABAP

 In SAP sometime we need to convert string as first letter in capital format and then start with small letter word wise. For that case we need to use Function module. In my profession i did so many times. Give here example, hope it will help you to solve the issues.


FM: 'FI_CONVERT_FIRSTCHARS_TOUPPER'

 

  Datastring  type char255,
      OUT_STR TYPE CHAR255.

string ' SMALL CHANGE'.


CALL FUNCTION 'FI_CONVERT_FIRSTCHARS_TOUPPER'
  EXPORTING
    INPUT_STRING        'string'
*   SEPARATORS          = ' -.,;:'
 IMPORTING
   OUTPUT_STRING       OUT_STR
          .

 

Output: Small Change 

Comments

Popular posts from this blog

New commodity code create in SAP S/4 Hana

BAPI to Change STO PO/ PO Delivery date in SAP

INITCAP- First letter of the word Capital in SAP ABAP