Replacement Path: Replacement with a Variable Value

How I can show the value of a variable entered by the user in the description of the column in the report?
X and Y are variables entered by the user and reflect the lower limits of the range for count documents
Example
Table                              
0doc_type     Material_type  Purchase_group     < X     => X And <=Y     > Y
XXX     BBBBB        CCCCCC                         3     4                                          5

Hi...
Use a text variable in the column description,
and use replacement path to show the descriptions as required.
lets say you have variable 1 and variable 2
create two text variables with processing type replacement path and select the above variables for each.
Eg. the descriptions of your columns would be something like this after using text variables
Total number of documents which are lower than &txt_var_x&.
Total number of documents which are between &txt_var_x&. and &txt_var_y&..
Total number of documents which are greater than &txt_var_y&..
Hope this helps,
Regards,
Joe

Similar Messages

  • Coloumn Headings replace with text variable

    Guys
    I have to display coloumn headings for my key figures to be able to match with the time period selection. Is it I need a text variable and if I do where do i create it and for what charachterstic.
    Also i need to ;pick a variable values  based on other variables in the same query. can i do it through replacement variable or any other ideas.
    thanks

    Hi,
    Yes, you are right you need a text variable in order to display the cloumn headings to match the time period selection.
    Text variables with the processing type Replacement Path are replaced by a corresponding characteristic value. The value of a text variable has to be a text.
    How to create & where to create a variable check here:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
    The Reference Characteristic you can use should be a time characteristic like "cal. year/month". Choose according to your query requirement.
    Hope this helps...
    Cheers,
    Habeeb

  • How to Create Charts with the variable value

    Hi,
    I have to create a crystal report in which i have given variable under "Facility:". I have kept two variables under facility of which one is like you can select one or more values and other one u can select only one value and i mentioned it as mandatory.
    What i wanted is, I have to create a bar chart based on the facility . I also want to create a pie chart using the value of facility which comes from the mandatory variable.
    To be more clear, I selected two facilities, say X & Y under the first variable and one facility, say Z under the second variable (mandatory). I was able to prepare bar chart with these three facilities. Now i want to prepare a pie chart using the value Z.
    Can anyone please help me out?

    Likely a bug in the ChartBuilders or the JDK.
    ScatterChartBuilder.<Number, Number>create().build(); // does not work either.javac is unable to determine if the create() method from SceneChartBuilder or the create() method from RegionBuilder should be applied.
    The AxisBuilders which also derive from RegionBuilder work because they don't define their own create method with obscure generic type info.
    How can I resolve the ambiguity?new ScatterChart ;-)

  • Problem with update variable value

    i have declase a variable as
    static int small;
    in the public class.......
    then the method "a" will update this "small" to a new value everytime the "a" is called....
    but i could not update the "small " to a new value....everytime is the same value.....
    how could this be solved??

    i think my rpoblem come from other factor.....
    i think i'm unable to remove the selected node from the list....
    eg:
    newtempNode = firstNode;
    tempNode = firstNode;
    for ( int i =0;i < (smallid-1);i++)
    tempNode = tempNode.next;
    for (int i = 0; i< smallid;i++)
    newtempNode = newtempNode.next;
    tempNode = newtempNode.next;
    ==>can the above delete the selected node from the list???
    or anybody can show me how to deleted the selected node from the linked list???

  • When Hard-coded server name and data base name are replaced with variables , execute process task does not produce the result

    Hi All,
    I am trying to load shape file into a sql spatial table. A execution process task is used to run the ogr2ogr.exe program.
    This is how the process tab looks like .
    Executable : C:\gdal_ogr2ogr\bin\gdal\apps\ogr2ogr.exe
    Argument :  -f MSSQLSpatial   MSSQL:server=SQL-ABC-DEV;database=MYSIMPLE_Dev;Trusted_Connection=True;\\mypath\files\shares\Data\www.mypage.htm\my_sample_file.shp
    Success value : 1
    For above settings, package runs fine. The spatial table is created in SQL server db. However when hard-coded SQL server name and database name are replaced with global variables , the spatial table is not created in the database. Yet the package runs fine.
    It does not throw any errors. (I am using another variable for full file path. It is not causing any errors though)
    " -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True;"+ @[User::Filepath] + "\\my_sample_file.shp"
    Both variables are string type. Can anyone tell me what I am doing wrong here please?
    I am running this in VS 2012.
    Thanks for your help in advance..
    shamen

    There should be a single space just after True:
    before
    " -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True;"+ @[User::Filepath] + "\\my_sample_file.shp"
    after keeping the space
    " -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True; "+ @[User::Filepath] + "\\my_sample_file.shp"
    Thanks
    shamen

  • Open a crystal report from WAD with passing  the variables values

    Hi,
    I need to know is there any way to link SAP WAD to crystal reports (open a crystal report from WAD)and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Maybe we need to pass parameter by WAD URL but this is just my assumption and have no idea how to do this with passing variable values.
    right now I know the method of how Bex queries which are used as data source for crystal reports but in my current scenario we have the structure like this that bex queries link with WAD and then WAD is linked with crystal reports.
    No doubt that Crystal report is target option in RRI but there the source is Bex Query only but in current scenario we are looking  WAD (web template) as a source to crystal report or crystal report called in WAD.
    Please suggest something on same.
    Thanks
    Take care
    Vishal sharma

    Hello Vishal.
    Did you find a solution for this problem?
    I'm facing right now the same problem, I need a way to link SAP WAD to crystal reports (open a crystal report from WAD) and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Have found an answer to this issue? If yes, please kindly inform how have you solved this.
    Best Regars
    Armando Santos

  • Retrieve variable value from local Storage and display on canvas

    Hi
    I'm working on a project that has multiple html files (the projects are split into 12 so 12 different edge projects and im linking them via window.open()). I have a variable that keeps track of correct answers stored in LocalStorage html object. I have managed to get the localStorage variable to increment up by one each time the object is correct however my last step is to get the variable and them display the result on the canvas. I have tried
    var outPut localStorage.getItem(' ') method to retrieve the variable then used the set and get method to display the result however it doesn't work. Im not sure if I need a for loop to go though the localStorage and get the elements
    Code:
    // insert code to be run when the composition is fully loaded here
    yepnope({nope:['jquery-ui-1.10.0.custom.min.js','jquery.ui.touch-punch.min.js'],complete: init}); // load the jquery files
    sym.setVariable("myScore", 0);
    var c = localStorage["myCount"] || 0; //loading from localStorage
    function init(){
    sym.getSymbol("barLimit").$('scrubber').draggable({start: function(e){
    },drag: function(e,ui){ // start: ...  // Find original position of dragged image
    var leftLimitScrubber  = sym.getSymbol('barLimit').$('scrubber').position().left; // position of the scrubber
    var rightLimitScrubber  = sym.getSymbol('barLimit').$('leftLimit').position().left;
    var LimitTwoLeft  = sym.getSymbol('barLimit').$('rightLimit').position().left;
    if(leftLimitScrubber == rightLimitScrubber){
      sym.getSymbol('correctBar1').play('in'); //
      sym.getSymbol('nextButton').play('in');
      sym.getSymbol('incorrectBar1').play('out'); //
      sym.getSymbol('thumbsDown1').play('out'); //
      sym.getSymbol('thumbsUp1').play('in'); //
      sym.getSymbol('congrats').play('in'); //
    localStorage["myCount"] = parseInt(c)+1; //Converting string to number, and then saving it
    console.log("numberOfCorrectAnswers", localStorage["myCount"]);
    var finalScore = sym.getVariable("myScore");
    finalScore = c;
    sym.setVariable("myScore", finalScore);
    sym.$("Score").html(finalScore);
    } else if(leftLimitScrubber == LimitTwoLeft){
    sym.getSymbol('incorrectBar1').play('in');
    sym.getSymbol('correctBar1').play('out');
    sym.getSymbol('thumbsUp1').play('out');
    sym.getSymbol('thumbsDown1').play('in');
    axis: "x",
    containment: "parent"
           //for (var i = 0; i < localStorage.length; i++){ // iterate throught the local storage
             //var getItem = localStorage.getItem(localStorage.key(i));
              //if(getItem == 'numberOfCorrectAnswers' ){
    The above is the code for the 12th project in  this projects it needs to display the variable inside the object localStorage and display on the canvas.
    Any help will mean a lot. Thank You in advance
    P.S edge animate has a lot of bugs hard to code in

    what you need to do is to create a text box and set a default value of zero. Once that is don't you need a code on the stage which grabs the value form the localStorage object. I used the .text() jquery method to display the value on the canvas. So the zero will be replaced with whatever the value of the localStorage is.
    You also need a if statement to check if the localStorage is undefined, if its not then grab the value and display on the canvas.
    e.g
    var number = localStorage['finalValue']; // for the sake of completeness I had to put this line of code
    if( number ! = undefined){ // if not undefined so the object exits then ...
         sym.$(' (text identifier) '). text(number); // note text identifier is the name of the text box you create in edge
    } // Done

  • How to change the variable value format in Ip workbooks

    Dear Experts,
    How to add zeros to a vaiable value before passing to a planning function in BEx analyzer?
    eg: 'ZPRCTR_VAR1' (For Infoobject 0PROFIT_CTR)
    User enters value 20 for 'ZPRCTR_VAR1' , but the system know only '0000000020'. I wrote a user exit like this, but nothing happens and I get variable value 20 is incorrect, planning function cannot execute. Please advice .
    DATA ZDIVISION   TYPE /BI0/OIPROFIT_CTR.
    DATA ZDIVISION1   TYPE /BI0/OIPROFIT_CTR.
    WHEN 'ZPRCTR_VAR1'.
         IF i_step = 2.
          LOOP AT i_t_var_range INTO loc_var_range
            WHERE vnam = 'ZPRCTR_VAR1'.
            zdivision = loc_var_range-low.
           MOVE l_s_range-low to zdivision.
          ENDLOOP.
        ENDIF.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
       EXPORTING
         INPUT         = zdivision
      IMPORTING
         OUTPUT        = zdivision1.
        CLEAR l_s_range.
        l_s_range-sign  =  'I'.
        l_s_range-opt   =  'BT'.
        MOVE zdivision1 TO l_s_range-low.
        APPEND l_s_range TO e_t_range.
    Thanks,
    Gnana

    Hi Gnana,
    you can use de "area value" option when define a button with planning function and variables for passing values to function. These values are in excell cells so you can modify it as you want.
    So imagine that your planning function has only one variable, the command sequence looks like
    CMD                                           1       EXECUTE_PLANNING_FU
    PLANNING_FUNCION_NAME       1       YOUR_FUNCTION
    DATA_PROVIDER_FILTER           1       DATA_PROVIDER_1
    VAR_NAME_1                             1       YOUR_VARIABLE
    and now you delete row with VAR_VALUE_1 and in result area you use for example
    $A$1:$C$1
    Now, cell A1 = VAR_VALUE_1
    cell B1 = 1
    cell C1 = Reference to another cell with your variable value (text item). You can use any excell function for fill 0's
    And now, when you execute planning function you're passing cell C1 as value of your variable.
    Hope it helps.
    Enrique
    Edited by: Enrique Delgado on Jun 3, 2008 7:00 PM

  • Variable value passing

    I am having issue with passing variable value from one class to another.
    I have class A and Class B bot in same package.
    package D
    Class A {
    private int j = 0; //I have getters and setters for this variable
    public void doSomething(){
    j++;
    this.setJ(++j);
    Class B{
    A a = new A();
    int i = a.getJ();
    System.out.println("value of j is "+i);
    My problem is class A gets called first and j's value get incremented twice...it becomes 2. But when i am calling the getter value in i received is 0 (initial value of J).
    Someone recomened since A does not know about method getJ in B i use request object to set value of j in B which i did but result is still same i am getting value as 0. I tried using request dispatchr but than also am not getting right value of J in A.
    I know this is basic issue in java if anyone canhelp me i will be really grateful.

    Post a small, complete example, using the [ code ][ /code] tags, that will compile and shows the behaviour you are having a problem with.
    In the example above, only the A.doSomething() method changes j from zero, and it is not called in B, so you'd expect j to be 0. There's no reason to resort to reflection.
    Pete

  • How I can gain the variable value in web-application?

    Hi,
    I have a web-template with several web-item. The data provider refers to a query with a variable screen.
    After the report run and the table is displayed, i have need to set a paticular filter-item with the variable value that i put in pop-up screen.
    Therefore I am trying a function or method in order to pass the variable value (pop-up variable).
    Help me, Thanks in advance

    Hi Ciro,
    in the Web item properties of the Text element web item you can specifically select in the ITEM_LIST a list of text elements. For variables you can choose if you want to display text or key values. This should work for the print template.
    With the Excel display I'm a bit unsure. There is a BEx Function called SAPBEXshowTextElements that allows you to display the variable values. I just don't know if you can execute it in the SAPBEXonRefresh. You can find additional information in the BW help under Business Explorer->Analysis & Reporting: BEx Analyzer->Queries in Workbooks->Integration with Visual Basic for Application (in the BW 3.1 documentation).
    Another thing that might work is to add another navigational attribute to the needed InfoObjects with reference to the InfoObject. While loading Master Data you can fill the navigational attribute with the same value as the characteristic. Then you can drag the variable into the filter and put the Navigational attribute into the query.
    Example: You have the IO 0COSTCENTER that you want to put a filter on. Create an IO COSTC_N (Costcenter Navigation) with reference to 0COSTCENTER and insert it into 0COSTCENTER as navigational attribute. While loading Master Data for 0COSTCENTER fill COSTC_N from 0COSTCENTER.
    In the query put COSTC_N into the filter box and create a fitting variable. 0COSTCENTER can now be displayed in the rows and the filter values for COSTC_N are displayed in the query.
    Best regards
       Dirk

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • Formula variable with replacement path to another input variable

    Hi @ all,
    i have a question regarding "Formula variable with replacement path to another input variable".
    My Problem is that in selection screen and for info-fields the input variable is shown with its key and not with its description.
    Scenario:
    A formula variable (X) is used to get an input value of a characteristic variable (Y) for 0Fiscper3 to realize a IF-Then scenario.
    The formula variable (X) uses replacement path by variable (Y) replace by "key".
    In selection screen of the query variable (Y) is named with its key "ZAB_BUPE01" and not with its description " fiscal period". Same as for info-fields where the description is "ZAB_BUPE01" and not " fiscal period".
    Does anybody have a solution to display the selection variable correctly?
    Regards
    Tobias

    Issue Solved!
    The input varaible (y) for 0Fiscper3 was saved globally on the InfoProvider. This results in that the formula variable with replacement path only shows its technical name. I put the input variable in the query itself and it soved the problem. The variable is displayed with its description in selection screen.
    Regards

  • Exception color with formula variable(replacement path)

    Hello,
    I tried to define exceptions in a query which "from" and "to" values
    are determined by formula variables with replacement path. I checked
    the values of the formula variables and they are right. <b>But <b>the cells
    are not colored</b></b>. When I set the same values in the field "from" and "to" without variables : the colors appear.
    Could help me to resolve this problem please ?
    Catherine Bellec

    Hi Alec,
    You are right, the user exit permits to color the lines.
    But the value of my variable needs to change for each line of the infocube so I can't do this with the user exit RSR00001 because it concerns global variables.
    That's why I used a replacement path on a virtual characteristic.

  • Issue with text variable by replacement path

    Hello All
    I have a date field called ZDATE1 (it is based on 0DATE). I have used this this IO in a query and have create variables on it (ZSTARTDT and ZENDDT), Start and End date. And my KFs are based on these 2 dates: Quantity - Start Date & Quantity - End Date  / Product Value - Start Date & Product Value - End Date. Those are my descriptions for my KFs.
    Now, I want the replace the descriptions "Start Date and End Date" with the actual values that I am entering like 09/01/2010 and 09/10/2010. Ex: Quantity - 9/01/2010 & Quantity - 9/10/2010.
    Therefore, I create 2 Text Variables,
         1. ZSTART, Replacement Path, Ref Char (ZDATE1), Replace by Variable ZSTARTDT, with KEY, offset - blank
         2. ZEND, Replacement Path, Ref Char (ZDATE1), Replace by Variable ZENDDT,      with KEY, offset - blank
    And I put these text variables in the descriptions. But when I run the query, I still see: Quantity - &ZSTART& and Quantity - &ZEND&.
    Note that my ZDATE1 which is based on 0DATE does not have a master data table or text table; it is purely transaction data. Does that mean, my text replacement path variables wont work.
    Any suggestions??

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • Replacement Path Variable with Another Variable

    Hi,
    I am currently trying to create a report that would need me to have the same values for different characteristics (e.g. clearing date, posting date, net due date). I have seen that there is a way in the replacement path variable that would replace its value with another variable that is ready for input. I also looked into SAP help but I can't seem to figure out on how to do it specifically. Does anyone know a step-by-step process on how to do this? How does this work?
    Thank you in advance!

    take an e.g.
    u have characteristic say ch1
    u want to restrict it with replacement path variable
    first of all create a variable var1
    click what it is based upon for e.g. 0calday, 0material etc.
    make it user entry variable
    select single or multiple entry
    make it mandatory
    save it and hit okey
    click on ch1
    right click and say restrict
    in new window create a new variable
    give its name and technical name
    processing path is replacement path
    go to next tab of replacement path
    select several ooptions
    replace variable with another variable
    select a variable called var1
    change the offset length and offset start with different parameters.
    hit okey
    this way u have restricted ch1 with replacement path variable var1
    now when u run report u have to enter value of var1
    which will then further feeded to ch1
    this way u can create replacement path variables at lots of instances and then u can always feed the value from var1 at different time
    make sure as this ur requirement is date
    try to use 0calday as reference infoobject all the times....

Maybe you are looking for

  • Mid 2009 macbook pro battery is dead and fan is constantly ramped up (not due to heat). Would installing a new battery fix the fan problem?

    Battery icon has an "x" over it and I need to have my laptop plugged in to be on. I've ordered a new battery to install, but I was wondering if it's possible that something else might be causing the fan to be on over drive constantly. I've tried rese

  • Xpath Namespace problem

    Hi, I'm facing a problem while reading an xpath element which has namespace attached. The xml document is as follows <ns0:_root  xmlns:ns0="http://www.oracle.bt.bp.osm/GPRLN"> <ns0:Port_and_Routing_Details_g> <ns0:Action_Code> <ns0:Code1>Add</ns0:Cod

  • Delaying display of components

    hi, i would like to add many components in a JPanel. i want some delay between the display of each component. i tried thread.sleep() and SwingUtilities.invokeAndWait() but they dont work as i expext it to. could you help me out ? thanks, raj

  • Microsoft Patch for OWA 2007 CRES Secure Mail Recipients

    CRES Secure Envelope Recipients attempting to open the CRES Secure Envelope through Microsoft OWA 2007 will need to enable the server side administrative option to disable the HTML/XML filter. Though this HTML filter option will be officially release

  • Impdp full database require user??

    Hi All, I have taken a expdp backup of full database using "indiamart" user which have the sys privilege. Now on the other machine i hv created a database using dbca. Now i want to import that backup here, do i need to create "indiamart" user here al