Posts

Showing posts with the label INITCAP- First letter of the word Capital in SAP ABAP

BAPI for material storage location Add

 We can add material storage location plant wise using third party app or web. BAPI names : BAPI_MATERIAL_MAINTAINDATA_RT Import parameters: HEADDATA: Material Tables: STORAGELOCATIONDATA: Material: Plant: STGE_LOC:   STORAGELOCATIONDATAX: Material: Plant: STGE_LOC:   use below code after completing steps. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.        

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