Create Same  Variable for 2 differents queries

Hi guru's,
I try to create one same variable in query designer for differents queries whiche have not the same field. I explain:
For example, I have one of my query based on a ODS which has a field called EAN but its technical name is RIS_R1007_F57 and I have another query based on another ODS which has also a field called EAN with the following techincal name RIS_EANMD_F1.
I would like to create a report with 2 tables and each query inside with in the variable screen, a variable which seeks in the both tables.
Anyone has an idea?
Thanks in advance for your help.
Regards,
Rawizzz.
Edited by: rahhaoui mohamed on Jan 26, 2010 11:39 AM

Hi.
What I understand, is that you have something called EAN and this is stored in two ODS. In each ODS a DIFFERENT characteristic is used to store the EAN info.
Thus, technically, you got two completely unrelated fields. The fact that they both contain the data for the same "thing" (the EAN), is something you can "tell the system" by creating a characteristic, let's say tech name ZEAN with description "EAN" and then load the values from both char's (RIS_R1007_F57 & RIS_EANMD_F1) into this new char (ZEAN).
You could do this in different ways, but one way to do this, is to add the ZEAN to BOTH ODS and then in the load to each of the ODS, map the RIS_R1007_F57 to ZEAN and the RIS_EANMD_F1 to ZEAN.
Now you can create two queries, query 1 on the data from ODS1, where you have RIS_R1007_F57 and ZEAN, and query2 on ODS2, where you have RIS_EANMD_F1 and ZEAN.
In query1, you use ZEAN to make your restriction/selection, so create a variable on the ZEAN infoobject, ZVAR_1. When you are done, create query2 on the other dataset. Use ZEAN to make your restriction/selection AGAIN. You will find in the variables section the variable ZVAR_1 which you created before. Use it again and finish query2.
Put both queries in a workbook, maybe on different sheets depending on what you need. Then, set the workbook properties to show the same variable in different queries only once.
That should work.
Br
Jacob

Similar Messages

  • What is the best way to create shared variable for multiple PXI(Real-Time) to GUI PC?

    What is the best way to create shared variable for multiple Real time (PXI) to GUI PC? I have 16 Nos of PXI system in network and 1 nos of GUI PC. I want to send command to all the PXI system with using single variable from GUI PC(Like Start Data acquisition, Stop data Acquisition) and I also want data from each PXI system to GUI PC display purpose. Can anybody suggest me best performance system configuration. Where to create variable?(Host PC or at  individual PXI system).

    Dear Ravens,
    I want to control real-time application from host(Command from GUI PC to PXI).Host PC should have access to all 16 sets PXI's variable. During communication failure with PXI, Host will stop data display for particular station.
    Ravens Fan wrote:
    Either.  For the best performance, you need to determine what that means.  Is it more important for each PXI machine to have access to the shared variable, or for the host PC to have access to all 16 sets of variables?  If you have slowdown or issue with the network communication, what kinds of problems would it cause for each machine?
    You want to located the shared variable library on whatever machine is more critical.  That is probably each PXI machine, but only you know your application.
    Ravens Fan wrote:
    Either.  For the best performance, you need to determine what that means.  Is it more important for each PXI machine to have access to the shared variable, or for the host PC to have access to all 16 sets of variables?  If you have slowdown or issue with the network communication, what kinds of problems would it cause for each machine?
    You want to located the shared variable library on whatever machine is more critical.  That is probably each PXI machine, but only you know your application.

  • How to create Presentation variable for columns and to use it in Narrative?

    Hi All,
    Anybody know how to create presentation variable for a column (i.e., i need to create it in edit formula section itself). And then, I should use it in Narrative section to display that column value. Is it possible? Or do i need to use any other variable for this requirement? If so please let me know, how to create it? This is very urgent requirement.
    Thanks in Advance
    Thenmozhi

    Hi Satya,
    I just want to create a table that should horizontally display the values like below:
         SUID Tag # :123456               Year Mfg: 2007                                                                                     
         Description: computer corporation FA ID#: 4576
         Model Number: 4569 hESC: #ert
         Serial Number: 78945 Flags: c
    Department: Hematology
    User: thenmozhi
    Database: OLAP
    I think we can create this type of report using either Narrative or Static Text. But I am not sure whether it is possible or not? And also another thing is that sectioning is applied for SUID Tag # column. So, depending on the dashboard prompt if the SUID Tag # retrieves two or more values.
    Then the first value for example 123456     and the values for the other columns related to this SUID Tag # value should display in the first page (i.e., page 1). And if the next value of the SUID Tag # for example say 678901 then the values should move to second page that is like this:
         SUID Tag # :678901               Year Mfg: 2008                                                                                     
         Description: Computer Manufacturing FA ID#: 4577
         Model Number: 4570 hESC: #eth
         Serial Number: 78946 Flags: G
    Department: Hematology
    User: Rehman
    Database: OLAP
    Thanks
    Thenmozhi

  • Can i Create Output Variable for DB Polling in BPEL 11g?

    Hi Team,
              I want to create the Output Variable for DB Polling,But when i double click on Reply Activity-->Create New Variable it is giving error message like "Can't Create output variable.The Selected operation doesn't have an Output Message".
    My Question is Can we create Output Variable for DB Polling, if Yes tell me the procedure to create the Output variable ?
    Regards,
    Kiran

    Hi Kiran,
    In these scenario generally runtime faults occurs so you can use the CatchAll activity and rethrow activity to complete the instance in error state. Also before the completion of the process if exception occurs you can rollback all the transaction.
    or
    you can use the Fault handling framework:
    Using Fault Handling in a BPEL Process - 11g Release 1 (11.1.1.7)
    Regards,
    Anshul

  • Create cache variable for image

    hi everyone
    i am using swfloader to load an image, and storing its conents in an array so if it is loaded again in future it can be loaded directly from that variable instead of downloading it again.
    First time when i load the image , it is loaded properly, and when i load the same image secondtime, it loads it properly from this variable but old image is removed from the page. I am not able to understand what is causing this, here is the code which I used for this.
    public function loadimage(_data:Object){
    // check if it does not exists in cachedata variable then download  else load from cache
                    if(cachedata[_data.url] == null){
                        var _swfloader:SWFLoader=new SWFLoader;
                        _swfloader.load(_data.url);
                        _swfloader.addEventListener(Event.COMPLETE,EventDelegate.create(onImagesComplete,imgconta iner));
                    } else{
                        imgcontainer.addChild(cachedata[_data.url]);   
                public function onImagesComplete(event:Event,imgcontainer):void
                    var __tpLd:SWFLoader = event.target as SWFLoader;
                    var imgContents=__tpLd.content;
    // store in cachedata variable
                    cachedata[filename]=imgContents;
                    var extension:String=filename.substring(filename.length-3,filename.length);
                    imgcontainer.addChild(imgContents);          
    please help me on this...
    thanks

    That is because you are caching _tpLd.content which will be a Bitmap object. So, as soon as you do an addChild again on it, it will be removed from the previous container as it can only have one parent.
    The solution is to cache BitmapData instead:
              var bitmapData:BitmapData = (content as Bitmap).bitmapData;
                         _imageDataCache.putImageData(_imageId, bitmapData);
    So, you can re-use it by constructing a new Bitmap object from the same BitmapData. The difference in memory usage will be negligible as you are using the same BitmapData again.
    Here is an implementation of CachedImage component along with ImageDataCache so that we do not have to write plumbing code everywhere. You can use it or modify your code on the same lines. It is available at:
                                  http://xebee.xebia.in/2010/11/25/flex-in-memory-image-cache/

  • Creating OLAP variables for infopackages

    Hello Gurus,
    I am interested in creating an "z" OLAP variable and then use in the DATA SELECTION in the infopackage,
    Where can I create the same?
    Thanks in advance.

    Hi,
    The following links will be very helpful for you.
    Step by step OLAP variable for Infopackage
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a05ac9fa-f44c-2c10-dbb8-ef54c102707c?quicklink=index&overridelayout=true
    Regards,
    Kush Kashyap

  • How to create a variable for key figure (value will be entered by the user

    I want to create one query, where the user has to entered a max value when the query is started, so that only the query rows will be listed, where the key figure value (integer) of the row is smaller than the max value given.
    How can i define that variable which has to start at the begin of the query; and also the restricted key figure iin consideration of the KF variable.
    Thanks for helping
    Ar.

    Hi Arnaud,
                Go to Conditions-> Right click -> New Condition -> Edit -> NEw -> Selct the KEy figures from the dropdown( the KFs that are used in the rows/columns) -> Select Less than from the operator drop down (less than is for you case) -> Values, there is an option to create a variable -> Select the variable -> transfer. It will appear on the top.
    Save & Execute, you will find it in your selction criteria.
    Regards
    Sunil

  • Can we create range variable for Query Key Date

    Hello Gurus,
    Can we create a range variable for Query Key Date ? when I tried to give a range of values for Query Key Date, I am unable to find Range Values option. I found only Single Values.
    so, Please let me know if we can use Range variables for Query Key Date ??
    Thanks in advance,
    Regards,
    Aarthi

    Hi Aarthi,
    This is relevant for the time dependant master data that is being pulled in thw query. Like if you are using a nav attr in the query and this nav attr is time dependant, then which record (from the char master data) is to be pulled into the report, depends upon the key date that you specify.
    The default key date value is the date on which the query is executed, that is <Today>.
    Hope this helps...

  • Create New Variable for COPA Drilldown Reports in KE3E

    Hi,
    How can we create a formula variable for COPA Drill down reports in KE3E? In standard global variables formula variable is not avaiable, I need to create a formula variables like ...from period, to period, last fiscal year and next fiscal year..
    While creating report in KE31/KE35 trying create local variables, but it doesn't.
    Can any body advise how can we create a new variables for  "from period, to period, last fiscal year and next fiscal year.."
    Thanks
    VS Rao

    Hi Rao
    For Period (From &To)
    1. KE3E
    2. Type of Var = Char Value
        Enter variable name, say, ZPERIOD
        Field Name = PERDE
        Replacement type = Entry
        Enter Description
        Parameter/selectop = Selection Option
    For Fiscal Year
        Type of Var = Char Value
        Enter variable name, say, ZGJAHR
        Field Name = GJAHR
        Replacement type = Entry
        Enter Description
        Parameter/selectop = Parameter
    For Next and Last Fiscal Year
    When you define your form in KE34/KE35
    Use the variable ZGJAHR in your report
    In the column for Next Year, Enter "ZGJAHR+1" as the local variable for GJAHR
    In the Column for Last year, Enter  "ZGJAHR-1" as the local variable for GJAHR
    Regards
    Ajay M

  • FR Studio: Use same variable for 2 grids

    Hi
    Im wondering if it is possible to do this in FRStudio.
    I have 2 grids in one report. Both grids come from a different datasource
    ie:2 different cubes.
    I want to use the same prompt selection (use the same data) for both grids but without having 2 seperate prompts selections.
    I can merge prompts on 2 grids coming from the same datasource but it seems I cant when they are from 2 different datasources. Is there anyway around this?
    Thanks in advance.....

    Hello,
    Just try if this works for you.
    Set the prompt for Year in the page for Grid1. Instead of creating a new grid 2, insert the grid1 which has been saved. Now do all the modifications without touching the prompt in the page of Grid2. Now see if it gives only one prompt to respond.
    Ravi B

  • PHP create array/variable for two dropdowns and insert into one column

    Hello,
    I have been trying for days to get this to work. Any help would be very appreciated.
    The dropdown code:
    <?php //Dropdowns for hours and minutes
    $hour = array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
    $min = array (.00, .25, .50 ,.75);
    echo '<span class="red">Hours :</span><select name="hour">';
    foreach ($hour as $value1) {
    echo "<option value=\"$value1\">$value1</option>\n";
    echo '</select>';
    echo '<span class="red">Quarter Hours :</span><select name="min"';
    foreach ($min as $value2) {
    echo "<option value=\"$value2\">$value2</option>\n";
    echo '</select>';
    //Dropdowns for hours and minutes
    //Create variable to send to the time field using a hidden field
    function input_time($value1, $value2) {
    $time = count($value1 + $value2);
    return $input_time;
    ?>
    <input name="time" type="hidden" value="<?php echo "$input_time";?>" />
    The Schema:
    CREATE TABLE `ND_time_sheet` (
      `time_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `day` varchar(10) NOT NULL DEFAULT '',
      `date` varchar(8) NOT NULL DEFAULT '',
      `project_id` varchar(8) DEFAULT NULL,
      `non_bill` tinytext,
      `staff_id` varchar(5) NOT NULL DEFAULT '',
      `time` decimal(3,2) unsigned zerofill DEFAULT NULL,
      `type` varchar(30) NOT NULL DEFAULT '',
      PRIMARY KEY (`time_id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1
    Thanks!

    9677670421 wrote:
    hi... i am trying to do the same but i am having the 2D array of data when first time if i clicked in table it should show the the first row values and if i again clicked same value should show in the second row and so on... but insted in my code if clicked (using insert into array ) at a time it is showing two rows of the data pl help me ..........
    This seems to be a different problem, so you should have started a new thread instead.
    Can you show us your code, tell us what you are clicking, tell us what you get and what you expect to get instead. Thanks.
    LabVIEW Champion . Do more with less code and in less time .

  • Create a variable for user input entry to act as i/p to anothr variable

    Hi,
    I have a requirement in my report where i have two variables one is user entry called "A" the a other user exit "B" and the query is based on an ods.
    <b>
    Scenario:</b> If the user were to enter a string  XXX in A, i need to do a search on certain columns in ODS and store the corresponding keys (single column) in an internal table and the internal table column will act as multiple single values for variable B .
    <b>Questions:</b>
    1. How to get  the value entered in A.(so i can do select statement on ODS table).
    2. In the select statement we need to specify FROM table, so what would the ods table name be.
    3. How to store the values from the select statement into the internal table.
    4.How to populate the values in internal table into variable B.
    5.Once all this is done i need to reset the variable A to empty.
    p.s: ABAP code for any of the following would be highly appreciated.

    hi Karthik,
    1.  you can try
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'varA'.
                  l_var = LOC_VAR_RANGE-LOW.
    2. ods table name = /bic/a[odsname]00 or /bi0/a[odsname]00
    3. use select .... from... into table ...
    4. loop at that internal table and populate as sample code
    5. try to create a RKF with restriction to variable A, and hide this keyfigure,
        not use in reporting.
    hope this helps.
    Populating material numbers from a table to customer exit bex variable
    tables : /bic/azods00.
    DATA: it_ods like /bic/azods00 occurs 0 with header line.
    CLEAR L_S_RANGE.
    WHEN 'varB'.
        IF I_STEP = 2.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'varA'.
                  l_odsfield = LOC_VAR_RANGE-LOW.
    SELECT * FROM /bi INTO TABLE it_ods
    WHERE odsfield = l_odsfield.
    loop at it_ods.
    L_S_RANGE-LOW = it_ods-fieldselected.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    endloop.
          ENDLOOP.

  • Create input variable for Attribute

    Hi Guyz,
    How do I create an input variable or restrict the query on an attribue of an Infoobject in the query
    The attribute is Navigational.
    I have to restrict the query by certain values of that attribute.

    Hi Ajay,
    Can you please throw in more details...
    I pulled in the Characteristic in the rows column of query designer, next I pulled the attribute and placed it under the Char.
    Now while restricting it..
    1) I right click on characteristic and choose restrict, Create a new variable.
    2) What type of Variable do I create ... User entry or replacement path...
    3) In the same screen where give in the name, tech name, processing by, Characteistic ... I only see the Characteristic here.
    Am I doing it right?
    If possible can you give the steps too.
    Thanks,
    Kumar.

  • How to creat test variable for required year value.

    Hi All,
    I have one report in that report description i want to display year value(zvar_year).
    Ex : report description like "&zvar_year& report" in runtime it can show "2011 report".
    when i run this report from feb to dec i have to show current year value, when i run this report on jan it have to show previous year value
    For this i used diff type of test variable as fallowed bellow
    1) test variable using replacement path with info object :
    variable type:test
    char:zyear
    process type:replacement path
    replacement variable with:infoobject
    replace with :key
             (or)
    iam trying bellow variable method but iam unable to see in variable list its charectaristic value variable
    variable type:test
    char:zyear
    process type:replacement path
    replacement variable with:variable  "this is customer exit variable built on zyear unable to see in variable list
    replace with :key
    2)test variable using customer exit:
    variable type:test
    process type:customer exit
    *Problem:* when i used &zvar_year& in the description its showing  "&zvar_year&" only not "2011" value.
    please let me know how to get the values into test variable
    Thanks in advance
    Edited by: RJANAR on May 18, 2011 7:17 AM
    Edited by: RJANAR on May 18, 2011 7:23 AM

    Hi,
    For that you need to modify your customer exit as shown below
    Data : zyear(4), zmonth(2).
    zmonth = sy-datum+4(2).
    if zmonth = '01'
    zyear = sy-datum(4).
    Zyear = Zyear -1.
    elseif
    zyear = sy-datum(4).
    endif.
    CLEAR L_S_RANGE.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    L_S_RANGE-LOW = zyear.
    APPEND L_S_RANGE TO E_T_RANGE
    Hope this helps you. Thanks.
    Regards,
    Raj

  • Same cover for 2 differents sigle..

    Hi,
    I'm using iTunes 9.0.3 on Windows XP SP3.
    I have 2 different singles with their own coverage, but iTunes display the same coverage.
    How do I view their own coverage?
    Surely with the sorting options but I can not ^ ^
    Thank you in advance.

    See http://www.samsoft.org.uk/iTunes/grouping.asp
    tt2

Maybe you are looking for

  • Skip Blank Values in Import-CSV

    I am attempting to do a mass import of user attributes (phone number, address, city, state, zip code, title, company). All goes well until I hit a blank value in the CSV. Here is the Powershell script I am trying to use. Import-Csv IA-Test2.csv | For

  • Payroll infotypes disappearing after a client copy

    Hi everyone, Our project team has done a client copy to two new clients (configuration and master data), and then decommissioned the source client. However, for some reason a number of infotypes do not appear against employee records in PA30. The inf

  • Assertions in java

    i m confused by the call by value property of java.those it sends an object it treats it as call by value.so what actually happens in terms of memory wise when an object is passed to a function.this quite a puzzed question to me and i ll be thank ful

  • Sorting Application list in iTunes by rating

    folks.. is there anyway to sort apps in iTunes by rating? Most popular is a function of most purchased instead of highest rating.. i tend to look at 'ratings by the masses' as one indicator of quality of program (stability and usability). Thx ..Wayne

  • OOAD Diagrams

    Hi, I have used Use-Cases, Object static Diagrams, Object-Interaction diagrams, State diagrams etc. This some what satisfies the Analysis phase. For elaborate design I must say these diagrams do not give enough handle on deployment strategies. We nee