Creating a complex view

I Need to create a complex (at least for me !!)view can some body throw some ideas
I have two tables
TABLE-1
NAME     SYSTEM          DT
AAA     GRADE-A          DATE
AAA     GRADE-B          DATE
BBB     GRADE-A          DATE
BBB     GRADE-B          DATE
CCC     GRADE-B          DATE
TABLE-2
NAME     SYSTEM          DT
DDD     GRADE-C          DATE
AAA     GRADE-C          DATE
BBB     GRADE-C          DATE
CCC     GRADE-C          DATE
Now I need to create a view with following details.
PV_MYVIEW
CLASS          DT
CLASS-A          DATE-A
CLASS-B          DATE-B
Where as date DATE-A should be oldest date (least) from following
Table-1.date where name=AAA And SYSTEM=GRADE-A
Table-1.date where name=AAA And     SYSTEM=     GRADE-B
Table-1.date where name=BBB And     SYSTEM=     GRADE-A
Table-1.date where name=BBB And     SYSTEM=     GRADE-B
Table-1.date where name=CCC And     SYSTEM=     GRADE-B
Table-2.date where name=DDD And     SYSTEM=     GRADE-C
Table-2.date where name=AAA And     SYSTEM=     GRADE-C
Table-2.date where name=BBB And     SYSTEM=     GRADE-C
Table-2.date where name=CCC And     SYSTEM=     GRADE-C
Where as DATE-B should be oldest date (least) from following
Table-1.date where name=AAA And     SYSTEM=     GRADE-A
Table-1.date where name=AAA And     SYSTEM=     GRADE-B
Table-1.date where name=BBB And     SYSTEM=     GRADE-A
Table-1.date where name=BBB And     SYSTEM=     GRADE-B
Table-2.date where name=AAA And     SYSTEM=     GRADE-C
Table-2.date where name=BBB And     SYSTEM=     GRADE-C
As a solution for this, I Am thinking of first creating a intermediate view which comsist
Class, Name and Date and then from this view creating PV_MYVIEW..
Am i in right direction?
THanks in advnce for your time

creating an intermediate view is the worst thing to do!
try this
select
'CLASS-A' class, min(dt) DT
from
select DT from TABLE1
where (name='AAA' And SYSTEM='GRADE-A')
or (name='AAA' And SYSTEM='GRADE-B')
or (name='BBB' And SYSTEM='GRADE-A')
or (name='BBB' And SYSTEM='GRADE-B')
or (name='CCC' And SYSTEM='GRADE-B')
union all
select DT from TABLE2
where (name='AAA' And SYSTEM='GRADE-C')
or (name='BBB' And SYSTEM='GRADE-C')
or (name='CCC' And SYSTEM='GRADE-C')
or (name='DDD' And SYSTEM='GRADE-C')
union all
select
'CLASS-B', min(dt)
from
select DT from TABLE1
where (name='AAA' And SYSTEM='GRADE-A')
or (name='AAA' And SYSTEM='GRADE-B')
or (name='BBB' And SYSTEM='GRADE-A')
or (name='BBB' And SYSTEM='GRADE-B')
union all
select DT from TABLE2
where (name='AAA' And SYSTEM='GRADE-C')
or (name='BBB' And SYSTEM='GRADE-C')
You can for sure remove some duplicate clause and you should verify that the specifications are accurate
REgards
Laurent

Similar Messages

  • Help with creating a complex view

    Greetings SQL Guru's
    We are improving one of our tables for a future release, but we
    must support the legacy look and feel of the table because we
    have 100's of legacy apps that access the data in the table. The
    new system is being deployed with Oracle 10g V10.1.
    Our Old REMARKS table that must be turned into a view feed from the new
    N_REMARKS table.
    UIC     varchar2(6)    PK
    RLT     char(3)        PK
    LABEL   varchar2(8)    PK
    SEQNO     number(1)      PK
    REMARK  varchar2(2000)     -- Size is From Oracle 7.3.2 which we stil have in prodcution
    New Table definition for N_REMARKS (N for new)
    UIC           varchar2(6) PK
    RLT           varchar2(3) PK
    LABEL         varchar2(8) PK
    REMARK_TYPE   char(1)     PK
    REMARK        CLOB
    [pre]
    The remark coming in can be up to 5K long. The SEQNO in the org,
    definition allows us to break it up into segments. The REMARK data
    itself has three remark types (M-mandatory, O-Optional, G-generated)
    that are basically concatenated together and then parsed out everytime
    they are processed, not very efficient. The need for a remark is based
    on other data in the database so as it relates to the REMARKS table each
    type may or may not be there.
    Our new structure basically stores the individual remark type in their own
    row. Our tool has logic to ensure that the aggregated length does not go
    over 5K.
    I need a view that can aggregate the remarks together and split them in
    2K chunks while incrementing the SEQNO.
    Say I have remarks in the N_REMARKS table (For simplicity lets say the
    REMARKS field length is 50 characters):
    If the N_REMARKS table has
    [pre]
    UIC     RLT     LABEL    REMARK_TYPE   REMARKS
    XXXXX   123     ABCDE      M             MANDATORY REMARK SEGMENT
    XXXXX   123     ABCDE    O             OPTIONAL REMARK SEGMENT
    XXXXX   123     ABCDE    G             GENERATED REMARK SEGMENT
    YYYYY   345     WXYZ     O              SECOND OPTIONAL REMARKS
    The New REMARKS view should display
    UIC     RLT     LABEL    SEQNO         REMARKS
    XXXXX   123     ABCDE      1             MANDATORY REMARK SEGMENTOPTIONAL REMARK SEGMENTGEN        
    XXXXX   123     ABCDE    2             ERATED REMARK SEGMENT
    YYYYY   345     WXYZ     1              SECOND OPTIONAL REMARKS
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I had a go, this works for your example (I assumed the remark order is irrelevant, but if not you can change the order by remark_type to order by whatever you want):
      1  select uic, rlt, label, rown-1 AS seq, remark
      2  from (select uic, rlt, label, trim(r) as r, rown
      3        from (select uic,rlt,label,remark_type,to_char(remark) remark,
      4                     row_number() over (partition by uic, rlt, label order by remark_type) as rown
      5              from n_remarks) t
      6        model return updated rows
      7        partition by (uic, rlt, label)
      8        dimension by (rown)
      9        measures (remark r)
    10        rules
    11          (r [ANY] order by rown desc = r[cv(rown)]||r[cv(rown)+1]))
    12  where rown=1
    13  model return updated rows
    14  partition by (uic, rlt, label)
    15  dimension by (rown)
    16  measures (r remark)
    17  rules upsert iterate(100) until (((iteration_number+1)*50)>length(remark[1]))
    18*  (remark[iteration_number+2]=substr(remark[1],1+(iteration_number*50),50))
    UIC    RLT LABEL           SEQ REMARK
    XXXXX  123 ABCDE             1 GENERATED REMARK SEGMENTMANDATORY REMARK SEGMENTOP
    XXXXX  123 ABCDE             2 TIONAL REMARK SEGMENT
    YYYYY  345 WXYZ              1 SECOND OPTIONAL REMARKSHowever this may fall over depending how long your remarks are (and I guess being clobs they're pretty long - so it probably will). That being the case I think the best solution is a pipelined function, then you can use PL/SQL to easily do what you want.
    hth
    Martyn
    Message was edited by:
    martyn

  • Complex view in forms 6i

    i have create a complex view
    and i want to use this view in oracle form developer 6i
    when i try to insert a new record in the view i have this error message frm-40602
    in the database i have wire the instead of trigger
    so how can i use the form to insert anew record in this view

    not all columns can be updated by a view. Those columns, which are not allowed have to be set to "Query Only". try this property

  • How to create a Complex Organization Index  Materialized View Example

    Hi
    I have a 11g database that I'm trying to create a complex Materialized View that I would like to make Organization Index? How do I specify what I want for a primary Key?
    CREATE MATERIALIZED VIEW RCS_STG.MV_NEXT_HOP_iot
    ORGANIZATION INDEX
    AS
    SELECT r2.resource_key, r1.resource_key resource_key2, r2.resource_full_path_name, device_name, device_model,
    service_telephone_number, service_package_name, telephone_number.telephone_number_key, c1.created_on
    FROM network_resource PARTITION (network_resource_subinterface) r1,
    connection c1,
    network_resource PARTITION (network_resource_subinterface) r2,
    device d1,
    tn_network_resource,
    telephone_number
    WHERE r1.resource_key = c1.resource1_key
    AND c1.resource2_key = r2.resource_key
    AND d1.device_key = r2.device_key
    AND tn_network_resource.resource_key(+) = r2.resource_key
    AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
    UNION ALL
    SELECT r1.resource_key, r2.resource_key resource_key2, r1.resource_full_path_name, device_name, device_model,
    service_telephone_number, service_package_name, telephone_number.telephone_number_key, c1.created_on
    FROM network_resource PARTITION (network_resource_subinterface) r1,
    connection c1,
    network_resource PARTITION (network_resource_subinterface) r2,
    device d1,
    tn_network_resource,
    telephone_number
    WHERE r1.resource_key = c1.resource1_key
    AND c1.resource2_key = r2.resource_key
    AND d1.device_key = r1.device_key
    AND tn_network_resource.resource_key(+) = r1.resource_key
    AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
    I get an error message ORA-25175: no PRIMARY KEY constraint found
    I would like to specify resource_key, resource_key2, and service_telephone_number as my primary key?

    Ah,
    I get it now. This is what I did.
    CREATE TABLE mv_next_hop_iot
    resource_key NUMBER (38),
    resource_key2 NUMBER (38),
    resource_full_path_name VARCHAR2 (256 BYTE),
    device_name VARCHAR2 (64 BYTE),
    device_model VARCHAR2 (64 BYTE),
    service_telephone_number VARCHAR2 (20 BYTE),
    service_package_name VARCHAR2 (64 BYTE),
    telephone_number_key NUMBER (38),
    created_on DATE,
    CONSTRAINT mv_next_hop_pk PRIMARY KEY (resource_key, resource_key2, service_telephone_number)
    ORGANIZATION INDEX
    CREATE MATERIALIZED VIEW rcs_stg.mv_next_hop_iot
    ON PREBUILT TABLE
    AS
    /* Formatted on 2010/06/10 1:39:04 PM (QP5 v5.149.1003.31008) */
    SELECT resource_key, resource_key2, resource_full_path_name, device_name, device_model, service_telephone_number,
    service_package_name, telephone_number_key, created_on
    FROM (SELECT r2.resource_key, r1.resource_key resource_key2, r2.resource_full_path_name, device_name, device_model,
    NVL (service_telephone_number, ' ') AS service_telephone_number, service_package_name,
    telephone_number.telephone_number_key, c1.created_on
    FROM network_resource PARTITION (network_resource_subinterface) r1,
    connection c1,
    network_resource PARTITION (network_resource_subinterface) r2,
    device d1,
    tn_network_resource,
    telephone_number
    WHERE r1.resource_key = c1.resource1_key
    AND c1.resource2_key = r2.resource_key
    AND d1.device_key = r2.device_key
    AND tn_network_resource.resource_key(+) = r2.resource_key
    AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
    UNION ALL
    SELECT r1.resource_key, r2.resource_key resource_key2, r1.resource_full_path_name, device_name, device_model,
    NVL (service_telephone_number, ' ') AS service_telephone_number, service_package_name,
    telephone_number.telephone_number_key, c1.created_on
    FROM network_resource PARTITION (network_resource_subinterface) r1,
    connection c1,
    network_resource PARTITION (network_resource_subinterface) r2,
    device d1,
    tn_network_resource,
    telephone_number
    WHERE r1.resource_key = c1.resource1_key
    AND c1.resource2_key = r2.resource_key
    AND d1.device_key = r1.device_key
    AND tn_network_resource.resource_key(+) = r1.resource_key
    AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key)
    Many thanks. the PREBUILT TABLE is the secret.

  • How to update or delete records in a Complex View in Forms?

    Hi,
    I have a requirement to create a Form by using Complex View. Insertion is possible but updation and deletion is not working properly . I got FRM-40501 Error. I need How to update or delete records in a Complex View in Forms?
    Thanks & Regards,
    Hari Babu

    Depending on how complex your view is, forms is not able to determine how to appropiately lock a record, when you try to update or delete a record.
    One approach to using complex views in forms:
    1. Set the Key-mode of the block to "Non-Updateable"
    2. Mark the column which can be used to build the WHERE-condition to uniquely identify a record with "Primary Key" = "Yes"
    3. For doing INSERT, UPDATE and DELETE, create an INSTEAD-OF-trigger on the view.
    4. Create your own ON-LOCK-trigger in forms which does the locking of the records to update.

  • Updates to a complex view

    SQL Developer version 3.0.04 on XP Pro
    We are able to use the data grid to update the values of views that are inherently updatable, no problem.
    We have a complex view with an associated instead-of-update trigger. We are able to update this complex view using an UPDATE statement, no problem.
    We would like to be able to update the complex view using the data grid (just in case I am mixing up the terminology, by "data grid" I mean the interface you get when you select the view from the navigation pane and then click the "Data" tab), but the fields are read only.
    Is there a configuration option that we can use to enable this? Or, some sort of workaround? Or, are we simply not able to update complex views using the data grid?
    Thanks!
    -Tom

    i think u need to change ur application structurei don't think so. Create an INSTEAD-OF-trigger on your view and manage the splitting there. In forms, you wil have to set the property "Primary Key" for the pk-item's to "Yes" and eventually you have to create an ON-LOCK-trigger

  • Create a materialized view :-

    How do I create a materialized view on a view ,so that it will refresh automatically on every commit in base table where the view having more that 9 function ?

    Read Materialized View Refresh for complete information.
    For a Jist:
    Refresh Mode Description
    ON COMMIT
    Refresh occurs automatically when a transaction that modified one of the materialized view's detail tables commits. This can be specified as long as the materialized view is fast refreshable (in other words, not complex). The ON COMMIT privilege is necessary to use this mode.
    ON DEMAND
    Refresh occurs when a user manually executes one of the available refresh procedures contained in the DBMS_MVIEW package (REFRESH, REFRESH_ALL_MVIEWS, REFRESH_DEPENDENT).
    When a materialized view is maintained using the ON COMMIT method, the time required to complete the commit may be slightly longer than usual. This is because the refresh operation is performed as part of the commit process. Therefore this method may not be suitable if many users are concurrently changing the tables upon which the materialized view is based.
    If you anticipate performing insert, update or delete operations on tables referenced by a materialized view concurrently with the refresh of that materialized view, and that materialized view includes joins and aggregation, Oracle recommends you use ON COMMIT fast refresh rather than ON DEMAND fast refresh.
    If you think the materialized view did not refresh, check the alert log or trace file.
    If a materialized view fails during refresh at COMMIT time, you must explicitly invoke the refresh procedure using the DBMS_MVIEW package after addressing the errors specified in the trace files. Until this is done, the materialized view will no longer be refreshed automatically at commit time.

  • Complex Views

    I'm trying to figure out how to build a complex view. Right now I have a textfield and button that are tied to a search function. I have a SearchController class that is tied to a SearchView.xib. The textfield and search button are for specific keyword searching
    I want to add a table view to this search view for canned searches by category. Should I create another controller just for this sub-part to the view or should I just implement the methods for a UITableViewController within the Search Controller?

    I understand that a UITableViewController is just a dummy interface. That's not exactly what I'm getting at...
    I do have my controllers separated into a SearchController and a ResultsController with different xib view files associated with each of them. What I'm struggling with is trying to add a UITableView to the search view which is owned by SearchController which is a UIViewController.
    It seems like it would be a bad idea to have two controllers, one referencing the larger part of a view and a subpart of that view being controlled by a second controller, so I'm trying to add a UITableView as a member variable of the SearchController and making the SearchController a UITableViewDelegate. I just want to make sure I'm approaching this problem with the best practices. Apple has provided some great examples about Table Views themselves, and other views, but there is no example out there that has multiple types of views in one given view.

  • Complex views can be updatable?

    I am having one complex view i need to update at run time for that view dipendent table. how can It possible

    from the free, online SQLmanual, the CREATE VIEW chapter, Notes on Creating Updatable Views
    An updatable view is one you can use to insert, update, or delete base table rows. You can create a view to be inherently updatable, or you can create an INSTEAD OF trigger on any view to make it updatable.
    To learn whether and in what ways the columns of an inherently updatable view can be modified, query the USER_UPDATABLE_COLUMNS data dictionary view. (The information displayed by this view is meaningful only for inherently updatable views.)
    If you want the view to be inherently updatable, it must not contain any of the following constructs:
    A set operator
    A DISTINCT operator
    An aggregate or analytic function
    A GROUP BY, ORDER BY, CONNECT BY, or START WITH clause
    A collection expression in a SELECT list
    A subquery in a SELECT list
    Joins (with some exceptions as described in the paragraphs that follow).
    In addition, if an inherently updatable view contains pseudocolumns or expressions, you cannot update base table rows with an UPDATE statement that refers to any of these pseudocolumns or expressions.
    If you want a join view to be updatable, all of the following conditions must be true:
    The DML statement must affect only one table underlying the join.
    For an INSERT statement, the view must not be created WITH CHECK OPTION, and all columns into which values are inserted must come from a key-preserved table. A key-preserved table in one for which every primary key or unique key value in the base table is also unique in the join view.
    For an UPDATE statement, all columns updated must be extracted from a key-preserved table. If the view was created WITH CHECK OPTION, join columns and columns taken from tables that are referenced more than once in the view must be shielded from UPDATE.
    For a DELETE statement, if the join results in more than one key-preserved table, then Oracle deletes from the first table named in the FROM clause, whether or not the view was created WITH CHECK OPTION.

  • How to insert new record or update existing record using a complex view?

    Currently I created this screen, there is no problems on display data, only on the update funtionality (it means insert / update / delete on the table for which the view is based on).
    I have a table and a complex view in order to display the information from the table in a tabellar form (i.e up to 70 record in same "record" in the form, one for each item)
    The view is like this
    select a.f1, a.f2, get_value(a.pk1,1) a1, get_value(a.pk1,2) a2, get_value(a.pk1,3) a3............
    from my_table a
    where a.proj_id = user
    and I want to permit the update of the field a1, a2, a3 in a multiposition canvas (tabellar).
    I created an INSTEAD-OF trigger.
    But it not work only in the form. I receive the error FRM-40654 when I try to change the existing value in the running form based on that view.
    The view is woking and updatable using sql-plus.
    If I query
    select * from ALL_UPDATABLE_COLUMNS where table_name = 'SPV_BOQ_BOM_POS_ACTIVITIES';
    in which 'SPV_BOQ_BOM_POS_ACTIVITIES' is the name of my view.
    The question is: why if the view is updatable using SQL*Plus, is not updatable using Oracle Form 10gR2 ?
    Someone could help me asap?
    Thanks

    I removed on the datablock three items that are not showed, one of this is the Sysdate of update on the table for which the view is based.
    I removed also the on-lock trigger and the update from the form is NOT working fine.
    But for now I can still mantaing the ON-LOCK trigger.
    Is not a priority to remove this trigger.
    I still have the problem when the field is null, it mean that in the table SP_BOQ_BOM_POS_ACTIVITIES the record not exist.
    I try now to explayn better.
    SPV_BOQ_BOM_POS_ACTIVITIES is the name of the view.
    SP_BOQ_BOM_POS_ACTIVITIES is the name of the table.
    This are the desc
    desc SPV_BOQ_BOM_POS_ACTIVITIES
    Describing SPV_BOQ_BOM_POS_ACTIVITIES....
    NAME Null? Type
    BOQ_HEADER_ID NOT NULL NUMBER(12,0)
    BB_ID NOT NULL NUMBER(12,0)
    BOQ_ID NOT NULL NUMBER(12,0)
    PROJ_ID NOT NULL VARCHAR2(10)
    ACT_GROUP_CODE VARCHAR2(30)
    TOTAL_QTY NUMBER
    ACT_CODE_1 VARCHAR2(4000)
    QTY_1 NUMBER
    ACT_CODE_2 VARCHAR2(4000)
    QTY_2 NUMBER
    ACT_CODE_3 VARCHAR2(4000)
    QTY_3 NUMBER
    ACT_CODE_4 VARCHAR2(4000)
    QTY_4 NUMBER
    ACT_CODE_5 VARCHAR2(4000)
    QTY_5 NUMBER
    ACT_CODE_6 VARCHAR2(4000)
    QTY_6 NUMBER
    USR_ID NOT NULL VARCHAR2(10)
    LMOD NOT NULL DATE
    INT_REV NOT NULL NUMBER(6,0)
    The field QTY_1, QTY_2.... QTY_6 are calculated with a customer stored function from the table SP_BOQ_BOM_POS_ACTIVITIES.
    Also the field ACT_CODE_1, ACT_CODE_2, .... ACT_CODE_6 are calculated with a customer stored function from the table SP_BOQ_BOM_POS_ACTIVITIES.
    desc SP_BOQ_BOM_POS_ACTIVITIES
    Describing SP_BOQ_BOM_POS_ACTIVITIES....
    NAME Null? Type
    BBPA_ID NOT NULL NUMBER(12,0)
    BOQ_HEADER_ID NOT NULL NUMBER(12,0)
    BB_ID NOT NULL NUMBER(12,0)
    BOQ_ID NOT NULL NUMBER(12,0)
    PROJ_ID NOT NULL VARCHAR2(10)
    ACT_GROUP_CODE NOT NULL VARCHAR2(30)
    ACT_CODE NOT NULL VARCHAR2(30)
    QTY NUMBER(12,0)
    FLG_MANUAL_CHANGE VARCHAR2(1)
    USR_ID NOT NULL VARCHAR2(10)
    LMOD NOT NULL DATE
    INT_REV NOT NULL NUMBER(6,0)
    If I use SQL Navigator this insert working fine
    insert into SPV_BOQ_BOM_POS_ACTIVITIES
    (BOQ_HEADER_ID, BB_ID, BOQ_ID, PROJ_ID, ACT_GROUP_CODE, ACT_CODE_1, QTY_1)
    values (5050, 5015, 30486, 'B39368', 'TEST', '0101010101010101', 1709)
    1 row(s) inserted
    Instead using the Screen, at runtime, I receive the message:
    FRM-40400 Transation Complete: 1 records applied and saved
    but nothing is saved in the table SP_BOQ_BOM_POS_ACTIVITIES, and the view SPV_BOQ_BOM_POS_ACTIVITIES contain the calculated QTY_1 for the 'key', with null value.
    Moreover If in the field QTY_1 (NUMBER) I put a character, instead a Number, just to see if the Screen attempts or not an UPDATE or AN INSERT, the message is FRM-40509: Oracle Error. UNABLE TO UPDATE RECORD. Why happen an Update and not an INSERT using the Screen?
    In effect, the trial using SQL navigator of the following statement
    insert into SPV_BOQ_BOM_POS_ACTIVITIES
    (BOQ_HEADER_ID, BB_ID, BOQ_ID, PROJ_ID, ACT_GROUP_CODE, ACT_CODE_1, QTY_1)
    values (5050, 5015, 30486, 'B39368', 'TEST', '0101010101010101', 'r');
    I got Invalid Number and it's ok as answer from the database.
    Edited by: fmariani on 30-apr-2009 1.51

  • Create a new view in a enhance component

    Hi All,
              I want to create a new view for sales order and quatation in a component BP_factsheet.When i craete new view ,it is asking about some value like model node, bol entity, higher level, bol realtion.after that is is asking context node ,bsp application ,custome controller and view type.How can i get these value .when i create a new view then have to add these view in run time repositry under a window or not?
    Thanks in advance....
    Vishwas

    Hello Vishwas,
    You might be interested in knowing how to customise the new UI to add a new view using the enhancement concept.
    Please refer to the published document on the service marketplace:
    http://help.sap.com/saphelp_crm60/helpdata/en/1a/023d63b8387c4a8dfea6592f3a23a7/frameset.htm
    refers to the link at
    service.sap.com/okp
    Inside this go to:
    SAP CRM 2006s: Learning Map for Technology Consultants
    wherein you can find the cookbook to perform similar operation in detail.
    SAP CRM UI Cookbook
    I hope this helps.

  • Creating a Role view in a workflow

    I'm trying to create a role view in my workflow with the following code but it gives me an error: com.waveset.util.InternalError: Unable to locate ViewHandler for 'role'.
    <Action application='com.waveset.session.WorkflowServices'>
                <Argument name='op' value='createView'/>
                <Argument name='type' value='Role'/>
                <Return from='view' to='view'/>
              </Action>Has anyone created a role from a workflow, java or SPML?

    nvm figured it out.
    <Action id='0' application='com.waveset.session.WorkflowServices'>
              <Argument name='op' value='createView'/>
              <Argument name='type' value='Role'/>
              <Argument name='viewId' value='Role'/>
              <Argument name='Form' value='Empty Form'/>
              <Argument name='authorized' value='true'/>
              <Return from='view' to='role'/>
            </Action>       

  • Creating a new view in a component

    HI,
    I am trying to create a new view in a BSP component using the wizard. But the context nodes are not getting created. Its throwing up an error - "View not copied with wizard; processing not possible".
    What could be the problem ? Pls help.
    Regards,
    Aravind.

    Hi Arvind,
    Before posting error, please search for it.
    Here is what i found here in 2007 forum itself.
    I guess you have not enhanced your component and your view.
    Without enhancing the component it is not possible to add a new context node.
    Here is a very helpful, follow it and the the other link within this thread,
    both are very useful in this regard.
    Web Client Context Node Enhancement
    Thanks & Regards
    Shiven

  • Creating a Maintenance View Table on SE11

    Hi, Experts.  I want to create a Maintenance View Table on SE11 (View option on SE11 and then selecting Maintenance view from the View Type List).  Is there anyone who have a document that will be able to help me create this table or pointers that will help me.
    Thanks for your help.
    Regards

    hi,
    steps are
    Goto SE 11.
    Choose the radio button of Views, give the view name and create.
    Enter the short description and table names for which u want to create view.
    Select the 2nd table-name field and click on relationship button.
    Then goto view fields tab.
    Select the table name and the fields u want to display.
    Save and activate.
    please see this
    steps  to create a view

  • How to create a Maintenance view in order to update 4 tables

    Hello,
    I want to update 4 tables having the same key. MANDANT + SIRET (fiscal french ID).
    I try to create a maintenace view, i need to update the 4 tables using a single screen.
    When i use the relationship the system display a message "Relationships with unsuitable cardinality"
    The first table contain only the ID, the 3 others contains some informations (adress, name, and others)
    Thanks for your help
    Christophe

    Hello,
    you could check, if your other three tables have a correct foreign key definition on the field  SIRET.
    Tranaction SE11 -> pstion on the field and press the foreign key button.
    Check Table has to be your first table; cardinality has to be 1 :1 or 1 to N.
    Regards Wolfgang

Maybe you are looking for

  • Page is jumbled

    I just made a change to a page in my muse site and when viewed in the browser it is all over the place. Preview works fine but the live version is a mess. I accepted the latest update from muse. I'm on a mac, I saved the site, exported to html and us

  • Can't open pdf's on outlook mail

    pdf's on outlook incoming mail won't open.  Have the latest reader version.

  • HELP - Afraid to upgrade my iTunes!

    I have not upgrade iTunes in QUITE some time, because the first and second times I upgraded (years ago) I lost my entire music library and playlists. That was then. I downloaded the few dozen songs from scratch and, yes, paid Apple AGAIN for those th

  • Command Accounting

    Hi, Is there any way to enable command accounting except TACACS ?.

  • Lightroom 3 Beta tethering issue

    Hi I am testing out Lightroom 3 beta to see if it will fit my everyday needs in photography. I have run into a few bugs and wanted to know is this because of the BETA program I am running. I am using it on a new iMac computer. When I plug my camera i