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

Similar Messages

  • How to Get Value from a Variable to restrict a Key Figure ?

    I am trying to make a query in Query designer, we are running BI7.
    I have a user entry veriable on the Fiscal year period, the user will need to enter a period they want the report for, i.e. 07.2008 for July 2008 report and 04.2008 for April 2008 report.
    Based on what the user entered as the starting period (in the variable entry), I have to then use that initial value and show the Year to date value (of sales etc) in the next column.
    To Clarify, if user entered 07.2008 then all the data from 01.2008 to 07.2008 needs to be in the next column.   if user entered 04.2008 then all the data from 01.2008 to 04.2008 should be in the next column.
    So to summarise according to my understanding, I want to get the value from a variable and pass it onto another variable to restrict a key firgure (sales amount)...
    Can someone please clarify what i need to do here?  
    Many thanks in advance, points will be awarded accordingly.

    hi,
    please follow the below steps:
    1. Create a new varialbe , this variable should be processed by customer exit.
    2.  In the column section, create a new column and drag the sales key figure, also drag fiscal year period and restrict with the new variable.
    3. In the cmod tcode write a customer exit code to extract the value of the user entry and assign it your variable, you can refer to the below code.
      WHEN '< New VAR name>'.
        IF I_STEP = '2'.                                 "AFTER THE POPUP
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
            WHERE VNAM = '<Fiscal Year Period VAR Name>'.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW      = LOC_VAR_RANGE-LOW(4).
            L_S_RANGE-LOW+4(3) = '001'.
            L_S_RANGE-HIGH     = LOC_VAR_RANGE-LOW.       "LOW E.G. 2001006
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.
    For ex- if the user enters 008/2008, this code will create as range assign 001/2008 - 008/2008 value to the variable.
    hope it helps,
    rgs,
    Parth.

  • Need help For report RSVTPROT

    Hello all,
    there is a standard report <b>RSVTPROT</b> which i need to convert into an ALV only for table <b>T000</b>.i am working on <b>release 4.7</b> in which <b>ALV display</b> is not possible but for <b>ECC6.0</b> SAP provided ALV option.but also i cannot copy paste the SAP code from ECC6.0 because they have implemented so many standard classes and other things which are out of my scope to define..
    <b>did anybody does this kind of development if yes please hellllllllllppppppp......i am not able to do coding for it.......</b>
    Divya

    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

  • Need help for reporting

    hi,
    Hope I did not post to the wrong place. but I really need help here. I've been using Crystal Report all these while before I tried out java. However, there is a problem here.
    I've been doing some complex reports that comes with subreports and grabing values from the program. but there is no one program that i found can really support the reporting in java. I've even tried the crystal clear and Jbuilder enterprise trial version (which comes with crystal report). but I still can't get the output that I want.
    So, I'm here to ask :
    1. what sort of reporting system r u using that is recommended?
    2. And if I were to continue supporting crystal report where can I get a better component that supports crystal report ?
    3. And where can I get tutorials for java integration with crystal reports?
    thanks.

    Also check out i-text. It's an open source Java -> PDF tool. You will need to write a mapper to go from JDBC ResultSet to your own custom Java class. Otherwise, it is almost like writing HTML programatically.
    - Saish

  • Restrict the Key figure to Variable number of days

    Hello Everybody,
    How can I achieve the following result in query??
    User enters date range e.g. 21.5.2009 - 2.6.2009
    Format for your reference
    Cal Day  Cal Month  LOB   Material      Item Cost    Next 90 Day forecast QTY Last 90 Day Usage QTY
                                                                               (Qty restricted to below range)
    21-May       May      LOB 1  Material A      6.20        21 May + 90 days              21 May - 90 days
    22-May       May      LOB 1  Material B      8.50        22 May + 90 days              22 May - 90 days
    2-Jun          June      LOB 4  Material C     53.35       2 Jun + 90 days                 2 Jun - 90 days
    I appreciate the responses in anticipation.
    Thanks

    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

  • How to get search help for 2nd  parameter based on the 1st parameter value

    Hi all!
       I have 2 parameters (material no, revision level). I have created a search help for revision level. It has an importing parameter :material no. and one exporting parameter : revision level.When I checked it, it's giving the revision values only for the specified.
    In my report , I have kept these 2 materials in my selection screen.For revision level , I have added the matchcode object which I have created. When I  pressed F4 for revision level, it's giving all the values irrespective of the material no. in the first parameter. How to solve it? Please suggest.

    Hi,
    Try this code filling internal table fields,
    DATA: BEGIN OF values,
            OID TYPE ZCL_OBJECT-OBJECTID,
            ODEC TYPE ZCL_OBJECT-OBJECT_DESC,
           END OF values,
           W_FIELD(10).
    DATA: ZCL_PROJECT-PROJECTID type zcl_project-projectid,
          ZCL_OBJECT-OBJECTID(5).
    DATA: progname TYPE sy-repid,
          dynnum   TYPE sy-dynnr,
          dynpro_values TYPE TABLE OF dynpread,
          field_value LIKE LINE OF dynpro_values,
          values_tab LIKE TABLE OF values.
    CALL SCREEN 100.
    *&      Module  VALUE_PROJECTID  INPUT
          text
    *MODULE VALUE_PROJECTID INPUT.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
          EXPORTING
               tabname     = 'ZCL_PROJECT'
               fieldname   = 'PROJECTID'
               dynpprog    = progname
               dynpnr      = dynnum
               dynprofield = 'ZCL_PROJECT-PROJECTID'.
    *ENDMODULE.                 " VALUE_PROJECTID  INPUT
    *&      Module  VALUE_OBJECTID  INPUT
          text
    MODULE VALUE_OBJECTID INPUT.
       CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                dyname             = progname
                dynumb             = dynnum
                translate_to_upper = 'X'
           TABLES
                dynpfields         = dynpro_values.
      READ TABLE dynpro_values INDEX 1 INTO field_value.
    W_FIELD = FIELD_VALUE-FIELDVALUE.
      SELECT  OBJECTID
              OBJECT_DESC
        FROM  ZCL_OBJECT
        INTO  (VALUES-OID,
               VALUES-ODEC)
    WHERE PROJECTID = FIELD_VALUE-FIELDVALUE.
       APPEND VALUES TO VALUES_TAB.
    ENDSELECT.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'OID'
                dynpprog    = progname
                dynpnr      = dynnum
                dynprofield = 'ZCL_OBJECT-OBJECTID'
                value_org   = 'S'
           TABLES
                value_tab   = values_tab.
    ENDMODULE.                 " VALUE_OBJECTID  INPUT
    *&      Module  INIT  OUTPUT
          text
    MODULE INIT OUTPUT.
      progname = sy-repid.
      dynnum   = sy-dynnr.
      CLEAR: field_value, dynpro_values.
      field_value-fieldname = 'ZCL_PROJECT-PROJECTID'.
      APPEND field_value TO dynpro_values.
      IF SY-UCOMM = 'BACK'.
        LEAVE program.
    ENDIF.
    IF SY-UCOMM = 'ANS'.
       LEAVE  TO SCREEN  '0'.
    ENDIF.
    ENDMODULE.                 " INIT  OUTPUT
    START-OF-SELECTION.
    WRITE: / field_value-fieldvalue,
             W_FIELD.
      LOOP AT VALUES_TAB INTO VALUES.
        WRITE / VALUES.
      ENDLOOP.
      if sy-subrc <> 0.
        WRITE / field_value-fieldvalue.
      endif.
    Plzz reward points if it helps

  • How to get the key Figure values.!.......?

    Hi friends...
          I have a scenerio , where I have loaded the data from 3 different data sources say A  , B and C in to 2 different DSO s and in to 2 different Info Cubes. And I have built Multi Provider from this 2 Info cubes.
    In the data source B , I have BELNR (Parked document number ).WRBTR (for Amount). In the report I have to show a field called Nr of Documents Parked and Value of Documents Parked. Same thing for Data Source C,  for Blocked Documents. Now My question is there is no Key Figure in My Data Model to Count the Nr of Parked / Blocked Docs....So in the Reporting how can I show this ? Do I need to use Customer Exits ? Do I need to have CKF /RKF ? if so , from what Key figures ? or Can I get the Count from the Backend (Modelling itself by using a Keyfigure with any Code)?...not only this 2 , I have lot many custom things to do in my Model...If any one can get me some idea on this , remaining will be very easier for me as they all are similar things to do....
    Please let me know if you have any questions or I need to elabarate it more to get an Idea on this....
    Thanks in advance

    THANKS GUYS ,
         I wrote the transformation routiene to count all the parked documents as
      IMPORTING
        request     type rsrequest
        datapackid  type rsdatapid
        SOURCE_FIELDS-/BIC/ZPARKBEF TYPE /BIC/OIZPARKBEF
       EXPORTING
         RESULT type tys_TG_1-RSTT_IPTDA
    DATA TMP TYPE tys_TG_1-RSTT_IPTDA.
    IF SOURCE_FIELDS-/BIC/ZPARKBEF = 'Y'.
    TMP = TMP + 1.
    ENDIF.
         RESULT = TMP .
             But when I see the Infocube data its showing only 0 for Parked Before value 'N' and 1 for Parked Before vale 'Y'. But I want to calculate total number of parked documents ..How can I do this?
    Thanks

  • How to calculate the key figure value on other key figure

    Hi,
    I have a material character and  Packing Hour, No of Boxes key figures. My requirement is i need to calculate the % no of boxes are Packed <2 Hour , 2 to 3 Hour and above 4 hour based on the packing hour.
    Sample data
    Material     Packing hour    No of boxes
    001            1 hr                   5 box
    002            2 hr                   3 box
    003            2hr                    7 box
    004            3hr                    2 box
    005            5hr                    1 box
    Here  we are not considering meterial. We are considering Only Packing hour and no of box  to calculate % no of Boxes within a time period. Please help me out...to calculate % no of boxes based on hour period
    Thanks,
    Rama Devi

    hi
    its like creating buckets for analysis...
    u'll have to create  formula in KF...
    1.
    if (Pack Hrs <= 2) * No Of Boxes
    2.
    If (Pack Hr >= 3 or Pck Hr <= 4) * No Of Boxes
    like this u'll have to create bucket..

  • Need help for Report Generation

    I am using Designer 6i.
    I want to ask that :
    Is there any facility that can preserve the report layout when I want to generate the report, because every time I generate the report I can't preserve the last layout.
    Thank for helping me !
    null

    Hi,
    In the transaction OAOR, you should be able to insert your company Logo.
    GOTO - OAOR (Business Document Navigator)
    Give Class Name - PICTURES Class Type - OT..... then Execute
    It will show you the list, then select ENJOYSAP_LOGO.
    On that list, you will find one control with a "create" tab.
    Click std. doc types.
    Select SCREEN and double-click.
    It will push FILE selection screen.
    Select your company logo (.gif) and press OK.
    It will ask for a description- for instance: "company logo".
    It will let you know your doc has been stored successfully.
    You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
    Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
    FORM TOP-OF-PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = HEADING[]
    I_LOGO = 'ENJOYSAP_LOGO'
    I_END_OF_LIST_GRID ='GT_LIST_TOP_OF_PAGE'.
    ENDFORM. "TOP-OF-PAGE
    Here 'ENJOYSAP_LOGO' will replace by ur created logo.
    n pls reply me.
    Refer this link
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm
    http://www.sap-img.com/abap/alv-logo.htm
    http://www.sap-img.com/fu002.htm
    reward if it helps..
    Regards,
    Omkar.

  • Really need help for 8320 curve cant open the camera

    I bought BB 8320 curve for 3 month and after 2 month later when i open the camara it show "Could not start the camera. Close other applications and try openning the camera again". what can i do with this problem. i have try to take the battery out for a while to restart it but its not work. Any one can help me?

    Hi Spacesa and welcome to the forums,
    Press the alt escape key (>looks like that) together and it will show you the applications you have running.
    Most people close the applications by pressing the escape or red key. This does not close the applications.
    Each application has a CLOSE option. For instance if you are in the calendar hit the menu key (spotted key) and scroll down to the bottom CLOSE is listed. Go through each application and press close. Go into the browser press menu and options select cache operations clear all categories and hit escape it will say cleaning memory.
    Go to options - security - memory cleaning - enable it. The BB will now clean memory when idle for 5 minutes.
    you will have an icon on you screen for memory cleaning make sure you press it. Once you have done this. Pull the battery for about 30 seconds, replace and try your camera, it should work.
    Make sure you use the CLOSE button each time you are done with an application. Your camera should be available to you when you like.
    Sorry for the length of this post, but I wanted to make sure we covered all aspects.
    Please try this and let me know if it works, or if your need more assistance!
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • Need help for storing time along with the date

    Hi,
    I have one procedure as follows, In last_update_column of the table job_data having date and time.But after execution of this procedure only date is inserting into the job_master.
    If I queires the table job_master with to_char(Last_Update_Date, 'DD-MM-YYYY HH24:MI:SS') , then it is showing time as 12:00:00.
    I tried to insert date with to_char,to_date format but it is not working.
    Please provide me the solution.
    Thanks in advance.
    create or replace
    PROCEDURE         SP_LOAD_JOB
    IS
    CURSOR CUR_DATA  IS
            SELECT   PARENT_ITEM,
         `               CHILD_ITEM_ID,
                   LAST_UPDATE_DATE
      FROM job_data,
    BEGIN
      For Cursor_job In CUR_DATA
                 Loop
                 Exit When CUR_DATA%Notfound;           
        Insert Into job_master(parent_Code,
                                       child_code,
                                       last_update_date)
    values(
                             Cursor_job.PARENT_ITEM,
                             Cursor_job.CHILD_ITEM_ID, ,
                             Cursor_job.Assembly_Item_Id,
                              Cursor_Bom.LAST_UPDATE_DATE)
    commit;
    end loop;
    END;

    Hi,
    I don't believe you
    First to input time to job_master from job_data table first you have to store time in job_data.
    execute 
    select LAST_UPDATE_DATE from job_data
    and show result.
    Second remark : your procedure will not compile success Because
        Insert Into job_master(parent_Code,
                                       child_code,
                                       last_update_date)  ---3columns
       values(
                             Cursor_job.PARENT_ITEM,
                             Cursor_job.CHILD_ITEM_ID, ,
                             Cursor_job.Assembly_Item_Id,
                              Cursor_Bom.LAST_UPDATE_DATE) ----4columns
    Third remark : why to insert into table from other you wrote procedure???! you need only type insert stmt like this
        Insert Into job_master(parent_Code,
                                       child_code,
                                       last_update_date)
        select .... from  job_data
    Ramin Hashimzade

  • 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

  • Setting the values of the key figures

    Hi,
    I have a problem in a query. There is a variable chosen with a range for 0calmonth. For the two of the key figures, I need to restrict the key figure to the first period and for the other key figure I need to restrict to the last period. However, what I need more is that if in the restricted period there is no value for that key figure it should get the first period that it has a value. For example:
    Our variable set as: 02.2006   -  05.2006
    And our data is
         CalMonth          KeyFig1     KeyFig2
    A     02.2006                 0            7
    A     03.2006                 0           8
    A     04.2006                 4            9
    A     05.2006                  5            0
    I want to see in the query as:
                  KeyFig1    KeyFig2
    A              4                9             
    When I add the results with first value and last value, I can see these figures in the general results section. But this time I have to hide the key figures and show only the results section.
    Any idea on preparing such a query?
    Thanks in advance...

    Hi,
    try using conditions:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/2695d2fd2f0d23e10000000a1553f7/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/43/b57138c1afbd20e10000009b38f889/content.htm

  • Subject: Restricted/Calculated Key Figure

    I am writing a query on 0TCT_C21.  In my Characteristic restriction, I am restricting Process Type to u201CCHAINu201D. Now I want to setup a key figure (it can be calculated or total) which will sum process chain duration (i.e. run time) for all the process types except CHAIN, so it will give total process chain run time. How can I do that?
    I setup a Restricted Key Figure, which restricts Duration to all Process Types except CHAIN, but since filtering on PROCESS TYPE CHAIN has already been done, it is showing me process chain run time as 0. Is there a way to do total of all process types even though I have placed a filter?
    Thanks a lot,

    hi,
    Your query seams to have contradictory restrictions.
    Your Statement: "In my Characteristic restriction, I am restricting Process Type to u201CCHAINu201D".
    You have already restricted teh query with the Process type "CHAIN" and OLAP will take this as Global filter.
    But your next statement:
    "Now I want to setup a key figure (it can be calculated or total) which will sum process chain duration (i.e. run time) for all the process types except CHAIN,"
    By this you want to have key figure with Process Type " Chain".
    This CKF/RKF will be considered a Local filter.
    The global filter will take preference and The report will fetch the data with Process type " CHAIN " Only .
    So after that when your local filter applied on RKF this will 0 as an output.
    My suggestion is:
    Restrict the Key Figures with the process types as and when required.
    Means the key figure value you want to show only for CHAIn and NOT for chain needs to be identified and developed.
    Please modfy the requirement to avoid contracdiction of filters.
    Thanks
    Mukesh

  • I have problem with buying in games , I got the massage that the purchased can not be completed , please contact iTunes support.. I need help for my case please

    I have problem with buying in games , I got the massage that the purchased can not be completed , please contact iTunes support.. I need help for my case please

    http://www.apple.com/support/itunes/contact/

Maybe you are looking for