Replacement Path with Query

Dear Experts,
We are facing problem where we had a query in which we are having the characteristic External Notiifcation and created varaible for the same and this variable is getting replaced with Output of another query i,e the procesing type for this variable is Replacement path.
We had results for the query which we are using in the replacement path and also the same values exists in the cube on which we built the second query in whcih we are using the Replacement path.
when we execute the current query,query was not showing any output.Any suggestions would be of great help.
Regards,
Sunil Kumar.B

ok

Similar Messages

  • How do I...Mimic Replacement Path with Query using Customer Variable Exits?

    Hello SDN:
    We are on BW 3.5 SP16.
    We are currently using a replacement path Query(RP) with variables
    to populate a variable in another Query(T).
    The problem we are having is with performance.
    The entry of variables in replacement path Query(RP) is optional (This is necessary there cannot be required values)
    When results from Replacement Path Query are small performance is fine. (e.g. 10 seconds)
    When results from Replacement path query are large performance suffers. (e.g. 1+ minutes)
    Users are free to leave the replacement path variables empty resulting in a large set of data to be replaced. This is the worst performance case.
    We would like to discover a way to conditionally execute the replacement path query. That is if users do not enter values for the replacement Query(RP) variables do not execute the replacement path query(RP).
    Does anyone know if this is possible within reason and in customer exit space?
    We have reviewed the situation from all angles and the requirement for the replacement path FUNCTIONALITY and the freedom for the user to leave variable values blank remains.
    I've been searching and reading SDN and SAP notes for about a week and do not find threads which address this situation.
    We are also exploring Customer variable exits to mimic replacement path functionality
    (different topic subject="How do I...Mimic Replacement Path with Query using Customer Variable Exits?")
    Any help will be appreciated
    Many thanks
    David Schuh

    My appologies-I posted this message with the wrong subject. I will repost it with appropriate subject.
    dave schuh

  • Can anyone give me examples of replacement path with query?

    hi all,
    Can anyone give me examples of replacment path with query. if u have any docs pls send it across to my email id [email protected]
    thanxs
    hari

    Here is an example:
    Lets assume you have a characteristic( Say Project)  with about 30 attributes. now your requirement is to display all 30 attributes and about 10 keyfigures and another characteristic and it's attributes...
    If Project has about 25K projects in a Year,you will find its very difficult to diasply all the inofmation with one Query.(you may get disconnected from server after executing the query)..
    So firstly,create a Query1 only with Project and keyfigures.
    then create another Query2 only with Project and its attributes...here create a variable on Projeect with replacementpath and select the Query1.So you will have the Projects only from Query1.
    Create Query3 with Project and other chars.create one more variable on Project with replacementpath select Query1 result. So this Query also gets Projects from Query1...
    Now Query2 and Query3 get Projects from Query1 always...so you will have same Projects in your all 3 Queries..
    Now crate a workbook and insert 3 Queries.make sure you insert Query1 lastly.Since last inserted query will be executed first...
    You may use VBA or excel functionality if you want to see whole data in one sheet.
    Hope this helps.

  • Replacement Path with query---error

    Hi
    I have one query 'B' which uses replacement path variable(with query  A) on 'Customer' infoobject in Global filter area.
    So everytime,I execute query 'B',first query 'A' runs and gives some customers list who are active yesterday and today.This active customers list is fed into replacement variable in query 'B' and query 'B' shows its own result.
    The problem,we have is,Query 'B' is showing some customers who are not in the list returned by query 'A'.
    Any ideas,how I can fix this problem?
    Thanks.............

    Hi
    Thanks for your reply.
    Both run on same Multiprovider.
    First thing is...this Customer infoobject is placed in Global filter area of Main Query and the infoobject has replacement path variable(with query on it).So the main query's data is limited to whatever customers that are given by replacement path query.
    how can Main query show some customers data thats not been given by this replacement path query?
    Second thing is...when user reported this error,he showed error in screenshots.When I ran query today,error is gone.Its showing correct.I reported to user and he informed that its happening now and then ....He gave one more example that happened today which is exactly of some type.....Main Query is showing customers that are not given by Replacement path query .....
    Any ideas?Thanks

  • Need some clarification on Replacement Path with Variable

    Hello Experts,
    Need some clarification on Replacement Path with Variable.
    We have 2 options with replacement path for characteristic variables i.e.
    1) Replace with query
    2) Replace with variable.
    Now, when we use  "Replace with variable" we give the variable name. Then we get a list for "Replace with" as follows:
    1) Key
    2) External Characteristic Value Key
    3)Label
    4)Attribute value.
    I need detailed explanation for the above mentioned 4 options with scenarios.
    Thanks in advance.
    Regards
    Lavanya

    Hi Lavanya,
    Please go through the below link.
    http://help.sap.com/saphelp_nw70/helpdata/EN/a4/1be541f321c717e10000000a155106/frameset.htm
    Hope this gives you complete and detailed explaination.
    Regards,
    Reddy

  • Replacement path with text variable

    Hi experts,
    My client requirement is " when he enters the current year or current day then it should display the Description of that particular year r month r day."
    Can anyone explain me in detail how to create replacement path with text variable on FISCAL YEAR?
    Hope will solve my issue soon.
    Thanks in advance
    Jani Sk.

    Hi,
       goto the properties of your KF and click on the variable button side to that of the description field and click on new/Create option.Enter the technical name description for the text variable and select Replacement path as the Processing type and in the nxt screen select Fiscal year as the replacement variable and in nxt screen  specify as Key and provide offset values if necessary and click on finish.now select the variable by clickin on the variable button next to the description field.it comes after the description of the KF.Now run the query.
    Thanks,
    Sandeep

  • Using Variable Replacement Path with Hierarchies

    Hi,
    I have a requirement where I have two product hierarchies.
    In my report I want the user to be able to select which hierarchy they view at run time.
    I want them to be able to see this hierarchy as a tree,in order for me to do this I first must inlcude one variable to specify which hierarchy i am going to use, then the next Variable2 is populated by Variable1 and allows the users to expand on that hierarchy tree.
    E.g
    At Run Time
    Selection 1: User selects Product Hierarchy1
    Selection 2: Gets automatically populated based on selection 1 to show the product hierarchy tree for this variable.
    I have tried using replacement paths to do this but it does not allow this.
    Any ideaS?
    Thanks

    It finally worked, looks like the reason it was not working was a Query Designer exception issue whihc went with a re-start of Query Designer.
    All good

  • Variable replacement path with another variable

    Hi Guru's
    I'd like to use the functionnality of replacement path from a variable.
    Well, i have variable V_1 which is a basic manual entry variable based on a date infoobject. this variable is not mandatory and accessible.
    And i have the variable V_2 which should be based on V_1 so i created V_2 with a process replacement path and in the replacement tab i put V_1 (i try with the list but i didn't find my V_1)
    But the result is that V_2 is always empty but i have no problem when i check the query
    So do you have any idea ?
    Why i can not see the V_1 in the list of variable from the replacement ?
    I don't want to use by exit. i know that it is possible but i want to use the main simple functionnality for flexibility is maintenance by users.
    Thanks for help
    Cyril

    thanks for your answer,
    svu123, my V_1 variable is of course in a correct status to be used. i made test in first without V_2.
    And when i create V_2 in the first tab i activated correctly the replacement in processing type. if not i can not choose
    the query or variable source and i can not see the list of variables.
    Rakesh, i tried what you answered without results. i check different variables that are available in the list and i have
    lots of different variables (all in ready for input) but i have interval, multiple single values, SAP standard variables my own variable on other fields.
    any other ideas ?
    many thanks
    Cyril

  • Problem in displaying dates for replacement path with text variable

    Hi all,
    I have to display dates in sequence as descriptions for 15 columns based on the the date entered by the user in Bex Report.I managed to display date as description using text variable with replacement path for single column.I could not able to increment date for other descriptions.Could you please help me to solve this issue.Its urgent.
    Ex: User enters 03/09/2007 then in the out put desciptions for the columns should be  03/09   04/09  05/09 ............ 17/09.
    Thanks in advance.
    Regards,
    Mandadi.

    Hi,
       goto the properties of your KF and click on the variable button side to that of the description field and click on new/Create option.Enter the technical name description for the text variable and select Replacement path as the Processing type and in the nxt screen select Fiscal year as the replacement variable and in nxt screen  specify as Key and provide offset values if necessary and click on finish.now select the variable by clickin on the variable button next to the description field.it comes after the description of the KF.Now run the query.
    Thanks,
    Sandeep

  • Replacement path with build in condition

    Hi BI guru
    There is a requirement to count the no of 0material that with sales qty vs 0material with stock on hand. I am using replacement path to count the 0material. The calculated result not as expected as system will count all the 0material regardless of sales qty or stock on hand. Can friends share with me how can I achieve it in the query?
    Regards
    Kang Ring

    Hi,
    I had tried the formula. The count result is incorrect at summary level unless we drill down to 0material. The requirement is to count the no of material and show it in summary level.
    Regards,
    Kang Ring

  • Crystal Report using BW Query that contains replacement path (control query

    I have a Crystal report built on a BW query.  The BW query contains a replacement path on a characteristic (as a control query).  The control query has additional variables that the main query is not using.  The crystal report is not recognizing any of the variables that the control query includes.  How do I get the crystal report to recognize the control query variables?

    Post your question BEX and B1 and/or classic SAP data source issues to the Integration Kit forum

  • Replacement Path using Query Output

    Hello Forum
    We have a requirement where we have to use the output of a query as an input for the second query.
    To achieve this we thought of implementing a replacement path variable on query 2 which would use the output of query 1 to execute query 2.
    However on implementing we are facing an abort during query runtime saying "Variable cannot be replaced in query Brain 442"
    Our query 1 is created on a Multiprovider and query 2 is created on an infoset.
    Replacement path variable is created on a "Z" infoobject which is a replica of 0Material.
    Can anyone please advice what could be the possible reason and how it can be solved.
    Regards
    Ashish

    Hi,
    Try to check note 1432062.
    Regards,
    Vinay

  • How do I...Conditionally control Replacement Path Query execution?

    Hello SDN:
    We are on BW 3.5 SP16.
    We are currently using a replacement path Query(RP) with variables
    to populate a variable in another Query(T).
    The problem we are having is with performance.
    The entry of variables in replacement path Query(RP) is optional (This is necessary there cannot be required values)
    When results from Replacement Path Query are small performance is fine. (e.g. 10 seconds)
    When results from Replacement path query are large performance suffers. (e.g. 1+ minutes)
    Users are free to leave the replacement path query variables empty resulting in a large set of data to be replaced. This is the worst performance case.
    We would like to discover a way to conditionally execute the replacement path query. That is, if users do not enter values for the replacement Query(RP) variables do not execute the replacement path query(RP).
    Does anyone know if this is possible within reason and in customer exit space?
    We have reviewed the situation from all angles and the requirement for the replacement path FUNCTIONALITY and the freedom for the user to leave variable values blank remains.
    I've been searching and reading SDN and SAP notes for about a week and do not find threads which address this situation.
    We are also exploring Customer variable exits to mimic replacement path functionality
    (different topic subject="How do I...Mimic Replacement Path with Query using Customer Variable Exits?")
    Any help will be appreciated
    Many thanks
    David Schuh

    Hello SDN:
    We are on BW 3.5 SP16.
    We are currently using a replacement path Query(RP) with variables
    to populate a variable in another Query(T).
    The problem we are having is with performance.
    The entry of variables in replacement path Query(RP) is optional (This is necessary there cannot be required values)
    When results from Replacement Path Query are small performance is fine. (e.g. 10 seconds)
    When results from Replacement path query are large performance suffers. (e.g. 1+ minutes)
    Users are free to leave the replacement path query variables empty resulting in a large set of data to be replaced. This is the worst performance case.
    We would like to discover a way to conditionally execute the replacement path query. That is, if users do not enter values for the replacement Query(RP) variables do not execute the replacement path query(RP).
    Does anyone know if this is possible within reason and in customer exit space?
    We have reviewed the situation from all angles and the requirement for the replacement path FUNCTIONALITY and the freedom for the user to leave variable values blank remains.
    I've been searching and reading SDN and SAP notes for about a week and do not find threads which address this situation.
    We are also exploring Customer variable exits to mimic replacement path functionality
    (different topic subject="How do I...Mimic Replacement Path with Query using Customer Variable Exits?")
    Any help will be appreciated
    Many thanks
    David Schuh

  • Replacement Path variable cannot be used in filter

    After creating a variable of type replacement path with query I get the error message:
    Errors: Variable ... cannot be used in 'Filter' 'Default Values'; remove
    Does anyone know what is causing this message and how to prevent it?
    Thanks.
    Regards,
    József.

    Thanks for your response Bhargava,
    Your answer did help me find the solution. When using a replacement path variable with query, you can only use the variable in the Characteristic Restrictions part of the Filters (not in the Default Values).
    The characteristic itself can still be used for navigation.
    p.s. Found that when copying a query some links to structures, like restricted key-figures, are kept in the metadata repository, even after removing them from the query. This can also cause error messages.
    Regards,
    József.

  • Replacement path

    HI
    In a  query i have only one varialbe.Variable is using the processing type Replacement path with Query.
    When I execute the query it is not displaying the selection screen and directly taking into the output.
    My question is when I have a variable with process type as Replacement, wheather it displays the
    selections screen ot not
    Regards
    Edited by: Bi power on Mar 25, 2009 8:17 AM
    Edited by: Bi power on Mar 25, 2009 8:17 AM

    Hi
    No it won't show
    Please find below help link which clearly explains it and prerequisites need to be fulfilled
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bd/589b3c494d8e15e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ee/1e9b3c334d8c15e10000000a114084/frameset.htm
    Regards
    Ravi
    Edited by: Ravi Naalla on Mar 25, 2009 7:23 AM

Maybe you are looking for

  • Best way to distribute configuration values to subVIs

    I have a main VI with ~10 subVIs, all of which have a number of default constants embedded. I want to change my architecture so that all the constants are moved to a single ASCII text file which is not changed during program execution. I'm trying to

  • Populate a field on TAB press in ALV Grid (OOPs)

    Hi Experts, I have an ALV(oops) with cl_gui_alv_grid. I have a field MATNR as empty and when i input a value and i press TAB key d anit should go to next field (next coulmn) to fill the  old material# which can be got from MARA. I am not able to get

  • IOS - Create Event from Messages in Calendar doesn't observe default Alert settings

    I have discovered a bug in the iOS Calendar app. If one gets a text message with a time and uses the underlined link (in Messages) to "Create Event," the newly created calendar item (Event) does not set the alert as defined in Calendar settings. For

  • Problems with import from textfile

    Hi We are experiencing problems with importing tables from a text-file. We are using Designer 6i (NT) release 2. Some of the column sequences are lost others are changed. Foreign keys are lost if the referenced table is after in alphbetical order! No

  • Need help with simple stuff not compiling

    I just started to use java today and I don't understand things very well... I am working on doing arithmetic in java and when attempting to compile my program I get a list of 5 errors saying "Arithmetic.java:17: package system does not exist system.o