Problem in BW query can read a variable from another query

dear all
now I create three queries
the name are queryA queryB queryC
there is a variable VAR_1 on queryB
there is a variable VAR_2 on queryC
webtemplate is only one and all queries belong to webtemplate
VAR_1 is DATE
VAR_2 is MONTH
in inputscreen user will input VAR_1
can we read VAR_1 and then VAR_2 = VAR_1+0(6)
I created souce on CMOD but can't read VAR_1
the code as below
case i_vnam.
when 'VAR_2'
read table i_t_var_range into s_var_range
with key vnam = 'VAR_1'.
l_date = s_var_range-low.
l_s_range-low = l_date+0(6).
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
append l_s_range to e_t_range.
endcase.
PLS HELP ME

Hi,
As vijay said you try ...
Let me explain:
Create another variable var_3
on queryB which is of type 'customer exit' and you write the code for this var_3 (date) in CMOD just to store this value in some ztable.
create a ztable with fields of type
1. sy-datum(system date)
2.sy-uzeit (syatem time)
3. sy-datum (for storing the value of var_1).
make first two fields as key.
Now for queryC create var_2 type 'customer exit'.
Now for this variable in CMOD , get the value of third field from ztable for the last entry in the ztable.Write the logic for caluculating month and populate var_2.
Hope its clear..
Shylaja.

Similar Messages

  • Can we use Result from another query in Webi using Bex uery universe?

    Hi,
    Can we use Result from another query filter option in Webi to create a report using a Bex Query universe?
    I need to create a report using two universes, one is Bex Query Universe and the other is Orcle universe. I have two queries, one is using Oracle universe; the other using Bex Query universe. I need to pass the Oracle data from the Oracle query to the Bex Query query to get the matched data from SAP Bex query.
    I used Result from another query in the query filter panel for the query using Bex query universe. But I got an error saying that 'A filter contains a wrong value. you cannot run this query. (Error: WIS 00007). The data used in the filter on both sides are the same. they are char.
    I have tested by using two queries from the same Bex query universe to see if the Result from another query filter option works. And I got the same error.
    Has anyone run into the same issue and if this is possible and what should be the solution?
    Thanks in advance!
    Edited by: BO_Haiyan on Oct 6, 2010 3:47 PM

    In that situation:
    Create two queries : Oracle and BW query.
    @ Report:
    As you have to see result set from both the Dataproviders, correct? To achieve thise one must have common dimension objects to merge them at report and use Objects those are coming from both queries to use them in single Table/Report.
    Unless you don't use Merge Dimensions, you don't get a chane to use both queries objects in single Table/Report. (It will give tooltip saying: You can't drop here -- Incompatable Objects)
    In case, if you don't have common dimensions, change object definitions to Detail objects, for those required.
    Hope it helps you.
    Thank You!!

  • Populating variable from another query..

    Hi,
    I have a requirement whereby I have a variable (for eg. on the Accounting Document Number) in query Q2.The values of this variable have to be derived by executing another query eg. - Q1
    So I defined a variable on the infoobject, defined it as based on Q1 and am using that in Q2.
    However the issue is I don't want to restrict query Q2 with that variable.. but just want to read the values and then be able to further processing on that variable. However hard as I try it seems that I can only use that variable as Filter in Q2. Any other options I can use.
    I tried to use that variable in a structure but it system does not accept it.
    Any ideas would be appreciated.
    thx

    Hi ATW,
    Looks to me, this is a RRI (Report-To-Report Interface) requirement.
    Try following options ->
    1.  RRI
    Consider - Q1 is a 'Sender Query' - This will a 'summary level' query and Q2 would be 'Receiving Query' - This will be 'Detailed level' query.
    Do Sedning / Receiving  setting in the Tcode RSBBS
    Execute Q1 -> Right click on any row -> GOTO -> Q2, it will execute second query with the details on for the row you have selected.
    2.  Pre-Query & Main Query
    Here Q1 will be your 'pre-query' which will run for a given date range.  (or any other selection criteria), and it will have 'Accounting Document Number' in the 'ROWS'. The output of Q1 will work as a filter to Q2 (the output of the query Q1 will NOT be visible.)
    This output then will work as a filter for the second query Q2.
    Let me know if this helps.
    Regards,
    Rashmi

  • Pass variables from dialogue query to batch planning functions

    The requirement.
    The user will open an u2018open-for-inputu2019 query (Web Template) using a number of variables (some are type exit). After entering data, the user will close the process by saving the data. The u2018Saveu2019 button will start a Planning Sequence which includes open data slice, distribution, copy,  repost function and close data slice. The user will not wait for any feedback from these processes so they should be done as back-ground processes (in any case the dialogue process will time out).
    The problem.
    The background process will be started from the query u2018Saveu2019 button. This is easy enough to do.
    However it is absolutely vital that the variables are passed from the query (which may or may not still be active) to the same variables that will need to be filled in the Planning Functions in the background process. I imagine that the background process will be a Process Chain .
    Help needed.
    1. Can anyone give me the way in which this is done?
    2. It could be critical that the user does get feedback in some form or other if the back-ground processes fail for whatever reason. Any ideas how this can be achieved at the user interface level. The users will not have 'SAP Savy' and the log in the Process Chain will not be transparent to them.

    One approach..
    Have diff variables for query and planning seq.
    Say V1, V2 etc for query and VF1, VF2 etc for data slices and planning functions.
    Maintain one Z-table which contains variables V1, V2 etc along with their values.
    So when the users select query variables, on save, one exit function will write these variable values to the z-table. The variables used in planning seq and data slices (VF1, VF2..) will be exit variables which read corresponding entries from Z-table (V1, V2...). So background process will run based on what the user has selected.

  • If I install dng converter version 8.3 so I can read raw files from my new sony a7 camera, will I still be able to read raw files from my canon 5d ?

    if I install dng converter version 8.3 so I can read raw files from my new sony a7 camera, will I still be able to read raw files from my canon 5d ?

    Ok. That explains 8.3. I know some want to stay with 10.6 because they have software or hardware that won't work on anything later.
    Gene

  • "Account Generator" you can read budget account from item level

    Dear Values Consultant.
    I am reading from oracle purchasing user guide that if you deal with "Account Generator" you can read budget account from item level
    How I can enable this functionality "account generator to gets a budget account from Item Level)
    Or it is already defaulted enable in the application
    If it is default enable, how to use this functionality, what the setup required to reach to this point
    thanks

    It is Oracle standard functionality. Account generator can be customised as per need.
    Define your Accounting Flexfield structure for each set of books.
    Define flexfield segment values and validation rules.
    Set up Oracle Workflow.
    Choose whether you want to use the default Account Generator
    processes
    Then do one of the following for each set of books:
    Choose to use the default Account Generator processes.
    Customize the default Account Generator processes, test your
    customizations, and choose the processes for a flexfield
    structure, if necessary.

  • Importing variables from another page in jsp

    Hey.
    I want to make two pages. I want the first page to include the variables from another page or POJO.
    I did this but i cant use the variables in index.jsp without initializing them first. But when I initialize them i get an error when trying to initialize them two times.
    if i use the variable in index without saving i get an error in eclipse.. but it works if i save and deploy.
    Is there any way to make eclipse see that i have imported the variable?
    The pages look something like this:
    index.jsp
    <%@ include file="extra.jsp" %>
    Print the number from the extra page
    <%= number %>extra.jsp
    int number = 32;I plan using this in a much greater system so I would appreciate any help.

    I'm having the same problem.
    Would be nice if somebody could help us.

  • Query on results from another query

    Post Author: Duncan1980
    CA Forum: Crystal Reports
    Is it possible to query on the results from another query.  I have a query that produces a list of document numbers.  I want to use the output from that query as the filter criteria in a another query in the same Universe. 
    The output from the first query can be as much as 2000, so it would be very time consuming to cut and paste these into a filter.
    Both reports are built, but can not figure out how to link the first report output to the filtering criteria on the second report.  I
    I am using business objects XI release 2 web intelligence 11.5.3.417 enterprise.

    Hi Vivek,
    It was not directly solved but I applied alternate logic to over come the issue.
    Here's what I did to overcome:
    I used a sub query in place of the whole result from another query.
    For Ex:
    Dim1 inlist result from another query1
    I made it as
    Dim1 inlist (Dim0)
    where Conditions.
    Here Dim0 is the object which we use for Result from another query and Conditions will be the necessary filter conditions to arrive proper Dim0.  Make sure proper context is formed for the sub query.
    Even though it resolved my problem, It introduces an new issue. It causes increase in query run time when huge set of data is returned from sub query.
    Please let me know if i haven't explained clearly.
    Hi Aris_BO,
    Sorry for not responding earlier.  The logic would probably make more queries null & not null. Thats why I was not advised to use it.
    Thanks
    LN

  • Bex exit Variable from another one.

    Hi Expert,
    Do you Know how to define a value for a variable from another that is navigable in the bex query. In other words, when i change a value during the OLAP navigation in the query, another variable must change on the basis of the first one. The first variable isn't a "variable selected from user" on the start of the query but is a "mandatory" with a default value. When the default is changed on the OLAP,  another variable must change.
    How can I do?
    Thanks.

    OK. I see - just to be sure: You dont want to call the variable screen, when making the change, right? That is how I understand it, if I am wrong, you can use an exit variable for ZC_FASCIA and fill it depending on what was set in 0calmonth variable.
    So, assuming you dont want to call the variable screen, have you tried setting the dependent variable to changeable during query navigation? I dont think it works, but anyway, try it out...
    One way of "solving" your requirement of "set value for Y when X is changed by user" could be to use a compounded characteristic where you compound ZC_FASCIA with 0calmonth. I think you should be able to compound ZC_FASCIA = 1 with 0calmonth = <blank>...
    Next, create a variable for this new char. Using a default should be possible and it would have to be changeable during query navigation and let users change the default month without calling the variable screen.
    I dont know if this works/helps...
    Regards
    Jacob
    P.S: Your requirement only seems to come from the "need" to have 0calmonth = #. If you did not need the #, you would always have 2 for ZC_FISCIA... so I was wondering why you need the blank month? Something with an annual value stored in # month??
    Edited by: Jacob Jansen on Jan 29, 2010 9:38 PM

  • How can i import contacts from another AIM account to this new one

    If you reference my last ichat question, you will see that I have had serious problems and had to create a new account.
    How can I import contacts from another AIM account to this new one??

    Hi,
    Use AIM for Mac and use the Export and Import features.
    Other than that it is a question on making sure every Single Buddy has more than just their Screen name in the IChat Address Card so it is added to the Address Book and dragging them back from there
    9:08 PM Thursday; February 7, 2008

  • I have an iTunes account where I have downloaded Digital movies & I am able to see the list on the desktop of the original downloads. When I log on another device with my login I do not see my list to access them. Why can't I access from another device

    I have an iTunes account where I have downloaded Digital movies & I am able to see the list on the desktop of the original downloads. When I log on another device with my login I do not see my list to access them. Why can't I access from another device

    Hey GingCarv,
    Great question. You'll want to download the movies from your purchase history. The following article explains how to do so:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Note: At this time, movies are not available for automatic downloads.
    Thanks,
    Matt M.

  • How to use Results from Another Query for SAP BW universes

    Hi Everyone,
    I have two SAP BI universes.In my First universe I have Sales Doc no (dimension) and Orderqty (Measure) and in my second universe I have Sales Doc no(Dimension) and BillQty (Measure).
    Here in my first dataprovider I have 1200 rows of data and in second dataprovider I have 75,000 rows. The report should fetch only the BillQty details that matches to corresponding  Sales doc no in first data provider.
    I want to place all these fileds into a single report like as shown.
    (Datarpovider1)                (Datarpovider1)                    (Datarpovider2)
    *Sales Doc No*               Orderqty                           BillQty
    Here I am able to generate single report using merge dimension but it is leading to performance issues. I want to restrict the values at query level by passing the First dataprovider Sales doc no to second Data provider Sales doc number using Results from Anothery Query feature so that It can fetch only the matching records.
    I tried it but it was giving the follwing error:
    A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
    How Can I get rid of this error. Can we use Results from Anothery Query option for OLAP universe. Are there any limitation on it.
    All this I am doing in Webi Rich Client.
    Appreciate your help
    Thanks &in Advance
    Kiran Saka

    Hi Kiran,
    I think the filter has a wrong operand. For example, a filter with an empty constant, or a filter that deals with numeric values is defined with an alphanumeric value.Check out for this.
    Regards,
    Neeraj

  • How can i copy songs from another library to my itunes library with homesharing?

    How can i copy songs from another library to my itunes library with homesharing?  I see the other libraries, but cannot drag the songs into my library.  The help window says to use the "show menu" at the bottom, but I don't have that menu with itunes 11.

    You can do this in 2 ways.
    1) You can enable the sidebar and you can drag and drop like you used to be able to.  To turn on Sidebar in iTunes 11, go to View > Show Sidebar
    2) Another way is to connect to your Home Share from the drop-down menu from the left (where it says Music) and select your Home Share.  Once you are connected to your Home Share, select Music and you should see a button that says "All Items" and on the right, you should see the Import button.  To copy, select the songs you want to import and then click on Import.

  • Results from another Query - not available

    HI,
    My environment is Business Objects XI 3.1 SP2 Edge series , i have  below quereis with web Intelligence Reports
    1. not available  the functions/options  Results from another Query(Any) or Results from another Query(ALL) at Query Level.
    2. not getting list of Values for pronpt until i refresh values for prompt?
    Please suggest me is there any fix packs available for the same to availle that functionality.
    Best Regards,
    Reddeppa K

    not getting list of Values for pronpt until i refresh values for prompt?
    There is option called  "Automatic refresh before use"  for the object properties available in the universe designer.
    Please check the box for the object you are using for populating the list of values and export the universe.
    not available the functions/options Results from another Query(Any) or Results from another Query(ALL) at Query Level.
    There is a limitation for the query on query functionality that the both the queries can-not be from the OLAP universe.
    I guess the query which needs to be filtered should be built on universe from the relational data base.
    Regards,
    Rohit

  • Issue with Results from Another Query (Error on Null value)

    Hi All,
    We have a WebI report using "Result from Another Query" option of BO XI R3.1. The report was running fine till recently the dimension object using result from another query had a null value. Report suddenly throwed error as the query filters are invalid.
    Is there a way to make this filter optional if no data/null value is there ? Because we need those null values in report as well.
    Thank you for your time.
    Thanks & Regards
    LN

    Hi Vivek,
    It was not directly solved but I applied alternate logic to over come the issue.
    Here's what I did to overcome:
    I used a sub query in place of the whole result from another query.
    For Ex:
    Dim1 inlist result from another query1
    I made it as
    Dim1 inlist (Dim0)
    where Conditions.
    Here Dim0 is the object which we use for Result from another query and Conditions will be the necessary filter conditions to arrive proper Dim0.  Make sure proper context is formed for the sub query.
    Even though it resolved my problem, It introduces an new issue. It causes increase in query run time when huge set of data is returned from sub query.
    Please let me know if i haven't explained clearly.
    Hi Aris_BO,
    Sorry for not responding earlier.  The logic would probably make more queries null & not null. Thats why I was not advised to use it.
    Thanks
    LN

Maybe you are looking for

  • IOS 8.1.1 can no longer connect to corporate wifi

    After updating a couple of corporate iPhone 5s' they now no longer connect to the corporate wifi. This happens whether updating OTA or a complete wipe and reload in iTunes. Wifi worked fine before the 8.1.1 update

  • IPhoto 11 doesn't load my old photo library

    I have an old iphoto library and my new iphoto 11 allows me to locate and load the 1.5 GB file, but when it loads there ia nothing? No events or photos? The library doesn't upgrading, so how do I load my old photos? Thanks Ant.

  • Use Applescript to have Quicktime record audio

    I need to record and store an audio file of approximately 20 minutes in length in Filemaker Pro 13. I thought I could use Applescript to Launch Quicktime to do the recording, then tell Quicktime what folder to store it in as an MP3 file. I can't seem

  • Printing abap report from Transactional Iview

    Hi All, I have a abap report and i have created a transactional Iview to embed the report into Portal. Now when i try to execute and print the report from portal end i am unable to print the report. It opens another window saying please wait for the

  • Firefox gpo is set in about:config but start page fails

    Hello, I have firefox adm & GPO 0.9.4 installed and working. I see where the GPO was been pushed to the clients in the about:config screen. The home button works correctly, But the startup page always comes up as the firefox splash screen and New Tab