Determine variable value based on characteristic row value

Hi all,
Am basically looking for a bit of advice from those wiser than myself.
I have a requirement to build an Activity per Driver report which is essentially a list of cost centres down the page, with Productive Hours (an SKF) in one column, the driver (another SKF) in the next column, and then a calculation.
Sounds easy, however the SKF for the driver differs depending on the cost centre. . . .
For example, cost centre 100 might be driven by ACTIV1 whereas cost centre 200 might be driven by ACTIV2 and then cost centre 300 might also be driven by ACTIV1.
I have come up with 2 possible solutions ;
1) Set the SKF as an attribute of the cost centre and then use this as the restriction in the report.  Easiest, most standard way of setting it up, however the problem here is that some cost centres use a number of SKFs (represented by a hierarchy node) as their activity driver.  I can't set a hierarchy node as an attribute, so I don't know how this could work for those cost centre with more than one SFK accumulating as their driver.
2) Maintain a Cost Centre to SKF Driver mapping table in R/3 which is loaded into an ODS in BW.  Create the report using an exit variable for the driver, which queries the ODS to retrieve the appropriate SKF value(s) for each cost centre.  Could this work - not sure how I know which cost centre to retrieve the driver for in the exit coding ?
Any suggestions would be welcomed.  Surely this can't be a unique problem.
Many thanks,
Blair

I should have explained better before. I have one invoice template and we want to keep it one template for all companies. Each invoice is run individually, each companies footer is different, I am calling multiple headers and footers based on each company. Since the headers and footers are different I need to be able to add different amounts of lines and the end of each invoice depending on that company. I have accounted for the page break in my logic based on the amount lines the page is long. I just need a dynamic variable that I can assign different values on the fly.
Thanks

Similar Messages

  • Cannot determine a value for an exit variable in the Formula fn w/p empty

    Hi All,
    We have an exit variable Z_EX_AR_VAR, the would read a hierarchy node input variable (Z_HN_AREA), which is furthur based on a hierarchy input variable (Z_HR_AREA), and wouuld return the first leaf of it.
    We have implemented a input ready query based on this exit variable and it is getting the first node and is input ready and saves the data to the database.
    It works well in the query when we have filtered the characteristic with the hier and hier node and the exit variables.
    We need to use the same value to be used in the Fox function.
    As per the requirement, the Fox function has to process the zero (empty) records.
    So, we have customized formula function to process emptry records.
    And in the function of type formula function that processes empty records, we have used the following statement.
    DATA AR type ZAREA.
    AR = VARI ( Z_HN_AREA, HIENM=Z_HR_AREA, 1).
    We are getting the following error message:
    Cannot determine a value for the variable Z_HN_AREA.
    Planning function ended with errors.
    What is that we are doing wrong here. Is it with the 'Process Empty Records' function that cannot read the variable.
    How come this variable is working in the query and it is not working in the FOX.
    We have done the variable to variable binding in the WAD also. Still the same problem.
    Any ideas? Thanks in advance.
    Best Regards,
    - Shashi
    Thanks in '

    Hi All,
    Michael Wolf from SAP confirmed that we cannot use VARiable read functions in the customized Formula function that processes the zero (empty records) as he spoke to SAP AG about the issue.
    Hence we have made a work around by creating a valid record using a dummy key figure in the Custom Formula function that processes empty records so that in the next step, the regular Formula function would get executed, where we could access the variable values by using VARV, VARI functions.
    Thanks,
    - Shashi

  • How to use bind variable value of one VO as initial value for other VO row?

    JDeveloper 10.1.3.3, ADF Faces, ADF BC
    Hi,
    I have two View Objects: one read only with several bound variables and another editable entity based. Correspondingly there are two ADF Faces pages: first contains search form based on the read-only VO and second create form based on the editable VO. The search form has several hidden fields for some of bound variables because they aren't edited directly by user. These fields are updated with PPR when user selects other search criteria from LOV.
    There is a command button in the first page that navigates to the second form. Is there any way to transfer values of bound variables from the first VO to the second VO as initial values of the new row?
    I tried to set custom controller for the second page and retrieve search criteria values from request parameter map but values from hidden fields are missing. I think because that these fields are updated by PPR. Of course I can add custom action method to the navigation button and in the method put these values to request parameter map but I hope there is better solution.
    Thanks,
    Marius

    To summarize, given a bind variable value for one VO, on creating a row in a second VO, for 1 of the attributes of the second VO, you want to use the first VO's bind variable value. Correct?
    A potential solution ADF BC driven:
    1) Ensure you have an AppModuleImpl for your AM
    2) Ensure you have a ViewImpl for your 1st VO (where the bind variable will exist) - lets refer to that VO as "Alpha"
    3) Ensure you have a ViewRowImpl for your 2nd VO (the one you want to default the value in) - lets refer to that VO as "Beta"
    4) For your first VO "Alpha" create the bind variable (say pValue)
    5) In your second VO "Beta" ViewRomImpl add following code:
    @Override
    protected void create(AttributeList attributeList) {
      super.create(attributeList);
      AppModuleImpl am = (AppModuleImpl)this.getApplicationModule();
      String someValue = am.getAlphaView1().getpValue();
      setSecondVOAttr(someValue); // change this code to whatever your setter is for the field you want to initialize.
    }Hope this helps. Let us know how you go.
    Regards,
    CM.

  • Selectively executing a mapping rule based on a variable value

    Hi,
    I have written a mapping rule in the following format.
    case #time_unit when 'quarter' then
    logic1
    when 'month' then
    logic2
    end
    In logic1, logic2 i again have nested case statements. Variable time_unit will have a static value hard-coded given (quarter/month) by user before execution.
    So Variable time_unit need not be checked for each row that gets transformed. It hits the performance.
    I want either logic1 or logic2 to be substituted dynamically in the mapping rule window based on the variable value.
    I cannot go for 2 seperate interfaces. How can I achieve this in ODI.
    Please help me.
    Thanks!!

    Sarah,
      I'm not aware of doing other than BPM. If you want the BPM Steps, Please refer below
      Step 1 : Receive
      Step 2 : Transformation
      Step 3 : Send (Syncronous call to the target system)
      Step 4 : Switch(Check the Payload value as per your reqmt)
      Step 5 : Transformation(Switch : False ,If the payload value is not ERROR)
      Step 6 : What you wanna do ( Switch :True)
    If you want more technically, then let me know the source and target systems, I will help you to design
    the complete flow.
    Best Regards,
    raj.

  • Limit columns based on variable value

    Gurus,
       My requirement;
       User will enter a value "A" in the variable and based on the value i need to limit
       the columns in the output. for example in the query designer i have 6 fields in
       Rows, in Free Chars i have the field with variable which user will enter. if the value
       entered is "A" only 4 fields should appear on the report else if value is "B" only
       the other 2 fields should appear.
       Is there a way accomplish this...please suggest
    Thanks with points in advance...

    Geni,
    Are u using the Excel based Analyzer as your Front End?
    If so you can run a small VBA (on event SAPBEXonrefresh) that will hide columns based on the value of the cell that displays the value of the variable that the user is setting.
    See code i posted in Re: How do I make cells "0" and not blank for an example.
    Is this what you are after?
    Hope it helps,
    Gili

  • Abort Could not determine a value for variable 0DAT from the authorizations

    Hi All,
    I encountered an error '/ Abort Could not determine a value for variable 0DAT from the authorizations\' when executing my query on a multiprovider in BW 3.5.
    Can anyone help me in finding a solutionn to this issue.
    Thanks,
    Kartik.

    Hi Kartik,
    I am sorry as that note is for NW2004s. Please check if 0DAT variable installed from a business content? if not then I think thats the cause of the problem.
    Hope this helps,
    Bye...

  • Variable reading other's characteristic value.

    Hi gurus,
    do you know, how can I make a variable (characteristic value variable) that reads other characteristic's value?
    i.e. I have 0CALMONTH in columns and a structure with 3 restricted key figures - I need to show KF value for 1st, 15th and last day of 0CALMONTH.
    Regards,
    Dorota

    Hi Dorota,
    What I have got from your query is.
    Take an input for 0CALMONTH from user.
    And then display Key figures restricted by 1st Day of the month entered by user, 15th daysand then last day of the month.
    If this is what your requirement is then you can achieve it by restricting the three key figures with variable.
    The variable should be defined with processing type as Customer Exit.
    Please refer the below link for more info:
    Problem while deriving 1st Calendar day of the fiscal period
    Regards
    Shubh Karan

  • Looping thru column names based on a variable value

    I have an ArrayCollection with a series of columns named
    price1, price2... thru to price10
    I'm trying to loop thru these columns based on a variable
    value, but can't figure the syntax:
    for (var column:int = 1; column < 11; column++){
    testPrice = myGrid.selectedItem.price(column); <-- this
    doesn't work
    }

    Try testPrice = myGrid.selectedItem["price" + column];
    Remember to test that selectedItem isn't null before you try
    to assign the values.
    TS

  • Show or Hide fields based upon a variable value

    Hi,
    I am a rookie in the field of Acrobat. And my only question is :
    How to Circle a Form Field based upon a variable value .
    For example, If x=1, I want to circle Japan and if x=0, I want to leave it without any change.
    Please help me out. Thanks for your time and help.
    Thanks,
    Vijayvijay77.

    Hi George,
    I am pre-populating a Pdf file based upon the data submitted by the user. And I have to circle options selected in the form.
    I am writing coldfusion code to flatten, populate the form into a PDF form. The end result is the PDF generation with all the data in it.
    The data comes from the database, where I set variable values if any is selected or not.
    Thanks for your reply, I really appreciate your help.
    Vijayvijay77.

  • How to select different Querys based on Variable Value

    Hi guys i need to know how to select different Querys, based on variable values selected by the user, i try to do it using a Web Template but i don´t know how to program a Dynamic Query.....
    I hope sombody could help me with this
    Message was edited by: Oscar Diaz

    Hi Diaz,
    Can you explain the exact scenario which you are looking for!!!
    regards
    Happy Tony

  • Restrict variable values based on another variable in the bex query...

    I am struggling to restrict the variable values from other varaible in the selection criteria. I have a variable which restricts he organisation(0ORGUNIT) and another to restrict employees.
    When the user selects any organisation unit form the hierarchy, I want only those employees related to that organsation in the varaible selection options.
    Is there any way I can make a variable values dependant on the another variable value in variable selection screen?
    Thanks,
    Your help in this matter will be much appreciated.
    Edited by: Kthapa on Nov 25, 2010 11:08 PM

    Hi Kthapa,
    Did u try using cmod?
    i_step = 1? Used to provide default values for the selection screen variables and
    i_step = 2 for filling up the variables after selection screen.
    Try using based on ur requirement.
    Hope this helps. Revert back for any queries.

  • Trace Variable values

    I would like to know how can i trace the day/user/area/level/package/ and variable value used in a planning sequence?
    Thanks in advance!

    Hi, 
      You can make use of the following scenario to track the changes done by an user on your planning cube,
    1. Include "Username" and "Time" infoobjects as characteristics in your planning cube.
    2. Create a characteristic relationship with derivation, of type "Exit" on you planning cube where in your "comp_code " characteristic is the source and "username" and "time" are targets.
    3. Copy any of the SAP provided "Exit" classes to create your own Exit class
    4. In your Exit class, you can write code for generating "username" from 'SY-UNAME' and "time" from 'SY-UZEIT'
    5. And finally you can activate this characteristic relationship
    6. So now if the user tries to include a new row manually or executes any planning functions on "comp_code" and then saves the planning data to the cube, your Exit characteristic relationship gets executed and generates values for "username" and "time".
    7. You can maintain these two field values "username" and "time" till you require and then delete it (using characteristic relationship of type DSO and Repost based on characteristic relationship planning function) as your cube will be growing fastly and you will not be able to compress completely as each row will have a unique username and time values.
    Hopes this helps you.
    Regards,
    Balajee

  • Variable Values in BADI's

    Hello All
    We have a requirement where we need to pass the value of a characteristic variable entered by the user to a cutomer exit variable and based on that need to perform a validation and return back the same value if it is correct else to return the blank/null value.
    Can anyone plz advice how can I achieve it ?
    Regards
    Ashish

    Hi Ashish,
    Please go through the following BAdi PDF:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f05700a6-23e2-2910-b48a-c58392764dda
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/409fa539-30e2-2910-7a8e-80279d09893e
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0456c54-0901-0010-f0b3-cd765fb99702
    BADi Enhancement:
    [Enhancement in BW]: How to use BaDI : RSU5_SAPI_BADI
    Implementing BADIs:
    http://help.sap.com/saphelp_nw04s/helpdata/en/eb/3e7cf4940e11d295df0000e82de14a/content.htm
    goto Tcode se19, give the implementation name and write a code as per yr field enhancement , save it then it will be serving as a badi which u can use

  • Dynamic text in Web Report (lookup on Variable Value)

    Hi
    If a user specifies a variable value to run a report (say company code), is it possible to have logic which looks up some attribute of company code (let's say country for example) and then displays this as part of some header text above the query results table?
    E.G. Report:
    These results are for country <value>.
    .... col1 col2
    row1 200 300
    row2 100 400
    I've had a look at the Text Element Object, but I couldn't determine if it can be used for this - ?
    I'm not sure I could use a Customer Exit Variable to look up the Country, as what could it be attached to if Country is not in the query/Infocube - ?
    (I have the added complexity of having multiple queries in one Web Report)
    Many thanks in advance,

    Hi,
    I see 2 possibilities:
    - Use a <b>text</b> variable with processing type customer exit in the query title and read the masterdata table in your customer exit depending on the variable value for company code.
    - Create another query (query on masterdata table) with the same variable. This will result in one row returning the (in the query definition) defined attributes.
    Heike

  • Reading variable value via exit

    Hi folks,
        I have a problem while reading a variable value for a lead colum.my layout as follows,
    header : Cost center
    Lead Coloum : Functional location
    Lead Coloum : Equipment
    Data Coloum : Budget proposal.
    Here, I have written a exit for both lead coloum. Actually i want Functional location based on Costcenter and <b>Equipment based on Cost center and Functional location.</b>
    But Equipment variable is getting read before selecting the Functional location, So I am not getting the Equipment variable value based on Functional location.
    Note : I am running layout in the  Web.
    Please suggest.
    Thanks and Regards,
    Meiy

    Dear Meiy,
    Try using characteristic relationship. Use two steps. In the first step, use exit to select the Func location. In the second step, use exit to select the Equipment.
    regards,
    Lokesh Nandula

Maybe you are looking for

  • How to connect Satellite Pro C to TV?

    Hi Everyone, Thanks. I would like to connect my C series up to my TV. The C series only has an External Video Port. My TV has RCA inputs and an SVHS input or S_Video imput. Can anyone help? John

  • Toshiba Satellite C655 SP4168M freezes while playing a game

    So i've been having problems with mi laptop very recently with a game i'm playing (League of legends), the game normally works perfectly, but at random times it just completely freezes (making an awkward sttutering sound) and i have to forcefully shu

  • Error while processing library references. Unresolved application library

    Hi All, I created one ADF task-flow,in which I used content from share point, and then I converted portlets and deployed into integrated WLS server.and then I consumed thoese portlets into web-center spaces its working file. but i want to deploy thos

  • Error with HTTP Analyzer in JDeveloper 11.1.2.0.0

    Just installed a new JDeveloper 11.1.2.0.0, and when I try to run HTTP Analyzer, I always receive an error (in Messages Log window) 12/06/2011 10:13:14 PM oracle.ide.controller.IdeAction performAction SEVERE: Error during handleEvent on action 'HTTP

  • Quicktime movies play a half scrambled screen  in Windows XP with QT7

    Sometimes the quicktime movies in windows xp will only play 1/2 screen and thats scrambled. The lower part of screen is usually a pixaly blue color. The Apple quicktime movies for fcp demos are like that. The same files play fine on my mac. What can