INITCAP- First letter of the word Capital in SAP ABAP

In sap abap some times we need to capitalize starting word. In that case we need to use FM. Just use "FI_CONVERT_FIRSTCHARS_TOUPPER" and get the result. Sample: data: P_Sampby type string value 'RAJIB HOSSAIN'. CALL FUNCTION 'FI_CONVERT_FIRSTCHARS_TOUPPER' EXPORTING input_string = P_Sampby SEPARATORS = ' ' IMPORTING OUTPUT_STRING = P_Sampby . Output: Rajib Hossain

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