Creating a view for a datasource with KONP

Hi.
I have the many times discussed problem with the reference field in datasources are not possible. Most provided solution was to create a view on KONP and e.g. RV13A. But if I want do this I run into an error:  Table RV13A is not transparent
Could someone give me a hind how to solve this? I found no article about that.
Thanks in advance,
Nils

Hi.
I ever done that with FM, but a view would be much easier sometime.
Thanks for your replies, perhaps I will try to use an InfoSet, but to do it by FM would not be much complicated.
THX Nils

Similar Messages

  • 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

  • I want to create home page for my application with short URL

    I want to create home page for my application with short URL
    as when I want user to use my application user must go to URL like this
    http://127.0.0.1:7101/My-Project/faces/app/empModule/allEmployees/viewMyEmployees.jspxI want the user to use short URL , How can I use shorter URL not all this one.
    I want shorter URL for my application not to write full path .
    thanks in advance.
    Edited by: user611775 on Oct 31, 2010 10:21 PM

    Well,
    it's up to you. The first part (Mcit-Project-ViewController-context-root) is the context root which you define in the view controller project. 'faces' is the name the servlet filter reacts on. You can't omit it but shorten it in web.xml. The rest is your directory structure. I'm not sure how to shorten this other as to move the jspx files back into the web root folder.
    By the way an ADF faces app never uses the .jspx at the end of the url. If you specify '.jspx', you only render the page but don't start the work flow.
    Timo

  • [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

  • Weblogic datasource - Created "1" resources for pool "DataSource", out of which "1" are available and "0" are unavailable.

    I am performing some transactions with java application deployed on weblogic. I faced some issue of getting the transaction response with some delay. I found these below mention messages logged into the managed server logs. 
    Following is my datasource settings
    Initial Capacity: 2
    Maximum Capacity: 100
    Capacity Increment: 20
    Anyone have idea why these following errors coming.
    ####<Nov 26, 2013 2:25:41 PM PKT> <Info> <Common> <machine1> <managed_server> <[ACTIVE] ExecuteThread: '25' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <BEA1-1B6BE1217D118A188C49> <> <1385457941513> <BEA-000628> <Created "1" resources for pool "DataSource", out of which "1" are available and "0" are unavailable.>
    ####<Nov 26, 2013 2:25:42 PM PKT> <Info> <Common> <machine1> <managed_server> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <BEA1-1B6EE1217D118A188C49> <> <1385457942413> <BEA-000628> <Created "1" resources for pool "DataSource", out of which "1" are available and "0" are unavailable.>
    ####<Nov 26, 2013 2:25:43 PM PKT> <Info> <Common> <machine1> <managed_server> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <BEA1-1B71E1217D118A188C49> <> <1385457943792> <BEA-000628> <Created "1" resources for pool "DataSource", out of which "1" are available and "0" are unavailable.>
    ####<Nov 26, 2013 3:12:28 PM PKT> <Info> <JDBC> <machine1> <managed_server> <[ACTIVE] ExecuteThread: '19' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1385460748433> <BEA-001128> <Connection for pool "DataSource" closed.>
    ####<Nov 26, 2013 3:12:28 PM PKT> <Info> <JDBC> <machine1> <managed_server> <[ACTIVE] ExecuteThread: '19' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1385460748433> <BEA-001128> <Connection for pool "DataSource" closed.>
    ####<Nov 26, 2013 3:12:28 PM PKT> <Info> <JDBC> <machine1> <managed_server> <[ACTIVE] ExecuteThread: '19' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1385460748433> <BEA-001128> <Connection for pool "DataSource" closed.>
    ####<Nov 26, 2013 3:12:28 PM PKT> <Info> <JDBC> <machine1> <managed_server> <[ACTIVE] ExecuteThread: '19' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1385460748434> <BEA-001128> <Connection for pool "DataSource" closed.>

    i know this,
    The cause of the problem is: owing to the client's operations staff to modify the datasource ,and reployed
    thinks

  • BAPI For Create Goods Issue for Sales order with picked quantity

    Hi friends,
            Is there any BAPI available to create Goods issue For sales order with picked quantity...............?
    we hv used BAPI_OUTB_DELIVERY_CREATE_SLS
    with sales order .......its creating delivery order but not doing goods issue with piked quantity........

    pls,reply its argent

  • How to create a record for table PLAF with order type 'NB'.

    How to create a record for table PLAF with order type 'NB'(standard purchase order).
    who can tell me the T-code or some usefull information?
    Thanks.

    Hi
    This will be updated automatically when generate planned orders thru MRP. (MD02)
    regards
    Srinivas

  • 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.

  • Create a value for Decision table with gc_option_not_initial.

    Dear Expert,
    I am filling in a decision table with coding. I load an excel file, create a range for eatch value with the folling method:
       cl_fdt_convenience=>create_simple_range( EXPORTING iv_application_id = lv_application_id
                                                                                  iv_option = if_fdt_range=>gc_option_equal
                                                                                  iv_test_parameter = lv_id
                                                                                  iv_low = lv_value
                                                                                  iv_activate = abap_false
                                                                        IMPORTING ev_range_id = ls_table_data-expression_id ).
                INSERT ls_table_data INTO TABLE lts_table_data.
                CLEAR  ls_table_data-expression_id.
    But the following code is not working:
       cl_fdt_convenience=>create_simple_range( EXPORTING iv_application_id = lv_application_id
                                                                                  iv_option = if_fdt_range=>gc_option_not_initial
                                                                                  iv_test_parameter = lv_id
                                                                                  iv_activate = abap_false
                                                                        IMPORTING ev_range_id = ls_table_data-expression_id ).
                INSERT ls_table_data INTO TABLE lts_table_data.
                CLEAR  ls_table_data-expression_id.
    What is wrong?
    How to create than a range for a decision table cell with option: 'not initial'?
    Thank you very much in advance?
    Best regards
    Ahmed

    I found the same problem in the comments of this post Filtering Rules using SAP HANA Decision Table.
    A possible solution is to implement a solution directly in SQLScript. Hints can be found in Filtering Rules using SAP HANA Decision Table

  • 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

  • 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 sql query for item master with operator LIKE with variables?

    hi all,
    How to create sql query for item master with
    operator LIKE(Contains,Start With,End With) with variables using query generator in SAP B1 ?
    Jeyakanthan

    Hi Jeyakanthan,
    here is an example (put the like statement into the where field)
    SELECT T0.CardCode, T0.CardName FROM OITM T0 WHERE T0.CardName Like '%%test%%'
    The %% sign is a wildcard. If you need start with write 'test%%' and otherwise ends with '%%test'. For contains you need '%%test%%'. You also could combinate this statements like 'test%%abc%%'. This means starts with test and contains abc.
    Regards Steffen

  • Creating View for a table with parent child relation in table

    I need help creating a view. It is on a base table which is a metadata table.It is usinf parent child relationship. There are four types of objects, Job, Workflow, Dataflow and ABAP dataflow. Job would be the root parent everytime. I have saved all the jobs
    of the project in another table TABLE_JOB with column name JOB_NAME. Query should iteratively start from the job and search all the child nodes and then display all child with the job name. Attached are the images of base table data and expected view data
    and also the excel sheet with data.Picture 1 is the sample data in base table. Picture 2 is data in the view.
    Base Table
    PARENT_OBJ
    PAREBT_OBJ_TYPE
    DESCEN_OBJ
    DESCEN_OBJ_TYPE
    JOB_A
    JOB
    WF_1
    WORKFLOW
    JOB_A
    JOB
    DF_1
    DATAFLOW
    WF_1
    WORKFLOW
    DF_2
    DATAFLOW
    DF_1
    DATAFLOW
    ADF_1
    ADF
    JOB_B
    JOB
    WF_2
    WORKFLOW
    JOB_B
    JOB
    WF_3
    WORKFLOW
    WF_2
    WORKFLOW
    DF_3
    DATAFLOW
    WF_3
    WORKFLOW
    DF_4
    DATAFLOW
    DF_4
    DATAFLOW
    ADF_2
    ADF
    View
    Job_Name
    Flow_Name
    Flow_Type
    Job_A
    WF_1
    WORKFLOW
    Job_A
    DF_1
    DATAFLOW
    Job_A
    DF_2
    DATAFLOW
    Job_A
    ADF_1
    ADF
    Job_B
    WF_2
    WORKFLOW
    Job_B
    WF_3
    WORKFLOW
    Job_B
    DF_3
    DATAFLOW
    Job_B
    DF_4
    DATAFLOW
    Job_B
    ADF_2
    ADF
    I implemented the same in oracle using CONNECT_BY_ROOT and START WITH.
    Regards,
    Megha

    I think what you need is recursive CTE
    Consider your table below
    create table basetable
    (PARENT_OBJ varchar(10),
    PAREBT_OBJ_TYPE varchar(10),
    DESCEN_OBJ varchar(10),DESCEN_OBJ_TYPE varchar(10))
    INSERT basetable(PARENT_OBJ,PAREBT_OBJ_TYPE,DESCEN_OBJ,DESCEN_OBJ_TYPE)
    VALUES('JOB_A','JOB','WF_1','WORKFLOW'),
    ('JOB_A','JOB','DF_1','DATAFLOW'),
    ('WF_1','WORKFLOW','DF_2','DATAFLOW'),
    ('DF_1','DATAFLOW','ADF_1','ADF'),
    ('JOB_B','JOB','WF_2','WORKFLOW'),
    ('JOB_B','JOB','WF_3','WORKFLOW'),
    ('WF_2','WORKFLOW','DF_3','DATAFLOW'),
    ('WF_3','WORKFLOW','DF_4','DATAFLOW'),
    ('DF_4','DATAFLOW','ADF_2','ADF')
    ie first create a UDF like below to get hierarchy recursively
    CREATE FUNCTION GetHierarchy
    @Object varchar(10)
    RETURNS @RESULTS table
    PARENT_OBJ varchar(10),
    DESCEN_OBJ varchar(10),
    DESCEN_OBJ_TYPE varchar(10)
    AS
    BEGIN
    ;With CTE
    AS
    SELECT PARENT_OBJ,DESCEN_OBJ,DESCEN_OBJ_TYPE
    FROM basetable
    WHERE PARENT_OBJ = @Object
    UNION ALL
    SELECT b.PARENT_OBJ,b.DESCEN_OBJ,b.DESCEN_OBJ_TYPE
    FROM CTE c
    JOIN basetable b
    ON b.PARENT_OBJ = c.DESCEN_OBJ
    INSERT @RESULTS
    SELECT @Object,DESCEN_OBJ,DESCEN_OBJ_TYPE
    FROM CTE
    OPTION (MAXRECURSION 0)
    RETURN
    END
    Then you can invoke it as below
    SELECT * FROM dbo.GetHierarchy('JOB_A')
    Now you need to use this for every parent obj (start obj) in view 
    for that create view as below
    CREATE VIEW vw_Table
    AS
    SELECT f.*
    FROM (SELECT DISTINCT PARENT_OBJ FROM basetable r
    WHERE NOT EXISTS (SELECT 1
    FROM basetable WHERE DESCEN_OBJ = r.PARENT_OBJ)
    )b
    CROSS APPLY dbo.GetHierarchy(b.PARENT_OBJ) f
    GO
    This will make sure it will give full hieraracy for each start object
    Now just call view as below and see the output
    SELECT * FROM vw_table
    Output
    PARENT_OBJ DESCEN_OBJ DESCEN_OBJ_TYPE
    JOB_A WF_1 WORKFLOW
    JOB_A DF_1 DATAFLOW
    JOB_A ADF_1 ADF
    JOB_A DF_2 DATAFLOW
    JOB_B WF_2 WORKFLOW
    JOB_B WF_3 WORKFLOW
    JOB_B DF_4 DATAFLOW
    JOB_B ADF_2 ADF
    JOB_B DF_3 DATAFLOW
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • Interface Type "ABAP Dictionary-Based Interface" not generating Interac

    Hi All, I am getting problem in ABAP Adobe interactive forms in ECC6. I tried designing Adobe interactive form by 2 following ways: 1) in SFP -->> Interface Type -->"ABAP Dictionary-Based Interface" 2) in SFP -->> Interface Type -->"XML Schema-Based

  • Question about cache of sequence

    desc table temp1 id number(p.k) comp number(5) i have a trigger call BI_TEMP1 Trigger Type BEFORE EACH ROW Triggering Event INSERT begin for c1 in ( select TEMP1_SEQ.nextval next_val from dual ) loop :new.ID := c1.next_val; end loop; end; the sequenc

  • Wlc 5508 and 40 access point 1141n disturbance in the temp response

    Hello, i have a wlc 5508 and 40 access point 1141n there are 1500 users connected with this controller 5508. but when i ping at my gateway  ,there is a disturbance in the temp response . Here below a snapshot: Réponse de 172.16.1.1 : octets=32 temps=

  • Error import/install application

    I am moving an application to a new workspace with a differently named schema. During the Install process, upon choosing the Parsing Schema, Build Status and Install as Application I get this error message: NOT COMPATIBLE (Your export may contain cal

  • Cursor freezes up when flash memory is conected to USB Port.

    I´m working with a Power Mac G4 1.25 Mhz 1.75 Gb SDRAM. Anytime I connect a flash memory into USB port cursor freezes up. I disconect the flash drive and cursor works fine. I tried with several pen drives and it hapens the same. this starts few days