Replacement Path Problem (Use in Local Formula or CKF?)

Hello BW Experts,
I have a couple of questions for a query I am currently working on that uses replacement path variables.
I am looking to calculate the difference between 2 dates (u201Ctodays dateu201D u2013 u201Cstatistics dateu201D)
The statistics date is a characteristic in the cube and for u201Ctodays dateu201D I am using a local formula using the SAP replacement path variable for todays date.
Currently I am using the replacement path in a local formula in the columns of the query and this is fine when the reference characteristic is in the querry rows i.e statistics date.
I believe the reference characteristic needs to be in the rows when using a formula variable replacement path in a local formula in the columns as if I remove the u201Cstatistics dateu201D from the rows the replacement path does not work.
The actual query specification requires the u201Cstatistics dateu201D to be a u201Cfree characteristicu201D not part of the rows so the replacement path using a local formula will not work if the u201Cstatistics dateu201D is in the u201Cfree characteristicsu201D
I have also tried using a CKF and using the same formula variable in this but it still did not work with the u201Cstatistics dateu201D in the rows?
Do you know of any solution?
Also could somebody explain what "Characteristic Reference (Constant 1)" means?
Thanks in advance..
Steve

Hi Steve,
I think you are right in infering that the replacement path wouldnt work if you didnt have the reference characteristic key in the rows to enable the replacement.
I think, the solution for you could be Virtual Characteritic.
Have you already thought about this?
I am not aware about the characteristic reference(constant).
Regards,
Sunmit.

Similar Messages

  • Problem while creating local formula

    hi guys,
    when iam trying to Create Local formula,i got error message with pop up screen like,
    BW Server Errror
    An error occured in the communication with server with BW server
    Due to this ,the communication had to be closed
    In detail description
    we got the message like
    'An exception occured that was not caught'
    can u please give me some idea to solve this issue,its very urgent.
    Regards
    sk

    Hi MK,
    thanks for your reply,i tried the way what u have suggested me,but stuck with same problem.
    Is it like that i dont have authorization to creat any local formula.
    plz suggest me in this regard
    Regards
    SK

  • Problems using a local Subversion repository in XCode 3.0

    I'm trying to get XCode to point to my local SVN, but no luck.
    I get the error "Error: 180001 (Couldn't open a repository) Description: Unable to open an ra_local session to URL"
    I'd tell myself "learn to setup/reference a SVN repository", but I've been using this SVN install for over a year through Eclipse doing Java development. I've also pulled it up svnX with no issues. Why is XCode balking at my connection info?
    My URL is "file:///usr/local/svn". Any ideas?
    -Mack

    ericmeyers wrote:
    Maybe it's the repository format ?
    Or maybe the permissions on the repository, and the directories above it, since it's in /usr/local? My repositories are all in a folder in a user's Documents folder.
    I just set up Xcode with a local Subversion repository and it worked for me, too. Though I just tested checking out, not checking in, since I did it with a real repository and I didn't want to mess it up too much. Try posting the exact steps you're taking and where you get the error.
    You'll definitely need to use three slashes (file:///usr/local/svn) to get to your repository. If you just use two, you most likely will have a problem, as the first two are for the file URL, and the third one is the actual root directory on the drive, if that makes sense.
    charlie

  • Library path problem using JDAPI

    HI,
    Under Windows XP, I am trying to attach library to forms using JDAPI. But the path also gets hardcoded in this case. When I move the forms to Linux and try to open the forms, it says library not found.
    Can anyone help me in this regard ?
    I would highly appreciate immediate help.
    Thanks & Regds,
    Nandakumar

    Its home directory does not contain files .profile,.bashrc,.bash_historySo feel free to create it manually.
    I have added LD_PATH_LIBRARY in file /etc/init.d/oracle-xe This not much well but all work. Of course it didn't help. Because you set it for root (again) and this setting is ignored because su command (in that script) uses oracle's enviroment settings.
    So create .bash_profile in /home/oracle (oracle's home) and set the enviroment in that file.

  • Problem using sockets locally

    Hey,
    I'm writing a simple client/server app and I'm trying to test it on my local machine. Every time I try to connect to the server I get a ConnectException. I'm running Ubuntu Intrepid (which I suspect may have something to do with my problem).
    This is how I'm setting up the server (just to add, this is threaded):
    this.socket = new ServerSocket(TCP_SERVER_PORT);
    socket.accept(); //blah, blah, blahAnd this is how I'm trying to connect:
    this.socket = new Socket("127.0.0.1",TCP_SERVER_PORT);I have no idea why this fails! Any ideas?
    Cheers,
    Puff

    ejp wrote:
    I get a ConnectExceptionwith what message?I get:
    java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:519)
         at java.net.Socket.connect(Socket.java:469)
         at java.net.Socket.<init>(Socket.java:366)
         at java.net.Socket.<init>(Socket.java:180)
         at client.TCPClient.<init>(TCPClient.java:30)
         at client.TCPClient.main(TCPClient.java:74)
    socket.accept(); //blah, blah, blahYou mean Socket client = socket.accept();That is what I mean, sorry (lazyness! :)).
    And this is how I'm trying to connect:
    this.socket = new Socket("127.0.0.1",TCP_SERVER_PORT);
    That should certainly work on the host the server is running on. Could be your /etc/hosts file. It should map 'localhost' to 127.0.0.1, and your real hostname to your real IP address. This is a common, and rather shocking, problem with some Linux distributions.
    127.0.0.1     localhost
    127.0.1.1     peter-laptop
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    Also can you post the output of netstat -na after you have started the server.
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State     
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN    
    tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN    
    tcp        1      1 192.168.1.70:57052      72.5.124.102:80         LAST_ACK  
    tcp        1      0 192.168.1.70:38987      66.102.9.100:80         CLOSE_WAIT
    tcp        1      1 192.168.1.70:57047      72.5.124.102:80         LAST_ACK  
    tcp        1      1 192.168.1.70:57049      72.5.124.102:80         LAST_ACK  
    tcp        1      1 192.168.1.70:57051      72.5.124.102:80         LAST_ACK  
    tcp        1      1 192.168.1.70:57050      72.5.124.102:80         LAST_ACK  
    tcp        1      1 192.168.1.70:57048      72.5.124.102:80         LAST_ACK  
    tcp6       0      0 :::22                   :::*                    LISTEN    
    udp        0      0 0.0.0.0:41091           0.0.0.0:*                         
    udp        0      0 0.0.0.0:68              0.0.0.0:*                         
    udp        0      0 0.0.0.0:5353            0.0.0.0:*                          I've cut out the bit after "Active UNIX domain sockets" because the message was too long, but I have it if it would help.
    Does this shed any light on the problem?
    Cheers,
    Pete
    Edited by: Puffy on Jan 9, 2009 10:48 AM

  • Can anyone explain me the significance of replacement path?

    hi all,
    Can anyone explain me replacement path
      - with text variables
      - with characteristics and
      - with formulas.
    Can anyone explain me with an example for each of those replacement path.
    And i heard abt replacement path for characteristics can be done using query too. so pls do explain abt that too.
    thanxs in advance
    regds
    hari

    Hi hari,
    Using Replacement Path in your Text and Formula variables, replace values held in a characteristic. The Characteristic value variables are replaced by the results of a query at run-time.
    check this link , a good example with screen shots are given to calculate the difference of DATE characterictics..
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    cheers
    Sunil

  • Replacement path variable for date not working

    We have a formula variable using replacement path (BEx 7.0) for a date field and after that we have calculated key figures to perform date difference calculations.
    This was working perfectly well until recently when the calculated key figures displayed an "X" instead of the value.
    The value seems to appear only when the date fields are drilled down in the report.SO this works like a formula instead.
    Is this just an unnatural case where something just stopped working ?
    We have checked the calculated key figures and the formula variables , they havent been changed in the recent past.
    Is there any other solution you could offer to get date differences without having the date fields in the rows ?
    Edited by: ABCD on Jul 29, 2009 2:28 PM

    How to use Replacement Path Variables to perform Date Calculations
    A Step-by-Step guide
    Have you ever wanted to perform calculations using dates defined as characteristics but have never worked out how it can be done? Replacement Path Variables are the key.
    Using Replacement Path in your Text and Formula variables, replace values held in a characteristic. The Characteristic value variables are replaced by the results of a query at run-time.
    The steps detailed below show a technique to enable a BEx query user to determine the number of days between two dates.
    Scenario:
    The group HR administrator wants a detailed line item report that lists all employee absences in a given period. The report is to show the employee number, the absence start date, together with the end date of the absence and show the number of calendar days the employee was absent.
    The good thing about using this technique is that no redesign work is needed from your technical BW team, no ABAP is involved and best of all, it quick and easy.
    Solution:
    For this example I created an ODS object called Absence that holds basic employee information along with individual absence record data.
    Follow the steps below:
    1.     Open the BEx Query Designer and create a new report on your chosen InfoProvider.
    2.     Drag the Employee, Valid from and Valid to characteristics into the Rows section of the screen.
    If needed, apply data selection restrictions to the characteristics as shown in Figure 1.
    3.     Right click on the Key Figures structure and select New Formula (Figure 1).
    Figure 1
    4.     
    5.     In the new formula window right click on Formula Variable and choose New Variable ( Figure 2 ).
    Figure 2
    6.     
    7.     The Variables Wizard will launch and will require you to specify the variable details.
    ( Click the NEXT button if the Introduction screen appears )
    8.     Enter the variable details on the General Information as shown in Figure 3 .
    Enter the Variable Name , Description and select Replacement Path in the Processing by field.
    Click the Next Button.
    Figure 3
    9.     
    10.     In the Characteristic screen (Figure 4) select the date characteristic that represents the first date to use in the calculation (From Date).
    Click the Next Button.
    Figure 4
    11.     
    12.     In the Replacement Path screen (Figure 5) select Key in the Replace Variable with field. Leave all the other options as they are (The offset values will be set automatically).
    Click the Next Button.
    Figure 5
    13.     
    14.     In the Currencies and Units screen (Figure 6) select Date as the Dimension ID.
    Click the Next button.
    Figure 6
    15.     
    16.     The Save Variable screen (Figure 7) displays a summary of the new variable.
    Click on the Finish button to save the variable.
    Figure 7
    17.     
    18.     Repeat steps 4 to 11 to create a second variable for the second date to be used in the calculation.
    In the example shown, the characteristic 0DATETO is used to create the variable ABSEND (Absence End Date).
    Define the Calculation
    We can now use our two new replacement variables to define our new calculated key figure that generates the number of absence days for each record.
    1.     You will now be back at the New Formula screen (Figure 8). Drag and drop the two new variables into the formula section of the screen and insert the subtract sign (u201C-u201C) between the two.
    2.     Give the new formula a description and click the formula syntax check button  to ensure the formula is valid.
    Figure 8
    3.     
    4.     The new calculated key figure will now show in the columns section of the BEx query designer (Figure 9).
    Figure 9
    5.     
    6.     Save the query and execute it.
    In the example shown the Number of Calendar Days Absent is calculated correctly. See the table of results below.
    Employee     Valid From     Valid To     Number of Calendar
    Days Absent
    50000001     17/04/2004      21/04/2004      4
    50000002     16/07/2004      29/09/2004      13
    50000003     07/01/2004      09/02/2004      33
    50000004     04/08/2004      05/08/2004      1
    Cheers:)
    Vivek

  • Add Local Formula in Query

    Hi,
    I am trying to use "Add Local Formula" in my query to add three columns. However there is a row that calculates percentage using the rows above. Using the "Add Local Formula" its adding all the percentage amounts (505050=150) instead of calculating it (using the new figures in the column). How can I fix this?
    Thanks

    Hello,
    Try changing the property of keyfigure..."Calculate Result as"

  • Information Broadcasting Excel Workbooks with Local Formulas

    We are attempting to use information broadcasting to send out reports that use the v7 BEX "convert to local formula" feature in order to reformat the reports.  We can execute the reports, and even save them to a local client and review them later when disconnected from the server.    However, if we use information broadcasting to send these Excel files out as attachments, the users are unable to see the data unless they connect and refresh, defeating our entire purpose of putting the data in excel.
    Has anyone else attempted to Information Broadcast BEX Excel workbooks while using the Local Formula mode provided with v7?  Were you successful?

    Yes, I see some information in the precalc log, but nothing that seems to be wrong:
    04-11-2008 11:15:13 -> RS_PREC_GET_SERVER_STATUS invoked in thread 8
    04-11-2008 11:15:13 -> Locking MapSessionid in getFreeInstances in thread 8
    04-11-2008 11:15:13 -> Locked MapSessionid in getFreeInstances in thread 8
    04-11-2008 11:15:13 -> Unlocked MapSessionid in getFreeInstances in thread 8
    04-11-2008 11:15:13 -> RS_PREC_GET_SERVER_STATUS finished in thread 8
    04-11-2008 11:15:19 -> RS_PREC_GET_SERVER_STATUS invoked in thread 5
    04-11-2008 11:15:19 -> Locking MapSessionid in getFreeInstances in thread 5
    04-11-2008 11:15:19 -> Locked MapSessionid in getFreeInstances in thread 5
    04-11-2008 11:15:19 -> Unlocked MapSessionid in getFreeInstances in thread 5
    04-11-2008 11:15:19 -> RS_PREC_GET_SERVER_STATUS finished in thread 5
    04-11-2008 11:15:19 -> RS_PREC_GET_SERVER_STATUS invoked in thread 3
    04-11-2008 11:15:19 -> Locking MapSessionid in getFreeInstances in thread 3
    04-11-2008 11:15:19 -> Locked MapSessionid in getFreeInstances in thread 3
    04-11-2008 11:15:19 -> Unlocked MapSessionid in getFreeInstances in thread 3
    04-11-2008 11:15:19 -> RS_PREC_GET_SERVER_STATUS finished in thread 3
    BR Mikkel

  • Explain replacement path in variables. ,

    hi this is ramireddy.

    Hi ram,
    18. U check the data in the cube using manage option.
    19. When you find some records missing when deltas are running then instead of going for re-init and again deltas you can go for repair full request giving selection conditions for those missing records, without affecting your delta laods
    In Infopackage manage screen in menu bar you have the option to mark the request as repair full request and then you will have selection criteria also in IP.
    20. when one infoobject depends on other infoobject then we go for compounding ex : 0sourcesystem
    21.variableoffset: with variableoffsets u can get data of previous months & next months data from the current data.
    example:if u have six months data in cube.
    now create variable for 0calmonth.
    take offset value as-2&+2.then it gives u previous 2months data andnext 2month data from the current month.
    suppose if u enter 2005 as current month then it for specifying variable offsets it displays 2003&2007 data also.
    22.replacement path is used for trending reports.

  • Formula variable using Replacement path not working

    Dear All,
    I am using a query to calculate YTD values in the report. I am using a formula variable to calculate the number of months. Formula is
    Month To - Month From+1
    When I am giving the range from 001 to 006 for period in th evariable screen,
    I am gettung Month To as 6 and Month From as 6 with total no . of months as 1.
    I think Month From is not being caculated properly. I created another formul variable using Replacement path, for characteristic Posting period, replace with a Key and dimension ID as number with out any offset.
    Still not working.
    Any suggestions.
    Thanks and Regards,
    Srini
    Edited by: Srinivas on Apr 24, 2008 11:13 AM

    Hello,
    I have seen this document already. It is slightly different from what I am trying to do here than what the post shows. How ever,  I did everything right, atleast seems to be and don´t know why I am not getting the From value from the posting period selected. To value variable is coming right.
    Any more sugegstions.?
    Thanks and Regards,
    Srini

  • Formula variable problem on replacement path

    Hi all,
    I created a characteristic value variable for the 0CALDAY (ZVAR1) with the following details.
    - Characteristic Value
    - Customer exit
    - Calendar day
    - Mandatory
    - Variable is ready for input  unchecked
    Now i need to give the calculated value in customer exit by I_STEP 2 in a new formula variable (ZVAR2).
    So:
    1) I create in columns a new Formula (zFormula)
    2) In edit mode I create a formula variable (ZVAR2)
    3) in edit mode of the formula I set the following details:
      - Replacement path
      - Replace variable with: Variable
    Here the problem: when I open the popup on selected box to choose the vcharacteristic value variable I don't see the ZVAR1.
    I don't understand where is the problem.
    May you help me ... regards, Roberto

    Ok solved.
    Roberto

  • Create a formula variable using replacement path for current date

    Hi All,
    I created a formula variable using replacement path for current date.
    But when i used this variable am getting an error message saying .
    " This Variable cannot be used in this query".
    Could you please let me know the reason?
    Thanks,
    Zehra

    Hi All,
    Thanks for all your help...
    I just found a solution via the below link
    in Bex Formula variabel, Current calander day(sap exit) missing.
    Here he is trying to use the existing formula variable.
    My doubt here is, Even i could not find this varaible in BEX formula variable, But could see this in BI Content path as mentioned in the above link.  DO i have to transport this varaible , or i simply can activate it in production?
    I just could find this in BI Content but not in MetaData Repository.
    Thanks,
    Zehra

  • 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

Maybe you are looking for

  • Use Java Timer to move a panel smoothly, need help!

    I am using JBuilder to build an Windows Application. I put everything on the contentPane. There is one Panel I call it "jPanelDemo" and another panel "jPanelText". Now I want to start a timer, and move jPanelDemo panel from the right side of jPanelTe

  • Playing multiple sounds at once

    Hi guys, I have this problem for some time now (I just havent got time to deal with it) - after latest installation of arch I am unable to play sound from multiple programs at once (eg from firefox and xmms). I tried to figure out alsa configuration

  • How to open stills as a movie?

    I have been unable to open a folder of still images as a time lapse movie.

  • Symbol & Text Substitution Is Case Insensitive But "Forgets" Case

    For example, when mistyping "The Republic" as "Teh Republic", text substitution will replace "Teh" with "the" in lower case, "forgetting" the original case. An understandable response from the software, but definitely not the best one. At very least

  • How to create content filters in muse?

    I want to ceate filters in my site like http://uk.rimmellondon.com/products/face but i guess there is no method in muse.. if any..please help me.. thanks..!!