ABAP Function module for Display amount in word

Dear all,
            Suppose amount is 100 and currency is USD then text display like 0ne hundred dollar. and suppose amount is 100
and currency is INR then text display like One hundred rupees.can you please suggest me what is the function module to used in smart forms.
Thanks and Regards,
Raheem.
Moderator Message: THE MOST FAQ question in SCN forums. And you never bothered to search.
Edited by: kishan P on Mar 1, 2012 2:19 PM

fm SPELL_AMOUNT

Similar Messages

  • Function module for displaying the location

    Hi,
          Could anyone tell  the Function module for displaying the location in our system  without a  file name while downloading, when the user press f4.
    thanks

    * read the default pathname on application server
      call function 'FILE_GET_NAME'
           exporting
    *           CLIENT                  = SY-MANDT
                logical_filename        = lc_logical_filename_ftappl
                operating_system        = sy-opsys
    *           parameter_1             = ' '
    *           PARAMETER_2             = ' '
    *           USE_PRESENTATION_SERVER = ' '
    *           WITH_FILE_EXTENSION     = ' '
    *           USE_BUFFER              = ' '
           importing
                emergency_flag          = l_emergency_flag
                file_format             = l_file_format
                file_name               = l_file_name_ftappl
           exceptions
                file_not_found          = 1
                others                  = 2.

  • Abap function module for material standard price.

    Dear Team,
    Can anyone tell me the abap function module for getting material  standard price respective of date and material code as input.
    I have observe table MBEW, where we will get standard price of a material for last change date. Not getting any table where price is coming out wrt of Date for a same material.
    Thx in advance
    Rgds
    sp
    kolkata

    HI.
    FM MSR1_MD_MATPRICE_GETLIST  should help.u.
    Regd,
    AS

  • ABAP function module for Customer Specific Status

    I am looking for a standard ABAP function module that will return the customer specific status for a person. 
    Please let me know if any exists.
    Thanks,
    Harini

    Customer specific status for a person .
    Could you pleasee give more details...for what purpose  you are trying to get the status of a person. so that it will be easy for everyone to search

  • Function Module for Dollar Amount

    Hi All,
    I have a requirement where a REFX contract once created has to go through a series of approvals. How do I get the dollar amount on the contract so that it can be routed to the proper level for approval? Is there a function module for this?
    Thanks a lot in advance.

    Hi Amlan,
    For the condition (amount) on contract you can get using..
    BAPI_RE_CN_GET_DETAIL or
    API_RE_CN_GET_DETAIL
    And if you doing currency conversion there are lot of FM.
    Thanks
    Veman

  • Function module for USD amount to TWD

    Hi,
    Any one send me function module for converting USD currency to TWD.
    Thanks,
    donald

    HI,
    DATA: gd_fcurr TYPE tcurr-fcurr,
          gd_tcurr TYPE tcurr-tcurr,
          gd_date  TYPE sy-datum,
          gd_value TYPE i.
    gd_fcurr = 'USD'.
    gd_tcurr = 'TWD'.
    gd_date  = sy-datum.
    gd_value = 10.
    PERFORM currency_conversion USING gd_fcurr
                                      gd_tcurr
                                      gd_date
                             CHANGING gd_value.
    * Convert value to Currency value
    *&      Form  currency_conversion
    *       text
    *      -->P_GD_FCURR  text
    *      -->P_GD_TCURR  text
    *      -->P_GD_DATE   text
    *      <--P_GD_VALUE  text
    FORM currency_conversion  USING    p_fcurr
                                       p_tcurr
                                       p_date
                              CHANGING p_value.
      DATA: t_er        TYPE tcurr-ukurs,
            t_ff        TYPE tcurr-ffact,
            t_lf        TYPE tcurr-tfact,
            t_vfd       TYPE datum,
            ld_erate(12)   TYPE c.
      CALL FUNCTION 'READ_EXCHANGE_RATE'
        EXPORTING
    *       CLIENT                  = SY-MANDT
          date                    = p_date
          foreign_currency        = p_fcurr
          local_currency          = p_tcurr
          TYPE_OF_RATE            = 'M'
    *       EXACT_DATE              = ' '
       IMPORTING
          exchange_rate           = t_er
          foreign_factor          = t_ff
          local_factor            = t_lf
          valid_from_date         = t_vfd
    *       DERIVED_RATE_TYPE       =
    *       FIXED_RATE              =
    *       OLDEST_RATE_FROM        =
       EXCEPTIONS
         no_rate_found           = 1
         no_factors_found        = 2
         no_spread_found         = 3
         derived_2_times         = 4
         overflow                = 5
         zero_rate               = 6
         OTHERS                  = 7
      IF sy-subrc EQ 0.
        ld_erate = t_er / ( t_ff / t_lf ).
        p_value = p_value * ld_erate.
      ENDIF.
    ENDFORM.                    " currency_conversion
    You can use
    <b>CONVERT_TO_FOREIGN_CURRENCY</b> Convert local currency to foreign
    <b>CONVERT_TO_LOCAL_CURRENCY</b> Convert from foreign currency to local currency currency.

  • Function module for display production order details

    Hi All,
           I want to display production order details including operation,sub-operations and components using standard FM.I checked 4 FMs, but some are not displaying my require details. I found PM_ORDER_DATA_READ function module, it is displaying all details.But you can execute the function module 2 times for different orders it is giving ABAP dump 'itab_error'. Please get back to me if any one faced this problem or know solution.I am also checked BAPI_ALM_ORDER_GETDETAIL FM.
    My require fields are
    AUFNR, WERKS, PLNAL, PLNFL, VORNR,UVORN, ARBPL, KTSCH,
    LTXA1,OFFSTB,VGW01 etc.
    I am using SAP 4.7 release. Please send me either standard FM or BAPI to display all details of production order.
    Thanks in Advance
    Shaik Basha

    Hi,
    I had the same problem this morning and I found out a FM you have to run to fix this problem.
    FM: CO_IT_SET_FLG_ITAB_NEW
    Rgds,
    Parise

  • Function module for displaying customer address changes detail

    Hi ,
    Can anyone tell me any code or function module which gives me customer addresses before changes or after changes customer address.
    Regards,
    Gaurav T.

    GT,
    First check acustomer in 'XD04' which has got some change doc history. See all changes in XD04 for that customer.
    Then go to CDHDR table,
    OBJECTCLAS = 'DEBI'.
    OBJECTID      = Customer Number (10 digit with 0 padding).
    UDATE           = Update/change date (Take from XD04).
    Run the table & put the same values in CDPOS along with the CDHDR-CHANGENR & get the field wise changes in Customer with new & old values.
    Try this out or else call me.
    Regards,
    SP.

  • ABAP Function module for BW

    Hello Gurus,
    I am not an ABAPer, I work in BW module.
    I have a requirement to write a routine which will check the following logic
    In BW, I have a field called Posting Date (0PSTNG_DATE). This field is currently set to sy-datum. But i need to write a routine which will find last friday's date and update this field with friday's date.
    Eg: If sy-datum = 03/09/2007 then i need to populate posting date field as 31/08/2007.
    Sy-datum can be any day of the week. But it should always write last week friday's date.
    Is there any standard function module which i can use here.
    Thanks in advance.
    Cheers
    POPS

    Hi,
      call function 'DAY_ATTRIBUTES_GET'
           exporting
                date_from                  = sy-datum
                date_to                    = sy-datum
                language                   = sy-langu
           tables
                day_attributes             = i_day
           exceptions
                factory_calendar_not_found = 01
                holiday_calendar_not_found = 02
                date_has_invalid_format    = 03
                date_inconsistency         = 04.
    if i_day-weekday > 5.
       v_friday = sy-datum - ( i_day-weekday - 5 ).
    endif.
    if i_day-weekday < 5.
       v_friday = sy-datum - ( i_day-weekday + 2 ) .
    endif.
    if i_day-weekday = 5.
       v_friday = sy-datum.
    endif.

  • ABAP Function Module for Output File Compression of HTML file

    We would to compress a HTML file that is created during a daily batch run so that it can be sent to the concerned users by email.
    THerefore we are looking for a Function Module and code that can do this for us.
    Please help.
    You can contact me at [email protected]
    Thanks.
    Suresh Rao

    We would to compress a HTML file that is created during a daily batch run so that it can be sent to the concerned users by email.
    THerefore we are looking for a Function Module and code that can do this for us.
    Please help.
    You can contact me at [email protected]
    Thanks.
    Suresh Rao

  • Function module for updating amount in VL02N transaction

    Hi All,
         I have a requirement , to update Amount in Conditions tab of the header (VL02N transaction) beside parcel tracking .
    I have to update condition type 'ZF01' & the amount here ..
    I will get  file from a third party system to update the amount & tracking no..
    i have successfully updated tracking no.. by using FM XSI_TRACKING_DATA_SAVE.., unable to find FM for amount & condition type update..
    I have tried searching in FM 'WS_DELIVERY_UPDATE', didnt find anything related.
    If anyone has done any similar update in VL02N transaction, can you please suggest me appropriate FM?
    Regards
    Chaithanya

    fm SPELL_AMOUNT

  • Need Function Module for convertion of  Foreign currency to Indian currency

    hi friends,
    i need function module for converting amount from
    Foreign currency to Indian currency
    thanks

    hi Venkat,
    Please use the function module CONVERT_TO_LOCAL_CURRENCY
    <b><u>Sample code:</u></b>
          call function 'CONVERT_TO_LOCAL_CURRENCY'
            exporting
              date             = p_alv_tab-begda
              foreign_amount   = p_alv_tab-kkost_p_person
              foreign_currency = p_alv_tab-kwaer                 " foreign currency
              local_currency   = l_ev_waer                           " Indian currency
            importing
              local_amount     = p_alv_tab-kkost_p_person
            exceptions
              no_rate_found    = 1
              overflow         = 2
              no_factors_found = 3
              no_spread_found  = 4
              others           = 5.
    Hope this helps,
    Sajan Joseph.

  • Hi, is there any function module for se16 transaction?

    Hi help me out, can refer function module RS_TABLE_LIST_CREATE....found it

    The   below are the  list of  Function Modules  for se16   ...
    <b>
    1.ATT_GET_TABLE_ENTRIES
    2.R_GET_VALUES_FROM_TABLES
    3.S_DATABROWSE_FIELDSELECT
    4.S_INTERNAL_TABLE_VIEW
    5.S_TABLE_CONTROL_GENERATE
    6.S_TABLE_REPORT_GENERATE
    7.S_TABLE_VIEW
    8.S_TABLE_VIEW_DDIC</b>
    you can use  6th  or  7th  function  module  for  displaying the table data  .
    reward  points if it is  usefull ...
    Girish

  • Issue in creating web service for a ABAP Function Module

    Hi,
    now i'm learning how to create web service for a ABAP Function Module. I used the following steps.
    1. select the Function Module, named "zws_test".
    2. in the context menu, select "create->proxy object". so we enter into wizard.
    3. in the wizard, press the radio button "Service Provider".
    4. in the next page, press the radio button "Existing ABAP Objects(Inside Out)".
    5. In the next page, Enter the "zws_test_prvider" as Service Definition and select "Function Module" as Endpoint Type.
    6. in the next page, enter "zws_test" as Function Module and mark the "Mapping der Namen" button
    7. in the next page,select "PRF_DT_IF_SEC_LOW" as Profile and mark "Deploy Service".
    8. Save in the local package.
    9. then it will pop up a window with title "WSDL Source". i selected "URL/HTTP Destination" and press "OK".
    10.in the next page, i enter the URL as "http://hostname:portnumber/", and press "OK".
    11. then it will pop up a window with title "Display logs". A record with error message "HTTP error(return code 404, message "Not found")" appears.
    12. i press "ok" and a service provider with name "zws_test_prvider" appears in my local package.
    13. i use "zws_test_prvider"'s URL to create a service consumer "ZCO_WS_TEST_CONSUMER" and logic portal "LP1".
    14. But when i test my service consumer "ZCO_WS_TEST_CONSUMER", it will throw an exception "cx_ai_system_fault" with errortext "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/".
    15. I use t-code SM59 to test connection  and get the following info.
          Status HTTP Response     200
          Status Text                      OK
          Duration Test Call             328 ms.
    who can give me the reasons about item 11 and 14, and explain me how to create service provider and service consumer for a Function Module.
    Thanks in advance
    Johnney

    have you seen this weblog
    /people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices

  • Function module for converting the foreign currency to words

    hi,
    can anybody tell me about the function module for converting the foreign currency to words format.
    Like 25.50 USD
    should be "Twenty Five Dollar & Fifty Sents."
    foreign currency can be anyone like USD, JPY, EUR etc.
    Regards
    Nitin Varshney

    Hi,
    Try using the FM SPELL_AMOUNT
    Check this wiki
    [SPELL_AMOUNT|https://wiki.sdn.sap.com/wiki/display/Snippets/SpelltheAmountenteredin+words]
    Regards
    Sarves

Maybe you are looking for

  • Lenovo Yoga 11s SSD and RAM Upgrade - Great Results

    Picked up a Lenovo Yoga 11s from Best Buy.  I chose Best Buy for price, color, and processor.  They had a slightly better deal than Lenovo.com.  The clementine color looks great.  Quality is great.  I'm very happy with the purchase.  It has the i5 pr

  • Windows Server 2012 "standard" or "datacenter" as a Deployment Server, which one??

    As the question states. I am Certified ESDT/EDA (MCITP), MCSA Windows 7, working on my Windows Server 2008 MCSA. We are hybrid, Novel/Windows environment and make our move to Windows, so my actual work with a windows environment (other then Desktop s

  • Duping (send to back)

    When i duplicate a movie clip it always seems to come to the front and get in the way, is there a code to send it to the back, even when you dupe it. thanks in advance.

  • How to programmatically compare two PDF documents.

    We are in need of a solution related to comparing baselined and revised PDF documents, generally around 2-3 pages of content. Please note that I am looking for programatic comparison, ideally a dotnet based solution using Acrobat SDK. Any help will b

  • PDF font error

    Getting a Font Error when opening a pdf file with Adobe Reader. All the newest versions of Reader, OSX etc. The error says missing font Univers-Light Sometimes Reader crashes. It turns out this is an Adobe font that I have to pay for???