Best solution to automate/upload data to the GL_DAILY_RATES_INTERFACE table

We are using Oracle Apps 11.5.10.2 and I would like to get some feedback on a proposed solution to upload Exchange rates to the GL_DAILY_RATES_INTERFACE and then populate the GL_DAILY_RATES table.
From what I have read so far I understand that I need to do the following, to allow the GL_DAILY_RATES table to be populated:
Use sql Loader as the tool to upload the data.
Write a control file, with the load data command, in this example, called rates.ctl
     LOAD DATA
     APPEND
     INTO TABLE GL_DAILY_RATES_INTERFACE
     FIELDS TERMINATED BY ','
     (FROM_CURRENCY                CHAR
     ,TO_CURRENCY                CHAR
     ,FROM_CONVERSION_DATE           DATE
     ,TO_CONVERSION_DATE           DATE
     ,USER_CONVERSION_TYPE          CHAR
     ,CONVERSION_RATE                DECIMAL EXTERNAL
     ,MODE_FLAG                     CHAR)
Provide a data file .txt or .csv for the control file to access, for this example called fxcsv.csv
     formated:
     PHP,USD,01-SEP-11,01-SEP-11,Corporate,0.01984,I
Provide a command for sql loader that can be written into a Unix shell script. I don't have unix level access or the recent experience to perform this task.
     sqldr apps/pw contraol=rates.ctl log=rates log bad -rates.bad data-fxcsv.csv
Create a batch file to request the fxcsv.csv file from the OANDA site for the days current rates.
Create a Samba share for the .csv file for OANDA file to be copied from the windows environment.
Run Program - Daily Rates Import + Calculation to populate GL_DAILY_RATES from the data in GL_DAILY_RATES_INTERFACE.
Couple of items that I will need to address, if the above process is the correct way to make this upload work.
The format of the OANDA file that is download from the OANDA site, will have to be modified before it can be upload by the control file.
I am not sure the best approach to script a modification to the .csv file, but any suggestions are welcome.
The date in the OANDA file is not formatted correctly.
The OANDA file does not have to_conversion_date.
The OANDA file does not have a user_conversion_type.
The OANDA file does not have a Mode Flag for insert or delete.
All of the above being said, is this a solid process for uploading into the GL_DAILY_RATES_INTERFACE?
Any feedback is appreciated.

Hi,
Thanks for the solution. My company has assigned me similar kind of automation process. So if you could give me more input on this that would be great. You can send me further mails on the following id : [email protected] or a reply in the same forum is much appriciated. Waiting for your reply.
Thanks,
Nagaraj

Similar Messages

  • DB Connect Load - "Unknow error while uploading data from the DB Table"

    Hi Experts,
    We have our BI7 system connected to Oracle DB based third party tool. The loads are performing quite well in DEV environment.
    I would like to know, how we transport DB Connect datasources to Quality systems? Any different process to be followed for DB Connect datasources?
    At present the connections between BI Quality and the third party quality systems are established. We transported the DataSource from BI DEV system to BI quality system, but on trigerring an infopackage we are not able to perform loads. It prompts - "Unknow error while uploading data from the DB Table".
    Also on comparing the DataSources in DEV system and Quality system there are no fields in "Proposal" tab of datasource in Quality system. Also I cannot change or activate Datasource in Quality system as we dont have change access in quality.
    Please advice.
    Thanks,
    Abhijit

    Hi,
    Sorry for bumping an old thread ....
    Did this issue get ever get resolved?
    I am facing the same one. The loads work successfully in Dev. The transport for DBConnect DS also moved in successfully.
    One strange this is that DB User for dev did not automatically change to db user from quality when I transported the DBConnect datasource. DBCon DS still shows me the DB User from Dev in Quality system
    I get "Unknown Error" whenever I trigger the data package.
    Advait

  • Best Solution For Automatic Cache Refresh

    Hello SDN,
            I need to know the best solution for automatic cahe update so that we donot get a runtime cache error in SXI_CACHE.We scheduled SAI_CACHE_REFRESH After every 1 minute, But is it the best solution???
    We need to know if there are better solution than this?
    We have had a look at the "how to Guide on Cache" also.But if we want an automatic refresh after every object is activated whats the best solution.
    It works with this but we want to know if there is a better solution or maybe even an implication on using this, as we did not find any documentation on SAI_REFRESH_CACHE.
    Regards,
    Anirban.

    Sorry, i posted the incorrect name in the later part of my mesage its SAI_CACHE_REFRESH.
    Regards,
    Anirban.

  • Best practice for putting binary data on the NMR

    Hi,
    We're creating a component that will consume messages off the NMR, encode them, and subsequently put them back on the NMR. What's the best practice for sending binary data over the NMR?
    1. setContent()?
    2. addAttachment()?
    3. setProperty()?
    If NormailzedMessage.setContent() is the desired approach, then how can you accomplish that?
    Thanks,
    Bruce

    setContent() is used only for XML messages. The recommended way to accommodate binary data is to use addAttachment().

  • While uploading data into the r/3 using call transaction or session method

    hi experts
    while uploading data into the r/3 using call transaction or session method error occured in the middle of the processing then how these methods behaves it transfers next records or not?

    hai
    Session method: The records are not added to the database until the session is processed. sy-subrc is not returned. Error logs are created for error records. Updation in database table is always Synchronous.
    Call Transaction method: The records are immediately added to the database table. sy-subrc is returned to 0 if successful. Error logs are not created and hence the errors need to be handled explicitly. Updation in database table is either Synchronous or Asynchronous.
    While to transfer the data from the through if any errors occurs until the errors are the complete the data is not transfer to the SAP system.
    the system compulsory shows the errors. that errors are stored into the error logs (Transaction is SM35).
    so the session method should not return any value.
    In call transaction method data is directly pass to the SAP system.
    So its compulsory return the value.
    Because of the call transaction is the function.
    A function should return the value mandatory
    In session method errors stroed in SYSTEM GENRATED ERROR LOG.
    IN CALL TRANSACTION TO CAPTURE THE ERRORS WE SHOULD PERFORM THE FOLLOWING.
    FIRST ME MUST DECLARE AN INTERNAL TABLE WITH THE STRUCTURE OF BDCMSGCOLL TABLE.
    THEN WHILE WRITING THE CALL TRANSACTION STATEMENT WE SHOULD PUT THE 'E' MODE FOR CAPTURING ALL THE ERRORS.
    THEN FINALLY THE CAPTURED ERRORS MUST TO SENT TO THE INTERNAL TABLE WHICH WE DECLARED IN THE BEGINNING WITH BDCMSGCOLL BY USING THE FUNCTION MODULE "FORMAT_MESSAGE"
    AND THUS THE ERROR MESSAGES WILL BE SENT TO THE INTERNAL TABLE WHICH WE DECLARED AT THE BEGINNING.

  • Upload data to an internal table with Services of the Table Tool

    Hi,
    I'm trying to upload data to an internal table with the table with the new abap debugger but I can see the option in Services of the Table Tool. I see the information in this sap link and also I saw some screen shot in other pages.
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/49/2db60934e414d0e10000000a42189b/content.htm
    Is this option depends the SAP version or the patch version or I need to configure the debugger?

    Hi,
    I used the statement
    SPLIT i_file AT '|' INTO TABLE It_file.
    But it is overwriting each row but not appending to the internal table while passing do and enddo.
    Actually my requirement is download the pipe delimited text file and sent an XLS attachment to the
    distribution mail id's.
    I know sending the mails by using the FM.
    But I need all data from the file line by line and pass to the Mail sending function module.
    Can you help me in acheiving  this.
    Regards
    Jay

  • I'm looking into how apps use the cloud. Would you consider any app with social media access as uploading information to the cloud? e.g. being able to tweet through an app is the same as uploading data to the cloud

    I'm looking into how apps use the cloud. Would you consider any app with social media access as uploading information to the cloud? e.g. being able to tweet through an app is the same as uploading data to the cloud

    Most of us in this forum are users who volunteer on technical issues, and not Adobe employees although they do drop in from time to time. As users we simply have no control over activation and that's why you are not getting responses.
    If you havn't done so,you might try the Muse forums and see if you can get a staff member to look into it. Have your case numbers and phone transcripts handy.
    Last option is to keep calling customer service until you get someone who will help or ask for a supervisor.
    Hope this get resolved,
    Gene

  • Script to upload data from excel to table.

    Hi,
    Am having a different scenario.
    I need to create a script to load the data from excel into oracle table.
    For eg: When user1 has emp1.csv file then the datas should be loaded into emp table. at the same time user 2 has emp2.csv file then the datas should be inserted in the same emp table. Likewise my user's has different .csv files of having same template. I need to upload all those datas into the same table.
    How can i achieve it
    regards,
    Prasad K T,
    9840021070.

    Hi Prasad,
    You can use Sql loader tool (sqlldr) in APPEND mode to load the data from csv file to the target table. The APPEND would not delete the existing data from the table.
    Your control file may look like this:
    LOAD DATA
      INFILE 'emp1.csv'
      BADFILE 'bad_emp1.csv'
      APPEND
      INTO TABLE mailing_list
      FIELDS TERMINATED BY ","
      ( field1,
         field2,
    Regards,
    Sahir

  • How to delete entire data in the hierarchy table,?

    hi friends
    i need to delete entire data in the hierarchy table which contains parent child relationship,when i am selecting entire records and choose the option delete from the context menu, it is not deleting, and i have to delete one by one or i have delete first the child items and later parents items, it is time consuming process.
    Is there any other option to delete entire records in the hierachy table , irrespective of parent and child relationship?
    if any one have solution for my issue, please provide to me
    thanks in advance
    bharat.chinthapatla

    Hi Bharat,
      Unload the Repository and Delete the Table and fields in Hierarchy table and Recreate and reload the data.OIther wise you have to lot of manual work.
    Thanks
    Ganesh Kotti

  • R12.0.04 -Sync responsibility role data into the WF table -affurg02.sql

    Heloo my friend ;
    I try to run the following concurrent requests :
    Sync responsibility role data into the WF table and its gives me error and the erros is :
    Cannot find file /oracle/VIS12/apps/apps_st/appl/fnd/12.0.0/sql/affurg02.sql
    Cause: Application Object Library could not could not locate the file specified.
    Action: Contact your system administrator. Verify that the specified file and
    Concurrent Manager encountered an error while running SQL*Plus for your concurrent request 4585216.
    I didnt find anything in metalink,
    Anyone has idea?
    Helios

    Run "Workflow Directory Services User/Role Validation" concurrent program instead. <<I already did it... the link whihc u send me it doesnt say nothing.. The document say it only
    STEPS TO REPRODUCE THE PROBLEM:
    Navigate > System Administrator > Requests > Run . Select Sync responsibility role data into wf tables program.
    *** 02/19/08 01:59 am ***
    *** 02/19/08 02:00 am ***
    *** 02/19/08 04:09 am *** (CHG: Sta-&gt;30)
    *** 02/19/08 04:09 am ***
    *** 02/19/08 05:50 am *** (CHG: Sta-&gt;11)
    *** 02/19/08 05:50 am ***
    *** 02/19/08 08:44 am *** (CHG: Asg-&gt;NEW OWNER)
    *** 03/06/08 09:34 am *** (CHG: Sta-&gt;30)
    *** 03/06/08 09:34 am ***
    *** 03/16/08 12:31 pm *** (CHG: Sta-&gt;33)
    *** 03/16/08 12:31 pm ***
    *** 03/30/08 10:00 pm *** (CHG: Sta-&gt;92)
    *** 03/30/08 10:00 pm ***
    There is no solution, i found this documentation already but i cant see that
    *** 03/30/08 10:00 pm *** .... i hope u have other idea... i already try what u said me my friend ..
    Helios

  • Deletion of data within the database tables

    The user is trying to clean up the 2014 data within the database tables. He is running a delete function which keeps causing the log files
    to exceed their limit. The tables are large and he is unable to delete the data in one command due to available size and logging. What is the best way to approach this?
    Thanks,

    Hi venkatesh1985,
    According to your description, the user fails to delete data in tables due to the limited space of log file. Based on my research, this issue could occur when you use the delete statement(DELETE FROM ExampleTable) in a single transaction and consume all
    available space on your transaction log disk.
    To avoid this issue, you could use the two methods below to delete the data.
    1. Use a loop combined with TOP and delete rows in smaller transactions as the following example. This method requires you to delete all the tables one by one.
    SELECT 1
    WHILE @@ROWCOUNT > 0
    BEGIN
    DELETE TOP (1000)
    FROM LargeTable
    END
    For more information about the process, please refer to the article:
    http://dbadiaries.com/how-to-delete-millions-of-rows-using-t-sql-with-reduced-impact
    2. If you want to delete all the data from all tables in the specific database, you could script the entire database and all database objects. Then drop the database and recreate it using the script as the steps below.
    a. In Object Explorer, expand the node for the instance containing the database to be scripted.
    b. Point to Tasks, and then click Generate Scripts and click Next.
    c. Select the option of 'Script the entire database and all database objects'.
    d. Specify how scripts should be saved. You could save the script to a file or new query window. Click Next, then click ok.
    e. Drop the database, and run the script in the query window to recreate it. For more information, please refer to the article:
    http://msdn.microsoft.com/en-us/library/bb895179.aspx#Introduction
    In addition, if possible, please increase the size of the log file or move the log file to a different disk with more disk space.
    Regards,
    Michelle Li

  • How to populate data in the same table based on different links/buttons

    Hi
    I'm using jdeveloper 11.1.4. I have a use case in which i need to populate data in the same table based on click of different links.
    Can anyone please suggest how can this be achieved.
    Thanks

    I have a use case in which i need to populate data in the same table based on click of different linksDo you mean that you need to edit existing rows ?
    What format do you have the date in - table / form ?

  • How to insert data into the mysql table by giving as a text file

    Hi,
    Any one know's how to insert data into the mysql table by giving as a text file as the input in JSP.Please respond ASAP.
    Thanks:)

    At least you can try StringTokenizer to parse your text files. Or download a text JDBC driver to parse your files, for instance, HXTT Text(www.hxtt.net) or StelsCSV(www.csv-jdbc.com).

  • How to update a table (CUSTOMER) on a Report Server with the data from the same table (CUSTOMER) from another server Transaction server?

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) From another server ex: Transaction server?
    Set up steps so inset, update or delete operation takes place across the servers.
    It would be great if someone please enlighten me in details about this process in MS SQL Server 2008 R2.
    Also please describe would it be different for SQL Server 2012?
    If so, then what are the steps?

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) from another server ex: Transaction server?
    Set up steps so that inset, update or delete operation gets done correctly across servers.
    I was not sure about the answer, it would be great if someone please put some light on this and explain in details about this process in MS SQL Server 2008 R2.
    Also it would be very helpful if you please describe would it be different for SQL Server 2012? If so, then what are the steps?

  • How to delete or Update the data in the MEAN table

    Hello Gurus,
    I would like to delete or update the data in the MEAN table...how to do it.
    Precisely I would like to change the status of Main EAN Indicator (field HPEAN).
    Kindly let me know ??
    Rehards
    Senthilll

    programmatically, you may use [BAPI_MATERIAL_SAVEDATA|https://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_material_savedata&cat=sdn_all] [EAN|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_material_savedata+ean&adv=false&sortby=cm_rnd_rankvalue]
    Regards,
    Raymond

Maybe you are looking for

  • Need Usage Pattern Report in OBIEE 11g

    Hi All, I have a requirement, where I need to know who logged in, to OBI Application in the last 3 months and who has not. How do I get that? Basing on START_DT in S_NQ_QCCT, I can put a filter with Start Date using BETWEEN RANGE, but since OBIEE log

  • Creating email folders that sync with Outlook

    I want to be able to organize my mail both on my computer and on my iphone by being able to place mail in different folders. I want to save messages on either computer or iphone and have them sync with each other so that I have the same folders and c

  • Hi, I just purchased Photoshop Elements, but when I went to install it says my Windows XP does not support....HELP!

    I purchased Photoshop Elements but it won't download because I have Windows XP. Yes, I know I should have checked that first, but what do I do now???? Is there an older version available that will work for my system, or can I get a refund? Help pleas

  • Iphoto - missing pics

    lost access to my pics in iPhoto '08.  finder syas they are in there but they dont show up in iphotowhat to do.

  • Controlling brush tip settings

    Hi all, Is it possible to change brush settings "size, roundness, angle, tip shape,shape dynamics, ....." via scripting? .. either it's strait forward or a workaround. Thanks