How to create a UNION between two custom folders

Hi all, I have two different dataset based respectively on two custom folders: CF1 and CF2
The first custom folder (CF1) is joined with a custom folder called Groups and retrieve the amount of tickets_id which are owned by the groups.
The second custom folder (CF2) is joined with another custom folder called User and retrieve the amount of tickets_id which have been created by the users.
This two sets, as you have understood are independents and not correlated, because the two different amount of tickets_id follow two different logics....
However, now I need to have a single field called TICKET_ID which is the UNION (not UNION ALL) of all tickets_id retrieved by CF1 and CF2
I tried to use a complex folder...but it showed always two distinct fields...instead I want to merge the two dataset into a single field called TICKET_ID
Is there a way or a workaround to resolve this problem ???
Thanks a lot in advance
Alex

Hi Rod, just an explanation...
I red and follow the threads you mentioned in your previous mails and I'm using the context.
I summarized what I did
1) I created the context and the package (with the 2 functions inside)
2) I created on the Administrator a custom folder with the following sql:
select vl.user_id,g.group_id
from apps.jtf_rs_emp_dtls_vl vl,
apps.jtf_rs_group_members_vl g
where g.resource_id = vl.resource_id
and (g.delete_flag = 'N' AND vl.end_date_active IS NULL)
and g.group_id = COMPLAINTS_GET_GROUP_ID(SYS_CONTEXT('DISCO_CONTEXT','GROUP'))
where COMPLAINTS_GET_GROUP_ID is the package name which contains the 2 function SET_CONTEXT and SHOW_CONTEXT, even if I use directly the SYS_CONTEXT function....
3) Inside my workbook I have 2 sheets and one parameter (called GROUP):
a. inside the first sheet I created the calculated field which set the parameter value with the following code : SET_CONTEXT('GROUP',:GROUP)
b. inside the second sheet I show the list of user_id retrieved from the select above
This mechanism works perfectly, even if the refresh of the parameters on the first sheet is mandatory to see the right data on the second one. But this works ONLY if my parameter GROUP has ONLY one value....
Now I have the necessity to pass to the select a LOV of groups !
Reading the previous threads I saw that there are two ways to solve this problem: (Re: Parameters in SubQuery
a. - join your subquery to you list of values folder. If you have a parameter that is based on a LOV then there will be a folder that defines the LOV. You should be able to join the subquery folder to the LOV folder either in the EUL or in a custom folder and use the parameter to select from the LOV folder.
I can't use this option because inside the same custom folder I need to have a UNION of 2 different select with their separated joins
b. use multiple parameters, so you define a fixed number of optional parameters, say, PARAM1,PARAM2,PARAM3,PARAM4 and PARAM5. Then set them in a separate workbook and then use a condition col IN (SYS_CONTEXT('NAMESPACE','PARAM1'), SYS_CONTEXT('NAMESPACE','PARAM2'), SYS_CONTEXT('NAMESPACE','PARAM3'), SYS_CONTEXT('NAMESPACE','PARAM4'), SYS_CONTEXT('NAMESPACE','PARAM5'))
This solution is very interesting but I didn't understand how to implement it (remember that I have only one parameter "GROUP" with more than on value).
How can I modify the calculation and the condition inside the select ?
Thanks a lot

Similar Messages

  • How to create radio button between two slection screen

    hello all.
    could you please guide me how to create radio button between two SELECTION-SCREEN  in screen painter.
    Thank you,
    srinivas

    hi
    SEE THIS CODE
    REPORT  ZNNR_REPORT NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).
    ******DATA DECLARATIONS**********
    DATA : BEGIN OF IT_PLANT OCCURS 0,
            MATNR LIKE MARA-MATNR,
            WERKS LIKE MARC-WERKS,
            PSTAT LIKE MARC-PSTAT,
            EKGRP LIKE MARC-EKGRP,
           END OF IT_PLANT.
    DATA : BEGIN OF IT_PONO OCCURS 0,
            EBELN LIKE EKKO-EBELN,
            EBELP LIKE EKPO-EBELP,
            MATNR LIKE EKPO-MATNR,
            WERKS LIKE EKPO-WERKS,
            LGORT LIKE EKPO-LGORT,
           END OF IT_PONO.
    TABLES EKKO.
    ********END OF DATA DECLARATIONS*********
    ********SELECTION SCREEN DESIGN ***********
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
    SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R3 RADIOBUTTON GROUP G2 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R3.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R4 RADIOBUTTON GROUP G2.
    SELECTION-SCREEN COMMENT 5(20) TEXT-004 FOR FIELD R4.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    ******END OF SELECTION SCREEN DESIGN****************
    <b>rEWARD IF USEFULL</b>

  • How to create an relation between two block

    Oracle forms 6i
    Hai All
    I have created a form in that i have four button ADD, QUERY, SAVE ,EXIT.
    I have two block named Leader and members.
    Four fields in leader block namely name , codeno, deptcode, unitid.
    When i pressed query button and the cursor goes to name field in leader when i enter the name of leader and click
    enter i gives the codeno, deptcode and unitid of the leader_name.
    so now i have created another block in tabular structure to bring the members in the same deptcode that belongs to Leader_name.
    So pls tell me the steps how to create the relation between these two blocks.
    when i enter the leader_name and gives enter it needs to bring the codeno, deptcode, unitid and
    I also need to gives the members in that deptcode..
    Thanks In Advance
    Srikkanth.M

    If it is possible to create relationship with one table No.
    Or
    I have created a pre-Query in the detali block and my code is
    set_block_property ('block_name', default_where, 'deptcode = (select deptcode from emplmaster where name like :block_in_which_leader_name.leader_name_field');BTW no need of joining here it can be solve by set the block's where clause as u said in ur earlier post above. Just changing the little bit this statement and then try.
    If numeric
    set_block_property ('block_name', default_where, 'deptcode = '||:block_in_which_leader_name.leader_name_field);
    Otherwire
    set_block_property ('block_name', default_where, 'deptcode = '''||:block_in_which_leader_name.leader_name_field||'''');-Ammad

  • How to create a View between two Ztables?

    Hi experts,
    I have two ztables TableA and TableB both has one common field.
    Now Which type of view (Database,Maintanance,Projection or Help) I should create? If so what are the steps I should follow.
    What I suppose to do in Table/Join Condition tab ,View Flds ,Selection Conditions and Maint stsus tab.
    Reply with the detailed steps.
    Thanks in Advance,
    Dharani

    Hi,
    selection of view is depends on the type of requirement you have.
    1. To create the view go to Se11
    2. select the type of the view you required.
    3.Enter the name of the two z table in the tables and click on the relation button  so that it will automatically create the relationship between 2 table.
    4. add the addition condition if required in the join condition.
    5. In view field select the number of the field required to display in the view from both the table.
    6. specify the selection criteria in the to select the values.
    7. In maintenance tab select the appropriate option as per you requirement.
    8. save and activate the view.

  • How to create the reation between two tables without creating relation

    Hi,
    I have three tables.( A,B and C)
    I created relation between A,B and A,C.
    I want to create the relation between B,C without using realtion in oracle forms.
    Please do the needful.

    ok, now i understand your problem. It is a case of one-many-many relation between three blocks.
    In this situation what i personally follow that - save records in between when it ask for a commit. And i shall advice you to follow that only. This is the safe and easy method.
    Otherwise,
    1> make your third block a non-database block.
    2> When finish entering/modifying each data set related to 2nd block - insert/update/delete the data grammatically into a temporary table. and after that clear the 3rd block.
    3> you need to reload the record in 3rd block from the temporary table when you move to a record of 2nd block that has already been entered.
    4> now when you finally commit your form the insert/update/delete record from the temporary table into the final 3rd table.
    Now follow which ever steps is suitable for you.
    Regards,
    Tarun

  • How to create Doc Link between two document numbers?

    Hi Folks,
    I have two document numbers with different transaction type.
    I want to create a Document link between these two documents, i.e. each documents should come in Dock Flow of each other.
    How to acheive this target.
    I tried to do it by using FM CRM_DOC_FLOW_MAINTAIN_OW, but not able to achieve it.
    So please tell me how to do this thing.
    Regards
    PG

    Hi PG,
    The FM CRM_DOC_FLOW_MAINTAIN_OW should work , I am not sure what parameters you are passing. Any way you can use the CRM_ORDER_MAINTAIN as well which will eventually call CRM_DOC_FLOW_MAINTAIN_OW . Have a look of the sample code, This will give you some idea
    lw_input_field_names-fieldname  = 'GUID'.
          INSERT lw_input_field_names INTO TABLE lt_input_field_names.
          CLEAR lw_input_fields.
          lw_input_fields-ref_kind    = gc_object_kind-orderadm_h.
          lw_input_fields-objectname  = gc_object_name-orderadm_h.
          lw_input_fields-ref_guid    = lw_orderadm_h1-guid.
          lw_input_fields-field_names = lt_input_field_names.
          INSERT lw_input_fields INTO TABLE lt_input_fields.
          lw_doc_link1-objkey_a   = lw_orderadm_h-guid.
          lw_doc_link1-brel_kind  = gc_brel_kind-header_header.
          lw_doc_link1-brel_mode  = gc_mode-create.
          lw_doc_link1-reltype    = gc_bin_rel_type-predecessor_successor.
          INSERT lw_doc_link1 INTO TABLE lt_doc_link1.
          lw_doc_flow1-ref_guid   = lw_orderadm_h1-guid.
          lw_doc_flow1-ref_kind   = gc_object_kind-orderadm_h.
          lw_doc_flow1-doc_link   = lt_doc_link1.
          INSERT lw_doc_flow1 INTO TABLE lt_doc_flow1.
          CLEAR lw_input_fields.
          REFRESH lt_doc_link1.
          lw_input_fields-ref_kind    = gc_object_kind-orderadm_i.
          lw_input_fields-objectname  = gc_object_name-orderadm_i.
          lw_input_fields-ref_guid    = lw_orderadm_i1-guid.
          lw_input_fields-field_names = lt_input_field_names.
          INSERT lw_input_fields INTO TABLE lt_input_fields.
          lw_doc_link1-objkey_a   = lw_orderadm_i-guid.
          lw_doc_link1-brel_kind  = gc_brel_kind-item_item.
          lw_doc_link1-brel_mode  = gc_mode-create.
          lw_doc_link1-reltype    = gc_bin_rel_type-predecessor_successor.
          INSERT lw_doc_link1 INTO TABLE lt_doc_link1.
          lw_doc_flow1-ref_guid   = lw_orderadm_i1-guid.
          lw_doc_flow1-ref_kind   = gc_object_kind-orderadm_i.
          lw_doc_flow1-doc_link   = lt_doc_link1.
          INSERT lw_doc_flow1 INTO TABLE lt_doc_flow1.
          CALL FUNCTION 'CRM_ORDER_MAINTAIN'
            CHANGING
              ct_orderadm_h     = lt_orderadm_h1
              ct_input_fields   = lt_input_fields
              ct_doc_flow       = lt_doc_flow1
            EXCEPTIONS
              error_occurred    = 1
              document_locked   = 2
              no_change_allowed = 3
              no_authority      = 4
              OTHERS            = 5.
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            RAISE error_occurred .
          ENDIF.
    Hope this will help.
    Thanks,
    Vikash.

  • How to create and switch between two different Mail accounts.

    Dear Apple,
    My wife and I share the same computer and the same single user account.
    Sharing contacts, calendar, music and pictures in fine, but we would like two separate Mail accounts.
    Is there a way to setup two Mail accounts with two separate mailboxes and switch between them manually?
    Regards,
    Stephan

    Ok, I'm confused.  If you have 2 accounts set up -- for example, "[email protected]" and "[email protected]" -- then you go to the "Accounts" tab on Mail->Preferences, and set them up, giving each one a name which distinguishes it from the other.  Maybe "AOL" and "gmail" or "foo" and "bar" or your first names, whatever.
    Then, if you select the line that says "Inbox" you will see mail from both accounts interleaved together.  If you fold down the triangle thingy next to the word "Inbox" then two lines will appear, one for each account.  If you click on one of those lines then your display will only show the mail from that mailbox.

  • How to create a view between two table under different database?

    thx

    Assuming the different database is Oracle, you'll probably need to create a 'dblink'. Researching that topic should get you where you need to go.

  • How to use 'UNION' between two different databaseservers

    Hello,
    Could someone help me out. I am trying to find out if and how to use 'UNION' between two different databaseservers.
    We have 2 different queries, each queries on a different database; one MySQL the other MSSQL.
    Could someone tell me how to use 'UNION' between thes 2 queries?
    Thanks in advance,
    Samir Benalla

    Hello
    You may use openrowset statement, (OPENROWSET (Transact-SQL))., but before you use this, you must configure your server
    sample:
    SELECT a.*
    FROM OPENROWSET('SQLNCLI', 'Server=Seattle1;Trusted_Connection=yes;',
         'SELECT GroupName, Name, DepartmentID
          FROM AdventureWorks2012.HumanResources.Department
          ORDER BY GroupName, Name') AS a
    UNION
         SELECT GroupName, Name, DepartmentID
          FROM AdventureWorks2012.HumanResources.Department
          ORDER BY GroupName, Name
    With this you can define a connection using native client to server Seattle1, and execute a query there, The results will be spooled on your server.
    Connectionstring
    Server=[SERVER_NAME];datasource=[YOUR DATABASE NAME];user_id=sa;password=sapassword'
    if you use FQDN on your Query, than the datasource parameter in connection string can be letf out.
    Regards
    János.
    take care of performance, it can be very slow,

  • How to handle events between two custom components?

    Hi ,
         i want to handle events between two custom components, example if an event is generated in one custom component ,and i want to handle it any where in the application.....can any one suggest me any tutorial or meterial in this concept...
    thanks

    Events don't really go sideways in ActionScript by default. They bubble upward. If you want to send an event sideways, you will probably have to coordinate with something higher up in the event hierarchy. You can send the event to a common ancestor, and then pass it down the hierarchy as a method argument.
    Another option is to use a framework that supports Injection. There are a number around these days. The one I'm most familiar with is Mate, which allows you to handle events and inject data in MXML. Mate is meant to be used as an MVC framework, and you may want to look into it if your application is complex, but you can also use it to coordinate global event handling if you don't need that level of structure.

  • How to create the relationship between ESSBASE 11 and DM in OBIEE11

    Hi Experts,
    I have one requirement that there is one property table named 'Store Master' in DW,and it contains a lot of attribute, such as Open Date, Close Date, IS 24 Hour etc.
    But another data source is essbase and based on this source, I create all reports.
    In ESSBASE, it has one dimension and hierarchy Location, and it has four level, Country(L1),Region (L2),Province(L3),Store(L4)
    So I want to know how to create the relationship between Location (ESSBASE) and Store Master (DM).
    I try to create one relationship in physical layer between Gen4,Location and Store, then drag the open date and close date into Location Dimension in BMM,then Presentation Layer.
    When I drag column 'Open Date' ,'Gen4,Location ' and 'Sales' into reports, it will generate the following error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 14020] None of the fact tables are compatible with the query request Dim Region.Store Open Date. (HY000)
    However, when I remove the column 'Open Date'. it will be ok.
    So what I missing the steps? Please help me. Thanks.

    >
    '2. Now, pull the 'Store' column from relational DB onto the Gen5, Location column from Essbase. This action now creates, two logical sources for your 'Store' column.'
    If the length from different data source is not same,such as 1001(DM),L_1001(ESSBASE), can I drag the 'Store' column from relational DB onto the Gen5, Location column from Essbase?
    I think it does not work.Right?Hi,
    I am not sure if you are talking about the length(as in varchar(128)) of the member value being different in different sources, or the member itself is different in both the sources.
    I am still assuming, that you are referring to the members not same in both the sources.If it is, the whole concept of federation is based on conforming dimensions. So, it needs that the same dimension information is present in both the sources and then only, you know we can analyze the numbers based on this dimension. So, either the dimension being different in both sources, or the members not present in both the dimensions might lead to incorrect numbers.
    So I select Store Attributes in relation DB and Location in ESSBASE in physical layer, then create the physical join, such as right("Hour Sales"."H_Sales".""."H_Sales"."Gen6,Location",4) = "Authorization".""."EDW"."T_EDW_MDM_STORE"."US_CODE", then drag the OPEN_DATE and CLOSE_DATE in relation DB to Location in ESSBASE in BMM,finially drag them into presentation layer.We create physical layer relationships, to send over the same relation to the underlying database during querying. So, creating a physical relationship between essbase cube and relation database would not help here.
    When you set up this federation, BI Server sends individual queries to each source and maps the conforming dimension members internally.
    Hope I was clear, and this helps.
    Thank you,
    Dhar

  • How to create the relationship between ESSBASE 11 and DM  in OBIEE 11G?

    Hi Experts,
    I have one requirement that there is one property table named 'Store Master' in DW,and it contains a lot of attribute, such as Open Date, Close Date, IS 24 Hour etc.
    But another data source is essbase and based on this source, I create all reports.
    In ESSBASE, it has one dimension and hierarchy Location, and it has four level, Country(L1),Region (L2),Province(L3),Store(L4)
    So I want to know how to create the relationship between Location (ESSBASE) and Store Master (DM).
    I try to create one relationship in physical layer between Gen4,Location and Store, then drag the open date and close date into Location Dimension in BMM,then Presentation Layer.
    When I drag column 'Open Date' ,'Gen4,Location ' and 'Sales' into reports, it will generate the following error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 14020] None of the fact tables are compatible with the query request Dim Region.Store Open Date. (HY000)
    However, when I remove the column 'Open Date'. it will be ok
    So what I missing the steps? Please help me. Thanks.

    >
    '2. Now, pull the 'Store' column from relational DB onto the Gen5, Location column from Essbase. This action now creates, two logical sources for your 'Store' column.'
    If the length from different data source is not same,such as 1001(DM),L_1001(ESSBASE), can I drag the 'Store' column from relational DB onto the Gen5, Location column from Essbase?
    I think it does not work.Right?Hi,
    I am not sure if you are talking about the length(as in varchar(128)) of the member value being different in different sources, or the member itself is different in both the sources.
    I am still assuming, that you are referring to the members not same in both the sources.If it is, the whole concept of federation is based on conforming dimensions. So, it needs that the same dimension information is present in both the sources and then only, you know we can analyze the numbers based on this dimension. So, either the dimension being different in both sources, or the members not present in both the dimensions might lead to incorrect numbers.
    So I select Store Attributes in relation DB and Location in ESSBASE in physical layer, then create the physical join, such as right("Hour Sales"."H_Sales".""."H_Sales"."Gen6,Location",4) = "Authorization".""."EDW"."T_EDW_MDM_STORE"."US_CODE", then drag the OPEN_DATE and CLOSE_DATE in relation DB to Location in ESSBASE in BMM,finially drag them into presentation layer.We create physical layer relationships, to send over the same relation to the underlying database during querying. So, creating a physical relationship between essbase cube and relation database would not help here.
    When you set up this federation, BI Server sends individual queries to each source and maps the conforming dimension members internally.
    Hope I was clear, and this helps.
    Thank you,
    Dhar

  • In BADi , How to pass the values between two Method

    Hi Experts,
    We have two methods in BADis. How to pass the value  between two Methods. Can you guys explain me out with one example...
    Thanks & Regards,
    Sivakumar S

    Hi Sivakumar!
    Create a function group.
    Define global data (there is a similiar menu point to jump to the top include).
    Create one or two function modules, with which you can read and write the global data.
    In your BADI methods you can access the global data with help of your function modules. It will stay in memory through the whole transaction.
    Regards,
    Christian

  • Create view link between two view objects (from programmatic data source)

    Hi Experts,
    Can we create a link between two view objects (they are created from programmatic datasource ; not from either entity or sql query). If yes how to create the link; ( i mean the like attributes?)
    I would also like to drag and drop that in my page so that i can see as top master form and the below child table. Assume in my program i will be only have one master object and many child objects.
    Any hits or idea pls.
    -t

    Easiest way to do this is to add additional transient attributes to your master view object, and then include those additional transient attributes in the list of source attributes for your view link. This way, you can get BC4J to automatically refer to their values with no additional code on your part.

  • How to create a link between database schema?

    Hi,
    I have created database link between two database schema (From DBSchema2 i have created database link for DBSchema1). From DBSchema2, i have quried one table (This table is present in DBSchema1). But it throws an error says that Table or View does not exist. Anyone pls tell the detailed way to create database link between schema??
    Thanks,
    Sathish kumar D

    Yes iam trying to Archive
    I said achieve not archive. Anyways so you are trying to archive the data. Can you just detail your requirement ? What exactly do you want ?
    Only few tables will be moved to Archive Schema and other foriegn key tables will have a reference to the Live Schema. So how i can create the link between the Archive Schme to Live schema?
    There is no question of creating database links between 2 schems. It is pure stupidity. If you want to access any object from another schema grant proper privileges and create a synonym for the object. Database links are not meant for this purpose.
    Amardeep Sidhu
    http://www.amardeepsidhu.com

Maybe you are looking for

  • Adobe Dreamweaver CS6 has stopped working

    Hello - I am attempting to download and install a trial version of Dreamweaver 6 on my PC running Win7 Pro 32 bit service pack 1 with 4GB RAM and an E6300 processor. I have managed to download and extract the application but once I attempt to launch

  • Recording audio from another source

    I have several minidiscs with files that I would like to record into Garage Band (in real time). I thought I could accomplish this by simply connecting the MD to my MacBook using an analog mini plug. I've tried to do this, and have come up empty. And

  • Starting Workflow from Generic Object Services in IQS1 Transaction

    Hi All, My requirement is users will create the notification through IQS1 and they will attach the Adobe document through Generic Object service. In the notification Task, they will assign the repsonsible person for that form. Once they released the

  • What is the Data limit we can transfer from an iview

    Hi All      What is maximum data transfer from an iview ?      Is there any specific setting we need to do ? Can we increase the Data limit? Thanx in advance Prasad K

  • Home Network - MB Pro/PC/Mac Pro - Can't see an internal Mac Pro Drive

    Hi folks... I'm the MacBook Pro user in the house. 3 drives in the Mac Pro - One is FAT32 formatted. It has all the shared movies/music for the house on it (PC user also uses it) I can't access the internal FAT32 drive from my macbook pro... all on l