Dynamic Description for Key figure values

Hi Experts,
I got a requirement for change the description in  query analyzer.
              Month    200901                                         200902                            200903
                 qty        value   Past PRICE                qty    value    future price  qty    value    future price
Material      10         50          5                              7       70           10          7       77           11        
My requirement is price heading  we need to show current date to previous months header is Past price  and current date to future months we need to Future price.
Already I tried with two restricted key figures with current montthless than one key figure and currentmonthgreater than one keyfigure. When I using in query both key figure displayed in both sides.
I want to show past price heading for Less than current month  and future price heading for greater than current month.
Please let me know any possibilities to show the description dynamically.
Thanks,
Chandra

Hi,
Here I'm giving sample code this will give the Date and Date-1 and Date-2 based on your Input date ZCDAY.Create 'ZT_DAY' 'ZT_DAY1'  and  'ZT_DAY2'  Text varaibles and use the code.
In the same way change the code for your requirement.
TO get the Date (TEXT VAR) based on ZCDAY Input variable***********
    WHEN 'ZT_DAY' .
      LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZCDAY'.
        IF sy-subrc = 0.
          CLEAR: l_s_range.
          l_s_range-low+0(2) = loc_var_range-low+6(2).
          l_s_range-low+2(1) = '.'.
          l_s_range-low+3(2) = loc_var_range-low+4(2).
          l_s_range-low+5(1) ='.'.
          l_s_range-low+6(4) = loc_var_range-low+0(4).
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
        ENDIF.
      ENDLOOP.
TO get the Date-1(TEXT VAR) based on ZCDAY Input variable***********
    WHEN 'ZT_DAY1' .
    DATA: ZT_DT1 TYPE SY-DATUM,
          ZT_DT2 TYPE SY-DATUM,
          ZT_SDT TYPE SY-DATUM,
          ZT_YR(4) TYPE N,
          ZT_DY(2) TYPE N,
          ZT_MT(2) TYPE N,
          ZE_TT(2) TYPE N.
          ZT_SDT = SY-DATUM.
      LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZCDAY'.
        IF sy-subrc = 0.
          CLEAR: l_s_range.
          ZT_DY = loc_var_range-low+6(2).
          ZT_MT = loc_var_range-low+4(2).
          ZT_YR = loc_var_range-low+0(4).
      CONCATENATE ZT_YR ZT_MT ZT_DY INTO ZT_DT1.  "YYYYMMDD
      CALL FUNCTION 'DATE_CREATE_2'
        EXPORTING
         i_datum_ein                   = ZT_DT1
         I_KZ_INCL_AUS                 = '1'
         I_KZ_INCL_EIN                 = '0'
         I_KZ_ULT_AUS                  = 'X'
         I_KZ_ULT_EIN                  = 'X'
         I_STGMETH                     = '0'
         I_SZBMETH                     = '0'
         I_TAGE                        =  0
       IMPORTING
         E_DATUM_AUS                   = ZT_DT2.
          l_s_range-low+0(2) = ZT_DT2+6(2).
          l_s_range-low+2(1) = '.'.
          l_s_range-low+3(2) = ZT_DT2+4(2).
          l_s_range-low+5(1) ='.'.
          l_s_range-low+6(4) = ZT_DT2+0(4).
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
        ENDIF.
      ENDLOOP.
***TO get the Date-2 based on ZCDAY Input variable***********
    WHEN 'ZT_DAY2' .
      LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZCDAY'.
        IF sy-subrc = 0.
          CLEAR: l_s_range.
          ZT_DY = loc_var_range-low+6(2).
          ZT_MT = loc_var_range-low+4(2).
          ZT_YR = loc_var_range-low+0(4).
      CONCATENATE ZT_YR ZT_MT ZT_DY INTO ZT_DT1.  "YYYYMMDD
      CALL FUNCTION 'DATE_CREATE_2'
        EXPORTING
         i_datum_ein                   = ZT_DT1
         I_KZ_INCL_AUS                 = '2'
         I_KZ_INCL_EIN                 = '0'
         I_KZ_ULT_AUS                  = 'X'
         I_KZ_ULT_EIN                  = 'X'
         I_STGMETH                     = '0'
         I_SZBMETH                     = '0'
         I_TAGE                        =  0
       IMPORTING
         E_DATUM_AUS                   = ZT_DT2.
          l_s_range-low+0(2) = ZT_DT2+6(2).
          l_s_range-low+2(1) = '.'.
          l_s_range-low+3(2) = ZT_DT2+4(2).
          l_s_range-low+5(1) ='.'.
          l_s_range-low+6(4) = ZT_DT2+0(4).
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
        ENDIF.
      ENDLOOP.
Thanks
Reddy

Similar Messages

  • Key figure description for key figure YKFRFCFGD does not exist in liveCache

    Dear SAP Gurus,
    We have upgraded our APO 3.10 to SCM 5.1,
    Sopport Pack details:
    SAP_BASIS 700 16
    SAP_ABA 700 16
    ST-PI 2005_1_700 6
    PI_BASIS2006_1_700 6
    SAP_BW 700 18
    SAP_AP 700 13
    LCAPPS 2006_700 4
    EA-IPPE 400 13
    SCEMSRV 510 7
    SCM 510 6
    SCMBPLUS 510 6
    SCMEWM 510 6
    SCMSNC 510 6
    SCM_BASIS 510 9
    BI_CONT 703 10
    QIE 200 5
    ST-A/PI 01K_SCM500 0
    and Live cache 7.4.02.29 from to 7.7.03.23
    We facing following issue during APO operation in live cache.
    Error details:
    "Characteristic combinations with liveCache anchor but without time series"
    "Key figure description for key figure YKFRFCFGD does not exist in liveCache"
    "There is an inconsisteny between the key figure descriptions in liveCache and in the database. The key figure description of key figure YKFRFCFGD exists in the database but not in liveCache."
    Kindly help me out on this.

    Please execute Live cache consistecny check:
    for Planning area , check all the option.
    /SAPAPO/TS_LCM_CONS_CHECK
    MPOS:
    /SAPAPO/TS_PSTRU_CONS_CHECK            
    Manish

  • How to create a variable for key figure (value will be entered by the user

    I want to create one query, where the user has to entered a max value when the query is started, so that only the query rows will be listed, where the key figure value (integer) of the row is smaller than the max value given.
    How can i define that variable which has to start at the begin of the query; and also the restricted key figure iin consideration of the KF variable.
    Thanks for helping
    Ar.

    Hi Arnaud,
                Go to Conditions-> Right click -> New Condition -> Edit -> NEw -> Selct the KEy figures from the dropdown( the KFs that are used in the rows/columns) -> Select Less than from the operator drop down (less than is for you case) -> Values, there is an option to create a variable -> Select the variable -> transfer. It will appear on the top.
    Save & Execute, you will find it in your selction criteria.
    Regards
    Sunil

  • Description of key figure for multi language support issue.

    Hi Experts,
    Have a good day ahead!!
    Custom key figure description multi for the language support issue
    The key figure is created in English  language and description also in English.
    When I have logged in to English language and checked the report in Bex ,description of key figure is available.
    But when I log in to other language(German, Spanish Portuguese and etc) environment the description in Bex rport of key figure is showing blank
    In rsa1 in both English and other(German, Spanish Portuguese and etc)  environments key figure description is okay and correctly displaying.
    Please post me your inputs on the same.
    Thanks in advance!!
    Regards
    Priya.

    Hi Prasanth,
    This are the key figures XPRECIO: Transactional Price and XPRECLIST: Price list, its maintained in RSA1 tcode at info object level .
    These two KF descriptions are maintained in English, its working fine when I login into SAP Bex analyzer with English language and its not showing the description for the languages (German, Spanish, Portuguese and etc).
    Its need to be displayed in when login into SAP Bex analyzer with language German, Spanish, Portuguese and etc.
    Regards
    Priya

  • Need help for report Variable to restrict the key figure value...

    Hai gurus,
    Now i have data in the cube as follows...
    Reuisition     HR INTW date     LM INTW DATE     TEL INTW DATE     HR Count     LM Count     TEL Count
    a1              01.01.2010     02.01.2010             01.04.2010                 1                1                 1
    a2              02.02.2010     03.02.2010             02.02.2010                 1                1               1
    a3              03.03.2010     04.03.2010             03.03.2010                 1                1               1
    when i execute the report it shd ask the prompts with Date interval as in the below...
    HR INTW date
    LM INTW DATE
    TEL INTW DATE
    if i dont give any interval in the variable prompt it should display all the recors as follows
    Reuisition     HR Count     LM Count     TEL Count
    a1               1                  1               1
    a2               1                  1                     1
    a3               1                   1             1
    If i give LM INTW DATE interval as    01.01.2010 to 31.02.2010
    then it should display all the other counts as in the output_1 , but for LM count for a3 it should show 0.
    Reuisition     HR Count     LM Count     TEL Count
    a1               1                  1               1
    a2               1                  1                     1
    a3               1                 0                  1
    that means wherever i restrict the data depending on the variable that only that interval key figure value shd be in the report..
    for this scenario, which variable i need to use... and how i need to restict the KFig value in the report...
    Right now i am getting like this but it is restricting the records,,, where it should not restrict the records...in the report..
    Please guide me for the same...
    If any concerns about the scenario please let me know...
    Regards,
    VJ

    hi chowdary ,
    could you tell me the var. creation in detail and  with which reference object i need to create ...
    whether i need to take LM_DATE / 0DATE while creating variable...
    and i kept this variables it in filter section, based on the LM_DATE Object.
    i have tried both.. y'day when i take 0DATE it giving me some results...
    But at the same time it is restricting the records..
    i think it could be a problem with var.. properties?
    need more inputs pls.
    Regards,
    VJ

  • Dynamic Texts from Bex ( for Key Figures ) not coming to WEBI Query

    Hi Gurus,
    We have a Query in BEx : Each  Key figure column text changes dynamically - Like based on Present month
    it will Display Month +1 Month +2  up to Month +12.  Used  dynamic Text variables .
    But when i created the universe and Webi report , i am missing the text in the column for Key figures .
    How should i get the column text in Webi which is same as in Bex : Points will be awarded for helpful
    answers.
    Thanks
    Magge

    Hi,
    text variables with replacement path are supported in BO4.0, see following document: SAP BusinessObjects BI4 - Supported BEx Query Elements
    As an example after entering 2012 in the prompts window, the name of the corresponding key figure will dynamically change:
    After refreshing and selecting 2013, the column name will update:
    Im not sure though if this is the case with unv universe access to BEx queries.
    Best regards,
    Victor

  • Error in key figure value at Reporting level

    Hi Experts,
    I had problem of Key figure value which displays wrong data in reporting.
    The Process is :
    I had added the key figure SALK3 to the generic data source (xxx). The Extractor is Table/View, Table is MBEW.I had replicated to BW side.
    In BW, The process is Data Source(Generic) to 0MAT_PLANT(Infoobject (Added SALK3 to the infoobject of Attributes tab) ) loads to Multiprovider.I can see data  in the multi provider for that particular field after loading.
    Now the problem is, In Query designer i had added the key figure in Columns and ran the report.The output of the field is, If the value is 100 it displays 100 ERROR, if it 200 it displays 200 ERROR.Could you please help me on this,where i went wrong.
    Regards,
    Kishan.

    Hello,
    Please check with the follwing screen shots:
    Right click on the key fgure you created----select edit
    Once the screen opens select the NODIM from Data Functions before the key figure (as highlighted).
    Finally click on OK.
    Regards
    NS

  • Key figure value in a level

    Hi is it possible to identify which key figures values has introduce a user ? and which CVC has the user uses for inserting the key figure value?
    REgards.
    PS :We have APO DP 5.0

    Javier,
    It is possible to identify and track the inputs of specific users contribution to that Key figure using the following method, Provided you follow certain prerequisites first.
    Its should be known before the certain people are responsible for certain data selections, like if there is a change in certain Sales org, we should ideally know who is the assinged planner to that Sales Org. or that sales org has been assinged to which Planner
    Next, Develop to Lag reports in BI using the regular snapshots of the the data extracted out of DP before and after the changes have been made for that particular KF.
    Compare the changes using the versions of snapshot before changes and after changes, or perhaps create another calucalted KF showing the different between two versions. The BI team should be able to create reports that enable you to run this report on all levels for that Key figure.
    Hari V

  • Currency translation for key figure in bex not working.

    Hi friends,
    i want to do currency translation for key figure(invoice value in local currency).
    i have followed the steps as under:
    1st Transferring Global Table Contents: Currencies from R/3 Systems
    2nd than transfer exchange rate - from r/3 to bi
    3 than In SPRO settings of BW there is option "consider translation ratios in translation"
    4th than used transaction RSCUR for creating currency translation type: parameter(exchange rate:m, soure currency fom data records, target currency ISK, time ref: current date)
    5th than in BEX query designer have sated this for key figure
    but when i run query in RSRT, curreny amount not getting convert?
    am i missing any step?
    pl. guide.
    thanks dushyant.

    Hi Dushyant,
    Are these steps followed in Query designer??
    In the Query designer, for that particular key figure property, under Conversion tab >> Currency Translation >> Conversion Type, select the currency translation type you created in RSCUR.
    And in the target currency, select accordingly.
    If you are going to use a variable, use the following link..
    http://help.sap.com/saphelp_nw04/helpdata/en/08/81b98b95e911d4b2ca0050da4c74dc/content.htm
    See also..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/287bab90-0201-0010-f48e-cc55b0cd13d0
    Hope this helps..!
    -Pradnya
    Edited by: Pradnya Rane on Apr 8, 2009 7:58 AM

  • Program or FM tochange description of key figure in all queries at a time

    Hi,
    As per my requirement  i need to change the description of a key figure from OED to IEG in all the reports which are containing "OED" as key figure at Query level only.
    Its a KF and not a resteicted key figure or calculated KF.
    Is there any program or table or Function module where we can change the key figure description directly
    without going to each Query and change it.
    Please suggest me.
    Thanks & Regards
    Bharathi

    texts for key figures chars. etc are refrenced only once when query is created. after that if description changes in the infoobject that doesn't reflect in query.
    Texts for all elements are maintained in RSZELTTXT table. you can write a simple program to modify texts of elements which suit your need. Contact any abaper in your team to write this program which simply updates the texts of certain elements..
    logic may be like this
    select all lines from RSZELTTXT where TXTSH = 'Plant' or TXTLG = 'Plant'.
    modify these llnes with new text.
    update rszelttxt with these new lines

  • ABAP Code for Key Figure selection in Report

    Hello Experts,
    I am working on one of the development request that requires following logic to be implemented at query execution. There will one KF column and based on valid combination of characteristics value from the cube, Key Figure value from the same cube will be selected and reported.
    If ((Plant = A1) and (Division = B1))
      OR ((Plant =A2 ) and (Division = B1))
      OR ((Plant = A3) and (Division = B2))
      OR ((Plant = A6) and (Division = B2)).
      Price = Moving Avg.
    Else
      Price = Standard.
    Can somebody please suggest, how to do this? Thanks in advance.
    Regards,
    Nimesh

    Nimesh,
    Step 1.Create a formula (say F1)variable with customer exit. In the customer exit code read the values of Plant and Division. If the Plant and Division combination is the one that you specified below return a 1 (for Moving Avg.) or return a 0 (for Standard).
    Step 2. Create a column with a formula having the following definition
             (F1=1)'Moving Avg.' + (F1=0)'Standard'
    So, if the combination satisfies Moving Avg will be shown else Standard will be shown.
    You can avoid customer exit coding by using  replacement variables and using them in a formula, this would make your calculation clumsy and confusing. Let me know if you cannot get the customer exit solution work.
    Hope it helps...

  • Can we give the more than 2 decimals for key figure

    Hi,
    can we give the more than 2 decimals for key figure while entering the manuall planning.
    Ex:There is keyfigure called 0DEBIT which is having values as 1000.00 USD, 137688.00 USD.which are displaying bydefault whenever we entered the values while planing or File.
    what Customer is asking us 0DEBIT keyfigure values should be display 1000.0000 USD, 137688.0000 USD. ( added two more decimals for keyfigure value).
    Can we maintained decimals more than two.........?
    Thanks,
    Ven
    Edited by: vanarasi venkat on Apr 13, 2009 4:35 AM

    Hi,
    Though you can specify the no of decimal places for each keyfigure in the 2nd screen of layout builder but say if you have entered scaling factor as 1 and decimal places as 4 and user enters value as 15.2546, then in the cube it will be stored as 15.25 because physically the keyfigure can store values only upto two decimal places, so it will round up the figure to two decimal places. But, if you specify the scaling factor as 2 and decimal places as 4 than value 15.2546 will be stored in the cube as 1525.46.
    If above explanation doesn't help you i finding out the solution for your requirement than you have to either change the number of decimal places in the keyfigure or tell user that technically it's not possible in BPS.
    Regards,
    Deepti

  • BEx query: count unique key figure values

    Hi
    I need a little help with a query. I need to count the number of unique key figure values. Se example;
    Data:
    Employee1 - 2
    Employee2 - 3
    Employee3 - 2
    Employee4 - 1
    Employee5 - 2
    Employee6 - 1
    Employee7 - 2
    Wanted output:
    1 - 2
    2 - 4
    3 - 1
    What kind of options do I have?
    Thanks
    Mike

    I would create a new characterstic for the same key figure and placed in rows and count in columns.
    and second approach would be , create condition with customer exit and write the logic to count the unique values.
    This is just a direction to move forward with the assumption that you are good in using variables and wirting logic in ABAP.
    Thanks,
    Sukhi

  • How to maintain the dynamic description for a workitem ?

    Hi everyone ,
    How to maintain the dynamic description for a workitem ?
    Thanks ,
    Naval Bhatt

    OPen PFTC Txn
    Enter the TAsk ID and openit in change mode
    declare a container element in the task container and the same element in the workflow too.
    Now from the workflow pass the value to the task container by using binding.
    and in the workitem text of the task conatiner.
    For e;g
    if you want to display the workitem id in the task decription
    open the task in the pftc and add the element in the workitem text and then pass the element value , so that the value that you have passed will be displayed in the workitem text.
    *&WORKITEMID& Add *

  • Code to sum up multiple record key figure values from one ODS to another OD

    We've got two ODSs: ODS1 and ODS2 and ODS1 feeds data to ODS2 through update rule.  In ODS1, multiple records could contain one same doc records and we would like to sum up a key figure value for these multip records with the same doc number in the update rule and populate a key figure (a sum-up value or total value) in ODS2 for this doc number.  We wonder how the code would look like.
    Welcome the valuable input!
    Thanks

    Hello Kevin,
    In this case there is no need of a code. As in ODS2, contract number is a key and PO is not a part of key, you can have update type for the key figure as "Addition". Value for that particular key figure will be added for all the recordes with same contract number irrespective of PO number.
    Hope it helps.
    Regards,
    Praveen

Maybe you are looking for

  • 2 ipods on the same computer

    My roommate just got an ipod nano (I already have one and is all set up). When she plugged her ipod in for the first time it automatically went to iTunes and put all my playlists onto her ipod. How do we have seperate playlists/ iTunes? We have seper

  • File check in report RFKKZE00

    Hi Experts, In my current project we upload text file in which we provide only details of CoCd, Official Document & amount to post payment lot for partial clearing using report RFKKZE00. Now, the users wants to have a control that a file is not proce

  • Script for checking the replication process in Netscape Directory Sever 4.1

    Hi, We are using Netscape Directory Server 4.1.6 in our production environment. Where we want to know is there any script available to check the replication process. Or can we write a script to check the process. Waiting for your replies at the earli

  • Solution Manager Instance

    Hi I am installing a demo box - so not production, and I have no other SAP installs. I want to install and configure SAP BI and Portal and I need Solution Manager within my landscape. How can I install all these onto the same server? I understand tha

  • New Lion Server, New way to import multiple users?

    In Snow Leopard Server there is no way to import more than one user without buying 3rd party software. Does anyone know if this has been addressed in OS X 10.7 ? I have 220 users to create and wanted to find or before I went crazy. Thanks very much.