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

Similar Messages

  • Input Ready Query, Variable read mode setting Only Values for InfoProvider

    Hi,
    I have a problem with Selection Variable for a BEx Query :
    - I'm working with SAP BI 7.0 support package 15
    - My query is an input ready query built for an "aggregation level" based on "real time infocube" (Planning);
    - Characteristic, I want to filter with variable, has query property Advanced->Query Execution for Filter Value Selection = Only Values in InfoProvider
    - Characteristic (info-object) has set the property: Business Explorer tab--> Query Def. Filter Value Selection as Only Values in the info-provider...
    My problem is:
    when I execute a query,
    the Select Values for Variables screen appears
    I push on the Select from List button
    and Select Values For MyCharacteristic appears...
    but it shows me all values in master data table of my characteristic instead of only values in the infoprovider!!!
    If I build a query for the Real Time Cube it works correctly, but if the query is built for the aggregation level it doesn't work!
    Could someone explain me why it doesn't work correctly?
    Thanks in advanced
    Fede

    Thanks to  Mariana Lazar
    30.03.2009 - 12:30:36 CET - Risposta by SAP     
    Dear Fede,
    Regarding the query built on aggregation level please note the following
    the aggregation level is always a Virtual Provider built other
    InfoProvider and hence it does not have the dimension table and hence
    the F4 mode D is not supported.
    Therefore when aggregation level is used in a query, F4 does not supportD-mode: 'Only Values in InfoProvider' and all master data values are
    displayed in the value list.
    Reference from the note
    984229 F4 modes for input help as of SAP NetWeaver 2004s BI
    4. Since other InfoProviders do not have a dimension table, the system
    displays only posted values if you select "Only Posted Values for
    Navigation". Otherwise, it displays the values from the master data
    table.
    Hope this should clarify your doubts. Please let me know if you have
    questions else please confirm the message at your earliest convenience.
    Thank you for your cooperation and kind regards,
    @KR@ Mariana Lazar
    Senior Support Consultant
    SAP Active Global Support
    Netweaver Business Warehouse

  • Variable "read mode setting" Only Values for InfoProvider

    Hi,
    I have a problem with Selection Variable for a BEx Query:
    - I'm working with SAP BI 7.0 support package 15
    - My query is an input ready query;
    - Characteristic, I want to filter with variable, has query property Advanced->Query Execution for Filter Value Selection = Only Values in InfoProvider
    My problem is:
    when I execute a query,
    the Select Values for Variables screen appears
    I push on the Select from List button
    and Select Values For MyCharacteristic appears...
    but it shows me all values in master data table of my characteristic instead of only values in the infoprovider!!!
    Could someone explain me why it doesn't work correctly?
    Thank in advanced
    Fede

    Thanks to  Mariana Lazar
    30.03.2009 - 12:30:36 CET - Risposta by SAP     
    Dear Fede,
    Regarding the query built on aggregation level please note the following
    the aggregation level is always a Virtual Provider built other
    InfoProvider and hence it does not have the dimension table and hence
    the F4 mode D is not supported.
    Therefore when aggregation level is used in a query, F4 does not supportD-mode: 'Only Values in InfoProvider' and all master data values are
    displayed in the value list.
    Reference from the note
    984229 F4 modes for input help as of SAP NetWeaver 2004s BI
    4. Since other InfoProviders do not have a dimension table, the system
    displays only posted values if you select "Only Posted Values for
    Navigation". Otherwise, it displays the values from the master data
    table.
    Hope this should clarify your doubts. Please let me know if you have
    questions else please confirm the message at your earliest convenience.
    Thank you for your cooperation and kind regards,
    @KR@ Mariana Lazar
    Senior Support Consultant
    SAP Active Global Support
    Netweaver Business Warehouse

  • Using a characteristic value from an infoCube as a variable in a query

    Hi gurus!
    I have a query based on an infoCube where I make a restricted key figure. I restrict the key figure by selecting a specific month using 0calmonth.
    I need to create a variable that represents a specific month which will change every year. I have this month value stored in another infoCube. In this infoCube I have 0employee and for each employee the characteristic 0calmonth represents the month I need to use in my other query.
    So my question is: how can I retrieve the the value from 0calmonth (fx. 012009) from one infoCube and use it as an input in my other query for restricting the key figure using 0calmonth?
    Thank you!
    Best regards,
    Morten

    Hi guys,
    Thanks for your help so far. I would like to use the replacement path using another query. It seems more simple since I don't need to do any ABAP programming.
    However, it doesn't work for me. I made a pre-query on the infoCube, which contains the month I need for my other query. This pre-query uses a variable which restricts the data output to only data for current year up to current month. So if my input is 072009, then I will receive data for 012009-072009. My query result will then show me the month I need, since there will only be data for one specific month. So for 2009, the month that contains any data will be 052009. I need this month(052009) in my other query.
    So, in my original query I made a new variable for 0calmonth and I chose replacement path and the pre-query. I made a restricted key figure where I use the replacement path query. However, I am gettings errors, when I check the report and no data is available when I execute the query. The error says:
    Variable "prequery_variable" cannot be used in selection "key figure 1"; remove
    How you seen this error before?
    Thank you!

  • How to use a characteristic value variable in a formula?

    Hi all,
    I have created a characteristic value variable (manual input) for 0CALDAY in a query to get the Start & End date. There is requirement in the report to display a KF showing the duration between Start & End Date.
    I have tried to create a Formula Variable with Replacement Path, Ref Char 0CALDAY. In the Replacement Rule, there is an option to Replace Variable With variable. However, I wasn't able to locate the variable I have created for user input.
    Any idea how to achieve this?
    Many thanks,
    Yoong-En

    hi,
    if you have the start and end dates as user entry then follow this
    1) create a formula variable with reference char as start date of the type customer exit
    2) create another formula with end date as reference char of type customer exit
    3) in the cmod write the code your logic should be in such a way the the value at the user entry should be passed on to this formula variable the same for end date code
    4) create a formula with ( start date formula variable - end date formula variable)
    you can use this code
    WHEN 'ZV_YRFKDAT'.(formula  variable name)
        IF I_STEP = 2. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
          WHERE VNAM = 'ZV_KEYDAT1'.(user entry variable name)
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = LOC_VAR_RANGE-LOW. "low value, e.g.YYYY (2006) part of key date (20060625)
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
    repeat teh same for end date
    hope this helps
    Thanks
    krishna.y
        ENDIF.

  • How to find the value of a variable in other program

    How to find the value of a variable in other program say I am in a FM and this FM is being called in from other program and I want to know some of the variable details of the program from the FM itself. Imagine if this is a txn. and I need to know the details from some of the programs while executing the same transaction
    Regards
    Vin

    Hi Vinayak,
         you will be having your first program values in internal table or some variables,
        when you are calling the second program you wii use like this,
        SUBMIT <Second Program Name> USING SELECTION-SCREEN '1000'
                           WITH s_emp(second program select-options)   IN t_emp(first program variables)
                           WITH p_chk   EQ t_chk
                           WITH p_r1    EQ t_r1
                           WITH p_month EQ t_month
                           WITH s_cust1 IN t_cust1
                           WITH p_r2    EQ t_r2
                           WITH s_cust2 IN t_cust2
                           WITH s_week  IN t_week
                           AND RETURN.
    you have pas like this to get your first program details.

  • 0FISCPER text variable "External Characteristic Value Key" has changed

    Hello!
    Could somebody help and tell, why in BI7.0 version (but 3.x RRMX version) the format of the 0FISCPER text variable (also other time characteristics) has changed from 001.2007 (version 3.x) to 0/1  .0700 (version 7.0)?
    I cannot understand the logic of the new Exterternal characteristic calue key. What can I do about it?
    Thanks for your help, gurus!
    BR, Auli Peltola

    I figured out myself the reason for the problem: in the new version the fiscal year variant has to be defined in report so that the 0FISCPER would work.

  • Purchase order release strategy with a characteristic value as a variable

    Hi all,
    We have Purchase order release strategy based on the following characteristics:
    Total Net Order Value
    Purchasing Organization
    a few other custom fields
    We would like to add a characteristic based on the creator of the PO. In the purchasing department there are two person which have the authorization to create an release POs. The goal is now to check if the actual user, who release the PO, is different from the PO creator. The value of this characteristic may not be a fix value, it must be contain the name of the actual user name.
    Is there are a possibility to insert the characteristic value as a variable such as SY-UNAME instead a fix value?
    Thanks,
    Charles

    this is verymuch possible.  You can use unsed fields user1, user2 etc in CEKKO or (ii) insert a new field in CEKKOZZ and use the new field.  You need to build up logic in user-exit such that this field will take the value of person who had logged in. This can be done by ABAPer.
    Hope this resolves ur problem

  • Passing a user-entered value of one variable to other.

    Hi Experts,
    I am writing an exit for a variable 'Ref. Date' which is the FROM value of 'Cal. Week' variable.
    Code works fine when written in CASE I_STEP = 2 of 'Ref. Date' . But errs when "Ready for input" condition is unticked. ('Ref. Date' is used for restriction of a KF).
    CAn u pls tell me. Where exactly the code should be written?

    Ok. Done.

  • DMS - BADIs: Read Characteristic values

    Hello,
    we want to implement a characteristic-check in the Document BADI DOCUMENT_STATUS01~AFTER_CHANGE_STATUS.
    Therefore we need to read the chacteristic values of the default class.
    If the user enters i.e. some characteristic values in the CV02N an changes the Document Status (without saving between), the new characteristic values cannot be accessed via BAPI_DOCUMENT_GETDETAIL2 (getclassification=x).
    Is there an other way to get the characteristic values in the Document BADIs ?
    Best regards,
    Stefan.

    Hello Pelaez,
    thanks, we read the buffer with the the function module CLFM_GET_INTERNAL_TABLES.
    If the buffer is empty, we get the characteristic values with the BAPI_DOCUMENT_GETDETAIL2.
    Stefan.

  • Read variable from other method

    i am coding a method which required a reading from a variable in another method.
    what's the syntax for getting the variable???
    I tried.....
    ++++++++++++++++++++++++++++++++++++++++++++++++++
    public static void main (String[ ]args)
    range_1
    private static double area (int radius, final double pi)
    radius = range_1
    return radius * radius * pi
    ++++++++++++++++++++++++++++++++++++++++++++++++++
    but it doesn't work

    "private static double area (int radius, final double pi)"
    final double pi? as the method parameter? ROFLHAHAHAHAHAHAHAHAHAHAHA
    That made my day.
    As for your question, make range_1 a global variable, in other words, declare it outside your main method
    Something like
    public class gary{
    int range_1;
    public static void main (String afgfg[]){
    range_1=//something;
    private static double area (int radius)
    radius = range_1
    return radius * radius * 3.14

  • About give from one query to other the same value of a variable

    Hi Gurus,
    my problem is About give from one query to other the same value of a variable, i have a wad with a view, and this wad has some bottoms in javascript to go to anothers wad with charts, the problem is when i ran the query one, i put a value = calyear:2008 (Obligatory Variable), but when i click the bottom to go to the other query with the same variable, he ask me again a value,
    i want write a value just one time, and the others wad can recieve the first value that i put when the wad opened.
    i really need it , thanks !

    Hello Jorge,
    What you need here is Replacement path variable. Check out this link for more details:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bd/589b3c494d8e15e10000000a114084/content.htm
    In the second query where you need the value (calyear:2008 from first query) create a Variable for calyear of type Replacement path, in Replacement tab you can select either query or variable by which it has to replaced. In your case, it has to be variable from the first query.
    Do let me know if this works. If this does not work I suggest you to use Web APIs to replace the variable values using Web APIs. Check out the details:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/29/4d15422ecce02ce10000000a1550b0/frameset.htm
    Hope this helps.
    Regards,
    Srini

  • How can I switch to Longtext in a variable selection box for entered value

    I execute a Web Template and enter a value for example a company variable. After this I press the "Check"-Button and get the short text of the company but I want to see the long text.
    The InfoObject settings under Business Explorer is:
    Display:                                          Text
    Text Type:                                       Default
    BEx Description:                              Long description
    Selection:                                        No Selection Restriction
    Query Def. Filter Value Selection:      Values in Master Data Table
    Query Execution Filter Val. Selectn:  Values in Master Data Table
    Filter Value Rep. At Query Exec.:      Selector Box Without Values
    The InfoObject is a reference characteristic and the query was created on BEx 3.5.

    I changed the text type to long text, but the result is the same.
    The only way to get the desired result is to delete the short text and the middle text in the InfoObjects Text Table Properties. But this is not right way.

  • RRI pass Characteristic value without being drilled down

    Hi BW'ers,
    I am using Report to Report interface to jump from one report to another. Everything seems to work fine, untill I have a mandatory variable in the receiver report.
    The receiver report has a mandatory variable for characteristic 0MRP_CONTRL. The sender has this characteristic as a 'free one', but <b>not drilled down</b> in the query.
    When the user goes to the the receiver report, the values of 0MRP_CONTRL are not passed through.
    So I would like to know: How can the values be passed to the receiver without being drilled down? In fact the system should check the valid 0MRP_CONTRL values (as it should be in drill down status) and pass them to the receiver.
    I tried every possible combination of transaction rsbbs, but not a lot of success.
    Hope someone knows the answer. It would be a great help!
    Best regards,  
    Bart

    Hello Bart,
    "In fact the system should check the valid 0MRP_CONTRL values (as it should be in drill down status) and pass them to the receiver." ... You just mentioned that 0MRP_CONTROL is a free char and not drilled down. What is the exact situation?

  • WEBI prompt based on bex variable suppress not assigned hashtag value in LOV

    Hi,
    is it possible to suppress the "Not assigned (#)" value from the list of values in a webi prompt based on a bex variable?
    This "Not assigned" value is something BW specific, BW adds this to each characteristic automatically?!
    WEBI:
    RSRT:
    It needs to work in WEBI, not only in RSRT, and the filtering of data still needs to work.
    For rsrt it works, when you exclude the not assigned value in "Filter > Characteristic Restrictions" and use the bex variable in/through "Filter > Default Values", but this does not work in WEBI, because the BEX Query Data is not filtered on the in the prompt selected value.
    Thanks.
    Regards
    David

    Thanks David for a quick reply !
    I could manage to avoid # values in WebI prompt using BAdI implementation, here is the brief:
    Problem:
    WebI report prompt (which shows BEx variable) list of values shows blanks or # . Rrequirement was to avoid these blanks or #
    Environment:
    BW 7.3
    BO 4.0
    BW Cube > BEx Query > OLAP Connection > WebI report
    Solution:
    InfoObject Level1 in BW had # values in masterdata, this could not be deleted since it was in use with other Cubes.
    Vaurable Var_Level1 displays # when pressed F4 running BEx query and in list of values in WebI report prompt.
    I implemented BAdI on Level1 info object and variable Var_Level1.
    Steps to implement BAdI are as in following link
    BEx Query - Control the values which are shown on F4
    Used following code to elimitate #.
    METHOD IF_RSR_VARIABLE_F4_RESTRICT~GET_RESTRICTION_FLAT.
    DATA: l_s_range     LIKE LINE OF c_t_range.
    DATA: l_var_range   LIKE LINE OF i_t_var_range.
    DATA: IT_MZLEVELS TYPE TABLE OF /BIC/MZLEVELS,
    WA_MZLEVELS LIKE LINE OF IT_MZLEVELS.
    DATA: L_ZLEVEL1     TYPE /BIC/OIZEVEL1.
      IF i_vnam EQ 'ZV_LEVEL1'.
    SELECT /BIC/ZLEVEL1
    FROM /BIC/MZLEVELS
    INTO CORRESPONDING FIELDS OF TABLE IT_MZLEVELS
    WHERE OBJVERS       = 'A'.
    IF SY-SUBRC NE 0.
    EXIT.
    ENDIF.
    SORT IT_MZLEVELS BY /BIC/ZLEVEL1.
    DELETE ADJACENT DUPLICATES FROM IT_MZLEVELS COMPARING /BIC/ZCLV1GP.
    DELETE IT_MZLEVELS WHERE /BIC/ZLEVEL1 = ''.
    l_s_range-iobjnm = i_iobjnm.
    l_s_range-sign   = 'I'.
    l_s_range-option = 'EQ'.
    LOOP AT IT_MZLEVELS INTO WA_MZLEVELS.
    l_s_range-low    =  WA_MZLEVELS-/BIC/ZLEVEL1.
    APPEND l_s_range TO c_t_range.
    ENDLOOP.
    ENDIF.
    ENDMETHOD.

Maybe you are looking for

  • Table or Object type - like #temp table in SQL Server

    Hi I need to create a temp table to hold certain data and then validate. What is the best way to do this oracle. Something similar to #temp tables in SQL Server. Thanks

  • Is there any way to get 720x576 (ie DV Pal)  from iphoto slideshow?

    I have tried the iphoto forum and have been directed here. Is there any way to get 720x576 (ie DV Pal) for an export from iphoto slideshow? I want to export 200+ photos with random transitions and the ken burns effect. Imovie offers offers automatic

  • XML Publisher 5.6.2 with JDeveloper 10.1.3

    Hi, I put one example of the users guide working, that transforms the xml and the xsl in a pdf report: FOProcessor processor = new FOProcessor(); processor.setData("d:\\ORACLE\\DOCUMENTOS\\XML Publisher\\Exemplos\\sales-report.xml"); // set XML input

  • Sync with USB pendrive in KDE

    Hello, When i insert an USD memory, KDE correctly detects it and open a konqueror window with the USB content. Perfect. Then, i copy various MB to it. Perfect. Close the window, right-click over the icon and select "Safety extract" (i've translated i

  • Passing Delivery option to child concurrent request

    hi, we have a concurrent request(parent) using SQL to call a new concurrent request (child), Since if we run the parant with email delivery option , the parent call the child to execute. But the email sent the parent output, we actually want the chil