Problem Scenario

Hi all,
Below I am explaining the Problem Scenario we are Facing with.
We have files in which each record has got some different format.And there are 80 such formats.
These Formats are Position based.
Take for Example, Format 1
position 1-20 Product id
position 21-40 Category id ( and on and on.)
So, each Record of file needs to parsed in order to decide which Format Record belongs to.
We have some Fixed Criteria on how to identify the format a record belongs to.
Like,In each Format From Position say 55-90 is ID .By reading this ID we can determine which is the file format.
and Once the format is decided,Depending on the Format Each Record Needs to Be Populated in Different Table .
I welcome Your Suggestions to Implement this Scenario.
Message was edited by:
Pooja Gupta

We are doing the problem in the following way :-
First of all,we are using a java procedure which reads each record of file and helps us to identify specific file format for each record.As we are having 80 formats, so we have created 80 different file formats blank text files which will be filled after the java procedure is executed.
thereafter,each of this text file is loaded into the corresponding tables through 80 different interfaces.
Can you suggest any modification in this approach of ours for better efficiency?
Thanks in advance

Similar Messages

  • ADF Toy Store : create row : problem scenario

    hi (Steve)
    While experimenting with the ADF Toy Store Demo (*1) I tried this scenario:
    (1) Use the "Sign In" icon to navigate to "Register as a New User".
    (2) Without entering data into the input fields, click the "Register" button. You will get errors for the required fields.
    (3) (You change your mind about registering.) Click on "Games".
    (4) (You see a nice game, so you still want to register.) Use the "Sign In" icon to navigate to "Register as a New User".
    (5) Be nice and fill out all the fields and click the "Register" button.
    [!] This will result in errors for the required fields (although you filled out all of them).
    My guess is these errors are related to the first "account row" that was created.
    Could someone suggest a "best practice" approach to avoid problems like these?
    thanks
    Jan Vervecken
    *1 : http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adftoystore.html
    * : using JDeveloper 10.1.2 and ADF Toy Store 9.0.5.2.31 (Built on 21-Jun-2004)

    thanks for your reply Steve
    (1st) I've updated ToyStoreServiceImpl like you suggested:
      public boolean validSignon(String username, String password) {
        System.out.println("validSignon() : begin");
        removeAnyInvalidNewAccounts();
        return getAccounts().findAccountByUsernamePassword(username, password);
      public void prepareToCreateNewAccount() {
        System.out.println("prepareToCreateNewAccount() : begin");
        removeAnyInvalidNewAccounts();
        ViewObject vo = getAccounts();
        vo.clearCache();
         * Mark the view object as insert only by setting
         * it's max fetch size to zero. Executing the query
         * when the max fetch size is zero won't actually
         * perform any query, but will mark the VO as
         * executed so the ADF binding layer will know it
         * doesn't need to re-execute it later.
        vo.setMaxFetchSize(0);
        vo.executeQuery();
        Row newRow = vo.createRow();
        vo.insertRow(newRow);
        newRow.setNewRowState(Row.STATUS_INITIALIZED);
        vo.setCurrentRow(newRow);
        System.out.println("newRow = " + newRow);
        System.out.println("prepareToCreateNewAccount() : end");
       * Purge any new but invalid AccountImpl (and associated SignInImpl) instances
       * from the Entity Cache. These could get into the system if the user visits
       * the "Register a New User" page, enters invalid data and submits, but
       * instead of fixing the invalid data, click on another link to sign-in
       * as another valid account instead.
      private void removeAnyInvalidNewAccounts() {
        System.out.println("removeAnyInvalidNewAccounts() : begin");
        EntityDefImpl def = AccountImpl.getDefinitionObject();
        com.sun.java.util.collections.Iterator iter = def.getAllEntityInstancesIterator(getDBTransaction());
        while (iter.hasNext()) {
          AccountImpl acct = (AccountImpl) iter.next();
          System.out.println("considering acct = " + acct);
          if (acct.isInvalid() && (acct.getEntityState() == Entity.STATUS_NEW)) {
            System.out.println("removing acct = " + acct);
            acct.remove();
            acct.getSignon().remove();
        System.out.println("removeAnyInvalidNewAccounts() : end");
      //...(2nd) I've followed the original problem scenario I described at the beginning of this thread:
    (1) Use the "Sign In" icon to navigate to "Register as a New User".
    (2) Without entering data into the input fields, click the "Register" button. You will get errors for the required fields.
    (3) (You change your mind about registering.) Click on "Games".
    (4) (You see a nice game, so you still want to register.) Use the "Sign In" icon to navigate to "Register as a New User".
    (5) Be nice and fill out all the fields and click the "Register" button.
    [!] This will result in errors for the required fields (although you filled out all of them).
    (3rd) That results in this output:
    prepareToCreateNewAccount() : begin
    removeAnyInvalidNewAccounts() : begin
    removeAnyInvalidNewAccounts() : end
    newRow = toystore.model.dataaccess.AccountsRowImpl@1
    prepareToCreateNewAccount() : end
    prepareToCreateNewAccount() : begin
    removeAnyInvalidNewAccounts() : begin
    removeAnyInvalidNewAccounts() : end
    newRow = toystore.model.dataaccess.AccountsRowImpl@18b
    prepareToCreateNewAccount() : end
    questions
    (1) I never seem to enter the while loop of your removeAnyInvalidNewAccounts() method, how come?
    (2) Although my scenario never signs in with another valid account, do you consider my scenario to be similar to the one you describe in your comment for the removeAnyInvalidNewAccounts() method?
    (3) In general, if creating (and inserting) new rows should be accompanied with methods like removeAnyInvalidNewEntityXs(), what would be the "rule of thumb" to determine where to call these methods? It is my impression that such methods should be inserted in different places to account for all the scenarios (paths in the application) a user can follow (and you better forget none).
    thanks
    Jan

  • Problem scenario to XI to Idoc (R/3)

    Hello all,
    please help me for this problem i would like to send idoc to system R/3
    and I have a message error.
    I'm sure to load in XI idoc PORDCR01.Thanks for your reply
    <b>- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
      <SAP:P1>Basic type PORDCR01 does not exist</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error: Basic type PORDCR01 does not exist</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error></b>

    Hi Mady,
    it means that your RFCdestination to R3 (configured in transaction IDX1)
    is not working properly
    check if you can receive the idoc in transaction IDX2 on XI
    all steps for IDOC- XI configuration are described (with screenshots) in my book:
    <a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • XI 2.0 problem: scenario xml - xi - idoc

    Hi!
    my scenario is xml -> xi -> idoc1, idoc2.
    when the interface start, if I call SXMB_MONI I see that idoc1 is correct; for idoc2 the system generate an error: idoc.adapter.generic, "MSGGUID 587E007DA385D54697B3F02220A78987: Tag ORDERHEADER found instead of tag IDOC BEGIN=.</"
    Can you help me to undestand the problem?
    10 points for you!
    Thanks,
    Gianluca

    Bruer,
    I use an interface mapping between xml (imported from SAP BBPCRM 4.0, data type OrderCreateOrChangeVendorOut) and Idoc custom. My mapping is graphical mapping without java class or xsl.
    My scenario work with one xml and two different idocs. Today I have added a second idoc. The problem is that the first one work correctly, for the new idoc generate an error for idoc_adapter.generic.
    The jar file for the mapping is mandatory for my new idoc?
    Thans you very mutch,
    Gianluca

  • Compile report in 6i problem

    Hi All,
    Encounter a weird problem, scenario as below:
    Programmer A:
    (1) OS: WinXP
    (2) Database A : Oracle 8i, HP-Unix machine
    (2) report builder 6i: Create a report and connect to database A to compile and
    generate the rep file.
    (3)Distribute the rep file to branch office file server.
    End User B:
    (1)OS: WinXP
    (2)Database B: Oracle 8I, HP-unix machine
    (3)Execute rep file in report runtime which connect to database B
    Fail to run the report when execute it disappear automatically.
    But when connect to Database A, it can run it properly.
    And get the source and compile in Database B, the rep can run in both
    Database A and B ?
    p/s: All the object are exactly same in database A and B !
    Any idea ? Thanks in advance.

    Hi All,
    I have done some simple testing:
    function BeforeReport return boolean is
    begin
    if pu_check_ok then
         return (TRUE);
    else
         return (FALSE);
    end if;
    end;
    FUNCTION pu_check_ok RETURN BOOLEAN IS
    BEGIN
    return(pu_return);
    END;
    FUNCTION pu_return RETURN BOOLEAN IS
    cursor c1 is
    select 'TESTING'
    from dual;
    BEGIN
         open c1;
         fetch c1 into :CP_1;     
         close c1;
    return(TRUE);
    END;
    When I compile this report in database1, and send to user to run run the report (*.rep) in database2, the report hang. FYI, when I check in System Monitor (tools in Win98), the Kernel Processor Usage reach to 100%.
    But, if I compile again by connecting database2 and run in database2, it can run without problem.
    Else, if I add another dummy cursor in function BeforeReport, it can be ran in both database1 and database 2.

  • Session state and browser cache - Back button problem

    Hi all,
    I have a problem (and unless I'm missing something I think we all do) with session state and use of the browser's Back button. I really hope I'm just being dumb...
    Background scenario:
    Page P has a sidebar list allowing the user to select what content is displayed (e.g. 'stuff relating to X, Y or Z' where X, Y and Z are rows in, say, a table of projects). When a list entry is clicked, we branch to page P with the value of the list item placed in an application-level item (call it G_PROJECT). Reports on page P use G_PROJECT in their WHERE clauses.
    So, click list entry X and G_PROJECT is set to X and page P shows reports for project X.
    Page P also has a set of buttons which branch to various edit pages which allow attributes of page P's current project to be updated. These pages similarly use G_PROJECT in their WHERE clauses.
    Problem scenario:
    1. The user goes to page P and picks project X off the list. Project X's stuff is displayed (G_PROJECT = X).
    2. The user then picks project Y off the list. Project Y's stuff is displayed (G_PROJECT = Y).
    3. The user then clicks the browser's Back button. The page is served from browser cache, so project X's stuff is displayed, but G_PROJECT still = Y.
    4. The user clicks an 'Edit' button; we submit, and branch to an edit page which displays (and will edit) data for project Y because G_PROJECT still = Y.
    This is SERIOUSLY BAD NEWS - apart from being confusing, the user's edit permissions on projects X and Y may differ, and so the user may be able to perform 'illegal' updates.
    I've read what I can on this forum and the rest of the web looking for ways to a) inhibit browsers' 'Back' functions and/or b) prevent pages being cached by the browser, but none of them have worked for me.
    Short of waiting for browser manufacturers to recognise that the web is now full of applications as well as static pages, and enable robust programmatic control of cache behaviour, does anybody know how the problem can be avoided - or at least detected?
    Thanks,
    jd
    Failed attempts to date:
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="cache-control" content="no-store">
    <meta http-equiv="cache-control" content="private">
    <meta http-equiv="cache-control" content="max-age=0, must-revalidate">
    <meta http-equiv="expires" content="Wed, 09 Aug 2000 01:01:01 GMT">
    <meta http-equiv="pragma" content="no-cache">
    Disallowing duplicate submission (page attribute).
    window.history.go(1);

    Thanks Scott,
    I may be being dumb here but I don't see how that would help...
    P250_PROJECT and G_PROJECT are currently kept in sync by app logic. Whichever is used to drive, if the page is rendered from cache then the app logic is not executed, so the rendered page contents are not those keyed by P250_PROJECT, as illustrated in steps 1-4 of the problem above.
    The user sees X, the session items say Y. The engine doesn't know what the user is seeing.
    when page P is POSTed, its hidden item P250_PROJECT should always be used to derive the application item G_PROJECT. Then whether the page was pulled from cache or rendered anew via a click from the sidebar link, the project ID is determined by the contents of that page.
    As I said above I tried this, with the 'Edit' branch set to:
    Set these items: G_PROJECT
    With these values: &P250_PROJECT.
    but it makes no difference. The project ID is not determined by the rendered page contents - the engine gets the value of P250_PROJECT from session state.
    I can code the 'Edit' pages such that they check permissions and if necessary redirect back to p250 (conditional before-header branch), but that's a clunky cure rather than the prevention I was hoping for.
    Please tell me if my understanding is incorrect.
    jd

  • Problem in recover physical standby database(Data Guard) by rman

    Hello to all
    I have created a physical standby database ,I want make backup of it by rman and when I lose it's datafile I can restore it ,making backup and restore is fine but in recovery I encounter some problem
    scenarios is follow
    1- In rman I create a backup of standby database by this command:
    backup database plus archivelog delete all input;
    2- I run this comman in rman for recover standby database
    run{
    2> set until scn 1392701;
    3> restore database;
    4> recover database;
    5> }
    (1392701 is extracted from this query "SELECT MAX(NEXT_CHANGE#)+1 UNTIL_SCN FROM V$LOG_HISTORY LH,
    V$DATABASE DB WHERE LH.RESETLOGS_CHANGE#=DB.RESETLOGS_CHANGE# AND LH.RESETLOGS_TIME =
    DB.RESETLOGS_TIME;" "http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rman.htm")
    but RMAN result is like this:
    executing command: SET until clause
    Starting restore at 13-DEC-08
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from
    backup set
    restoring datafile 00001 to /u01/app/oracle/oradata/sari/system01.dbf
    restoring datafile 00002 to /u01/app/oracle/oradata/sari/undotbs01.dbf
    restoring datafile 00003 to /u01/app/oracle/oradata/sari/sysaux01.dbf
    restoring datafile 00004 to /u01/app/oracle/oradata/sari/users01.dbf
    restoring datafile 00005 to /u01/app/oracle/oradata/sari/example01.dbf
    restoring datafile 00006 to /u01/app/oracle/oradata/sari/users02.dbf
    channel ORA_DISK_1: reading from backup piece /home/oracle/backup/0ek24dt4_1_1
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/home/oracle/backup/0ek24dt4_1_1
    tag=TAG20081213T042506
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:07
    Finished restore at 13-DEC-08
    Starting recover at 13-DEC-08
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 116 is already on disk as file /u01/app/oracle/oradata/archive/1_116_666786084.arc
    archive log thread 1 sequence 117 is already on disk as file /u01/app/oracle/oradata/archive/1_117_666786084.arc
    archive log filename=/u01/app/oracle/oradata/archive/1_116_666786084.arc thread=1 sequence=116
    archive log filename=/u01/app/oracle/oradata/archive/1_117_666786084.arc thread=1 sequence=117
    unable to find archive log
    archive log thread=1 sequence=118
    RMAN-03002: failure of recover command at 12/13/2008 05:14:13
    RMAN-06054: media recovery requesting unknown log: thread 1
    seq 118 lowscn 1392700
    3- then I decline 1392701 to 1392700 and i run this command
    run{
    2> set until scn 1392700;
    3> restore database ;
    4> recover database;
    5> }
    executing command: SET until clause
    Starting restore at 13-DEC-08
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from
    backup set
    restoring datafile 00001 to /u01/app/oracle/oradata/sari/system01.dbf
    restoring datafile 00002 to /u01/app/oracle/oradata/sari/undotbs01.dbf
    restoring datafile 00003 to /u01/app/oracle/oradata/sari/sysaux01.dbf
    restoring datafile 00004 to /u01/app/oracle/oradata/sari/users01.dbf
    restoring datafile 00005 to /u01/app/oracle/oradata/sari/example01.dbf
    restoring datafile 00006 to /u01/app/oracle/oradata/sari/users02.dbf
    channel ORA_DISK_1: reading from backup piece /home/oracle/backup/0ek24dt4_1_1
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/home/oracle/backup/0ek24dt4_1_1 tag=TAG20081213T042506
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:08
    Finished restore at 13-DEC-08
    Starting recover at 13-DEC-08
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 116 is already on disk as
    file /u01/app/oracle/oradata/archive/1_116_666786084.arc
    archive log thread 1 sequence 117 is already on disk as
    file /u01/app/oracle/oradata/archive/1_117_666786084.arc
    archive log filename=/u01/app/oracle/oradata/archive/1_116_666786084.arc thread=1
    sequence=116archive log
    filename=/u01/app/oracle/oradata/archive/1_117_666786084.arc
    thread=1 sequence=117Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS
    would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u01/app/oracle/oradata/sari/system01.dbf'
    media recovery complete, elapsed time: 00:00:10
    Finished recover at 13-DEC-08
    4- if I run
    run{
    restore database;
    recover database;
    I will recieve that error of step 2 (RMAN-06054: media recovery requesting unknown log: thread 1
    seq 118 lowscn 1392700)
    5- if I just restore the database and I don't perform recovery by rman and I restart redo apply all thing seem fine
    but in opening database I'll recieve ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u01/app/oracle/oradata/sari/system01.dbf' error)
    do you know what is problem
    thanks
    Edited by: ARKH on Dec 12, 2008 11:06 PM

    hi
    I myself have found the solution , when I recover the standby database
    it do recovery but at the end of recovery it raise the error(RMAN-06054: media recovery requesting unknown log: thread 1
    seq 118 lowscn 1392700) but if I begain redo apply before open the database
    and I wait till all redo apply process start and communication between the
    standby database and the primary database start, then I can
    open the standby database and no error will raise
    but if befor restarting redo apply I open the database I'll recieve the
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u01/app/oracle/oradata/sari/system01.dbf' error
    thanks

  • Problem in Customising JTable's Functionality

    Problem Scenario :
    We are facing a problem related to JTables. In our GUI, we have used JTables and the data model that we are using for the table is a bit complicated. Complicated in the sense that we want different values(multiple) in each cell of a particular column in the table and we want to use JComboBox at that particular cell. For achieving this we have set the values in the JComboBox in its renderer class. But to set the user selected value in the particular cell JComboBox we initialized a new JComboBox in the renderer class. With this the GUI is working fine but it has raised a problem that if we renderer the component another JComboBox appears in the same cell. The problem is obvious as we are initializing a new JComboBox in the renderer class, but to solve our purpose we don�t have another way.
    With the kind of data model we are using is it possible to create a JTable with combo boxes in a particular cell having different option values in each cell?
    Could someone suggest a solution for this problem?
    Regards
    Prajkta Bonde
    [email protected]

    I have done it around 4 years back. Add filled JComboBox as table data.
    Attached sample code should help
    // Imports
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    class SimpleTableExample
              extends      JFrame
         // Instance attributes used in this example
         private     JPanel          topPanel;
         private     JTable          table;
         private     JScrollPane scrollPane;
         // Constructor of main frame
         public SimpleTableExample()
              // Set the frame characteristics
              setTitle( "Simple Table Application" );
              setSize( 300, 200 );
              setBackground( Color.gray );
              // Create a panel to hold all other components
              topPanel = new JPanel();
              topPanel.setLayout( new BorderLayout() );
              getContentPane().add( topPanel );
              // Create columns names
              String columnNames[] = { "Column 1", "Column 2", "Column 3" };
              Object dataValues[][] = new Object[10][3];
              for(int row=0;row<dataValues.length;row++) {
                   for(int col=0;col<dataValues[row].length;col++){
                        JComboBox tempBox = new JComboBox();
                        for(int data=0;data<10;data++){
                             tempBox.addItem("Row "+row+" Column "+col+" Data "+data);
                        dataValues[row][col]=tempBox;
              // Create a new table instance
              table = new JTable( dataValues, columnNames );
            comboBoxColumn(table.getColumnModel().getColumn(0));
            comboBoxColumn(table.getColumnModel().getColumn(1));
            comboBoxColumn(table.getColumnModel().getColumn(2));
              // Add the table to a scrolling pane
              scrollPane = new JScrollPane( table );
              topPanel.add( scrollPane, BorderLayout.CENTER );
        public void comboBoxColumn(TableColumn comboBoxCol) {
            comboBoxCol.setCellEditor(new TableComponentEditor());
            comboBoxCol.setCellRenderer(new TableComponentRenderer());
            //Set up tool tip for the sport column header.
            TableCellRenderer headerRenderer = comboBoxCol.getHeaderRenderer();
            if (headerRenderer instanceof DefaultTableCellRenderer) {
                 ((DefaultTableCellRenderer)headerRenderer).setToolTipText("Click the sport to see a list of service stations");
        } //end of method
        class TableComponentEditor extends DefaultCellEditor {
            * Constructor
            * @param none
            TableComponentEditor() {
                super(new JComboBox());
            * Called when table Cell is clicked
            * @param table
            * @param value - Object associated with the particular column for which it is called
            * @param isSelected -whether the particular cell is selected
            * @param row - The row to which cell belongs
            * @param column - The Column To which Cell Belongs
            public  Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
                cbo = (JComboBox)value;
                return cbo;
            *  getCellEditorValue
            * @return Object
            public Object getCellEditorValue() {
                return cbo;
            /***************CLASS VARIABLES***********************/
            private JComboBox cbo = null;
        class TableComponentRenderer  implements TableCellRenderer {
            public  Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)  {
                return (JComboBox)value;
         // Main entry point for this example
         public static void main( String args[] )
              // Create an instance of the test application
              SimpleTableExample mainFrame     = new SimpleTableExample();
              mainFrame.setVisible( true );
    }

  • Sales analysis problem

    sales analysis problem
    scenario: there are many plants and customers, the relationship between them is n:n, and every
    customer has a classification.
    my question is how to calculate the number of the plant that sold to one classification of the
    customer in BW.
    for example;
    plant: 1000, 1001, 1002
    customer: 2000, 2001, 2002
    classification: A, B
    customer's classification: 2000:A, 2001:A, 2002:B
    transactions:
    plant->customer
    1000 ->2000:A
    1000 ->2001:A
    1001 ->2000:A
    1001 ->2002:B
    1002 ->2002:B
    so the result is : the number of plant that sold to customer classification A is 2;sold to
    customer classification B is 2;
    how to carry out it in bw with a cube, please help help me solve the problem, thank you very
    much!

    Wilfred,
    You should create a message with SAP Support on this issue.
    Eddy

  • Problem with BMM layer warning messages.

    Hi,
    I have modelled with the following tables in BMM layer.
    Dimension tables: Regions,Countries,Departments, locations, Employees, jobs, job history
    Fact table: HR Facts (measured columns like salary, max salary, min salary, commission)
    The model is consistent with the following warnings:
    Logical dimension table REGIONS has a source REGIONS that does not join to any fact source.
    Logical dimension table DEPARTMENTS has a source DEPARTMENTS that does not join to any fact source.
    Logical dimension table COUNTRIES has a source COUNTRIES that does not join to any fact source.
    Logical dimension table LOCATIONS has a source LOCATIONS that does not join to any fact source.
    and also in the answers section (Presentation services) i could not able to view data, it's giving the following error (when i am trying to display REGION NAME field values)
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14026] Unable to navigate requested expression: REGIONS.REGION_NAME. Please fix the metadata consistency warnings. (HY000).
    I could not able to trace the problem where exactly is to be fixed.
    regards
    chandra kanth.

    Hi,
    Thanks for the information. Ideally that works out without any hierarchies. But the problem with which i was facing is somewhat different.
    Let me explain the problem scenario exactly:
    I have an employee, region tables in physical layer. Employee table has SALARY Column. Region table dont have any
    join with Employee table. In BMM layer i have created a fact table "HR Facts" and crated a logical fact column SALARY.
    The logical fact table source is Employee table. I have drag dropped Region table into BMM layer and joined with HR
    Facts table. While consistency check its given a warining message: Logical dimension table REGIONS has a source
    REGIONS that does not join to any fact source.
    What is the problem exaclty?
    regards
    chandra kanth.

  • Ajx problem with jsp .not able to show  ajax response data in table rows

    hi evryone
    i m new to ajax .i m not able solve this problem .pls help if anyone understood my problem
    probelm scenario is like this:
    take a example of shopping page where a field amount changes every time (time interval) ,the amount data is coming from database .ok...
    this i m trying to do with ajax and want to display the value in table rows one by one ..but response whihc i m getting is different .....same value is diaplying in evry rows .which i dont want
    the output it coming now is:like this
    item amount
    item 1 20
    item2 20
    item 3 20
    i want like thi s
    item amount
    item 1 20
    item2 30
    item 3 40
    even in database the value is 20,30,40
    here is the code of two jsp page
    one is ajaxitem_amount.jsp
    <%
    try
    stmt3 = con.createStatement();
    String itemQ="select item_ref_id,quantity from item_master where shop_ref_id="+shopid+" and (status is null or status<>'w') order by item_ref_id";
    //out.println(railQ);
    rs_details=stmt3.executeQuery(itemQ);
    while(rs_details.next())
    item2 = rs_details.getInt("ITEM_REF_ID");
    v.add(new Integer(item2));
    String aString = Integer.toString(item2);
    itemids.add(aString);
    Enumeration enum = v.elements();
    for (j=0; j<v.size(); j++)
    //out.println("v[" + j + "] = " + v.elementAt(j));
    sql3="select max(shop_amount) from shop_floor_temp where item_ref_id="+v.elementAt(j);
    rs_bid=stmt3.executeQuery(sql3);
    if(rs_price.next())
    last_price=rs_price.getDouble(1);
    if(last_price != 0)
    lprice= last_price;
    else
    lprice=1;
    out.print("<response>");
    out.print(lprice+"|");
    out.print("</response>");
    out.print("\n");
    catch(Exception ex)
    out.print("ERROR"+ex);
    // out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    _another is main shopping
    <td bgcolor="#C5B9AB" width="10%" align="center">
    <strong><font face="Verdana" size="2">Last price</font></strong>
    int tabrowcounter=0;
    while(rs_details.next())//some query
    tabrowcounter++;
    //*some more data is displayed here one by one all are working instead of this which i am calling from another page ajaxitem_amount.jsp page*
    <td bgcolor='<%=colorjava%>' width="50%" align="center">
    <div id="responseimage<%=tabrowcounter%>"></div>
    <div id="responseOutput<%=tabrowcounter%>"></div>
    <SCRIPT LANGUAGE="JavaScript">
    function createXHR<%=tabrowcounter%>()
    try { return new XMLHttpRequest(); } catch(e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
    try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
    alert("XMLHttpRequest not supported");
    return null;
    function sendRequest<%=tabrowcounter%>()
    document.getElementById('responseimage<%=tabrowcounter%>').innerHTML ="<IMG SRC='load.gif'> ";
    document.getElementById('responseimage<%=tabrowcounter%>').style.display = 'block';
    document.getElementById('responseOutput<%=tabrowcounter%>').style.display = 'none'
    var url="ajaxauct_floor.jsp";
    var xhr = createXHR<%=tabrowcounter%>();
    if (xhr)
    xhr.open("get",url,true);
    xhr.onreadystatechange = function()
    handleResponse<%=tabrowcounter%>(xhr);
    xhr.send(null);
    function handleResponse<%=tabrowcounter%>(xhr)
    if (xhr.readyState == 4 && xhr.status == 200)
    try
    var data = xhr.responseText.split("|");
    //document.write(data);
    //updatePage<%=tabrowcounter%>(xhr.responseText);
    //document.write(xhr.responseText);
    setTimeout('sendRequest<%=tabrowcounter%>()',10000);
    for(var x=0;x<data.length-1;x++)
    //alert(data);
    document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[x];
    document.getElementById('responseimage<%=tabrowcounter%>').style.display = 'none'; // HIDE
    document.getElementById('responseOutput<%=tabrowcounter%>').style.display = 'block'
    //document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[0];
    //document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[0];
    catch(e)
    alert('1 '+e)
    sendRequest<%=tabrowcounter%>();
    </SCRIPT>
    </td>
    </tr></table>
    if anyone have understood my problem pls help me .i have tried lot but not working .anyone genius here ?thnak you

    thanks baluc
    thanks for correcting me and giving me a good advice .anyway i m trying make you understand once again ...
    if you have understood this time please do reply .else i m sorry for placing wrong question ....
    hi everyone
    I m new to Ajax .I m not able solve this problem .pals help if anyone understood my problem
    problem scenario is like this:
    take a example of shopping page where a field amount changes every time (time interval) ,the amount field* (this data is coming from database )
    this I m trying to do with Ajax and want to display the value in table rows one by one ..But response which I m getting is different.....same value is displaying in every rows .which I don't want
    The output it coming now is: like this
    item amount
    item 1 20
    item2 20
    item 3 20
    I want like this s
    item amount
    item 1 20
    item2 30
    item 3 40
    even in database the value is 20,30,40
    here is the code of jsp page
    one page is ajaxitemamount.jsp_*
    <%
    try
    stmt3 = con.createStatement();
    String itemQ="select item_ref_id,quantity from item_master where shop_ref_id="+shopid+" and (status is null or status<>'w') order by item_ref_id";
    //out.println(railQ);
    rs_details=stmt3.executeQuery(itemQ);
    while(rs_details.next())
    item2 = rs_details.getInt("ITEM_REF_ID");
    v.add(new Integer(item2));
    String aString = Integer.toString(item2);
    itemids.add(aString);
    Enumeration enum = v.elements();
    for (j=0; j<v.size(); j++)
    //out.println("v[" + j + "] = " + v.elementAt(j));
    sql3="select max(shop_amount) from shop_floor_temp where item_ref_id="+v.elementAt(j);
    rs_bid=stmt3.executeQuery(sql3);
    if(rs_price.next())
    last_price=rs_price.getDouble(1);
    if(last_price != 0)
    lprice= last_price;
    else
    lprice=1;
    out.print("<response>");
    out.print(lprice+"|");
    out.print("</response>");
    out.print("\n");
    catch(Exception ex)
    out.print("ERROR"+ex);
    // out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    another is main shopping page page 2*
    <td bgcolor="#C5B9AB" width="10%" align="center">
    <strong><font face="Verdana" size="2">Last price</font></strong>
    int tabrowcounter=0;
    while(rs_details.next())//some query
    tabrowcounter++;
    <td bgcolor='<%=colorjava%>' width="50%" align="center">
    <div id="responseimage<%=tabrowcounter%>"></div>
    <div id="responseOutput<%=tabrowcounter%>"></div>
    <SCRIPT LANGUAGE="JavaScript">
    function createXHR<%=tabrowcounter%>()
    try { return new XMLHttpRequest(); } catch(e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
    try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
    alert("XMLHttpRequest not supported");
    return null;
    function sendRequest<%=tabrowcounter%>()
    document.getElementById('responseimage<%=tabrowcounter%>').innerHTML ="<IMG SRC='load.gif'> ";
    document.getElementById('responseimage<%=tabrowcounter%>').style.display = 'block';
    document.getElementById('responseOutput<%=tabrowcounter%>').style.display = 'none'
    var url="ajaxauct_floor.jsp";
    var xhr = createXHR<%=tabrowcounter%>();
    if (xhr)
    xhr.open("get",url,true);
    xhr.onreadystatechange = function()
    handleResponse<%=tabrowcounter%>(xhr);
    xhr.send(null);
    function handleResponse<%=tabrowcounter%>(xhr)
    if (xhr.readyState == 4 && xhr.status == 200)
    try
    var data = xhr.responseText.split("|");
    //document.write(data);
    //updatePage<%=tabrowcounter%>(xhr.responseText);
    //document.write(xhr.responseText);
    setTimeout('sendRequest<%=tabrowcounter%>()',10000);
    for(var x=0;x<data.length-1;x++)
    //alert(data);
    document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[x];
    document.getElementById('responseimage<%=tabrowcounter%>').style.display = 'none'; // HIDE
    document.getElementById('responseOutput<%=tabrowcounter%>').style.display = 'block'
    //document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[0];
    //document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[0];
    catch(e)
    alert('1 '+e)
    sendRequest<%=tabrowcounter%>();
    </SCRIPT>
    </td>
    </tr></table>
    if anyone have understood my problem please help me .i have tried lot but not working .anyone genius here ?thank you

  • Anyone having problems with there iphone 5 battery life been very poor

    I have had the iphone 5 for 4 weeks now and the battery life is very very poor at first i thought it must just be how it is....was dissapointed tho from fully charged to flat in 4 hours with little use or going to bed and waking up with the battery life going down 17%!!! but then 1 day i charged it fully and it never went down for ages, over 24 hours and it still had 25% this lasted for about 4 days then all of a sudden back to been rubish, i sent it in to apple who returened it without doing a single thing (apart from scratched an dented the bottom!!) it was exactly the same ..poor.....but then last night i charged it took it off charge at 6pm (english time) and now at 00.42am the day after it still has 11%....clearly ther is a fault somewere!!! has anyone had the same experience or got any tips for me please?
    cheers, Danny

    krue12 wrote:
    Yes a lot of people are having this issue it's from the ios 6 update. Some users are reporting battery drains a lot after updating their device
    There have always been a lot of battery problems posted about in these forums following each and every iOS update.  Personally, I believe that the battery really isn't discharging any faster, it is just that the charging circuit is confused and needs to be reset. I always perform a setup as a new phone for major updates, for example iOS3 to iOS4, 4 to 5, 5 to 6, which should be a 'reset' for the charging system, but I do a simple update for point releases--6.0 to 6.0.1, etc.  I have never had a problem with battery performance when performing the full update as new, only when I did a 'normal' update for a point release.  If I perform an update with a restore from the old backup after a major update the battery problem did appear.
    After every iOS point update I always do a full reset--home and on/off buttons held down until the Apple appears--three or four times over the course of a couple of days.  I allow the phone to fully charge overnight every night.
    This has always resulted in 'normal' battery life after one or a few reset cycles.  By 'normal' I mean that a fully charged iPhone, with email and other notifications enabled and set to push, and no particular attention paid to battery conserving techniques, will discharge to about 89% over a 10 hour day.  If I make a few phone calls and surf the web a bit then the level has fell to 70% or so, but unless I heavily use my iPhone 5 it doesn't drop below that point.
    Prior to performing the resets the charge level would sometimes drop into the 50's or 60's or even lower in a few hours without using the iPhone.  This problem 'scenario' has happened with every iPhone I have ever owned and I've owned all but the original iPhone.
    As always, YMMV.  I make no claims as to its usability for anyone else.

  • COMMIT WORK - performance problem

    Dear Fellow SDNers,
    I seek your help on the following problem:
    Scenario : Inbound idoc which updates an Outbound delivery with Picked quantity, posts the goods issue and then creates billing document
    Approach : I am using the function module SD_DELIVERY_UPDATE_PICKING to update the delivery from the idoc data and to post goods issue. Thereafter, i use BAPI_BILLINGDOC_CREATEMULTIPLE to create the billing document. Before calling this BAPI, I use a COMMIT WORK statement to update the relevant tables so as to enable invoice creation properly.
    Problem: The COMMIT WORK statement takes a lot of time to execute (I have no update tasks that could lead to this), so much that the idoc (probably) has a timeout and ends up in status 64. As a result, the succeeding part of the code (after COMMIT WORK) is not executed and the billing document is not created.
    When I debug this, the COMMIT WORK statement leads to a strange screen (which looks like a blank report output screen, with its title as "UPDATE CONTROL". However (of course), there is no timeout while debugging and the billing document is successfully created.
    Could anyone provide some pointers to solve this problem?
    regards,
    Priyank

    i have a custom function module Y_IDOC_INPUT_WMSPICK001 which is responsible for idoc inbound processing. SAP PI sends the inbound data to ECC and once this is done, this function module is executed.
    This FM has the following code sequence inside it...
    1) Call the FM SD_DELIVERY_UPDATE_PICKING
    2) COMMIT WORK AND WAIT.
    3) Call the BAPI_BILLINGDOC_CREATEMULTIPLE
    Step1 is successfully executed,  the step 2 takes a long time, and after that, the step 3 is not executed at all and the idoc ends up with a yellow light (status 64).
    hope it clarifies what I am doing
    regards,
    Priyank

  • Problems in accessing an SSL enabled site through Weblogic 6.1

    Hi,
    We want to connect to an SSL enabled site (https://test.SalesForce.com) through Weblogic 6.1. We are using JDK1.3.1_08 and Apache axis.
    We have followed the appropriate steps explained in the URL -
    http://www.pankaj-k.net/WSOverSSL/WSOverSSL-HOWTO.html
    As mentioned in the above link, we made the configurations in JDK 1.3.1_08 to put the jsse.jar and other important JARs in jre\lib\ext folder and also updated the java security file to add the proper "Provider".
    After that we tried to execute the test application to connect to an SSL site specified in it. It is a stand alone Java application and connects to the site and reads the bytes of the home page and displays them on the console.
    When we tried to connect the SalesForce test site, we figured out that we were able to connect to the site and were able to read entire stream of bytes.
    Then we copied the same code in a sample JSP, set the JDK1.3.1_06 as the JAVA_HOME for Weblogic6.1 and tried to connect to our test site through that JSP.
    We observed that it is connecting to the site but reading just a few initial bytes and not the entire stream.
    When we tried the same steps with Weblogic8.1 and JDK1.4.2_X, it works fine and reads the entire page with Weblogic8.1 as client.
    So, we observed that the standalone application works fine with JDK1.3.1_08, it also works fine on the the Weblogic 8.1 and JDK1.4.2_x combination, but when we use Weblogic6.1 and JDK1.3.1_08, it does not work properly.
    Is there any setup issue in Weblogic 6.1 regarding connecting to a SSL enabled site?
    Our actual problem scenario is a bit different than this, but we are sure that it is related to this situation and a solution to this problem can resolve the actual problem.
    Another question we have is do we need to configure SSL in Weblogic 6.1 and also care for installing certificates evenif Weblogic 6.1 in this case is a mere client?
    We have tried to connect to the same site using Weblogic 8.1 and JDK1.4.2_X. We did not require any kind of certicates in that case. Hence I want to clear my doubt.
    Please help.

    Hello,
    Just wondering if you ever found a solution to this problem. We are suffering just about the exact same issue, where our environment with WebLogic 6.1 SP4 cannot access an SSL enabled site, but our WebLogic 8.1 SP2 upgrade environment can. The only difference we've been able to pinpoint is that our 6.1 server connects via TLS1.0 (SSL3.1) and our 8.1 server connects via SSLv3 (SSL3.0). Does anyone know how to control which version of SSL WebLogic 6.1 uses?

  • MySQL Expert Required!! Advanced Query Problem

    I am currently developing a hotel booking system for my University final year project and am having some serious problems with my query to calculate room availability.
    I felt the best method to calculate room availability was to first calculate which rooms were already booked for any specific queried dates and then to subtract those results from the list of total rooms. That would then return which rooms were available on those dates.
    However the query that I am using to calculate which rooms are already booked is very inefficient, in that, for example,
    A booking which is for more than one night can overlap the date you are testing for availability. It's even worse when you check the availability of rooms for multiple nights. My query does not cover those scenarios.
    If anyone can help me solve this problem or suggest alternative methods I would be most appreciative.
    Below is the MySQL code for the relevant parts of my database, and the query that I am currently using.
    Thanks!
    CREATE TABLE booking
    booking_id               INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
    e_mail                VARCHAR(40) NOT NULL REFERENCES guestdetails(e_mail),
    arrival_date          DATE NOT NULL,
    departure_date          DATE NOT NULL,
    PRIMARY KEY(booking_id)
    CREATE TABLE roombooked
    booking_id               INTEGER UNSIGNED NOT NULL REFERENCES booking(booking_id),
    room_id               INTEGER UNSIGNED NOT NULL REFERENCES rooms(room_no),
    no_of_nights          INTEGER UNSIGNED NOT NULL,
    PRIMARY KEY(booking_id,room_id)
    CREATE TABLE rooms
    room_no               INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
    room_name           VARCHAR(11),
    room_type               VARCHAR(9),
    single_price          DECIMAL(5,2),
    double_price          DECIMAL(5,2),
    PRIMARY KEY(room_no)
    insert into rooms (room_name,room_type,single_price,double_price)
    values ('shakespeare','principal','165','225'),
    ('keats','principal','165','225'),
    ('kipling','standard','125','165'),
    ('tennyson','superior','135','185'),
    ('shelley','deluxe','155','205'),
    ('brooke','superior','135','185'),
    ('wordsworth','deluxe','155','205'),
    ('milton','deluxe','155','205'),
    ('masefield','deluxe','155','205'),
    ('browning','deluxe','155','205');
    ///ROOM AVAILABILITY QUERY///
    CREATE TEMPORARY TABLE roomsoccupied          
    SELECT roombooked.room_id FROM roombooked, booking
    WHERE
    roombooked.booking_id = booking.booking_id
    AND
    booking.arrival_date <= 'QueriedArrivalDate'
    AND
    booking.departure_date >= 'QueriedDepartureDate';

    Yes, it does solve your problem.
    For example, if you have a room that is booked from the 1st - 4th and then receive an availability query for the 2nd - 6th my current query would not detect that, that particular room is already booked on those dates.
    So, 'QueriedArrivalDate = 2 and 'QueriedDepartureDate' = 6
    Now, let see the query
    CREATE TEMPORARY TABLE roomsoccupied
    SELECT roombooked.room_id FROM roombooked, booking
    WHERE
    roombooked.booking_id = booking.booking_id
    AND
    booking.arrival_date < 'QueriedDepartureDate'
    AND
    booking.departure_date > 'QueriedArrivalDate';
    yes, it will detect it becuase 1 < 6 and 4 > 2
    Please look at it better, it not only solves your current problem scenario but other scenarios like if the book is 2 - 7 and the request is 3 - 5 etc etc.

Maybe you are looking for

  • Not able to clear bind variable following Fusion Dev Guide Document Steps.

    Dear All, I am having trouble following the Fusion Developer Guide specifically the items on below link http://docs.oracle.com/cd/E23943_01/web.1111/b31974/bcquerying.htm#CHDDHIHJc 1.     (Request begins and application module is acquired) 2.  Call s

  • How can i map this lot out?

    I have this code below How can get it to print out so that it will print out all the key values that are equal to cust, Then print out all the key values that are equal to details, then print out all the key values that are equal to item. Thank you l

  • We need some information about Photoshop CS4 and Other Adobe Products Purchase

    We purchased Photoshop CS4 Extended for our educational use as Volume License... When we purchased the following products: 1. Adobe Photoshop CS4 Extended 2. Adobe Dreamweaver CS4 3. Adobe Page Maker 7.0 4. Adobe Flash CS4 Professional we only got th

  • SGC SSL Cert on 11501 only doing 40 bit encryption

    Dear Support, Just received the official SSL cert from thawte, but it is only showing as 40 bit encryption not 128. Can you help? Thanks, Adrian.

  • Destructive recovery question(reformat)

    If I do a destructive recovery, can I restore only certain things from time machine backup, like itunes library, mail settings, browser favorites, and a few programs.