Function module - convert to local currency

Dear all,
I need to use a function module to convert to local currency a document that has been posted in foreign currency, which function module can I use? I tried convert_to_local_currency but I dont get any output...
Else I need a function module to reverse a GL document, which function module should I use?
Thanks and best regards!

Hi,
Please use the following linke and see if this helps.
Re: FI Reverse Document BAPI
Regards
K.R

Similar Messages

  • FM for convert to local currency other than CONVERT_TO_LOCAL_CURRENCY

    Does anyone know any other FM which converts into local currency???
    But it should be other than CONVERT_TO_LOCAL_CURRENCY..

    Hi Ajay,
    Just you can check it out in SE37.
    CONVERT_TO_LOCAL_CURRENCY_N
    CONVERT_TO_LOCAL_CURRENCY_O.
    CONVERT_TO_FOREIGN_CURRENCY
    Chk this Link
    convert to local  currency
    Reward Points if Useful
    Regards
    Gokul

  • RFC - Calling Function Module in a local Windows Program (.exe) on user PC

    Hi Gurus !
    Has anyone ever tried to call a local program on the user side through RFC ? Actually, this programme should allow the use of function module from ABAP programs.
    Indeed we want to use some device locally installed, here a device to pay using Credit Cards.
    However, we've almost successfully filled our requirements if the destination RFC is activated as a Registered Program. But a user B tries to access device of a user A if the code and destination are the same. So we need to create as many RFC destination as users.
    So, we'd like the frontGUI to call the local EXE. This EXE would be coded in VB btw. But we can't figure out how to set the program to register on SM59, using "Start on Front-End Station" option.
    Has anyone any clue on how the program should look like ?
    Thx in advance,
    N H

    Hi MxG,
    I guess we're close to the solution.
    So, using the .Net Connector, and declaring inside our program the Host and Server Class, we've managed to use it, as a registered Server Program. Actually our Registered Program is a Windows Service running on the local computer that the RFC Function Module refers to.
    While testing this it's appeared that user B was trying to use device on User A, event thought devices and services were installed on both computers.
    I guess there's something we're misunderstanding or missing when we try to convert our solution to a Front-End solution. The program is obviously incomplete, something is missing. But I can't find any example or start-up for that program. Even in SAPHelp, there's only something saying that "you can do your own program for front-end and RFC"...   :/
    Well, I've just realized I've reformulated my issue, but since it's confusing for me, it's actually not easy to describe and make sure it's understandable !
    Regards,
    N H

  • Function module converts sy-datum to date according to user settings in SAP

    Hi experts,
    I need such a function module which converts sy-datum to a date format
    according to user settings in SAP.
    Thanks,
    Yogesh

    Use these function modules.
    CONVERSION_EXIT_PDATE_OUTPUT
    CONVERT_DATE_TO_EXTERNAL
    Please mark points if the solution was useful.
    Regards,
    Manoj

  • SAP Function Module Converting Stock UoM to the Billing UoM of the material

    Hi Guys,
    I'm looking for an SAP Function Module that can handle the automatic conversion of a material's Stock Unit of Measure into its Billing Unit of Measure.
    Any idea? 
    Thank you in advance.
    -allex

    Hi,
         Check this Function module
    OIU_QCI_CALC_BILLING_QUANTTIES
    Regards
    Bala Krishna

  • PO: Tax amt to be convert into local currency for government declaration

    Dear All,
    I have this scenario where the Company currency and Vendor currency is in USD.
    Because of Domestic Purchase, so Tax/VAT is incurred.
    For my case, because company and vendor currency are both in USD, but when declare the tax to the government, we need to convert it into local National Currency which is SGD.
    Can your please advice if somewhere in SAP standard where i can enter the SGD rate or amount for the tax, or somewhere i can configure to make it auto determine the SGD rate and tax amount?
    Thank you very much,
    CW

    dear firned,
    you would try t-code  FBB1
    regards,

  • Function Module to convert  amount to  amount in words

    Dear Guru ,
    I want to know is there any sap standard Function Module to convert  amount value   to  amount in words
    Thanks & Regards

    Hi..
    Use FM SPELL_AMOUNT.
    This function module converts an amount or number into words. It can be used as follows:
    Convert a number into words
    To do this, the transfer parameters LANGUAGE and AMOUNT have to be entered.
    Convert an amount into words
    To do this, the fields LANGUAGE, CURRENCY, and AMOUNT have to be entered.
    Program RF_SPELL contains a sample call of the function module. You can use it for test purposes.
    REPORT ZSPELL.
    TABLES SPELL.
    DATA : T_SPELL LIKE SPELL OCCURS 0 WITH HEADER LINE.
    DATA : PAMOUNT LIKE SPELL-NUMBER  VALUE '1234510'.
    SY-TITLE = 'SPELLING NUMBER'.
    PERFORM SPELL_AMOUNT USING PAMOUNT 'USD'.
    WRITE: 'NUMBERS', T_SPELL-WORD, 'DECIMALS ', T_SPELL-DECWORD.
    FORM SPELL_AMOUNT USING PWRBTR PWAERS.
      CALL FUNCTION 'SPELL_AMOUNT'
           EXPORTING
                AMOUNT    = PAMOUNT
                CURRENCY  = PWAERS
                FILLER    = SPACE
                LANGUAGE  = 'E'
           IMPORTING
                IN_WORDS  = T_SPELL
           EXCEPTIONS
                NOT_FOUND = 1
                TOO_LARGE = 2
                OTHERS    = 3.
    ENDFORM.                               " SPELL_AMOUNT
    I hope it helps.
    Reward pts if helpful
    Regards
    - Rishika Bawa

  • Invoice payment other than local currency

    Company code currecny is INR
    Invoice booked in foriegn currency i.e. document currency EUR 100 and converted to local currency 1000 (inr)
    Making the payment in INR in 1000 (INR) against EUR invoice posted, now the vendor will be cleared in local currency and no open items, balances will '0'
    But the problem is amount in the doc currency balances will show two difference amounts 1000 INR and 100 EUR.
    Is there are any specific settings where we can the knock off the balance lying in the document currency and balances should show '0'.
    Regards,
    Krishna.

    You can clear the vendor using F-44 mentioning clearing currency on the selection screen as INR.
    Regards,
    Gaurav

  • Unable to write, type anything in source code of a function module.

    Hi all,
    We have a registered name space for our client called /ABCD/EFG.
    I need to create a function module in the name space.
    So first I created a Function Group called /ABCD/EFG_FG in /ABCD/EFG. I activated it in se80.
    Then I created a Function Module called /ABCD/EFG_FM in /ABCD/EFG. I declared the import and export paramters and now I am trying to add the code in source code and the editor does not let me change the source code donu2019t know why.. and every thing is in grey color.
    Can some one tell me what is going wrong? Cant we write any logic in the function module that we create in registered name spaces? When I created the same function module as a local object in $TMP package I dint have any problem. Similarly I created the function module in a Z package and I dint have any problem but if I try to create the same function module in a registered name space it is getting created but it doesnu2019t not let me type anything in the source code of the function module.
    Did any body encounter this problem earlier? Kindly please help.
    Regards,
    Jessica Sam

    Rich,
    Thanks a lot, that worked. Now it lets me type and change the source code of the editor.
    But while i was turing off the assistant it showed me 2-3 messages saying that "i cannot track the changes" and that "during upgrade i cant track the changes " etc.
    So now i can type in source code and i am able to change in source code..but will the trurning of this assistant cause any problmes in future or during upgrade?
    Regards,
    Jessica Sam

  • Function module file_get_name

    functionality of FILE_GET_NAME.

    hi Venu,
    Check this out
    http://help.sap.com/saphelp_45b/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
    FU FILE_GET_NAME
    Text
    Assign the Physical File Name Using a Logical File Name
    Functionality
    R/3 applications run on various platforms with various file systems. This function module enables you to use platform-independent logical file names in your application programs.
    Based on definitions maintained in customizing tables for platform-independent file names, the function module converts a logical file name to the corresponding physical file name and path for the hardware platform concerned.
    For this conversion to work for different platforms, the definition of a logical file name must include a logical file path, which in turn is converted to different physical file paths, depending on the particular platform. The platform-specific file name returned by the function module is composed of the physical file path for the current platform and the physical file name associated with the logical file name. Placeholders in physical file and path names are substituted at runtime by the corresponding current values.
    Example
    logical file name: MONTHLY_SALES_FILE
    physical file name: VALUES<PARAM_1>
    logical path: SALES_DATA_PATH
      physical path (UNIX): /usr/<SYSID>/<FILENAME>
      physical path (Windows): C:\SALES\<FILENAME>
    Example 1
    Get file name for UNIX platform
    (current system: K11)
    CALL                                                                                FUNCTION                                                                                'FILE_GET_NAME'
       EXPORTING
          LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
       IMPORTING
          FILE_NAME = FILE
          FILE_FORMAT = FORMAT.
    Result:
    FILE = /usr/K11/VALUES
    FORMAT = WK1
    Example 2
    Get file name for UNIX platform, passing a parameter
    (current system: K11)
    CALL                                                                                FUNCTION                                                                                'FILE_GET_NAME'
       EXPORTING
          LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
          PARAMETER_1 = '_TST'
       IMPORTING
          FILE_NAME = FILE
          FILE_FORMAT = FORMAT.
    Result:
    FILE = /usr/K11/VALUES_TST
    FORMAT = WK1
    Example 3
    Get file name for WINDOWS platform, with file name extension
    CALL                                                                                FUNCTION                                                                                'FILE_GET_NAME'
       EXPORTING
          LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
          WITH_FILE_EXTENSION = 'X'
       IMPORTING
          FILE_NAME = FILE
          FILE_FORMAT = FORMAT.
    Result:
    FILE = C:\SALES\VALUES.WK1
    FORMAT = WK1
    Notes
    All definitions needed for the platform-independent assignment of file names are maintained client-independently with transaction FILE. Logical file names (but not logical file paths) can also be defined specifically for the current client with transaction SF01. Transaction SF07 generates a list of current definitions.
    The following concepts are used in the platform-independent assignment of file names:
    Logical file name
    A descriptive name for a file which is associated with these values:
    physical file name
    file format
    logical file path.
    If no logical file path is specified, the function module returns the physical file name only; placeholders are substituted by current values.
    Physical file name
    The physical file name may contain placeholders.
    Logical file path
    A descriptive name for a path which is associated with these values:
    syntax groups (groups of operating systems)
    physical file paths.
    Physical file path
    The physical file path is defined for a particular syntax group. It must contain the reserved word <FILENAME> as a placeholder for the file name. It may also contain other placeholders.
    Operating system
    Presentation server and application server can run under different operating systems. The current value for the application server can be obtained from the system field SY-OPSYS, the value for the presentation server by calling function module WS_QUERY.
    Both operating systems must be defined and assigned to a syntax group.
    Syntax group
    Group of operating systems with a common syntax for file and path names (e.g. HP-UX and SINIX).
    Placeholder
    Reserved words, set in angle brackets, which can be included in physical file and path names (e.g. <DATE>, <FILENAME>). You can find information on possible reserved words in the online help (F1 help) for the fields physical file name and physical file path when maintaining platform-independent file names with transaction FILE.
    If the logical path associated with a logical file name does not specify a physical path for the current operating system (syntax group), the path stored in the profile parameter DIR_GLOBAL of the current system is used for generating a complete platform-specific file name.
    Parameters
    CLIENT
    LOGICAL_FILENAME
    OPERATING_SYSTEM
    PARAMETER_1
    PARAMETER_2
    PARAMETER_3
    USE_PRESENTATION_SERVER
    WITH_FILE_EXTENSION
    USE_BUFFER
    ELEMINATE_BLANKS
    EMERGENCY_FLAG
    FILE_FORMAT
    FILE_NAME
    Exceptions
    FILE_NOT_FOUND
    Function Group
    SFIL
    Regards,
    santosh
    Message was edited by: Santosh Kumar P

  • Bank GL Report in Local currency

    Hi SAP Friends,
    My client requirement is that All accounts are to be maintained in Local Currency (MYR) and there is only 2 USD bank accounts (City Bank, MBB) to be maintained in foreign currency and also require converting to Local Currency (MYR) for reporting purpose.
    Looking forward for your valuable inputs
    Thanks
    Para

    hi
    V K Para         
    Go to T CODE-S_PLO_86000031 OR S_PLO_86000030
    IN this screen give currency as you want
    you can view balances in USD
    REGARDS
    TRINADHNAIDU.A
    Edited by: trinadhrao althi on Oct 20, 2008 2:02 PM

  • Alternate Exchange Rate Type Not Picked while converting from Document Currency to Group Currency

    Hello Gurus,
    We have setup an alternate Exchange Rate type MNB for rate M for the postings happening in Hungary. Local currency is HUF. Group currency is USD.
    If the document currency is, lets say, EUR, latest MNB rate is correctly picked up (EUR to HUF) and postings are correctly converted into local currency (HUF).
    Although, for the same document, when a group currency is being calculated (EUR to USD), exchange rate type M is being picked up. Same happens if  document currency is HUF. Even then, the conversion is based on exchange rate type M.
    Is this a normal SAP behavior? How to prevent/correct this? This is also throwing off balances when we check in FAGLB03 or BSEG values in local and group currencies. In OB22, we have local currency1 and local currency 2 setup with exchange rate type M and we may not want to make any changes there as it is setup at global level.
    Do we need to run any valuations after the fact? if so, how?
    Thank you for your inputs in advance.
    Regards,
    Sagar

    Hi,
    You mentioned that "in OB22, we have local currency1 and local currency 2 setup with exchange rate type M". Then, I'm wondering how MNB is picked up for the first local curr. conversion to HUF? It should be 'M' instead. There must be some settings in your instance for such behavior. Can you check that?
    Actually, Group Curr. conversion happens with the rate defined for 2nd Loc.Curr.in OB22 which is 'M' in your case. Therefore, all the transactions are converted with M instead of MNB.
    Since you can't change OB22 per global co.policy, the exch.rate defined in OBA7 will overrule OB22. However, you've to make sure it's set up for all doc.types which are affected and posted in different curr. than HUF.
    As a workaround, another thought would be to maintain the same conversion rate for both exch.rate types MNB & M, for eg. HUF > USD rate is the same both exch.rate type MNB & M. This way, you ensure all transactions are posted with correct exch.rate irrespective of whatever rate type is used.
    From business, & global org. perspective, I'm sure they are sending the 'M' exch.rates to all their sister concerns monthly, so they would like to consolidate results as per standard rate in their system. Then, why ,as a local company, would you like to fiddle with standard process? It's a management decision, please run them through again before going ahead.
    Thanks,
    Nirav

  • How SAP captured the RAW MAT amount from Local currency to JPY.

    Hi All,
    I've class 1 material when perform maintained receipt found the RAW Mat material was posting wrong figure when convert from Local Currency RM to JPY.
    Exp: my RAW MAT amount is material standard price x qty.
    Let said my standard price is RM9.61 and the qty is 180 so that my Raw Mat amount is RM1729.80 and exchange rate is 3.718 form JPY to MYR when i display it on  document currency the amount show in JPY is 46,440 instead off 46,525.
    But when i cancel the document the system do captured the correct amount 46,525.
    How sap get this Raw Mat amount?
    Thanks in advance.

    MYR = Malaysia Ringgit.
    The RAW MATT price is correct when in Local Currency which is in MYR but there are the variance when convert to others currency like JPY and USD.

  • Material Document List - Local currency amount

    Hi Experts,
    We encountered the material list initial entry of stock total amount does not tally with the goods issue for an order.
    All the material was purchase in (EUR) currency and the material document list was converted to local currency (RM).
    Just want to confirm this is normal for the material document list as due to foreign currency exchange rate ?
    Hope you can assist to answer the doubts for us.
    thanks.
    rgds,
    tee

    Hi,
    Its MB51 - Detail list.
    Whereby the curency amount was display in RM.  But at PO level, item was purchase under EUR currency.
    The user was add-up the total and found the its not tally even the qty of material was fully consumed.
    thanks.
    rgds,
    tee

  • Generation function modules through code

    Hi all,
    I am generating function groups and function modules programmatically using the function calls
    'RS_FUNCTION_POOL_INSERT' and 'RS_FUNCTIONMODULE_INSERT'. This works fine when I try creating function modules in a local system. In a remote system, the function group and modules get created, but there is not tadir/tfdir entry.
    I try the same thing with different remote backend systems, and while the function modules have no syntax errors in one system, i get an error 'Function group is not assigned to a package' in some other systems. I think this has to do with some RFC authority. Can anyone throw some light on this.
    Any help would be appreciated. Thanks in advance.
    Regards,
    Nithya

    Hi,
    Look at the below threads
    Re: FUNCTION MODULE ERROR
    Re: regarding insert report statement
    Regards
    Sudheer

Maybe you are looking for