Changing Multi-Currency BP via SQL

Hi Expert,
Can i get some advise please?  I have a client who has many business partners on ALL currency in the OCRD currency field.  They would like to change these to GBP.  At the moment via SAP this is not possible as transactions has been made and i can only see it is possible via SQL.  I have tested this on a test DB and it works and will display to GBP. It also have drop down to allow you to select different currencies on the company.
What effect will this have that is not currently noticable?  At the moment i cannot see a problem by doing this but i would like to have some advise before proceeding further.
Regards
Bob

Hi,
It is not advisable and recommended to use update/delete queries.
If the same is run it can lead to the database inconsistencies. Changing the name could update the field value to the correct value in display. However, for the earlir transactions, aging report, other financial reports etc have effect.
I recommend not to use update/delete as it renders the database out of support.
Kind Regards,
Jitin
SAP Business One Forum Team

Similar Messages

  • How to create a dynamic multi-line function in SQL Server

    I am attempting to create a Multi-Line Function in SQL Server that accepts a dynamic WHERE clause as a parameter. I need this so that the function can be as versatile as possible for the filter that needs to be applied. I am unfortunately getting an error
    upon creation of the function.  I don't know how to solve the problem. Can someone advise me?
    SQL:
    SET
    ANSI_NULLSON
    GO
    SET
    QUOTED_IDENTIFIERON
    GO
    -- =============================================
    -- Author:
    -- Create date: 2/3/2014
    -- Description: This multiline function will accept a generic WHERE Clause and apply it to the query for return.
    -- =============================================
    CREATE
    FUNCTIONTESTMULTILINEFUNCTION
    @WHEREvarchar(1024)
    ,@CHANGEDDATEasdatetime
    RETURNS
    @TESTTABLE
    TABLE
    IDint
    ,REVint
    AS
    BEGIN
    Declare@SQLSTRINGvarchar(4096)
    SET@SQLSTRING=''
    SET@SQLSTRING=@SQLSTRING+'SELECT
    REVS.ID, REVS.Revision
    FROM
    Select distinct result.ID, Max(Rev) as ''''Revision''''
    FROM
    Select * from dbo.BugsAll
    where
    [Changed Date] < @CHANGEDDATE
    ) result
    GROUP BY result.ID
    ) REVS
    join dbo.BugsAll BA on (BA.ID=REVS.ID AND BA.REV=REVS.revision)'
    IF
    (@WHEREisnotnullOR@WHERE<>'')
    BEGIN
    SET@SQLSTRING=@SQLSTRING+'
    WHERE '+@WHERE;
    END
    INSERT@TESTTABLE
    EXEC
    (@SQLSTRING)
    RETURN
    END
    GO
    ERROR:
    Msg 443, Level 16, State 14, Procedure TESTMULTILINEFUNCTION, Line 44
    Invalid use of a side-effecting operator 'INSERT EXEC' within a function.
    Senior Test Lead -- Microsoft

    >> Unfortunately I really need to form a dynamic query in a table valued function on the SQL SERVER. I have another tabled valued function that needs something returned as a table in order to further join the data. I am not allowed to use Stored
    Procedures in that function. <<
    You do know that real SQL programmers hate the proprietary nightmare of tabled valued functions?  This is how you procedural programmers avoid learning set-oriented declarative and functional programming. 
    Your mindset wants to write to a scratch tape or disk file (aka “tabled valued function result table”) just like you did BASIC, FORTRAN or COBOL. QL programmers do not have to materialize their data. We can use VIEW or a drive table as well as a base table. 
    >> Plus, there are occasions where I don't want to pass in a field [sic: columns are not fields] parameter or need to change a parameter list such that I don't wish the table function to filter by a particular field [sic] or other setting. <<
    What you want is a magical “Automobiles, Squids and Lady Gaga” function. An SQL programmer might write a complex VIEW then do simpler SELECTs off it. 
    >> My application pushes the WHERE clause from EXCEL to SQL to do the hard work as EXCEL is not the application in which I want to process the SQL statement and pass it via ODBC. I cannot run macros in Excel on the web.<< 
    This is a crazy language system. Usually we fetch data in SQL and then pass it to a math package, report writer, etc. We never keep logic (aka WHERE clauses) outside the database. 
    >> I am bummed about the fact that this feature doesn't work. It will up my server management costs to maintain unique tabular based functions based on WHERE clause query <<
    So stop writing those “tabular based functions”, change your mindset and start learning SQL and do it right. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Changing document currency

    Hi All,
    I am currently implementing Multi-currency in our system.
    Whenever I change my Document currency, it will prompt me with an error saying the Invoice Currency Exchange rate needs to be updated.
    I am pretty sure I done this.
    Then, I simply have to manually remove my item from the document in SAP manually.
    It redo the update via SBO, and it works.
    I was wondering if someone has this kind of issue before?
    Regards,
    David

    Dear David
    Thank you for this question. What you are reporting looks to me like a bug in the system. The channel for such questions is the Service Marketplace http://service.sap.com/.
    Please post it there.
    Best regards
    Miki

  • Changing system currency after company copy using CopyExpress

    Hi!
    I have copied the dev database to test and would like to know if it is possible to change the system currency using the GUI (I have found tue way to do so using an SQL querry).
    Thanks!

    SAP will not support any database, which is inconsistent, due to SQL-Queries, which modify datasets or the datastructure of the SAP Business One Database. This includes any update-, delete- or drop-statements executed via SQL-Server Tools or via the the query interface of SAP Business One.
    This is stated in the support contract between SAP and the SAP Business Partner also.
    Check SAP Note: 896891     Support Scope for SAP Business One - DB Integrity
    [https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=896891]
    Also check
    SAP Note: 631504     Do not use Delete, Insert and Update statements     
    [https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=631504]

  • How to pass this multi-value parameter via GoURL?

    Currency is equal to / is in 'USD', 'GBR', 'RUR'. How to pass such multi-value parameter via GoURL?
    P0=1&P1=eq&P2=Measures.Currency&P3=?

    Found. P0=1&P1=eq&P2=Measures.Currency&P3=3+USD+GBR+RUR

  • Setting up Multi server environment in Sql Server 2012 - Enlist Failed Error

    I am trying to Configure the Master target server / Multi server environment in Sql Server 2012.
    I changed :
     - `MSXENCryptChannnelOptions`-->Changed from 2 to 0
     - `AllowDownloadedJobsToMatchProxyName` - changed from 0 to 1 on the target
    When I run the wizard I am getting below error
    >MSX Enlist failed for Job Server 'MasterServerName'
    >The enlist operation Failed(Reason:SQL Server Agent Error: Unable to connect to MSX 'MasterServerName'(Microsoft Sql Server, Error : 22026)
    They both servers SQL Agents are running on the same windows service account.
    Any Suggestions on how to fix this?
    **Adding the Log:**
    Enlist TSX Progress
    - Create MSXOperator (Success)
    Checking for an existing MSXOperator. 
    Updating existing MSXOperator. 
    Successfully updated MSXOperator. 
    - Make sure the Agent service for 'Test3' is running (Success)
    The service 'SQLSERVERAGENT' is running. 
    - Ensure the agent startup account for 'Test4' has rights to login as a target server (Success)
    Checking to see if the startup account for 'Test4' already exists. 
    Login exists on server. 
    Checking to see if login has rights to msdb. 
    Login has rights to msdb. 
    Checking to see if user is a member of the TargetServersRole. 
    User is a member of the TargetServersRole. 
    - Enlist 'Test4' into 'Test3' (Error)
    Enlisting target server 'Test4' with master server 'Test3'. 
    Using new enlistment method. 
    Messages
    MSX enlist failed for JobServer 'Test4'.  (Microsoft.SqlServer.Smo)
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    The enlist operation failed (reason: SQLServerAgent Error: Unable to connect to MSX 'TEST3'.) (Microsoft SQL Server, Error: 22026)

    hi SmilingLily,
    you can try to run the SQL Agent under a domain account.

  • OBIEE11g - Report Multi Currency Display (Static Data)

    Hi All,
    I have a requirement where i need to display amount data in multi currency format in OBIEE 11g like LCY and OCY format.User have to select the currency type like USD,YEN,EURO and resulting amount data in report should display in that currency format.
    Pls suggest me is it required to do ETL Changes i.e we need to load data in Database in multi currency format
    can we do this at Report level i.e can convert the amount in required currency format.
    Note: Spot rate is currency data it's loading by monthly its a static data.
    please refer my expected output screen short:
    http://imageshare.web.id/images/0dnlgxlvmhl7u5tdbac1.jpg
    (currently we are displaying one currency now we need to show multicurrency)
    Just FYI...
    joins:
    "GPC_DataMart"."GPC_DataMart"."dbo"."MX_SPOT"."OCY" =
    "GPC_DataMart"."GPC_DataMart"."dbo"."IW_POSITION"."ORIG_CURRNBR"
    AND
    "GPC_DataMart"."GPC_DataMart"."dbo"."MX_SPOT"."PPN_DT" = "GPC_DataMart"."GPC_DataMart"."dbo"."IW_POSITION"."Business_Date"
    here ocy & ORIG_CURRNBR is the foreign currency (i.e: USD,YEN,EURO etc)
    Calculation part:
    CASE WHEN "GPC_DataMart"."GPC_DataMart"."dbo"."IW_POSITION"."Product_Type" IN ('Bond', 'Bonds', 'Callable Bonds')
    THEN "GPC_DataMart"."GPC_DataMart"."dbo"."IW_POSITION"."Nominal_AMT" * "GPC_DataMart"."GPC_DataMart"."dbo"."MX_SPOT"."NON_DISC_SPOT"
    WHEN "GPC_DataMart"."GPC_DataMart"."dbo"."IW_POSITION"."Product_Type" ='Equities' THEN
    ("GPC_DataMart"."GPC_DataMart"."dbo"."IW_POSITION"."MKT_VALUE" - "GPC_DataMart"."GPC_DataMart"."dbo"."IW_POSITION"."CAPITAL_GAIN" ) * "GPC_DataMart"."GPC_DataMart"."dbo"."MX_SPOT"."NON_DISC_SPOT"
    END
    in the above calc amount * spot_rate
    I already refer the below one but it wont suite for my case:
    http://www.rittmanmead.com/2010/06/oracle-bi-ee-10-1-3-4-1-currency-conversions-fx-translations-part-1/
    http://gerardnico.com/wiki/dat/obiee/currency
    Thanks in advance
    Regards,
    Deva
    Edited by: Devarasu on Nov 16, 2011 3:13 PM

    Hi Deepak,
    our table will like below one,how we can calculate on fly calculation for this,
    in my dashboard MX_spot.ocy prompt column --> set request variable.
    how i can use this request variable in RPD-->BMM --> logical expression?.
    Table 1: Postion (Fact)
    PRODUCT_ID      ORIG_CURRNBR     (Nom+Capital+PREM_DISC_AMORTISE) Business_Date
    ========================================================================
    HKD T-NOTE 1312     CN1      48407.555               31/10/2011
    HKD T-N 07Y1402     HKD          -45000.23               31/10/2011
    Table 2: Mx_Spot (all currency with static rate)
    OCY     NON_DISC_SPOT     PPN_DT     
    SGD     0.1962748     31/10/2011     
    HKD     0.1605621     31/10/2011     
    CN1     1     31/10/2011

  • OBIEE Report Multi Currency Display

    Hi All,
    i have a requirement where i need to display amount data in multi currency format in OBIEE 10.1.3
    User have to select the currency type like USD,YEN,EURO and resulting amount data in report should display in that currency format.
    Pls suggest me is it required to do ETL Changes i.e we need to load data in Database in multi currency format
    can we do this at Report level i.e can convert the amount in required currency format.
    Pls suggest.
    Thanks in Advance

    Thanks for your answer.
    I found a solution I used virtual tables in the physical layer it will replace the views I had to create inside the DWH to handle this problem.and created the joins in the physical and business layer.then I had the result I wanted for reporting.

  • Internal PLSQL Tables Access via SQL. But how ?

    Hello,
    I want to write the result of a database query in an internal PLSQL Table. After that i would like work with this internal PLSQL Table
    in a Package/Procedure/Function.
    Important for me is to access the internal Table via SQL because i have to refactor a package wich is working with 46 Database Tables an plain SQL. I
    would like to change these DB Tables into internal PLSQL Tables.
    I have written a short example wich will explain my approach to solving this problem.
    The syntax will be accepted by the Database but my 'dbms_output.put_line' statement at the end is empty or blank.
    What do i wrong ? Would be nice if anyone can help me out.
    With best regards
    Jens
    pre work :
    create table PERSON_DB_TABLE
    (SURNAME  VARCHAR2(50),
    LASTNAME VARCHAR2(50));
    insert into PERSON_DB_TABLE values
    ('JENS','FOERSTER');
    insert into PERSON_DB_TABLE values
    ('MAX','MEIER');
    insert into PERSON_DB_TABLE values
    ('MARTHA','MUSTERMANN');
    create type PERSON_OBJECT as object (
        SURNAME  VARCHAR2(50),
        LASTNAME VARCHAR2(50));
    create type PERSON_NESTED_TABLE as table of PERSON_OBJECT;
    now my anonymous block
    declare
       v_PERSON_OBJECT        PERSON_OBJECT;
       v_PERSON_NESTED_TABLE  PERSON_NESTED_TABLE;
       v_PERSON_OBJECT_2      PERSON_OBJECT;
    begin
       for v_counter in (select SURNAME, LASTNAME into v_PERSON_OBJECT.SURNAME,
                                                                                            v_PERSON_OBJECT.LASTNAME
                                  from PERSON_DB_TABLE)
         loop
            v_PERSON_NESTED_TABLE := PERSON_NESTED_TABLE(v_PERSON_OBJECT);
         end loop;
       for v_counter in (select SURNAME, LASTNAME into v_PERSON_OBJECT_2.SURNAME,
                                                                                            v_PERSON_OBJECT_2.LASTNAME
                                  from TABLE (v_PERSON_NESTED_TABLE))
         loop
            dbms_output.put_line(v_PERSON_OBJECT_2.LASTNAME);
         end loop; 
    end;

    1386a7b8-e834-43bf-a0d4-922b548bb70b wrote:
    I need this, because my customer didn't like the idea to use Database Tables instead of Variables in the RAM. So he wants this procedure redesigned.
    As Mike says, keep this person away from your database.
    Customers should not be dictating how to implement technical solutions, they should be providing business and logical requirements.
    PL/SQL arrays/collections use expensive PGA memory, taking up valuable server resources.
    Copying data from the database to PGA memory to try and process it using PL/SQL is bad design.  SQL is designed specifically for data manipulation using database tables, so it's the ideal way to do process data... directly on database tables.

  • Multi-currency in reports

    How can I dynamically change the currency symbol in reports using the LNNNGNNNDNN field format.

    If I alter the session and use NLS_TERRITORY and select using to_char(item, 'L999G999D99')
    then it will print with the local currency symbol, however if I have the item defined with format mask of L999G999D99 and select just the number it will not.
    Is there an easy solution to print reports in multi currency dynamically or will I need to select each value with its corresponding format. What would be the use of the L999G999 etc format mask?
    Thanks

  • Multi Currency planning Application(Xchange rate not pushed to Essbase)

    In planning Application "ABC"
    If i change the values manually in "EXCHANGE RATE TABLE"
    after i refresh the data into the Essbase
    and run "HSPCRTB"
    the value changes in the Spreadsheet... (i.e Exchange rates are visible)
    But when i follow the same process for the n Planning Application "XYZ"
    The Spreadsheet is not showing the Xchange rate values..
    "XYZ" this application is built 2 years ago but.. this is the first time i am using for currency.
    i.e Exchange rates.. values to input
    Is there anything i need to do for the first time when i input the FX rates and push into the essbase?
    Can you please suggest me for further process of
    "Xchange rates to be visible in Essbase" ?
    Edited by: 838300 on Oct 18, 2011 11:24 AM

    Hi Jay,
    Thanks for the Reply,
    Both of them are Multi currency Applications, i used Exchange rate table in both the applications
    and also the rates are assigned to scenarios and after the refreshing the Database,
    there is only one default currency script generated in EAS console for each DB, i.e "HspCRtB"
    I run that script after i refreshed
    But the rates are not populated into the essabse cube.
    I am stuck over there... please do give me suggestion if u find anything else left out, that i missed.
    thanks for reply once again.

  • Multi-language JRE via auto-download?

    It seems that the JRE installed via the auto-download cab file for Windows is not the multi-language version. If I install the JRE by hand and then launch my Web Start application, I have no issues accessing other encodings like JIS_X0201. However, if I use the auto-download feature described in the Java Web Start tutorial (using http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=6,0,0,0...) I get an English-only version and end up with UnsupportedCharsetExceptions when I access other encodings.
    So, in short: Is there a way to get the multi-language JRE via auto-download?
    Thanks!

    Thats the GUI I am talking about
    Confirmation Needed - Print
    Print Request
    Applet would like to print . Do you want to proceed?
    Don't show this dialog box again?
    Yes No
    I want this to be in Portuguese, my native language.
    I changed the code like this:
    import java.util.Locale;
    import java.util.ResourceBundle;
    private String language = "br";
    private String country = "BR";
    Locale currentLocale;
    ResourceBundle messages;
    currentLocale = new Locale(language, country);
    messages =ResourceBundle.getBundle("MessagesBundle",currentLocale);
    ( I included )
    ( I algo created those files )
    MessageBundle.properties
    Dialog = Confirmation Needed - Print
    Title = Print Request
    Text = Applet would like to print. Do you want to proceed?
    Warn = Don't show this dialog again
    MessageBundle_br_BR.properties
    Dialog = Confirma��o Requisitada - Impress�o
    Title = Requisi��o de Impress�o
    Text = O Applet deseja imprimir. Deseja prosseguir?
    Warn = N�o mostre esta caixa de di�logo novamente.
    Everything according to tutorial.
    But I did not understand how this change a dialog that came from the JRE!!
    Angel Portal

  • Compiling pl/sql packages via sql

    Hi All,
    Is it possible to compile the pl/sql packages via sql scripts or shell scripts
    The idea is to make the compilation process independent of tools like PL/SQL developer and people.
    Thanks in adv.
    Bh.

    OK. What sort of source control system are you using?
    In general, you would want to check in all your scripts to a version control system and write scripts that automatically check the appropriate version of a script out of source control and apply it to the appropriate environment in the appropriate order at the appropriate time. What is appropriate, obviously, is going to be heavily influenced by your particular environment, needs, build process, build schedule, etc.
    One possibility is to check in a MASTER_BUILD.sql script that is a SQL*Plus script that invokes whatever other scripts are necessary for a particular change, along with all the supporting scripts, into a folder that is at whatever granularity you track changes. Your build process would then just check out everything in this folder and run MASTER_BUILD.
    Justin

  • Can't change budget  for IO via KO22

    Hi, when I tried to display or change the IO budget via tcode KO23 or KO22 , respectively, I got the below error mesg:-
    No update in foreign currency planned for controlling area CRTL
    Message no. BP414
    Diagnosis
    In budget profile Z00000 assigned to the object to be processed, "user-selected currency" or "object currency" was chosen as budgeting currency.
    This means that budget values can be entered in currencies deviating from the controlling area currency.
    In controlling area CRTL, however, you have not set the control indicator "All currencies" for all fiscal years that can be budgeted due to the budget profile settings.
    In the case of budgeting of overall values, the indicator must be set for the year of the value date maintained in the budget profile.
    System response
    No budget values can be entered.
    Procedure
    Set the control indicator "All currencies" in controlling area CRTL for all fiscal years.
    How should I go about resolving this issue?
    Edited by: Quek Ethan on Apr 13, 2009 10:52 AM
    Edited by: Quek Ethan on Apr 13, 2009 10:52 AM

    Hi Reddy,
    I only changed the Budgeting Currency to Controlling area currency & then it works. Why can't I leave the budgeting currency = Transaction currency? what's the difference?
    I tried other IOs with a different Order type but it didn't give me the same problem. Is there some config that is tied to the IO type?
    Best Regards,
    Ethan Quek
    Edited by: Quek Ethan on Apr 13, 2009 4:05 PM

  • Multi Currency BP not in Doc Gen Wizard

    Does anyone know why the customers that are set to All Currencies are not available in the Document Generation Wizard?
    Might this be a bug or is there a logical or technical reason for multi-currency BPs to not be available in the Doc Gen Wizard?
    Thanks in Advance,
    Brad Windecker

    Hi Brad, Suda, Fabrice,
    We also have the same problems and also for paying invoices to vendors.
    The payment wizard denies all vendors with multiple currencies for the same reason and that's not acceptable for our company.
    Solution: create vendors for all neccesary currencies!
    The field in de BP master is changeable and it can be forgotten that as of the above reason, the currency may not be changed. If it's changed..we have to pay the invoices by hand and have to create new vendornumbers.
    We have a lot of trade with vendors from the UK and USA in Euro, GBP and USD, that means at least 2 vendornumbers for a vendor.
    Invoices to customers have indeed to be created manually as the note says, the reason is however not acceptable.
    Are there more people facing this problem??
    Hopefully SAP will solve this with a wizard for paying all currencies, which can be used if the client wants to.
    Best regards,
    Carl Verhagen
    The Netherlands

Maybe you are looking for

  • Mid-2010 macbook pro has started having "black screens"

    apple store diagnosed as "software failure".  they wiped it clean & gave me instructions to reinstall/restore from backup at home.  successfully reinstalled but another black screen after about an hour.  i am NOT a computer person so i need kindergar

  • Add button to LV OI

    Hi, I need to add a TestStand UI button control to labview OI. Pressing the button, it should generate an event into the main event loop. I cannot generate the event from a TestStand ui button control. Thanks a lot

  • I just set up Time Machine and have a WD external disc attached.

    A WD SmartWare folder now resides on my desktop.  It contains a question that asks if I want to back up files or set up the drive.  What am I supposed to do?  Thanks for your assistance.

  • Draging my music video to my ipod- its not working

    i just bought a music video, but when it shows in my playlist (on the computer) there is a circled exclamation mark beside the name and the artists name is in gray. i tried to drag it over to my ipod (Users Ipod) it wont go. SOMEBODY PLEASE HELP! i h

  • Download of document A95179_01.PDF

    Can't read document A95179_01.PDF ! The file is corrupt after the download, please check. Regards Peter