Creating a datasource that sits on a table

Hello All,
I have to create a datasource that sits on a table and reads certain fields. I have found the relevant table via the data browser "RSPCLOGCHAIN". I am now in transaction sbiw - please advise further.
Thank you and kind regards,
Keith

Hi Keith,
The steps would be as follows:
1. Goto to RSO2.
2. Create a datasource with a technical name and assign it to a Application Component.
3. Choose the Extraction from view section and enter you table name.
4. Save it.
5. It would list all the fields of that table. You can hide the ones that you do not want. Save again.
Bye
Dinesh

Similar Messages

  • Need help in creating a page that populates 3 related tables

    Hi All,
    I am pretty new to Oracle and have been trying to use the wizards in HTML_DB to create one page that will populate three tables. I have thus far have NOT been able to find my solutions. I do not know enough experience in SQL/PL_SQL to create the code on my own.
    Here is my dilemma. I have three tables:
    con (for contacts) - with regular contact info = l_name, f_name, phone...
    pro (for different programs) - with different program info = pro_name, priority..
    procon (Contact/program) - that joins the two together with initial, follow-up and close date fields.
    I created a composite primary key in the procon table that consists of the two pk's of the other two tables (using fk relationships).
    I want to be able to use one page in HTML_DB to enter in the data which will populate all three tables. Is there a way to do this in PL/SQL?
    * Also: Is there a book out there that you can recommend that really teaches SQL/PL_SQL?
    I would really, really, REALLY appreciate the help!!!!!
    Thanks,
    d.

    This isn't as bad as you think. I would create one procedure in a package and pass the parameters to the package via htmldb
    procedure insval(in_a in number, in_b in number, in_c in number)
      begin
       insert into tablea(cola)
        values(in_a);
      insert into tableb(colb)
       values(in_b);
      insert into tablec(colc)
       values(in_c);
      end;and then you call it from htmldb using a process
    schema.package.insval(:p1_a,:p1_b,:p1_c);That's ultra-simplified, but will get the job done.
    -Scott

  • Creating a user thats saved to a table? possible or not???

    Ok.....so my uni assignment is to make an SQL database and then a front end in access...for a shoe store...i can make test databases and get access to connect to the sql....yay
    now im never going to get a brilliant grade because im TERRIBLE at all sort of programming (im doing computer networks not programming yet i have to do lots :(..)..............BUT one thing in the assignment states is that the shoe store would like cutomers to 'sign up' as it were....if i could get it to work that would be like one 'trick' thing that might get me a couple more marks...
    SO can i create a user that is saved to the customer table easily? or...would it take lots of knowledge and years of experience or can someone point me to some sample code or a tutorial...????
    or can this not be done and im barking up the wrong tree here?
    thanks in advance to everyone who is better at this than me!!!

    You can create a simple form with two text item each to input userid (text1) and password (text2)
    You add a submit button and you create a WHEN_BUTTON_PRESSED trigger
    In that trigger you code something like this
    Insert into Customer_Table (UserId,Password)
    Values (text1.text,text2.text)
    commit;
    there you are... you can add many users as you want.
    and when you create log in page. you create also two text item each to input userid (text1) and password (text2)
    You add a submit button and you create a WHEN_BUTTON_PRESSED trigger
    In that trigger you code something like this
    Declare
    VarID Varchar2....
    VarPass Varchar2.....
    Begin
    select UserId,Password into VarID,VarPass where UserId = VarID
    exception
    when others then
    RAISE .... 'Wrong ID'
    End;
    If VarPass = text2.text then 'OK' else 'Wrong Password'

  • How do we create a CURSOR that consists of two TABLES

    I would like to access a cursor that has columns from two tables.

    How do we create a CURSOR that consists of two TABLESA cursor does not consist of data. A cursor is not a result set that is created in the memory of the database server and populated with "+results+".
    A cursor is source code (SQL or anonymous PL/SQL block) that has been compiled into an executable program. The execution plan (see the EXPLAIN PLAN SQL command) describes the structure of this program and how it will be executed.
    When you fetch data from a cursor, you are receiving the output of this executable program known as a cursor.
    So as the other respondents explained in this thread, you need to create SQL source code that joins tables. Then you send this SQL to the server, where it is parsed and compiled into a cursor in the database's Shared Pool (together with all other SQLs that the database received - all SQLs are compiled as cursors).
    Once this is done, you can open the cursor (execute the cursor program) and fetch data from it.

  • Create a view that limits a large table, but also allows an outer join ?

    oracle 10.2.0.4
    CREATE TABLE MY_PAY_ITEMS
    ( EMP     VARCHAR2(8) NOT NULL
    , PAY_PRD VARCHAR2(8) NOT NULL
    , KEY1    VARCHAR2(8) NOT NULL
    , KEY2    VARCHAR2(8) NOT NULL
    , LN_ITEM VARCHAR2(4) NOT NULL
    , ITEM_AMT NUMBER(24,2) NOT NULL
    , FILLER  VARCHAR2(100) NOT NULL)
    INSERT INTO MY_PAY_ITEMS
    SELECT A.EMP
    , B.PAY_PRD
    , C.KEY1
    , D.KEY2
    , E.LN_ITEM 
    , F.ITEM_AMT
    FROM (SELECT TO_CHAR(ROWNUM, '00000000') "EMP" FROM DUAL  CONNECT BY LEVEL <= 50 ) A
    , (SELECT '2010-' || TO_CHAR(ROWNUM,'00') "PAY_PRD" FROM DUAL CONNECT BY LEVEL <= 52) B
    , (SELECT TO_CHAR(ROWNUM, '000') "KEY1" FROM DUAL CONNECT BY LEVEL <= 8) C
    , (SELECT TO_CHAR(ROWNUM, '000') "KEY2" FROM DUAL CONNECT BY LEVEL <= 5) D
    , (SELECT TO_CHAR(ROWNUM,'000') "LN_ITEM" FROM DUAL CONNECT BY LEVEL <= 20) E
    , (select round(DBMS_RANDOM.VALUE * 400,2)  "ITEM_AMT" from dual) F
    CREATE UNIQUE INDEX MY_PAY_ITEMS ON MY_PAY_ITEMS (EMP, PAY_PRD, KEY1, KEY2, LN_ITEM)
    CREATE TABLE MY_ITEM_DISPLAY
    ( DISPLAY_CODE VARCHAR2(4) NOT NULL
    , SEQUENCE     NUMBER(2) NOT NULL
    , COLUMN_ITEM1 VARCHAR2(4) not null
    , COLUMN_ITEM2 VARCHAR2(4) not null
    , COLUMN_ITEM3 VARCHAR2(4) not null
    , COLUMN_ITEM4 VARCHAR2(4) not null)
    INSERT INTO MY_ITEM_DISPLAY VALUES ('01',10,'001','003','004','005');
    INSERT INTO MY_ITEM_DISPLAY VALUES ('01',20,'007','013','004','009');
    INSERT INTO MY_ITEM_DISPLAY VALUES ('01',30,'001','004','009','011');
    INSERT INTO MY_ITEM_DISPLAY VALUES ('01',40,'801','304','209','111');
    INSERT INTO MY_ITEM_DISPLAY VALUES ('02',10,'001','003','004','005');
    INSERT INTO MY_ITEM_DISPLAY VALUES ('02',20,'007','013','004','009');
    INSERT INTO MY_ITEM_DISPLAY VALUES ('02',30,'001','004','009','011');
    MY_PAY_ITEMS is a table that stores payslip line items.  It has a total size of 500,000,000 rows.
    EMP is the unique employee id,  We have approx 200,000 employees (with approx 50,000 being active today).
    PAY_PRD is a weekly pointer (2010-01, 2010-02 ... 2010-52), we have data from 2004 and are adding a new pay period every week.  2010-01 is defined as the first monday in 2010 to the first sunday in 2010 etc.
    KEY1 is an internal key, it tracks the timeline within the pay period.
    KEY2 is a child of KEY1, it tracks the sequence of events within KEY1.
    LN_ITEM is the actual pay item that resulted from the event on average a person generates 20 rows per event.  Note that in this example everybody gets the same LN_ITEM values, but in practice it is 20 selected from 300
    ITEM_AMT is the net pay for the line item.
    FILLER is an assortment of fields that are irrelevant to this question, but do act as a drag on any row loads.
    MY_ITEM_DISPLAY is a table that describes how certain screens should display items.  The screen itself is a 4 column grid, with the contents of the individual cells being defined as a lookup of LN_ITEMS to retrieve the relevant LN_AMT.
    We have an application that receives a DISPLAY_CODE and an EMP.  It automatically creates a sql statement along the lines of
    SELECT * FROM MY_VIEW WHERE DISPLAY_CODE = :1 AND EMP = :2
    and renders the output for the user.
    My challenge is that I need to rewrite MY_VIEW as follows:
    1) Select the relevant rows from MY_ITEM_DISPLAY where DISPLAY_CODE = :1
    2) Select the relevant all rows from MY_PAY_ITEMS that satisfy the criteria
       a) EMP = :2
       b) PAY_PRD = (most recent one for EMP as at sysdate, thus if they last got paid in 2010-04 , return 2010-04)
       c) KEY1 = (highest key1 within EMP and PAY_PRD)
       d) KEY2 = (highest key2 within EMP, PAY_PRD and KEY1)
    3) I then need to cross reference these to create a tabular output
    4) Finally I have to return a line of 0's where no LN_ITEMs exist ( DISPLAY_CODE 01, sequence 40 contains impossible values for this scenario)
    The below query does part of it (but not the PAY_PRD, KEY1, KEy2 )
    select * from (
    SELECT A.DISPLAY_CODE
    , B.EMP
    , A.SEQUENCE
    , MAX(DECODE(B.LN_ITEM, A.COLUMN_ITEM1, B.ITEM_AMT, 0)) "COL1"
    , MAX(DECODE(B.LN_ITEM, A.COLUMN_ITEM2, B.ITEM_AMT, 0)) "COL2"
    , MAX(DECODE(B.LN_ITEM, A.COLUMN_ITEM3, B.ITEM_AMT, 0)) "COL3"
    , MAX(DECODE(B.LN_ITEM, A.COLUMN_ITEM4, B.ITEM_AMT, 0)) "COL4"
    FROM MY_ITEM_DISPLAY A, MY_PAY_ITEMS B
    WHERE B.PAY_PRD = '2010-03'
    GROUP BY A.DISPLAY_CODE, B.EMP, A.SEQUENCE)
    WHERE DISPLAY_CODE = '01'
    AND EMP = '0000011'
    ORDER BY SEQUENCE
    My questions
    1) How do I do the PAY_PRD, KEY1, KEY2 constraint, can I use some form of ROW_NUMBER() OVER function ?
    2) How do I handle the fact that none of the 4 column LN_ITEMS may exist  (see sequence 40, none of those line items can exist)...  Ideally the above SQL should return
    01, 0000011, 10, <some number>, <some number>, <some number>, <some number>
    01, 0000011, 20, <some number>, <some number>, <some number>, <some number>
    01, 0000011, 30, <some number>, <some number>, <some number>, <some number>
    01, 0000011, 40, 0            , 0            , 0            , 0           
    I tried a UNION, but his prevented the view from eliminating the bulk of the MY_PAY_ITEMS rows, as it resolve ALL of MY_PAY_ITEMS instead of just retrieving rows for the one EMP passed to the view.  The same seems to be true for any outer joins.

    Hi, if i understood you properly, you need :
    select nvl(q.display_code,lag(q.display_code) over (order by rownum)) display_code,
           nvl(q.emp,lag(q.emp) over (order by rownum)) emp,
           m.s,
           nvl(q.COL1,0) COL1,
           nvl(q.COL2,0) COL2,      
           nvl(q.COL3,0) COL3,
           nvl(q.COL4,0) COL4,
           nvl(PAY_PRD,lag(q.PAY_PRD) over (order by rownum)) PAY_PRD,
           nvl(KEY1,lag(q.KEY1) over (order by rownum)) KEY1,
           nvl(KEY2,lag(q.KEY2) over (order by rownum)) KEY2  
    from(
    select d.display_code,
           t.emp,
           d.sequence,
           max(DECODE(t.LN_ITEM, d.COLUMN_ITEM1, t.ITEM_AMT, 0)) keep (dense_rank first order by to_date(t.pay_prd,'yyyy-mm') desc ) "COL1",
           max(DECODE(t.LN_ITEM, d.COLUMN_ITEM2, t.ITEM_AMT, 0)) keep (dense_rank first order by to_date(t.pay_prd,'yyyy-mm') desc ) "COL2",
           max(DECODE(t.LN_ITEM, d.COLUMN_ITEM3, t.ITEM_AMT, 0)) keep (dense_rank first order by to_date(t.pay_prd,'yyyy-mm') desc ) "COL3",
           max(DECODE(t.LN_ITEM, d.COLUMN_ITEM4, t.ITEM_AMT, 0)) keep (dense_rank first order by to_date(t.pay_prd,'yyyy-mm') desc ) "COL4",
           max(t.PAY_PRD) PAY_PRD,
           max(t.key1) keep (dense_rank first order by to_date(t.pay_prd,'yyyy-mm') desc ) key1,
           max(t.key2) keep (dense_rank first order by to_date(t.pay_prd,'yyyy-mm') desc ) key2
      from MY_PAY_ITEMS t
      join MY_ITEM_DISPLAY d
        on d.display_code = '01'
    where t.emp = '00000011'
    group by d.display_code, t.emp, d.sequence
    ) q
    full outer join (select level*10 s from dual connect by level <= 4) m
    on m.s = q.sequence
    DISPLAY_CODE
    EMP
    S
    COL1
    COL2
    COL3
    COL4
    PAY_PRD
    KEY1
    KEY2
    01
    00000011
    10
    101.1
    103.1
    104.1
    105.1
    2010-03
    008
    005
    01
    00000011
    20
    107.1
    113.1
    104.1
    109.1
    2010-03
    008
    005
    01
    00000011
    30
    101.1
    104.1
    109.1
    111.1
    2010-03
    008
    005
    01
    00000011
    40
    0
    0
    0
    0
    2010-03
    008
    005
    Ramin Hashimzade

  • How to create a ROLAP Cube that has two fact tables.

    I want to know if it is possible to create a ROLAP Cube with two fact tables.
    Suppose that I have these two star schemas:
    The first star schema has only a measure and a time dimension. The time dimension has three levels (Year -> Month -> Day)
    The second star schema has the same measure of the first schema and a time dimension. In this schema the time dimension has only two levels (Year -> Month). The values of the measure of this schema come from the first schema, this is, the value of the measure for a defined year and month results of the sum of all fact values of the first schema, that have the same year and month.
    I want to know if is possible to create a ROLAP cube that can get the information of the two star schemas, according to the level that the user are consulting.
    For example, if the user consults the cube with "OracleBI Spreadsheet Add-In", and if the user is consulting the first two levels (Year and Month), then the ROLAP cube would get the information of the second star schema.
    But if the user does a drill down in a month to get information of the days, then the ROLAP cube would get the information of the first star schema.
    Is it possible to do this?
    Regards,
    Rui Torres

    I'm not exactly sure what you want to do. Sorry if I get this wrong.
    You have two fact tables, one with data values at the day, month and year levels and a second fact table with data values at just the month and year levels. If this is the case, in the CWM2 APIs or OWB Paris, you would create a view that joins the two tables together and then map this view to the ROLAP cube.
    For CWM2 details, please refer to the Oracle OLAP Reference.

  • How to create a "cube" that rotates images

    hello Flash,
    I have seen some web sites that have a "cube" that has images
    displayed on the face of the cube. And it rotates -
    most of the ones I have seen rotate continuously. I would
    like to create a cube, that when I click a buttion (web browser
    button) it gives the appearance of rotation and changes the image.
    How can I do this in flash???
    thanks
    eholz1

    I'm not exactly sure what you want to do. Sorry if I get this wrong.
    You have two fact tables, one with data values at the day, month and year levels and a second fact table with data values at just the month and year levels. If this is the case, in the CWM2 APIs or OWB Paris, you would create a view that joins the two tables together and then map this view to the ROLAP cube.
    For CWM2 details, please refer to the Oracle OLAP Reference.

  • Creating a button that highlights itself and another object

    Hello all,
    I have a specific function I am trying to apply to my InDesign document intended for exporting to an interactive PDF and SWF/html format.
    The function I am trying to create is:
    I have a picture of a typical WYSIWYG tool bar. I have created highlight buttons that sit on top of each icon in the picture. When the reader rolls over (with cursor) this picture of an icon I want it to highlight, and also a piece of text further down the page to highlight as well (which is a definition and explanation of the icon). So I want the rollover action of my first button to also trigger another action, which is to highlight a piece of text elsewhere on the page. I have managed to get it so that I hover over the first button (picture of icon), it highlights, and the text further down the page appears. But this isn’t quite what i want. I want the text to exist already, then highlight. Basically, I want to the two buttons to be linked. So that every time I hover over a portion of the picture with a created button, it will highlight, and a piece of exploratory text will also highlight simultaneously elsewhere on the page. A bit like an infograph. Surely this is possible?
    Thanks in advance for your help.

    Generally, animations like this with the goal of exporting a SWF are better be done in Adobe Flash.
    In Indesign it sort of works, too. Only for export to SWF, you can assign the action "Go to status". For a text frame, you can assign different status, where the 1st status would be "normal" and the 2nd status would be "highlighted". Highlighted applies to the object "text frame", so you can assign a stroke or fill. Better than nothing.
    Example: Dropbox - test_highlight.indd

  • How to create a function that returns multiple rows in table

    Dear all,
    I want to create a funtion that returns multiple rows from the table (ex: gl_balances). I done following:
    -- Create type (successfull)
    Create or replace type tp_gl_balance as Object
    PERIOD_NAME VARCHAR2(15),
    CURRENCY_CODE VARCHAR2(15),
    PERIOD_TYPE VARCHAR2(15),
    PERIOD_YEAR NUMBER(15),
    BEGIN_BALANCE_DR NUMBER,
    BEGIN_BALANCE_CR NUMBER
    -- successfull
    create type tp_tbl_gl_balance as table of tp_gl_balance;
    but i create a function for return some rows from gl_balances, i can't compile it
    create or replace function f_gl_balance(p_period varchar2) return tp_tbl_gl_balance pipelined
    as
    begin
    return
    (select gb.period_name, gb.currency_code, gb.period_type, gb.period_year, gb.begin_balance_dr, gb.begin_balance_cr
    from gl_balances gb
    where gb.period_name = p_period);
    end;
    I also try
    create or replace function f_gl_balance(p_period varchar2) return tp_tbl_gl_balance pipelined
    as
    begin
    select gb.period_name, gb.currency_code, gb.period_type, gb.period_year, gb.begin_balance_dr, gb.begin_balance_cr
    from gl_balances gb
    where gb.period_name = p_period;
    return;
    end;
    Please help me solve this function.
    thanks and best reguard

    hi,
    Use TABLE FUNCTIONS,
    [http://www.oracle-base.com/articles/9i/PipelinedTableFunctions9i.php]
    Regards,
    Danish

  • Can I create a Stored Procedure That access data from tables of another servers?

    I'm developing a procedure and within it I'm trying to access another server and make a select into a table that belongs to this another server. When I compile this procedure I have this error message: " PLS-00904: insufficient privilege to access object BC.CADPAP", where BC.CADPAP is the problematic table.
    How can I use more than one connection into an Oracle Stored Procedure?
    How I can access tables of a server from a Stored Procedure since the moment I'm already connected with another server?
    Can I create a Stored Procedure That access data from tables of another servers?

    You need to have a Database Link between two servers. Then you could do execute that statement without any problem. Try to create a database link with the help of
    CREATE DATABASE LINK command. Refer Document for further details

  • Create 1 template that updates throughout site

    Can you create a template that can be used throughout your website and when you need to change the template and it will update automatically throughtout your website?
    Thanks
    Sharon

    In iWeb '08 you choose the templates for the pages of your site and can then switch by clicking on the "theme" button. You have to do this for every page.

  • Can I create a layout in IBA that has an editable table

    When I create a table in a layout in IBA and use that template for a page, the table cells are not editable.

    Here's a simplified version of the layout page
    I can use the layout inspector to make sure that anyone who creates a page using this layout can edit the editable text.  But is I select any of the tables, I am not given that option in the layout inspector (it is greyed out).
    When I create a page with this layout, I can indeed edit the txt but I cannot select or edit the table cells (or the tables for that matter).  The table cells are not locked.
    Thanks

  • 'table does not exist' when creating generic datasource

    I went to SBIW->Business Content DataSources->Transfer Business Content DataSources-chose "content delta". it said 'comparison bct <-> cust version ' then it counted thru several objects for a few minutes and finished with no warnings.
    then I selected each datasource under co-om-cca and activated those with no problems.
    problem: now when i try to create came generic datasource using co-om-cca application component i get mssg when saving 'the specified table does not exist'...so now it isn't even letting me create a datasource at all using a standard application component either.
    I have been having many problems with creating datasources and using application components and this is why I did the first paragraph because I don't know what else to try.
    Please help, thanks.

    I have answered my own question.  I wasn't entering the view/table and it was my own complete oversight.

  • Why the system create HU that already exists  in table VEKP when I use BAPI_HU_CREATE?

    Hi All,
    When I use the BAPI_HU_CREATE  to create HU, the system give me a HU and it inserts a line in Table VEKP, however when I search in table VEKP  with field HU EXIDV, I find  two entries with the same HU, one of them has VPOBJ 01 and the other has VPOBJ 12, So when I execute  transaction LM46  the system shows “The system could not find transfer order for execution” because the system search in table VEKP it find the first line with VPOBJKEY = delivery  and STATUS = 0020, however those delivery is not assigned to transfer order that I want to confirm transfer order.
    Why the system create HU that already exists  in table VEKP when I use BAPI_HU_CREATE?
    Thank you!
    Best regards

    Do you want to say that you got 2 HU from BAPI_HU_CREATE?
    I think you only got the one which has VPOBJ = 12 Non-Assigned Handling Unit
    which is exact what the BAPI is used for, see the docu in SE37. Didn't you yourself add this EXIDV in the IDoc?
    VPOBJ = 01 Outbound Delivery
    If you want to pack the Outbound delivery then you should use BAPI_HU_PACK.

  • If I have an EntityBean that mappes to two tables within one database, when I create that EJB, whoes reponsibilty to generate the primary key in database table? The RDBMS or EJB?

    If I have an EntityBean that mappes to two tables within one database, when I create
    that EJB, whoes reponsibilty to generate the primary key in database table? The
    RDBMS or EJB?
    Thanks,
    JW

    Refer to http://e-docs.bea.com/wls/docs81/faq/ejb.html/#257430
    "Jingwei Zhang" <[email protected]> wrote:
    >
    If I have an EntityBean that mappes to two tables within one database,
    when I create
    that EJB, whoes reponsibilty to generate the primary key in database
    table? The
    RDBMS or EJB?
    Thanks,
    JW

Maybe you are looking for

  • Unable to install itunes 10.01

    When I try to install itunes, it get halfway done, but then an error message comes up saying- "The feature you are trying to use is on a network resource that is unavailable. Click OK to try again, or an alternate path to a folder containing the inst

  • Problem in assigning variables value.. FORM bdc_field

    Though the value is there in y_lv_fval it is not assigned to WA field y_li_bdcdata-fval. FORM bdc_field USING y_lv_fnam y_lv_fval.     CLEAR y_li_bdcdata.     y_li_bdcdata-fnam = y_lv_fnam.     y_li_bdcdata-fval = y_lv_fval.    "KBETR field length..l

  • File Dialog's using Remote Panels (via web server)

    I am aware that the web server remote panel access will not allow us to open a file dialog box on a remote computer.  I have read people comment that you should create your own file dialog box, using LabVIEW to use instead of the file dialog box. Has

  • Garageband cant find my recordings!??!

    Everytime I open Garageband to open one of my projects it says 'Audio File "no effects#01.aif" not found'. and a SKIP or SEARCH option, search finds nothing.... So like whenever i record something, i save it and quit garageband, i can't reopen the fi

  • I can't access the computer that I entered  CS3 product key but I need it deactivated, what do I do?

    I have my original CD sleeve with the product key and I want to install it on a new computer. How do I deactivate the product key on a computer that was formatted and cannot be accessed? Adobe questions told me to "contact us" but then directed me he