Posts

Showing posts with the label Spell amount 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 ,     ...

Spell amount in SAP ABAP

Use of  FM  ' SPELL_AMOUNT '   DATA :  WS_SPELL TYPE SPELL,  pLANGU LIKE T002-SPRAS DEFAULT SY-LANGU,  pCURR LIKE TCURC-WAERS DEFAULT 'USD',  pAMOUNT LIKE VBAP-MWSBP ,  pFILLER(1) TYPE C DEFAULT ' '.   CALL FUNCTION 'SPELL_AMOUNT'  EXPORTING   AMOUNT = pAMOUNT   CURRENCY = pCURR   FILLER = pFILLER   LANGUAGE = pLANGU "SY-LANGU  IMPORTING   IN_WORDS = WS_SPELL  EXCEPTIONS   NOT_FOUND = 1   TOO_LARGE = 2   OTHERS = 3 . IF sy-subrc <> 0.  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ELSE.  WRITE :/ WS_SPELL-word , WS_SPELL-decword. ENDIF.