Posts

Showing posts with the label Convert First character to Upper case in SAP ABAP

Using BAPI upload excel file for t-code AS02 in SAP

Using BAPI " BAPI_FIXEDASSET_CHANGE " create a zprogram to upload excel file for mass change fixed asset in SAP. REPORT  ZAS02_ASSET_CHANGE_UPLOAD . TYPE-POOLS :  truxs . " Structure for Excel data TYPES :  BEGIN  OF  ty_excel ,          anln1  TYPE  anln1 ,          bukrs  TYPE  bukrs ,          kostl  TYPE  kostl ,          werks  TYPE  werks ,          prctr  TYPE  prctr ,         END  OF  ty_excel . DATA :  lt_excel     TYPE  TABLE  OF  ty_excel ,       ls_excel     TYPE  ty_excel ,     ...

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'     Data :  string   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...