Reg: Join Conditions for Tables to create a View for Generic Extraction

Hi Experts,
Am trying to extract the data from Solman, for this purpose am creating a Generic Extractor based on three tables. So, can anyone please help me out by providing the join conditions to create a view based upon the following three tables,
1. CRM_ORDERM_H
2. DNOD_NOTIF
3. DNOD_NOTIF_S
Anyways i require the following fields in the extractor finally:
CRM CHANGED AT
GUID
SAP COMPONENT
RELEASE
REPORTED BY
These are the some of the major fields that i require in the final extractior. Please help me out ASAP with the table join conditions..
Will Assign Points for the helpfull answer...
Thanks,
Gattu.

Hi,
I don't know the table CRM_ORDERM_H however you can link DNOD_NOTIF and DNOD_NOTIF_S
DNOD_NOTIF_S-CLIENT = DNOD_NOTIF-CLIENT
DNOD_NOTIF_S-GUIDS = DNOD_NOTIF-GUIDS
For the third table could you please paste here its definition like the hereunder?
Transp. table      DNOD_NOTIF       Active                                                                   
Short Text         Notification Header                                                                       
   Field           KeyInitData element    Data TyLengthDecimaShort Text                                      
   CLIENT        X    X   MANDT           CLNT        3     0Client                                          
   GUIDH         X    X   DNOT_GUIDH      RAW        16     0GUID Notification                               
   .INCLUDE               DNOS_NOTIF_INT  STRU        0     0Notifications (Header, Internal Fields)         
   OBJNR                  DNOT_OBJNR      CHAR       22     0Status Management Object Number                 
   STATUS                 DNOT_STATUS     CHAR        1     0Notification Status                             
   DELETED                DNOT_DELE_N     CHAR        1     0Deletion Indicator Notification                 
   PROCESSOR              DNOT_PROC       CHAR       12     0Current Processor                               
   TYPE_PROC              DNOT_TYPE_PRC   CHAR        2     0Type of Processor                               
   REPORTER               DNOT_REPORTER   CHAR       12     0Reported By                                     
   TYPE_REPO              DNOT_TYPE_REP   CHAR        2     0Type of Notification Creator                    
   CREA_TSTMP             DNOT_CREA_TSTMP DEC        15     0Entry Time Stamp                                
   CHNG_TSTMP             DNOT_CHNG_TSTMP DEC        15     0Time of Last Change                             
   START_TSTMP            DNOT_START_TSTMPDEC        15     0Initial Response Time - Time Stamp              
   END_TSTMP              DNOT_END_TSTMP  DEC        15     0Requested End of Processing - Time Stamp        
   CLO_TSTMP              DNOT_CLO_TSTMP  DEC        15     0Completion Time Stamp                           
   .INCLUDE               DNOS_NOTIF_EXT  STRU        0     0Notifications (Header, External Fields)         
   NUMB                   DNOT_NUM        CHAR       12     0Notification Number (External)                  
   REFNUM                 DNOT_REFNUM     CHAR       20     0External Reference Number                       
   TYPE_NOTIF             DNOT_TYPE_N     CHAR        6     0Message category                                
   CATEGORY               DNOT_CATEGORY   CHAR       12     0Topic, Area                                     
   SUBJECT                DNOT_SUBJECT    CHAR       60     0Re:                                             
   PRIORITY               DNOT_PRIORITY   CHAR        1     0Notification priority                           
   LANGUAGE               DNOT_LANG_N     LANG        1     0Notification Language                           
hope this helps...
Olivier.

Similar Messages

  • [ADF Help] How to create a view for multiple tables

    Hi,
    I am using Jdeveloper 11G and ADF framework, and trying to create a view to update multiple tables.
    ex:
    Table A has these fields: ID, Name
    Table B has these fields: ID, Address
    A.ID and B.ID are primary keys.
    B.ID has FK relationship with A.ID
    (basically, these tables have one-to-one relation)
    I want to create a view object, which contains these fields: B.ID (or A.ID), A.Name, B.Address.
    So I can execute C,R,U,D for both tables.
    I create these tables in DB, and create entity objects for these tables.
    So there are 2 entity objects and 1 association.
    Then I create a view object based on B and add fields of A into the view:
    If the association is not a "Composition Association",
    when I run the model ("Oracle Business Component Browser") and try to insert new data, fields of A can't edit.
    If the association is a "Composition Association", and click the insert button, I will get
    "oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity"
    If I create a view object based on A and add filed of B into the view:
    When I run the model and try to insert new data, fields of B can't edit, no matter the association is or is not a composition association.
    So... how can I create a view for multiple tables correctly?
    Thanks for any advices!
    Here are some pictures about my problem, if there is any unclear point, please let me know.
    http://leonjava.blogspot.com/2009_10_01_archive.html
    (A is Prod, B is CpuSocket)
    Edited by: user8093176 on Oct 25, 2009 12:29 AM

    Hi Branislav,
    Thanks, but the result is same ....
    In the step 2 of creating view object, I can select entity objects to be added in to the view.
    If I select A first, and then select B (the "Source Usage" of B is A), then finishing the wizards.
    When I try to create a new record in the view, I can't edit any properties of B (those files are disabled).
    If I select B first, and then select A in crating view object, the result is similar ...
    Thanks for any further suggestion.
    Leon

  • Do I need to create a view for this?

    Hi Ihave got 2 tables emp and project
    In emp tabe:
    emp_no
    family name
    given name
    In porgect table:
    emp_no
    status(assigned,unassigned)
    start_date
    end_date
    emp_no Family_name given_name
    1 Smith John
    In project table same employee can have many assigement eg
    emp_no status start_date end_date
    1 assigned 01-may-08 01-july-08
    1 assigned 01-sep-08 01-july-09
    1 unassigned 01-july-09 01-oct-09
    In the form:
    there are 2 querable fields "project ends between field1(date) and field2(date)" which is used to
    retrive records which have end date between field1 and field2.
    The following fields are needed to get from database:
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Requirements:
    1. project.start_date and project.end_date must be the latest project_end_date for the same emp
    so in the above sample date
    2. No. of time assigned is a count of total of number records which have status='assign'
    So for the given sample data the record expected after query would be(field1=01-jun-08 field2=02-july-09)
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Smith John 01-sep-08 01-july-09 2
    What is the best approach to get:
    1 The lastest project(latest end_date) for the emp
    2. get No.of time assigned.
    Do I need to create a view for this? If yes, any sample sql code this this?
    Thanks for your help

    Hi W1zard,
    Thanks for your reply. Could you clarify the following points for me:
    1.) you could create a master block basing on your emp table and a detail block basing on your project table with the relation over emp_no. set the default_where clause of your detail block programmatically using
    set_block_property('project', default_where, 'status = ''assigned'' and <your_date_criteria>');
    Q1: where I pit this code? in pre-query trigger in detail block?
    2.) Of course you could create a view to join both of your tables if you don't want to use master detail blocks; Also do the join over emp_no
    create or replace force view v_emp as
    select emp.family_name, emp.given_name, project.start_date, project.end_date
    from emp, project
    where emp.emp_no = project.emp_no
    Q2 As I mentioned before, there are multipal entries for the same emp in project table and we only need the maching record from project table which has latest end_date. So I think I need something like
    max(project.end_date) somewhere in create view to make sure only one record for one employee.
    Also is there possible to include the no. of assigned field(select count(*) from project where status='assigned' and emp=emp_no) into the view as well?
    Q3 All the fields mentioned above are diaplay-only. So Can I create a control block which has all the fields from emp and project. Then populate them with my sql. The question is
    where I put this customerised sql so when user click excute query. My sql will run and display one the form?
    REally appreciated your help!
    Michael

  • Creating a view for a datasource

    Hi experts,
    I'm kinda new in BW and ABAP, but I have a requirement to get a datasource that contains data between SAP Tables. The scenario should be like this :
    1. Get all Personal Number from PA9038 (Customized Infotype) within a period ( ENDDA & BEGDA as the parameters )
    2. Get only the last Cost Center each person has from PA0001-KOSTL
    3. Get only the last Assessment Value from PA9040 (Customized Infotype)
    Is there any way to create a view based on that scenario? I've tried using the create view via SE11 and I was confused about joining the tables to get only the last data from PA0001 and PA9040.
    Or is there any method to build a Fact Table that contains the data I need?
    PS:
    Actually if I used ABAP Commands, I can generate this data in Internal tables and joining them into one internal tables.
    Probably the ABAP Codes are like this :
    SELECT pernr endda begda
       FROM pa9038
       INTO   CORRESPONDING FIELDS OF TABLE itab1.
    IF NOT itab1[] is initial.
       SELECT pernr endda begda kostl
           FROM pa0001
              FOR ALL ENTRIES IN itab1
           INTO   CORRESPONDING FIELDS OF TABLE itab2.
    *For getting the last record I can manipulate the data in itab2 like this
    SORT itab2 BY pernr ASCENDING endda DESCENDING begda DESCENDING.
    DELETE ADJACENT DUPLICATES FROM itab2 COMPARING pernr.
    ENDIF.
    LOOP AT itab1.
        READ TABLE itab2.
    ...... and so on.
    ENDLOOP.
    Thanks for the help...

    Hi Febrain,
    Identify the base tables from where you can fetch the data from. Then Using those tables you create a VIEW. Using the view you create a generic Datasouce.
    Please use this url for more info..
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/content.htm
    Regards

  • Creating Classification view for material through Standard Function

    hi,
    I have created the material code through BAPI_MATERIAL_SAVEDATA. For quality inspection i have used BAPI_MATINSPCTRL_SAVEREPLICA. i have to create classification view for that material code. Can anyone suggest me which standard function helps me to create the classification view.
    Thanks in advance.
    Senjey

    hi,
    i have tried that function module. I have mentioned the code below.
    i_object = '000000151860630000'.
    i_alloc_num-CHARACT = 'THICKNESS'.
    i_alloc_num-VALUE_FROM = '5.70'.
    append i_alloc_num.
    i_alloc_char-charact = 'SHAPES'.
    i_alloc_char-VALUE_CHAR = 'PLATE'.
    append i_alloc_char.
    clear  i_alloc_char.
    i_alloc_char-charact = 'CATEGORY'.
    i_alloc_char-VALUE_CHAR = 'CS'.
    append i_alloc_char.
    clear  i_alloc_char.
    CALL FUNCTION 'BAPI_OBJCL_CREATE'
      EXPORTING
        OBJECTKEYNEW            = i_object
        OBJECTTABLENEW          = 'MARA'
        CLASSNUMNEW             = 'RAWMATERIAL'
        CLASSTYPENEW            = '001'
      STATUS                  = '1'
      STANDARDCLASS           =
      CHANGENUMBER            =
      KEYDATE                 = SY-DATUM
      NO_DEFAULT_VALUES       = ' '
    IMPORTING
      CLASSIF_STATUS          =
      TABLES
        ALLOCVALUESNUM          = i_alloc_num
        ALLOCVALUESCHAR         = i_alloc_char
        RETURN                  = i_ret.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT = 'X'.
    But i am getting the error 'Assignment exists and is valid '.
    Please help.
    Regards,
    Sengathir.J

  • How  to create classification view for material?

    HI All,
    How to create classification view for material? is there any function  module?
    pls let me know.
    Bandi

    check the standard include "LCLBPAU14" this is using the following F.M
    call function 'BAPI_OBJCL_CREATE'
    exporting
    objectkeynew = l_object
    objecttablenew = l_objecttable
    classnumnew = classnum_new
    classtypenew = l_classtype
    status = status
    standardclass = standardclass
    changenumber = changenumber
    keydate = keydate
    no_default_values = no_default_values
    importing
    classif_status = classif_status
    tables
    allocvaluesnum = allocvaluesnum
    allocvalueschar = allocvalueschar
    allocvaluescurr = allocvaluescurr
    return = return.

  • Creating relational view for an ODBC result set?

    Hello,
    I'm trying to create a view for the data available from the Siebel Analytics server (SAS) query's result set by executing pass through sql. SAS reads from files and multiple other databases to provide the result set.
    The query sent to pass has its own properitary syntax and is not SQL.
    ie, I'm trying to achieve something like this :
    create view analytics_wrapper_view as
    select * from
    <
    dbms_hs_passthrough('my custom sql understood by SAS')
    dbms_hs_passthrough.fetch_rows
    >
    Cant use a function selecting from dual as there could be several rows returned from this operation. If I retain it as a view, I can avoid data duplication. If this is not possible, a table approach could be considered.
    Any thoughts or inputs on this would be highly appreciated.

    On your server..
    - On the FCS server go to OSX Workgroup Manager.
    - Create a group and name it something cool
    - save and exit
    Final Cut Server Client...
    (Logged in as admin)
    - select Administration in the client.
    - Go to Group Permissions
    - click Create New Group and then select cool new group name
    and select BROWSER from the PERMISSION SET list
    - save and go back to OSX
    Back in OSX Workgroup Manager...
    - create users and assign them to your cool group
    DONE!

  • How to create thumbnail view for html files

    hi,
    I want to create thumbnail view for html files, not for image files.. can we treat html files as images..
    Anybody help me..

    You can right click on your Desktop and select New Folder.  In Finder File > New Folder should work too, not in front of my Mac.
    Welcome to back by the way.  You might find these websites helpful.
    Switch 101
    Mac 101

  • Table VBDKR(Document Header View for Billing)?

    Hi.
    What is the use of table VBDKR(Document Header View for Billing)?
    and what is the difference in the fields VBELN_VAG,VBELN_VKT,VBELN_VG2 of that table?
    thanks

    HI
    GOOD
    VBDKR=>Document Header View for Billing
    VBELN_VAG=>Sales and Distribution Document Number
    VBELN_VKT=>Sales and Distribution Document Number
    VBELN_VG2=>Sales and Distribution Document Number
    I DONT THINK THERE IS ANY DIFFERENCE BETWEEN THESE THREE FIELDS
    THANKS
    MRUTYUN

  • Join Condition between tables

    Hi all,
    Is it possible to propose a join condition (using SQ02) between two fields of two tables other than what is proposed by the system?
    Thanks
    Sandeep

    Hi Sandeep,
          You can very much match other fields of two tables in SQ02.
      1. Goto SQ02
      2. Give the infoset name
      3. Goto change mode
      4. Press the Join button, it will display the join conditions between the two tables.
      5. Press Join Conditions, it will propose the system generated join conditions
          with key fields
      6. If you want to match your own fields other than the key fields you can just 
          point the mouse pointer on the field of the first table and just drag it to the field
          of the second table. It will create a join condition.
      7. Save the infoset.
      Regards,
        Jayaram...

  • Creating maintainance view for a customising table

    Hello Team,
    I have a scenario where we have to create a maintainance view for a standard customising table. But all changes to entries for customising tables will prompt for a transportable change request. How to switch off this prompt for change request? Please let me know your views on this.
    Thanks!

    create a maintainance view for a standard customising table
    Doing that wont be a good idea.
    If you only want to disable the transport request in a production system, then call transaction SOBJ. Give the name of the object = the maintenace view, set the "[Current Settings|http://help.sap.com/saphelp_glossary/en/35/2a2c6ad9685cd5e10000009b38f974/content.htm]" flag on. (eg. F-60 on V_T001B for "Posting Periods: Specify Time Intervals")
    Regards,
    Raymond

  • WITH_ITEM table data created without taxcode for cleared credit memos

    Hi SAP experts,
    We are trying to update tax withholding information for credit memos which are already cleared using program RFWT0020.
    But this is not returning any information. When i debug the program i found out that in table WITH_ITEM,
    already entry exists for same document number but tax code is blank and all the other fields are also blank.
    This document number belongs to previous fiscal year.
    Can you please let me know why WITH_ITEM table is updated with blank values and is there  any way to update the table with correct
    taxwitholding data.
    Thanks in advance,
    Greeshma.

    Hi Greeshma,
    In your case the problem happened because of Withholding Tax code not yet selected while posting the document or manually tax code has been deleted while posting the document or Withholding tax code has not been assigned to Vendor master.
    Since the Percentage maintains at Withholding tax code level until unless WHT code is not selected it will not consider Withholding tax.
    You can see the same thing in the Table WITH_ITEM. For problem related documents you can't find Withholding tax code in the table WITH_ITEM.
    Even though automatic posted GL Account (withholding tax GL Account) also you can't find in the document level (FB03).
    The same document number should not be there in the transaction code J1INMIS also.
    For  Tax codes/type deleted in the Vendor master errors we can resolve the errors where as the above said problems it is not possible to update the With holding tax amount.
    Hence, it is not possible to bring the values.
    Please reverse the documents and post again with proper inputs.
    Thanks

  • Problem encountered when join two remote tables in a materialized view

    I'm using oracle 9.2.0.6
    1> I have two tables:
    CREATE TABLE TEST
    A VARCHAR2(100 BYTE),
    C DATE
    CREATE TABLE TEST1
    A VARCHAR2(100 BYTE),
    B TIMESTAMP
    2>. I defined a prebuild table:
    CREATE TABLE MV_TEST1
    ID1 ROWID,
    A VARCHAR2(100 BYTE),
    ID2 ROWID,
    B TIMESTAMP(6),
    C DATE
    3> I created mview logs:
    CREATE MATERIALIZED VIEW LOG ON PSI_TEST.TEST
    WITH ROWID
    INCLUDING NEW VALUES;
    CREATE MATERIALIZED VIEW LOG ON PSI_TEST.TEST1
    WITH ROWID
    INCLUDING NEW VALUES;
    4> when I create mview:
    CREATE MATERIALIZED VIEW PSI_TEST.MV_TEST1
    ON PREBUILT TABLE WITH REDUCED PRECISION
    REFRESH FAST ON DEMAND
    WITH PRIMARY KEY
    AS
    select
    test.rowid id1,
    test.a,
    test1.rowid id2,
    test1.b,
    cast(null as date) c
    from test , test1
    where test.a = test1.a(+);
    It is created successfully.
    5> problem:
    when I use remote tables to do the same thing, say test and test1 are in another instance and are connected by a dbLink, I couldn't create the mview successfully:
    CREATE MATERIALIZED VIEW PSI_TEST.MV_TEST1
    ON PREBUILT TABLE WITH REDUCED PRECISION
    REFRESH FAST ON DEMAND
    WITH PRIMARY KEY
    AS
    select
    a.rowid id1,
    a.a,
    b.rowid id2,
    b.b,
    cast(null as date) c
    from test@dbl a, test1@dbl b
    where a.a = b.a(+);
    when run above statement, I got:
    ORA-12015: cannot create a fast refresh materialized view from a complex query
    Any ideas? Or joining two table through a dblink for a mview is not allowed at all?
    Thanks in advance.

    No one has a clue?
    Message was edited by:
    lzhwxy

  • How to create a view for all Service Requests that are not approved by reviewer

    Hallo,
    I want to create a view in the Service Requests library that shows all SRs that are not approved. How to configure condition that says: if a SR has related Review Activity which is In Progress, show that SRs?
    I couldn't find this when creating the view. Thank you.

    So here's the first problem with that: Which review activity? a SR can contain multiple RAs, so how do we decide if an arbitrary SR is approved or not? 
    As to the specific language you use (Any child RA is In Progress) you might want to look at the criteria from the default Change approval view, which does something similar: 
    <QueryCriteria Adapter="omsdk://Adapters/Criteria" xmlns="http://tempuri.org/Criteria.xsd">
    <Criteria>
    <FreeformCriteria>
    <Freeform>
    <Criteria xmlns="http://Microsoft.EnterpriseManagement.Core.Criteria/">
    <Expression>
    <And>
    <Expression>
    <SimpleExpression>
    <ValueExpressionLeft>
    <Property>$Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity' TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity']/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$</Property>
    </ValueExpressionLeft>
    <Operator>Equal</Operator>
    <ValueExpressionRight>
    <Value>$MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$</Value>
    </ValueExpressionRight>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpressionLeft>
    <Property>$Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$</Property>
    </ValueExpressionLeft>
    <Operator>Equal</Operator>
    <ValueExpressionRight>
    <Value>$MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$</Value>
    </ValueExpressionRight>
    </SimpleExpression>
    </Expression>
    </And>
    </Expression>
    </Criteria>
    </Freeform>
    </FreeformCriteria>
    </Criteria>
    </QueryCriteria>
    This is a simple AND criteria with two componets. one looking for a Review Activity (TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity') which is related to the targetting CR by Contains Activity ($Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity';
    Context in this... context means the CR targeted by the view) where it's status (/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$) is In Progress ($MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$). The other is filtering
    for the target change request's status ( $Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$) is In Progress ($MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$). 
    You could convert the second criteria to point to SRs and SR status values, and then use the similar text for the first criteria. i'd recommend
    Anton's Advanced View Editor (or
    the free version) to do the criteria adjustment. 

  • Is it possible to use a pooled table when creating a view?

    Hi,
    I am trying to create a view based on table A005 but this table is a Pooled table and the system wont allow me to create a view on it.
    Is there any way to do this?
    Thanks,

    Hi,
      Join stmt can not be executed on Cluster tables & pooled tables.
    regards,
    ajit.

Maybe you are looking for

  • I cannot connect to secure websites! How do I fix it?

    I was going to do some homework on Google Docs, and the login page would not load! It would simply try to connect for a while, then time out. After some experimenting, I noticed this happened with all secure web pages (https://), and that non-secure

  • Problem in looking up EJB Home

    Hi, I am a starter to EJB's.. I am trying to run the "ConverterApp" application from the Sun's J2EE tutorial bundle. When I run the program thru the J2EE application client, I dont get any errors and I get the desired output. But when I use the Web c

  • Recommended way to secure page

    Hi Experts, Can u tell me what is the recommended way to secure a page?? 1. secure page def    or 2. I have to add page in bounded taskflow and secure TF. Thanks

  • Map in maverick

    I have no map in the app just a blank graph with a blue dot for my location...hmmm,whats up what do I do?

  • Selecting Multiple Images

    Recently something strange started happening ... When I select multiple images there used to be a white line around everyone selected and a bolder white line around what I call the primary ... Ok, so now, when I select multiple, eg 100, images and tr