Specify field mapping when changing table location

I want to change the tables in a report to refer to database tables with a different schema, and specify the mapping of fields in code.
I already have code that changes table locations successfully when the schema does not differ, using the RAS API. As far as I can tell, the RAS API doesn't have a way of handling schema differences. Is that true?
OTOH, the higher-level CR API does appear to have a mechanism to do field mapping, using the FieldMapping event in the ReportDocument class. I've been trying to use this API for the job, but I don't seem to be able to change the location of a table in the report.
Here's an example scenario:
The report was created using an ODBC data source Source1 that contains a table Table1
I have an ODBC data source Source2 that contains Table1 as well as a table Table2 that is identical to Table1 except that the field names are all slightly different
I want to change the report so that it uses Table2 in Source2
I've managed to get the report switched to Source2 with code like this:
report.DataSourceConnections[0].SetConnection("Source2", "", id, pwd);
Here's the code I'm using to try to change the report table to refer to Table2:
            Table table = report.Database.Tables[0]; // only one table in the report
            TableLogOnInfo logOnInfo = table.LogOnInfo;
            logOnInfo.TableName = "Table2";
            table.ApplyLogOnInfo(logOnInfo);
            report.VerifyDatabase();
I've also tried the simpler
table.Location = "Table2";
Neither approach changes the table location. I know this because when I preview the report I see data. Since the field names are all different, changing the location should have removed all the fields from the report. (Also, the event handler I have hooked up to the FieldMapping event is not called. Yes, I did enable the event in the ReportDocument.)
So:
How do you change the location of a table using the high-level API?
If you change the location using the RAS API, is the FieldMapping event fired? (Haven't tried this, but somehow I doubt it.)
Is there a way to do field mapping with the RAS API?
Thanks!
- rick cameron

Hi Rick
This is not considered a bug. It is a limitation that has been discusses extensively in many of our internal meetings. The implementation job proved to be much too massive and with highly limited ROI. E.g.; the number of requests for the feature is just not there...
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter

Similar Messages

  • Textedit and preview crashing in osx lion when changing network location

    I did upgrade to lion on launch and noticed that textedit and preview work quite well except when  changing network location: after a few seconds of spinning ball, both crash.
    Tried repairing permissions, deleting "containers" folders in my library and so on, without luck.
    Anyone is experiencing the same problem?
    This is an excerpt of the crash log:
    Process:         TextEdit [663]
    Path:            /Applications/TextEdit.app/Contents/MacOS/TextEdit
    Identifier:      TextEdit
    Version:         ??? (???)
    Code Type:       X86-64 (Native)
    Parent Process:  TextEdit [656]
    Date/Time:       2011-08-18 01:14:19.349 +0200
    OS Version:      Mac OS X 10.7.1 (11B26)
    Report Version:  9
    Interval Since Last Report:          7146 sec
    Crashes Since Last Report:           17
    Per-App Crashes Since Last Report:   15
    Anonymous UUID:                      5E6B69BE-D41B-45F4-BA5B-1DD8298A76AA
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x00000001c0a529a0
    VM Regions Near 0x1c0a529a0:
        MALLOC metadata        0000000108342000-0000000108343000 [    4K] rw-/rwx SM=PRV 
    -->
        MALLOC_TINY            00007fc808c00000-00007fc808f00000 [ 3072K] rw-/rwx SM=COW 
    Application Specific Information:
    objc[656]: garbage collection is OFF
    *** multi-threaded process forked ***

    UPDATE 2: I'm having this issue both on my iMac and my Macbook, so I suppose it's a lion bug and not simply something related to something that went wrong during the update (permissions or something like this). It's both in 10.7 and 10.7.1.
    I'm going to try on my wife's Macbook to see if it's something related to some software or setting I'm using; in the meanwhile, can someone out there try to reproduce this issue? Just open textedit and change the network location from the menu bar (you should create one other than "automatic" for  "locations" to show up just below "dock"): at this point you should get the spinning ball and then a window telling you that textedit just crashed. Try to do a couple of times if it doesn't crash the first one.
    BTW I noticed that textedit doesn't crash if you have the network preference pane open and active ("system preferences" showed on the menu bar) and change the location from the menu bar.
    I think I'm going to give a call to Applecare to see if there's some plan to get this corrected in some next update.

  • Always assets links are missing when changing the location.

    Hi community: Can you share your ideas with me?
    Since adobe muse older versions, asssets files are missing when changing the location or computer. For example develop some project on "desktop" when it move to another location( ex: Another partition or folder with different name), assets says links are missing, we have to relink all assest, is there are any way to fix it? why is that keep happenings? when i design muse templates to sell, it is serious problems to me .
    Can you help me, thank you community!

    Hi,
    Oracle have a tool for precompiling JSP's it's called ojspc
    You can then turn JSP compilation off on the server.
    Here's a batch file that I use.
    Brenden
    @echo off
    set ORACLE_HOME=C:\[Jdev_install]\jdevstudio10133
    if not exist %ORACLE_HOME%\j2ee\home\ojspc.jar goto error
    java -Djava.compiler=NONE -Doracle.home=%ORACLE_HOME%  -jar %ORACLE_HOME%\j2ee\home\ojspc.jar -extend com.orionserver.http.OrionHttpJspPage yourapp.war
    goto end
    :error
    @echo ERROR: %%ORACLE_HOME%%\j2ee\home\ojspc.jar not found.  Please set ORACLE_HOME to point to an OC4J or OracleAS instance and retry.
    :end
    if "%OS%" == "Windows_NT" endlocal

  • Crystal Reports 2008 - Changing Table Locations

    Hello,
    we have several reports which we use by different customers. The customers use different name spaces (table locations) for the same data. To use the same reports with different table locations, we wrote a piece of software replacing the connection strings and table locations. 
    Example:
    A report should be used in a test environment as well as in a production environment:
      The original SQL is (using a DB2 database on a AS400):
        SELECT alias.name FROM as400.production.users alias
      The modified SQL looks like:
        SELECT alias.name FROM as400.test.users alias
    Up to now we used Crystal XI and developed using RDC. We solved the above described problem by reading the report SQL string, replacing the table location in this string and assigned it back to the report object. Modifying the SQL string has the advantage that it works fine also for reports which contain a SQL command.
    Since Crystal Reports 2008 this is not possible anymore (no RDC, no direct way to modify the report SQL string).
    My first approach was to use the CrystalDecisions.CrystalReports.Engine.Table object. First I just wanted to see what really was the content of the Location and Name property:
    for (int i = 0; i < rdReport.Database.Tables.Count; ++i)
      Table rt = rdReport.Database.Tables<i>;
      Console.WriteLine("Table Nr : {0}", i);                   
      Console.WriteLine("  Table Loc  : {0}", rt.Location);
      Console.WriteLine("  Table Name : {0}", rt.Name);
    My problem with this is that the output for the report with the SQL in the above example is:
    Table Nr: 0
      Table Loc : users
      Table Name: alias
    So obviously not the real table location and table name is returned, but instead the table name for the table location and the alias for the table name. Unsurprisingly setting the location had not the originally desired effect.
    Furthermore if the report was designed using a SQL command, the location and in the name property contain the string COMMAND. Therefore the table object doesn't seems to be the solution to my problem.
    Thanks to the help of a user in this forum here, I figured out how to read the SQL string of a report. Unfortunately I did not found a way to assign it back to the report.
    Has anybody here an idea how to solve my problem? I'm open for every kind of hint.
    Thanks in advance,
    Ron

    My solution looks like this:
    ReportDocument rdReport = new ReportDocument();                   
    rdReport.Load(sReportName, OpenReportMethod.OpenReportByTempCopy);
    CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rcDocument = rdReport.ReportClientDocument;                   
    for (int i = 0; i < rdReport.Database.Tables.Count; ++i)
        CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable rctTable = rcDocument.DataDefController.Database.Tables<i>;
        if (rctTable.ClassName == "CrystalReports.CommandTable")
            Console.WriteLine("Processing CommandTable {0}",rctTable.Name);
            Console.WriteLine("  Old Qualified Name: {0}", rctTable.QualifiedName);
            Console.WriteLine("  Old Alias:          {0}\n" , rctTable.Alias);
            CrystalDecisions.ReportAppServer.DataDefModel.CommandTable tbOldCmd = (CrystalDecisions.ReportAppServer.DataDefModel.CommandTable) rctTable;
            CrystalDecisions.ReportAppServer.DataDefModel.CommandTable tbNewCmd = new CrystalDecisions.ReportAppServer.DataDefModel.CommandTable();
            tbNewCmd.Name = tbOldCmd.Name;
            tbNewCmd.Alias = tbOldCmd.Alias;
            tbNewCmd.CommandText = sNewSql;
            tbNewCmd.ConnectionInfo = tbOldCmd.ConnectionInfo.Clone(true);
            CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag pbAttr = tbNewCmd.ConnectionInfo.Attributes;
            // set dlls
            pbAttr["Database DLL"] = "crdb_ado.dll";
            pbAttr["QE_DatabaseName"] = "NL67S021OUD";
            pbAttr["QE_DatabaseType"] = "OLE DB (ADO)";
            pbAttr["QE_ServerDescription"] = "192.0.5.24";
            pbAttr["QE_SQLDB"] = "True";
            pbAttr["SSO Enabled"] = "False";
            // set connection string                  
            CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag pbLogOnProp = (CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag)pbAttr[sAttrLogOnProp];
            pbLogOnProp.RemoveAll();
            // strangely comma seperated values instead of semicolon seperated values are needed here
            pbLogOnProp.FromString("Provider=IBMDA400,Data Source=" + sServerName + ",Initial Catalog=" + sDBName + ",User ID=" + sUserId + ",Password=" + sPwd + ",Convert Date Time To Char=TRUE,Catalog Library List=,Cursor Sensitivity=3");
            tbNewCmd.ConnectionInfo.UserName = sUserId;
            tbNewCmd.ConnectionInfo.Password = sPwd;
            rcDocument.DatabaseController.SetTableLocation(tbOldCmd, tbNewCmd);                           
        else
            Console.WriteLine("Processing Table {0}",rctTable.Name);                           
            Console.WriteLine("  Old Qualified Name: {0}", rctTable.QualifiedName);
            Console.WriteLine("  Old Alias:          {0}\n", rctTable.Alias);
            CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable rctNew = new CrystalDecisions.ReportAppServer.DataDefModel.Table();
            rctNew.Name = rctTable.Name;
            rctNew.Alias = rctTable.Alias;
            rctNew.QualifiedName = sDBName + ".V41TSTDBF.CRGUOPF";
            rctNew.ConnectionInfo = rctTable.ConnectionInfo.Clone(true);
            CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag pbAttr = rctNew.ConnectionInfo.Attributes;
            // set dlls
            pbAttr["Database DLL"] = "crdb_ado.dll";
            pbAttr["QE_DatabaseName"] = "NL67S021OUD";
            pbAttr["QE_DatabaseType"] = "OLE DB (ADO)";
            pbAttr["QE_ServerDescription"] = "192.0.5.24";
            pbAttr["QE_SQLDB"] = "True";
            pbAttr["SSO Enabled"] = "False";
            // set connection string                  
            CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag pbLogOnProp = (CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag) pbAttr[sAttrLogOnProp];
            pbLogOnProp.RemoveAll();
            // strangely comma seperated values instead of semicolon seperated values are needed here
            pbLogOnProp.FromString("Provider=IBMDA400,Data Source=" + sServerName + ",Initial Catalog=" + sDBName + ",User ID=" + sUserId + ",Password=" + sPwd + ",Convert Date Time To Char=TRUE,Catalog Library List=,Cursor Sensitivity=3");
            rctNew.ConnectionInfo.UserName = sUserId;
            rctNew.ConnectionInfo.Password = sPwd;                         
            rcDocument.DatabaseController.SetTableLocation(rctTable, rctNew);
            Console.WriteLine("  New Qualified Name: {0}", rctTable.QualifiedName);
            Console.WriteLine("  New Alias:          {0}\n", rctTable.Alias);
    Console.WriteLine("\nSetting parameter {0} to value {1}", rdReport.ParameterFields[0].Name, iDataId);
    rdReport.SetParameterValue(0, iDataId);
    Console.WriteLine("\nShow SQL: ");
    CrystalDecisions.ReportAppServer.Controllers.RowsetController rsController;
    CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rdClient = rdReport.ReportClientDocument;
    CrystalDecisions.ReportAppServer.DataDefModel.ISCRGroupPath rdGroupPath = new CrystalDecisions.ReportAppServer.DataDefModel.GroupPath();
    string temp;
    string sql;
    rsController = rdClient.RowsetController;
    sql = rsController.GetSQLStatement(rdGroupPath, out temp);
    Console.WriteLine(sql);
    Console.WriteLine("Printing");
    PageMargins pmMargins = rdReport.PrintOptions.PageMargins;
    pmMargins.bottomMargin = 350;
    pmMargins.leftMargin = 350;
    pmMargins.rightMargin = 350;
    pmMargins.topMargin = 350;
    rdReport.PrintOptions.ApplyPageMargins(pmMargins);
    rdReport.PrintOptions.PrinterName = sPrinterName;
    rdReport.PrintToPrinter(1,     // copies
                            false, // collated
                            0,     // start page
                            0);   // end page
    rdReport.Close();
    Regards,
    Ron

  • ECN field obliged when changing a BOM

    Hi all,
      I found after flaged the historical demand and ECM in OS27,it is still just a warning message that tells the user a ECN should be maintained when doing CS02,changing the message type and category is not available in the standard system.
    How many other ways that I can make the filed ECN is a must when changing the BOM,besides SHD0.
    Is there a standard and easy solution?
    Txk!

    Dear,
    For user you can do it through the Authorization object C_STUE_NOH
    Please refer this link for details,
    Re: Change number mandetory for CS20 -reg
    Regards,
    R.Brahmankar

  • Refresh mapping when changes were done to the database

    I created a mapping with three tables to java objects. I added one extra column to the table. How do I refresh/synchronize/map my objects again? I'm using JDeveloper 10.1.3

    In the offline database schema you can either re-import or refresh the table definitions. This will make the new column available for mapping purposes.
    Doug

  • Table "StoredProcedure" not found when changing Database location in VS 2005.

    <p>I&#39;m having a problem changing the datasource location when generating a report using the report viewer in VS2005.  If the table is a stored procedure, I get the message "Table (StoredProcedureName) not found", but if the report references tables rather than a stored procedure the location is changed and the report runs successfully.  The same problem was reported in earlier versions of Crystal Reports and was fixed in a service pack, but I couldn&#39;t find any documentation on the VS2005 version. </p><p>Does anybody know how to fix this problem?  I am using CrystalDecisions.CrystalReports.Engine.dll version 10.2.3600.0 and SQL Server 2000.</p>

    Peggy, I wonder if getting the latest SP for CR 10.2 will be better for now. SP 1 can be downloaded from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe
    I\Let us know if that does not resolve the issue and we'll take a closer look before going all the way to CR XI.
    With regards,
    Ludek

  • Issue in OWB mapping - when changing source and target database

    Hi,
    I need help for resolution of the issue I am facing when moving mapping from development environment to QA.
    Here is situation,
    We develop ETL using one source, one staging and one target database.
    In development we use one control_center for Source to staging and another control center staging to target.
    All works fine in development.
    Now I have created new runtime repository and imported all OWB projects (with full dependencies, exact replica of development). Now I need to change source and staging and target as different database.
    I have created new database location connections and defined/attached DB connectors with stage and target location.
    Now issues are
    1.     Two Staging mapping are not able to bound with source table (giving different error
    a.     One mapping show error for source synonym translation no longer valid when deploying this mapping , but validation comes without any issue)
    b.     Other mapping show error for source table/object not bound to repository
    2.     All the target mapping show validation successful, but when deploying says “table or view does not exist”. But tables are exists on source stage and target. (also permission are set correctly for target user to read from staging tables).
    Not sure how to proceed from here.
    I have recreated new repository and re-imported all project/mappings and defined all connection but still same issue.
    Thanks in advance,
    Vipin

    1. Two Staging mapping are not able to bound with source table (giving different error
    a. One mapping show error for source synonym translation no longer valid when deploying this mapping , but validation comes without any issue)
    b. Other mapping show error for source table/object not bound to repository
    The above error were resolved when re-synchronized the table (for few I have to reimport the table) and mapping.
    2. All the target mapping show validation successful, but when deploying says “table or view does not exist”. But tables are exists on source stage and target. (also permission are set correctly for target user to read from staging tables).
    The above error still pending. My target mapping are not able to deployed/compiled.
    For the above I have defined one Staging location to one target target location and target location have connector to staging (not sure if I have to define connector name same as staging location, as I have created DB connector with different name but reference database is same as staging location).
    Mapping are assoicated with desired data locatoin and meta data.
    control center is also have that data location.
    Mapping are configured for the desired location.

  • Table update visible only when changing table selection

    I'm running java 1.6.0_07 on Linux and I'm experiencing a strange problem: I've got a table model that extends AbstractTableModel and when I selectes a row and then change such row data (thru the setData() and fireTableDataChanged() methods) I don't see the row update. If I reclick on the row or select another row in the table, the table refreshes and I can see the row updated. Is it a problem of the Java version or what? Should I change my code and force a table update in any way? Any suggestion?
    Thanks,
    Luca

    I've got a table model that extends AbstractTableModel Why? Whats wrong with the DefaultTableModel?
    Is it a problem of the Java version or what?So you've written custom code and it doesn't work so the problem must be with the Java version?
    Any suggestion?Use the DefaultTableModel.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • Syndication mapping when changing XML schema

    I have used a ARTMAS04 XML schema and done mapping in the syndicator and saved the map. Then we are doing changes i SAP R/3 and need to add some extentions in the IDOC and therefor also the XML schema. I then add my new schema with the extentions into the the syndicator, and try to open the mapping. Then the mapping is done using the old schema. This means that if I do a change in an XML schema, I need to to map everything from scratch. Does anyone have a solution to this problem?
    Regards John-Kjell

    Hi John,
    The maps saves not only the mappings but also the destination properties for that particular scenario.
    Hence as soon as you change the destination properties i.e your XML schema, and try to open your old map which is using different XML schema your changes will be lost and you will end up with using old XML schema only.
    As far as i know, to handle this situation you have to do all the mappings again.
    Hope this helps.
    Regards,
    Pooja

  • No option to specify interval partition when creating table

    I am trying to create a table in APPS which has Range partition with interval 1 (interval partition). When I go through the options to create the table, I see only Range, List and Hash partitions. How do I create interval partitions?

    Thanks Chris for the update. Where can I find the correct syntax to use. Below is the current content for partition in the .table file.
    &lt;entry&gt;
    &lt;key&gt;OracleTablePartitions&lt;/key&gt;
    &lt;value class="oracle.javatools.db.ora.OracleTablePartitions"&gt;
    &lt;ID class="oracle.javatools.db.IdentifierBasedID"&gt;
    &lt;name&gt;&lt;![CDATA[PARTITION]|http://forums.oracle.com/forums/]&gt;&lt;/name&gt;
    &lt;identifier class="java.lang.String"&gt;&lt;![CDATA[8dd284eb-9b8a-4eb9-9f35-2f05b1911094]|http://forums.oracle.com/forums/]&gt;&lt;/identifier&gt;
    &lt;parent class="oracle.javatools.db.TemporaryObjectID"&gt;
    &lt;/parent&gt;
    &lt;schemaName&gt;&lt;![CDATA[FUSION]|http://forums.oracle.com/forums/]&gt;&lt;/schemaName&gt;
    &lt;type&gt;&lt;![CDATA[PARTITION MODEL]|http://forums.oracle.com/forums/]&gt;&lt;/type&gt;
    &lt;/ID&gt;
    &lt;objectType&gt;PARTITION&lt;/objectType&gt;
    &lt;partitionColumns&gt;
    &lt;partitionColumn class="oracle.javatools.db.IdentifierBasedID"&gt;
    &lt;name&gt;&lt;![CDATA[ATTR_GROUP_ID]|http://forums.oracle.com/forums/]&gt;&lt;/name&gt;
    &lt;identifier class="java.lang.String"&gt;&lt;![CDATA[979467ab-e769-42f9-a631-735b24b01670]|http://forums.oracle.com/forums/]&gt;&lt;/identifier&gt;
    &lt;parent class="oracle.javatools.db.IdentifierBasedID"&gt;
    &lt;name&gt;&lt;![CDATA[EGO_ITEM_EFF_B]|http://forums.oracle.com/forums/]&gt;&lt;/name&gt;
    &lt;identifier class="java.lang.String"&gt;&lt;![CDATA[3b9592e8-c9d7-4e83-a2b6-9bebec1ea955]|http://forums.oracle.com/forums/]&gt;&lt;/identifier&gt;
    &lt;schemaName&gt;&lt;![CDATA[FUSION]|http://forums.oracle.com/forums/]&gt;&lt;/schemaName&gt;
    &lt;type&gt;&lt;![CDATA[TABLE]|http://forums.oracle.com/forums/]&gt;&lt;/type&gt;
    &lt;/parent&gt;
    &lt;schemaName&gt;&lt;![CDATA[FUSION]|http://forums.oracle.com/forums/]&gt;&lt;/schemaName&gt;
    &lt;type&gt;&lt;![CDATA[COLUMN]|http://forums.oracle.com/forums/]&gt;&lt;/type&gt;
    &lt;/partitionColumn&gt;
    &lt;/partitionColumns&gt;
    *&lt;partitionType&gt;RANGE&lt;/partitionType&gt;*
    &lt;partitions&gt;
    &lt;partition&gt;
    &lt;ID class="oracle.javatools.db.IdentifierBasedID"&gt;
    &lt;name&gt;&lt;![CDATA[AG_ZERO]|http://forums.oracle.com/forums/]&gt;&lt;/name&gt;
    &lt;identifier class="java.lang.String"&gt;&lt;![CDATA[3a8e802d-41eb-4fc5-bac6-853fb54c0864]|http://forums.oracle.com/forums/]&gt;&lt;/identifier&gt;
    &lt;parent class="oracle.javatools.db.IdentifierBasedID"&gt;
    &lt;name&gt;&lt;![CDATA[PARTITION]|http://forums.oracle.com/forums/]&gt;&lt;/name&gt;
    &lt;identifier class="java.lang.String"&gt;&lt;![CDATA[8dd284eb-9b8a-4eb9-9f35-2f05b1911094]|http://forums.oracle.com/forums/]&gt;&lt;/identifier&gt;
    &lt;parent class="oracle.javatools.db.TemporaryObjectID"&gt;
    &lt;/parent&gt;
    &lt;schemaName&gt;&lt;![CDATA[FUSION]|http://forums.oracle.com/forums/]&gt;&lt;/schemaName&gt;
    &lt;type&gt;&lt;![CDATA[PARTITION MODEL]|http://forums.oracle.com/forums/]&gt;&lt;/type&gt;
    &lt;/parent&gt;
    &lt;schemaName&gt;&lt;![CDATA[FUSION]|http://forums.oracle.com/forums/]&gt;&lt;/schemaName&gt;
    &lt;type&gt;&lt;![CDATA[PARTITION]|http://forums.oracle.com/forums/]&gt;&lt;/type&gt;
    &lt;/ID&gt;
    &lt;name&gt;&lt;![CDATA[AG_ZERO]|http://forums.oracle.com/forums/]&gt;&lt;/name&gt;
    &lt;compression&gt;&lt;![CDATA[NOCOMPRESS]|http://forums.oracle.com/forums/]&gt;&lt;/compression&gt;
    &lt;objectType&gt;PARTITION&lt;/objectType&gt;
    &lt;partitionType&gt;RANGE&lt;/partitionType&gt;
    &lt;values&gt;
    &lt;value class="java.lang.String"&gt;&lt;![CDATA[1]|http://forums.oracle.com/forums/]&gt;&lt;/value&gt;
    &lt;/values&gt;
    &lt;/partition&gt;
    &lt;/partitions&gt;

  • How to change file location path at run time in OWB 10g

    Hello all,
    We want to load several files with the same name but from different folders into a single table.
    The information about the paths is stored in an oracle table.
    Is there any best practice to achieve this?
    Our approach is to loop on the number of sources and execute the mapping after changing the location path. We found how to make the loop, and have the apropriate OMB command to update the location path, but we are still looking for a way to call this OMB plus command in a process flow or a mapping. Any idea?
    We also succeeded in loading the file from an unregistered location, which is necessary to be able to update the path, but I'm not sure this is really the best approach. Any advise?
    Thanks in advance for your help!
    best regards
    Cedric.

    Hi,
    I can provide you with an idea on this, dont know if it will work or not.
    Suppose, you need to load 5 files in different folder locations into a single table. Call the mapping 5 times in a process flow. If you log in to the database, and go the table all_directories in your target schema, you will find an entry for the actual path of the file you are trying to laod. I think if this path is updated before each run of the mapping, you can load all files into the target table. Only thing you have to do is call a procedure which will update this record in all_directories table with the different locations each time you want and then plug in this procedure before each call to the mapping in a process flow and see if it works or not?
    Regards
    -AP

  • Database error when updating table ADRC

    Hi,
    We are on ECC 5.0 & are facing a problem whille maintaining anything relevant to table ADRC.
    For eg., if we try to maintain storage location or create a vendor code (XK01), for some inputs it works ...but most times the update just terminates with a message "Database error when changing table ADRC".
    Pls. help.
    Thanks,
    Saba.

    Hi
    You can refer to following SAP Notes in case they help:
    385440   Repairing inconsistencies in Customizing addresses
    417809    Customizing objects display incorrect addresses
    186910    Customers / vendors with incorrect address
    Otherwise i want to know more about the error you are getting to help you in better way.
    Thanks and Regards
    Esha Rajpal

  • Issue with changing database location at runtime

    I am having a similar issue to:
    Re: Issue with changing database location at runtime
    where I am using Crystal Reports 2008 SP 3 fix pack 3.3 and a OLE DB connection to a SQL 2008 R2 server. Running on a computer on the network where the report can see the original development server is fast, other computers where that server is not available are hanging 20 seconds before coming up.
    I am using the same code from the Crystal Sample app to change the connection on each table. I found that the slowness comes the first time the ReportDocument object is accessed to get the collection of database tables, before the connection info is set.
    Fix pack 3.4 was mentioned in that post.  Does fix pack 3.4 fix that issue? I don't see fix pack 3.4 on the downloads page (https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm)

    I just found on the reports that were having the issue there was a SQL Expression.  Per this thread:
    Re: Report load is slow after changing database servers
    There was an issue with that and the fix is not out til the end of Feb so I found a way not to use the SQL Expression and the speed is much better.
    However, your information provided led me to this post:
    Cannot Change Table Location, but Only for One Report
    And I am also experiencing an issue where the table location is not changing on one subreport and I will look into that as a possible solution.
    Thanks so much for your help.

  • Select into specified fields

    In the select statement, how can I specify fields of an internal table which I want to be filled from a database table? Is it possible to define in INTO clause that I want db_field1 to be copied into itab_field3?

    ... INTO (f1, ..., fn)
    Places the result set in the target area (f1, ..., fn). The fields of the result set are transported to the target fields fi from left to right. INTO (f1, ..., fn) is allowed only if a list with n elements is also specified in the SELECT clause.
    If the result of a selection is a table, the data is retrieved in a processing loop introduced by SELECT and concluded by ENDSELECT. The processing passes through the loop once for each line read. If the result is a single record, the closing ENDSELECT is omitted.
    Example
    Output a list of all airlines (with short description and name):
    TABLES SCARR.
    DATA:  CARRID   LIKE SCARR-CARRID,
           CARRNAME LIKE SCARR-CARRNAME,
    SELECT CARRID CARRNAME
           INTO (CARRID, CARRNAME)
           FROM SCARR.
      WRITE: / CARRID, CARRNAME.
    ENDSELECT
    If u have defined an internal tabel and in select query u r retrieving a few fields then use INTO CORRESPONDING FIELDS OF..
    DATA: Begin of tab occurs 0,
      matnr like mara-matnr,
      maktl like mara maktl,
    end of tab.
    select matnr from
           mara <b>into corresponding fields of table tab</b>
           where matnr IN s_matnr.
    Try this one.
    Message was edited by: Judith Jessie Selvi

Maybe you are looking for

  • Oracle 9i export error after running catexp.sql file

    After running catexp.sql file in oracle 9i 9.2.0.7.0 as system user,it gives the following error while logging ORA-04020: deadlock detected while trying to lock object SYS.DBMS_STANDARD please help me..............

  • Condition types in tax calculation procedures

    hi sap Gurus, Tax calculation procedures cointains the order of steps, tax types{condition types}, and account keys.I am not able to understand what condition types are and its importance in the tax calculation procedures. Please help me SAP Gurus C.

  • Why do we want use 'Data Flow Task' to 'Data Flow Tast' in Control Flow?

    I found an example in my company's SSIS package folders. In Control Flow, it has one data flow connected to the other. Both of them are importing data from flat file and then exported to database. I think these two are kind of at the same level and c

  • Manual setting of date and time-..

    After finally getting my ATV3 updated to 6.2 via an iTunes restore with USB. I am now stuck at the activating screen with the sub note of setting date and time. I have reset and restored multiple times now. Reset my entire network. Disconnected cable

  • Extended notifications: more items selected than expected

    i have configured SWNCONIFG for only one task and i know how many instances there were created in the system. when i run SWN_SELSEN and check WF/NOTIFICATIONS in SLG1, however, i see workitems ids that are for different tasks. i have removed all the