Changing datasource definition

hi experts,
i have a non standartic datasource that extract data by FM can i change its properties that the extraction be by table ?
without changing the name.
thanks
Nir

Use TA: RSO2
Then enter your Table and save it.
If you edit and save the DataSource by maintaining generic extraction, extraction no longer takes place using this function module, but is performed by a database view, a transparent table, a functional area of SAP query, or a self-defined extraction module.
Other possibility is to delete the DataSource and redefine it with the same Name as before. Just save the original one under a seperate name, so you can always copy it back to your previous one.
Br
Joerg

Similar Messages

  • How to change datasource name based on the partition in configplan

    Hi
    Can any one please give me some solutions regarding how to change datasource name based on the partition in
    configplan.
    can't we do this in configuration plan?

    If you want to change template based on parameter. you have to use below syntax
    v_layout boolean
    V_LAYOUT:= FND_SUBMIT.add_layout(template_appl_name => 'SQLAP' -- application short name
    ,template_code => 'HUBAPAPN' -- template name
    ,template_language => 'en'
    ,template_territory => '00'
    ,output_format => 'PDF');
    Above can be used in plsql stored procedure before submitting Concurrent Program (Bi Publisher report) or may be you can try to add this code in Oracle reports after report or before report trigger
    Thanks
    Kamalakar

  • Change datasource of Crystal Report via code

    Hi all!
    I'm developing partner solution for SAP B1 8.8 in C# and prepared some nice crystal reports. But they are bound to my default database for now. I want to include them to my installation file and change saved datasource location (Server, Company Name, User name, User password) in my installation script as soon as I get this values, entered by user. But I don't know the way how to change datasource in rpt file. I've tried the following:
    using CrystalDecisions.CrystalReports.Engine;
    ReportDocument rDoc = new ReportDocument();
    rDoc.Load(@"C:\Temp\Report2.rpt");
    rDoc.DataSourceConnections[0].SetConnection("Server", "SBOTest", "manager", "manager");
    rDoc.SaveAs(@"C:\Temp\Report3.rpt");
    rDoc.Close();
    but it save no changes to rpt file.
    I think, this thread belongs mostly to Development/SDK thread, because here most of the people make programs and potentially met this problem in the past.

    public void SetCrystalLogin(string sUser, string sPassword, string sServer, string sCompanyDB, CrystalDecisions.CrystalReports.Engine.ReportDocument oRpt)
                CrystalDecisions.Shared.ConnectionInfo oConnectInfo = new CrystalDecisions.Shared.ConnectionInfo();
                oConnectInfo.DatabaseName = sCompanyDB;
                oConnectInfo.ServerName = sServer;
                oConnectInfo.UserID = sUser;
                oConnectInfo.Password = sPassword;
                // Set the logon credentials for all tables
                SetCrystalTablesLogin(oConnectInfo, oRpt.Database.Tables);
                // Check for subreports
                foreach (CrystalDecisions.CrystalReports.Engine.Section oSection in oRpt.ReportDefinition.Sections)
                    foreach (CrystalDecisions.CrystalReports.Engine.ReportObject oRptObj in oSection.ReportObjects)
                        if (oRptObj.Kind == CrystalDecisions.Shared.ReportObjectKind.SubreportObject)
                            // This is a subreport so set the logon credentials for this report's tables
                            CrystalDecisions.CrystalReports.Engine.SubreportObject oSubRptObj = oRptObj as CrystalDecisions.CrystalReports.Engine.SubreportObject;
                            // Open the subreport
                            CrystalDecisions.CrystalReports.Engine.ReportDocument oSubRpt = oSubRptObj.OpenSubreport(oSubRptObj.SubreportName);
                            SetCrystalTablesLogin(oConnectInfo, oSubRpt.Database.Tables);
                oRpt.Refresh();
                oRpt.SetDatabaseLogon(sUser, sPassword, sServer, sCompanyDB, false);
                oRpt.VerifyDatabase();
                oRpt.Refresh();
            private void SetCrystalTablesLogin(CrystalDecisions.Shared.ConnectionInfo oConnectInfo, Tables oTables)
                foreach (CrystalDecisions.CrystalReports.Engine.Table oTable in oTables)
                    CrystalDecisions.Shared.TableLogOnInfo oLogonInfo = oTable.LogOnInfo;
                    oLogonInfo.ConnectionInfo = oConnectInfo;
                    oTable.ApplyLogOnInfo(oLogonInfo);
    Edited by: Konstantin Rakhuba on May 6, 2010 11:44 AM
    Edited by: Konstantin Rakhuba on May 6, 2010 11:45 AM

  • Changing DataSource Configuration using ConfigTool - Help Needed.

    Hello Everyones,
    I have an EP 7 which I have installed on a WAS ABAP + JAVA. The Data Soruce configuraion is in dataSourceConfiguration_abap.xml because of this I cannot create any new users in the Portal, can someone tell me how I can change this Config file using the ConfigTool and what procedure is to be used.
    Thanks for your help,
    John.
    Message was edited by: John Bray

    See Changing DataSource Configuration using ConfigTool - Help Needed.

  • Changed DataSource in R/3-- New PSA Table in BI ?????

    Hello Experts,
    I have one question. When someone change a DataSource in R/3 System, what happens it for the DataSource
    in BI at this time.
    An Error ? (TimeStamp)
    Or new PSA Table ???
    Thank you for your Answer..

    Dear Baris,
    Until and unless you replicate the Data Source in BW System there will no effect.
    Once you replicate the meta data and reactivate the D.S the a new PSA Table is generated.
    Hope this Helps....
    Dev

  • Mapping fields in crystal 2013 while changing datasource.

    Does any one have any idea while migrating crystal reports from 2008 to 2013 based on BEx 3.5 "Is there any way we can edit the mapping of fields through database change source ,if we have opened the crystal 2008 report in crystal 2013 and have mapped once?"

    Hi Ravi,
    Thanx for replying. We have a different scenario here-
    We have crystal 2008  which we are migrating to crystal 2013 [Note: these are based on BW 3.5].The Steps we are folllowing here:-
    Step1: Opening the Crystal2008 Report in Crystal 2013.
    Step2: Changing the datasource to new BEX query pointing to the same BWT environment.
    Step3: Mapping all the fields to the new data field from Source tables to Target tables.
    Step4: Refreshing the Crystal 2008 & Crystal 2013 Report using same parameter inputs.
    Now the problem we are facing here is --
    1) Output of both reports are different,which is the main issue for all the reports.Only the layout is similar in both.Data is found to be more in 2013.[which should not as we using same BW database]
    2) For some reports 2013 throws some datatype errors for date field or string which is not same in crystal 2008.
    3)The query generated in both 2008 & 2013 are differnt.In 2013 it automatically gives crossjoins with some other table.Below is the query from both:-
    2008
    SELECT * FROM [ZDFILLRT/ZSD_Q_UNADJ_ADJ_FILL_RATE] SAP VARIABLES [ZSOLDTOS] INCLUDING "0001006112", [ZDATEFRO] INCLUDING "01/2013", [ZDATETO] INCLUDING "12/2013"
    2011
    SELECT {[Measures].[ZDFILLRT_DED_QTY], [Measures].[ZDFILLRT_NUMB_DAYS], [Measures].[ZDFILLRT_INIT_DLV_QTY], NON EMPTY CROSSJOIN([0SOLD_TO                 
    ZREPGRP].MEMBERS, CROSSJOIN([ZSO_DATE].[LEVEL01].MEMBERS, CROSSJOIN([0PO_NUMBER].[LEVEL01].MEMBERS, CROSSJOIN([0DOC_NUMBER].[LEVEL01].MEMBERS, CROSSJOIN([0S_ORD_ITEM].[LEVEL01].MEMBERS, CROSSJOIN([0MATERIAL].[LEVEL01].MEMBERS, )))) DIMENSION PROPERTIES [0MATERIAL].[50MATERIAL], [0SOLD_TO                 
    ZREPGRP].[50SOLD_TO] ON ROWS FROM [ZDFILLRT/ZSD_Q_UNADJ_ADJ_FILL_RATE] SAP VARIABLES [ZSOLDTOS] INCLUDING "0001006112", [ZDATEFRO] INCLUDING "01/2013", [ZDATETO] INCLUDING "12/2013"
    Would appreciate ,if you can help on this.
    Regards.
    Vidhi

  • How to change datasource in CR XI Server

    Hi,
    How can I change the database and server in CR XI server?
    For example, my reports is designed against the 'pub1' database and the 'server1' server. How can I change the database to 'pub2' and the server to 'server2' in CR XI server?
    I understand within the CR XI Server, there is a place for me to change the datasource.
    Under the Database tab in Process Tab, I selected "Use custom database logon information specified here" radio button, and database driver as "ODBC". I entered the server IP, the login and password.
    I am using SQL 2000 Server.
    I run the report and get Error Message: "Failed to open the connection. C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Data\procSched\crystalreport.reportjobserver\~tmp142c5653066e200.rpt".
    I do not understand why failed to open the connection.
    Please advise.

    You will need to create an ODBC DSN on Windows first and then use the ODBC DSN's name instead of the IP Address under CMC >> Objects >> YourReport >> Process >> Database page.

  • Not able to change query definition

    I am working with BI 7.0.
    In 3.5 I can change the query definition from the display results (Excel) of the query run, but from BI 7.0 I am not able to make changes to the query definition from the query displayed results. Is there an easy and quick way to do this? I would have to go to the Tools->Create new query and change the query from there.

    Hi,
    When you run the query in BI Analyser, you have a 'Tools' button in the BEx Analysis Toolbox; when you click on it, you will get an 'Edit Query' option which will directly open your query definition. You can modify your query now and run it again from there back in excel.
    Please note that for getting this option, your query must be running and the cursor must be placed on some cell of the query.

  • Is it possible to change LOV definition using dynamic action?

    Hi,
    I have a multi-select LOV page item, P27_MULTI_CLASS_CODE, defined as below.  On page load, this list only contains values based on what has been passed to P27_OLO_CODE or P27_OLO_CODE_SW.
    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
       AND (o.olo_code = :P27_OLO_CODE
            OR o.olo_code = :P27_OLO_CODE_SW)
    ORDER BY c.class_code ASC
    Before submitting the page, I would like the LOV definition of P27_MULTI_CLASS_CODE to change to the following (similar query without reference to P27_OLO_CODE or P27_OLO_CODE_SW) based on whether the user selects checkbox item, P27_ALLOW_SW.   By doing this, P27_MULTI_CLASS_CODE would contain a full range of values rather than limited values.
    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
    ORDER BY c.class_code ASC
    I wanted to avoid writing Javascript.  Is this possible using dynamic actions...or at least somehow refresh P27_MULTI_CLASS_CODE so that it ignores P27_OLO_CODE and P27_OLO_CODE_SW?
    I've tried creating a dynamic action to clear the value of  P27_OLO_CODE or P27_OLO_CODE_SW, in hope it would trigger P27_MULTI_CLASS_CODE to display all values, but it has not been successful.  Any ideas?
    APEX 4.2

    I was able to resolve by changing the SQL statement to P27_MULTI_CLASS_CODE.  Note:  I also included an additional condition.
    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
       AND (:P27_ALLOW_SW = 'Y'
            OR (o.olo_code =  :P27_OLO_CODE
                OR o.olo_code = :P27_OLO_CODE_SW)
       AND (:P27_PAY_PLAN IS NULL
             OR p.pay_plan = :P27_PAY_PLAN)
    ORDER BY c.class_code ASC
    I also changed the Cascading LOV Parent Item(s) value to:  P27_OLO_CODE,P27_OLO_CODE_SW,P27_PAY_PLAN,P27_ALLOW_SW.  Optimize Refresh = No, since a change in any one of these values should trigger refresh of LOV.
    The Dynamic Action was also modified to NULL out P27_OLO_CODE,P27_OLO_CODE_SW when P27_ALLOW_SW was enabled.
    So far, so good!  Thanks for your suggestions Tom and Howard!

  • Changing datasource of reports in a loop only works for first report.

    Hi,
    I have code that loops through a list of reports to change the datasource and save the change in the report. The idea is that this can be done at build time so time taken at runtime is only for opening the report and running it.
    The problem is that the first iteration of the loop works, and any further ones don't. Apart from closing the client document is there anything else that should be explicitly closed? I don't retrieve any ReportSource from the Client Document so I shouldn't need to dispose of that...I don't think. In particular is there something that should be done to the databaseController retrieved from the clientDoc after each loop?
    The code goes like the below:
    for(File report : reports){
         System.out.println("Preparing report: " + report.getAbsolutePath());
         ReportClientDocument clientDoc = CRJavaHelper.getReportClientDocument(
                   report.getAbsolutePath());
         CRJavaHelper.replaceDBConnection(clientDoc, props);
         clientDoc.close();
         System.out.println("Report " + report.getAbsolutePath() + " prepared.");
    getReportClientDocument does this:
    ReportClientDocument clientDoc = new ReportClientDocument();
    clientDoc.setReportAppServer("inproc:jrc");
    clientDoc.open(fullPath,
              OpenReportOptions.openAsReadOnly.value());
    return clientDoc;
    replaceDBConnection does the following:
    DatabaseController dc = clientDoc.getDatabaseController();
    logonDataSource(dc, username, password);
    prepareReport(dc, schema);
    ConnectionInfos cis = dc.getConnectionInfos(null);
    for (IConnectionInfo oldci : cis) {
         IConnectionInfo newci = new ConnectionInfo();
         newci.setKind(ConnectionInfoKind.SQL);
         newci.setAttributes(propBag);
         newci.setUserName(username);
         newci.setPassword(password);
         dc.replaceConnection(oldci, newci, null, DBOptions._useDefault
                   + DBOptions._doNotVerifyDB);
    SubreportController src = clientDoc.getSubreportController();
    IStrings strs = src.getSubreportNames();
    Iterator<?> it = strs.iterator();
    while (it.hasNext()) {
            String name = (String) it.next();
         ISubreportClientDocument subreport = src.getSubreport(name);
         DatabaseController sdc = subreport.getDatabaseController();
         cis = sdc.getConnectionInfos(null);
         for (IConnectionInfo oldci : cis) {
              IConnectionInfo newci = new ConnectionInfo();
              newci.setAttributes(new PropertyBag(propBag));
              newci.setUserName(username);
              newci.setPassword(password);
              sdc.replaceConnection(oldci, newci, null, DBOptions._useDefault
                        + DBOptions._doNotVerifyDB);
    clientDoc.save();

    What's the URL for the site where you are using this?  Offhand, it looks like it should work with your first example so you are either placing the script before those elements are loaded or you might try wrapping your current javascript inside the:
    $(document).ready(function() {
    --- your existing javascript here
    This make sure the code runs once all the html is loaded on the page.  Without seeing a URL and debugging with the js console in Chrome I can't give you a solid answer.
    But, I do know that you can probably do this with a lot less markup.  Once we figure out what the actual problem is I have a better solution mocked up for you on jsfiddle.
    When looking at my HTML code on jsfiddle, please realize I setup some dummy HTML and removed your tags and added actual values which would be output by your tags.  The main thing I did was remove the whole div.more-selection and instead, added a "data-is-selected" attribute on your div.more-option element.  Then, in my javascript for each div.my-option element on the page, we loop through them, find the value of that data attribute and hide that div if it's less than 1 (or 0).
    Here's the fiddle for you to look at:  http://jsfiddle.net/thetrickster/Mfmdu/
    You'll see in the end result that only two divs show up, both of those divs have data-is-selected="1".
    You can try pasting the javascript code near the closing </body> tag on your page and make sure to wrap my js inside a <script> tag, obviously.  My way is neater on the markup side.  If you can't get it to work it's likely a jquery conflict issue.  My version is using the $(document).ready() method to make sure all the code is loaded before it runs.
    Best,
    Chris

  • Cannot change Datasource location in report

    Post Author: TomS
    CA Forum: Data Connectivity and SQL
    I have a CR report that I am working on (inherited from another developer). For the life of me, this report will NOT let me change the database location! I need to point it to another database (MS SQL Server) that is the same thing (same tables, etc) but a different name/data. I go to Database...Set Data Location; however, when I try to do the Update to update the data location, I get the message
    Database Connector Error: '42S02:&#91;Microsoft&#93;&#91;ODBC SQL Server Driver&#93;&#91;SQL Server&#93;&#91;Invalid object name 'Old_database_name_here.dbo.table_name', &#91;Database Vendor Code: 208&#93;
    It is as though the database name(s) is hard coded somewhere in the report. I have tried and tried to get this to point to another DB while developing in Crystal (using Print Preview) but it will not work. So I am stuck using my development database and not my production database.
    I feel as though I am going to have to rewrite this report entirely to allow me to test against different databases. Anyone got any idea as to why this will not let me change database sources? Any help appreciated. Thanks in advance.
    Tom

    Post Author: sharonmtowler
    CA Forum: Data Connectivity and SQL
    if it uses a stored procedure, it may be hardcoded in the dataset.
    you can export the report in crystal to a report definition select application and you can see where all your hidden items etc are.

  • How to change datasource type 3.x or new after replication?

    Hello,
    after the replication of a datasource i got a popup, if i want an old 3.X datasource or a new datasource. I clicked new, but i need an old 3.x datasource. Now i don't have a chance the change this.Where can i do it?
    I deleted the datasource in sourcesystem, but after new replication i don't get the popup to choose the datasource type.
    The problem is, i can't change the technical name of the datasource in sourcesystem because of the naming convention.
    Thanks in advance.
    Regards.

    Hi Bill,
    it's a generic datasource i created.The problem is that i create a 3.x Infosource too and i want use my generic datasource. But after replication i choose the false type (new datasource and not 3.x datasource) and now i can't assign my datasource to my 3.x infosource.I see the datasource in the sourcesystem-tree but not in the infosource-datasource-assigning-Popup.
    How can i change the type of datasource from new datasource to 3.x datasource in BI 7.0???

  • How to change datasource of a group in portal

    Hello Evryone,
    I am using EP7.0
    When I am creating a new group under User Administration->Identity Management ->Create new Group,
    a new group gets created, but the data source of this group is "UME Datasource".
    I want to change the data source of this group. The available data sources when I search the groups are "R3_ROLE_DS", "UME Datasource", "Built-in Groups Adapter".
    But there is no way that I can create a group with , say R3_ROLE_DS data source. On creation of a new group it just asks for a group name and group description. It always creates a group with a default data source "UME Datasource".
    Can anyone help me on this.
    Thanks
    Vikram

    Thanks Bala,
    I do not have much knowledge about UME so kindly bear with me.
    The problem that I am facing is : when I search for groups in portal, then I am able to view/search groups that are of type R3_ROLE_DS( ie these groups have been created in backend) as well as groups with type :"UME DATABASE".
    I just want to know, that if I want to create a group in portal with type R3_ROLE_DS, then is it possible or not?
    Basically, the issue is that groups created in backend are vsible/can be used in portal, but can I create groups through portal that can be visible/used in backend?
    Vikram

  • How to change datasource viewobject main query in .jsp

    Hi i have datasource DataSource viewobject="test"
    now in .jsp page i need to change it main query and after some things again back to default how i can doo it ?
    Thanks for tips!
    ID.
    Jdeveloper Studio Edition Version 11.1.1.6.0
    ADF Business Components
    11.1.1.61.92

    if you want to change where clause or modify the whole query look here
    Changing the WHERE clause or VO Query at runtime in Oracle ADF | Techartifact

  • How to change datasource location in CR V10

    How to change the datasource location in CR10, I need to use same table in different database. I tried in "Set Datasource Location" but it is not updating to the new one which i have selected. please help me on this.
    Thanks,
    S Aravind.

    Hi Try like this,
    Go to the Database option on the top > Select Set data source option.
    The top portion of the Set Data source Location window shows the current connection and part at the bottom is where you would make a connection to the new database
    Once the connection has been made, select 'one' table from the current connection and then select a matching table in the new connection and click on the 'Update' button. Do this for all the tables one by one.

Maybe you are looking for

  • Photos no longer show up in iphoto

    Macbook Pro using iphoto 6.0.5 After importing photos from my camera, I was prompted to "update my thumbnails", which I did. There were then blank squares in my thumbnail view, so I thought I would close and reopen iphoto to have it all reload to res

  • My HP Photosmart Premium C309g-m printer frequently gives me false "low ink" readings

    My HP Photosmart Premium C309g-m printer frequently gives me false "low ink" readings, which wouldn't be a big deal except that unlike other printers I've had, instead of just printing as best it can on low ink, it refuses to print at all. I know the

  • Mac Mini Server - No Monitor - Can't purchase HD Movies

    I have a Mac Mini Server in a closet that has no monitor.  I screen share from a MacBook Pro to use it, and it's the primary iTunes account I access from my AppleTV 2.  Because the ATV2 doesn't allow purchases of movies, I have to go to the Mini and

  • GL assignment for production variance

    Hi, Production variance GL assignment is to GL89961000 and value fields VV455. Question: Where is the settings (automatic GL booking to GL89961000) for this production variance? Thanks in advance.

  • Change item between PR and PO

    Hi Friends, Is it possible to have different item between a PR and a corresponding PO. Basically the requirement is that the employee will raise PR for a generic item without mentioning a specific brand. The purchasing department will decide which br