Variable Range For 0FISCPER

Dear Experts,
I am Using Entry Variable as ZFISCPER For FISCALPERIOD
IF User Enters 003.2008
The Output of the Report will be:         003.2008 ||| UPTO 003.2008
UPTO 003.2008 means 001.2008 to 003.2008
How Can we Get This By using variable Range.
What Can I Give in FROM :
where as TO is To : ZFISCPER
Can Any one suggest me what to DO.
Regards
Supraja.K

Hi,
You can achieve this by creating a user exit variable and populating the YTD value based on the entry. Restrict the key figures with this variable. Use the sample code below.
   CLEAR ls_range.
  LOOP AT lt_var_range INTO ls_var_range WHERE vnam = 'ZFISCPER'.
   CONCATENATE ls_var_range-low+0(4) '001'  INTO ls_range-low.
   ls_range-high = ls_var_range-low.
   ls_range-sign = 'I'.
   ls_range-opt  = 'BT'.
   APPEND ls_range TO et_range.
  ENDLOOP.
This code will populate values from 001.2009 to 008.2009 if you enter value for fiscal period year as 008.2009.
Hope this helps.
Regards,
Akhn

Similar Messages

  • The URL command to filter a range for 0FISCPER

    Hello,
    Does someone know how to set a filter for a range for 0FISCPER in an URL.
    I tried FILTER_VALUE_LOW and FILTER_VALUE_HIGH, but this seems not to work for a compounded InfoObject.
    Next I tried FILTER_OPERATOR=GT and FILTER_OPERATOR=LT but also this didn't give any results.
    Regards,
    Sjaak

    Hi,
    please keep in mind to specify the complete compounded value.
    (See http://help.sap.com/saphelp_nw04/helpdata/en/59/edfe395dd76846e10000000a114084/frameset.htm)
    For example the correct notation could be
    FILTER_VALUE_LOW = K42004006
    You can verify the correct filter value format this way:
    Create a drop-Down-Box with 0FISCPER execute the template with parameter snippet_operations= (To ensure that an url request is sent) Now you can check in the url the correct format. Or just have a look on the generated HTML-Coding.
    Heike

  • How do i filter the records in analytic view by using variable/parameter for a time range

    i have a analytic view which has a output column as date type. i want the user who use this view have the control to decided the output records based on a time range (from x to y).
    i tried to create 2 variables, 1 for start_time, 1 for end_time. Ideally, i should have a expression for filtering data like this:
    $$start_time <= date_column <= $$end_time
    However, the variable windows doesn't seem to be feasible for the expression as above.
    Does anyone has the same problem and get it solved?
    Thanks!

    just figured out by my own. So the answer is using "variable" with "range" option.
    Making a variable, then set the "selection type" to "range".
    When preview the data, the variable input window pops up with operator on default "equal", use dropdown list to swtich it to "between", then you can enter the start_time and end_time as a range filter.

  • Variable for 0FISCPER displays od values

    Hi
    I have created a query containing a interval variable for 0FISCPER. The Query is based on a multiprovider that is build on a single ODS containing WBS line items loaded through 0CO_OM_WBS_6. When the query is run and the variable box appears I press the selection button for 0FISCPER. It displays som od values for selection that does not exist in the ODS. fx. 001.0010. When i select such a value it is converted to 001.2010. The ODS only contain data for 2003-2006.
    Can you help me to understand what causes this, so i am able to fix it.
    Chris

    1.     On the Administrator Workbench: Modeling screen:
    a.     Choose Source Systems.
    b.     In the right hand window select the source system from which you would like to transfer the global settings.
    c.     From the context menu choose Transfer global settings.
    2.     On the Transfer global settings: Selection view in the frame Transfer global table contents select the checkboxes for the settings you want to use from your R/3 source system:
         Fiscal year variants to transfer fiscal year variants
    3.     In the frame Mode choose Update Tables.
    4.     Choose Execute.
    5.     Choose Back twice.
    Then try your reporting......

  • Reg: Multiple Ranges for Variables

    Hello Gurus,
    We have a requirement to have Multiple Ranges for Variables and I have gone through the document below which is applicable to 2004s SP 07.
    We are on CE 7.1 SP 3 I was looking for a similar document which can guide me to create Multiple Value ranges in CE.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/07134c67-0b01-0010-0493-b89287cf330f?quicklink=index&overridelayout=true
    If this is not available in SP 3 is there a Workaround to have the same kind of functionality.
    Thanks & Regards,
    Pramod

    Hi Pramod,
    If I understand correctly, u want to send a range of values to the variable of a query.
    This can be done using " ; ". syntax is [value 1];[value 2];[value 3]
    If you want to send two dates to a query date variable... take two date fields then pass to the variable date1;date2 (while creating query you took variable of type range)
    Thanks,
    Pradeep

  • ABAP Routine  for 0FISCPER  slect options in InfoPackage

    Hi,
    I am trying to write an ABAP Routine for 0FISCPER as select options (range) dynamically.
    Ex:
    0FISCPER selection for this year as 001.2008 to 012.2008
    0FISCPER selection for next year as 001.2009 to 012.2009.
    Now  we are changing InfoPackage every year manually, so I need to write a routine for 0FISCPER in InfoPackage to handle dynamically every year
    Thanks,
    SK.

    Hi
    write an ABAP routine to get that value..But are you getting any planned data(why you want till end of the year...till infopackage runs is o.k i think, if you don't have planned data)...Any way you can check the below code, which can be useful...
    You can see the below code at->your infopackage selections>Ty-->choose variable type as 6 and enter any ABAP routine name( to create) and then there is a button on the application tool bar called 'routine info'..this give you the following information...
    Definition
    You can define complex selections for InfoPackages and control the automatic deletion of requests from InfoCubes in the scheduler, by using routines.
    Routines are processing blocks in ABAP programs that consist of a pre-defined data declaration section and an ABAP subroutine (form routine). In the subroutine you can use all of the ABAP programming functions.
    You can use the following routines for making selections in InfoPackages:
    1. Selection routines for fields, on the Data Selection tab page
    2. Selection routines for file names, on the External Data tab page
    3. Selection Routines for selecting the from and to dates for time-dependent data, on tab page Update
    4. Selection routines for determining old requests to be deleted after successfully loading a new request, on the Data Target tab page
    Program frame:
    After you have called up the Editor for routine maintenance, you get the following program frame:
    1. Selection routines for fields, on tab page Data Selection:
    program conversion_routine.
    '$*$ begin of global - insert your declaration only below this line -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line    -
    FORM COMPUTE_<Fieldname>
      tables l_t_range structure rssdlrange
      changing p_subrc like sy-subrc.
    $$ begin of routine - insert your code only below this line       -
      data: l_idx like sy-tabix.
            read table l_t_range with key
                 fieldname = <Fieldname>.
            l_idx = sy-tabix.
            modify l_t_range index l_idx.
            p_subrc = 0.
    $$ end of routine - insert your code only before this line       -
    ENDFORM.
    2. Selection routines for file names, on tabstrip External Data:
    FORM compute_flat_file_filename
         changing p_filename like rsldpsel-filename
              p_subrc like sy-subrc.
    $$ begin of routine - insert your code only below this line-
              p_filename =
              p_subrc = 0.
    $$ end of routine - insert your code only before this line-
    ENDFORM.
    3. Selection routines for selecting the from and to date for time-dependent data, on tabstrip Update:
    form compute_time_dependent_dates
         changing p_datefrom type d
                  p_dateto   type d
               p_subrc like sy-subrc.
    $$ begin of routine - insert your code only below this line-
              p_datefrom =
              p_dateto   =
              p_subrc = 0.
    $$ end of routine - insert your code only before this line-
    ENDFORM.
    4. Routines for determining the old requests to be deleted after successfully loading a new request, on tab page Data Targets:
    form compute_<InfoCube-Name>
      tables l_t_request_to_delete structure rsreqdelstruc
      using l_request like rsreqdone-rnr
      changing p_subrc like sy-subrc.
    *Insert Source Code to decide if requests should be deleted.
    *All Requests in table l_t_request_to_delete will be deleted
    *from Infocube <InfoCube-Name>.
    *Add new requests if you want to delete more (from this cube).
    *Remove requests you did not want to be deleted.
    $$ begin of routine - insert your code only below this line-
         loop at l_t_request_to_delete.
         endloop.
         clear p_subrc.
    $$ end of routine - insert your code only before this line-
    ENDFORM.
    Note:
    Those fields flagged with <...> are dependent on the selection fields and are filled automatically by the system when you call up the Editor.
    Procedure
    Make the following entries:
    1. Between $$ begin of global ... and $$ end of global ... you can define data declarations. These are the declaration sections for the local data in the routine. This data is only visible in the routines.
    2. The subroutines begin with FORM and end with ENDFORM.
    The subroutines for the particular routines are:
    Selection routines for fields on tab page Data Selection: FORM COMPUTE_<Field name>
    Selection routines for file names on tab page External Data : FORM compute_flat_file_filename
    Selection routines for selecting the from and to dates for time-dependent data on tab page Update: FORM compute_time_dependent_dates
    Routines for determining old requests to be deleted after successfully loading a new request on tab page Data Target: FORM COMPUTE_<InfoCube-Name>
    The subprograms have the following parameters:
    Subprogram FORM COMPUTE_<Field name>:
    l_t_range
    In the table l_t_range the routines for all selection fields that are filled, or have a routine, are made available.
    The routines are executed in the scheduler last of all and therefore, you can change all the selections that you have carried out previously.
    p_subrc
    Using the variable p_subrc you can report errors to the scheduler. p_subrc <> 0 signals an error and means the data request is terminated.
    Subprogram FORM compute_flat_file_filename:
    p_filename:
    You give the name of the file that is to be loaded in parameter p_filename.
    This is useful if your file name contains date dependencies that should be determined by sy-datum and calculated during runtime.
    p_subrc
    You can inform the scheduler of an error with variable p_subrc. p_subrc <> 0 signals an error and means that the data request is terminated.
    Subprogram FORM compute_time_dependent_dates:
    p_datefrom and p_dateto
    Fill these parameters with the from and to dates for time-dependent master data and texts.
    p_subrc
    You can inform the scheduler about an error using variable >LS>p_subrc. p_subrc <> 0 signals an error and means the data request is terminated.
    Subprogram FORM COMPUTE_<InfoCube-Name>:
    l_t_request_to_delete
    You give the request number of the request that is to be deleted in parameter l_t_request_to_delete. You can also delete requests from the table. These are then not deleted.
    p_subrc
    You can inform the scheduler about an error with the variable p_subrc. p_subrc  signals an error and means the data request is terminated.
    3. Insert your program code for the routines between $$ begin of routine ... and $$ end of routine ... so that the respective subprogram variables are supplied with the corresponding values.
    4. Check the syntax of your routine with the Check function.
    5. You can then transfer the routine with the Save function.
    You end routine maintenance when you exit the Editor.
    Hope it helps
    Thanks,
    Teja

  • Variable offset for date - a year ago

    I have this sales report with the following columns:
    1. Current Day Sales
    2. Month to Date Sales (this Year)
    3. Month to Date Sales (last Year)
    I'm using a range variable for 0CALDAY for column 2 (Month to Date Sales this year).  i'm having problem with column 3.  how is it possible such that the date is automatically assigned to last year's values?  using offset would mean -365, however, this may not work during leap years?
    please help

    Hi,
    Refer the 'Examples for using Variables' in 'Bex Query designer' of sap help..
    Examples for Offset Variables
    You want to use a query to carry out a comparison of two years.
    Year Comparison
    You want to compare the costs of a year of your choice with the costs of the previous year.
           1.      In the Query Designer, create a new structure and add a new Selection for each year that you require.
           2.      Only use one key figure (for example revenue) in this example query. Add this key figure to the filter or add it to the selection.
           3.      Use a characteristic value variable for the characteristic Calendar Year (0CALYEAR):
    Select the characteristic value variables for Calendar Year and, from the context menu (right mouse click), choose New Variables. The Variables Wizard appears.
    If you always want to reference to the current year automatically, use the SAP Exit variable 0CALYEAR (or as appropriate for another time characteristic).
           4.      Move the defined characteristic value variable into the selection.
           5.      Select the characteristic value variable and from the context menu (right mouse click), choose Restrict.
                                a.      Select the characteristic value variable and from the context menu, choose Enter Variable Offsets.
                                b.      Enter –1 as the offset and choose OK.
           6.      Choose OK.
           7.      Enter a description.
    Example: Use the name of the key figure, for example, revenue, for the name and use a text variable for the name of the calendar year. See Using Text Variables.
    When creating a new text variable, enter Replacement Path as the processing type, and choose calendar year 0CALYEAR as the characteristic with display as key.
           8.      Create a second selection with the same characteristic value variable and do not set an offset here.
    Also use a text variable in the description in this case.
           9.      Move the required characteristic into the rows.
       10.      Save the query.
    After execution, the query should appear as follows:
    Variable screen entry: 2002 (or no entry when using the SAP Exit Variable).
    Year Comparison
    A characteristic
    Revenue 2001
    Revenue 2002
    Value 1
    100.000
      90.000
    Value 2
    200.000
    180.000
    Value 3
    300.000
    400.000
    Comparison with Cumulative Previous Year Period
    For example: You want to compare the periods 1-8 of a particular year with the same periods for the previous year.
           1.      Create a new structure in the Query Designer and add a new Selection.
           2.      Move a key figure, for example, Revenue, into the selection.
           3.      Use a characteristic value variable for the characteristic Fiscal Year/Period (0FISCPER):
    Select the characteristic value variables for Fiscal Year/Period and from the context menu, choose New Variable. The Variables Wizard appears.
    Use the SAP Exit variable Current Fiscal Year/Period (0FPER) if you always want to reference to the current year.  If you set the variable as entry-ready in the Variable Editor, after executing the query, the variable screen then appears with which you can change the default values were necessary.
           4.      Move the characteristic value variable, such as OFPER, into the selection.
           5.      Select the characteristic value variable and from the context menu (right mouse click), choose Restrict.
           6.      Under Selection, choose Value Area and choose the tab page Variables.
           7.      Add the characteristic value variable, for example 0FPER, to the selection once again for the second value of the interval.
           8.      Select the characteristic value variable and from the context menu, choose Enter Variable Offsets.
                                a.      As an offset, enter -3 as the from value and 0 as the to value. Choose OK.
                                b.      Choose OK.
           9.      Enter a description, such as Revenue for current year.
       10.      Choose OK.
       11.      Select the selection and from the context menu, choose Copy and then Paste.
       12.      Now select the second selection and from the context menu, choose Edit.
       13.      Select the characteristic value variable and from the context menu (right mouse click), choose Restrict.
       14.      Select the characteristic value variable again and from the context menu (the right hand button), choose Enter Variable Offsets.
                                a.      As an offset, enter -15 as the from value and -12 as the to value. Choose OK.
                                b.      Choose OK.
       15.      Enter a description, for example Revenue for previous year.
    Also use a text variable in the description in this case.
       16.      Choose OK.
       17.      Move the required characteristic into the rows.
       18.      Save the query.
    After execution, the query should appear as follows:
    Variable screen entry: 01. 2002 to 08. 2002
    Comparison with Cumulative Previous Year Period
    A characteristic
    Revenue 01. – 08. 2001
    Revenue 01. – 08. 2002
    Value 1
    100.000
      90.000
    Value 2
    200.000
    180.000
    Value 3
    300.000
    400.000
    Two text variables replaced with characteristic values were used for the descriptions here. One is filled with the from-value for the column with an offset of 0 and a length of 3, the other filled with the to-value with an offset of 0 and a length of 7. You can find additional information under Example for Variable Replacement.
    Comparison of Cumulated Values for Two Years
    You may want to compare the cumulated values up to the current period of the current year with those of the previous year.
    For this example, use the variable 0FPER (current fiscal year period) and the variable 0P_FPER (your chosen fiscal year period). You use these two variables to set the interval limits.
           1.      In the Query Designer, create a structure with two selections:
    ¡        1. selection: Cumulative Amount for current year
    ¡        2. selection: Cumulative amount for previous year
           2.      With the first selection (cumulative amount for current year) , move the time characteristic 0FISCPER into the selection and select it.
           3.      Choose Restrict from the context menu (right mouse click).
           4.      Choose Value Area between as the selection and go to the tab page Variables.
           5.      Double click to choose the variable 0P_FPER as the from value and variable 0FPER as the to value. The result is an interval from the chosen period to the current period.
           6.      Define the second selection (cumulative amount for previous year) and proceed as for the first selection.
    ¡        Add the variable 0P_FPER as the from value and variable 0FPER as the to value here.
    ¡        Set an offset of –12 for both the from and the to values:
    Select the interval and from the context menu (right click), choose Enter Variable Offsets. Enter –12 for each.
    The result is an interval that has been moved 12 periods ahead.
           7.      Add the key figures and additional characteristics for the query.
    After executing the query, you get a variable screen for the variable 0P_FPER. You need to enter the start period in the current fiscal year.
    You can also suppress this entry by deactivating the indicator Entry-ready in the Variable Editor for the variable 0P_FPER and entering a default value (for example, 001.2001 for 2001). You only have to change this value once per year.
    You have now defined a query that compares the cumulative values for two years.
    The variables with SAP Exit delivered by SAP have the following behaviors:
    Variable 0FPER (current fiscal year period): Displays the values of the current fiscal year period.
    Variable 0P_FPER (any fiscal year period): Displays the values of any fiscal year period. You can set the fiscal year period in the variable screen when executing the query in any way you require.
    Variable 0FYTCFP (fiscal year up to current fiscal year period): Displays the values of the first period up to the current period of the current fiscal year.
    Variable 0FYTLFP (fiscal year up to previous fiscal year period): Displays the values of the first period up to the previous period (current period –1).
    You need to use the variables 0FPER and 0P_FPER in the above example for the comparison of cumulative values for two years.  When using the variables 0FYTCFP and 0FYTLFP, only values for one month are displayed for year transitions with an offset of –12.
    Regards,
    Prema

  • How to Off set the variable range ?

    experts !
    i have created a variable on ofiscper, and it gives a range for that. (  e.g. 001/2009 - 012/2009 ) . everything works good. but i have to show values for the same range for previous year too.. so i thought that off set should be working. But i am not gettting the correct results if i use off set to ( -1 ).
    can we use offset for a variable whcih takes range ?
    what are my options ?
    Thaks

    Hi honar,
        1. Take that  0fiscper In Characteristic Restrictions box.
        2. Right click on it choose Restrict option. you will get a window select variabls option.
        3. You may have predefined variable. Take that into selection box.
        4.Take the Offset value -12.
    Note : Make sure that your variable should be Intervel option  in variable Represents.
    This may resolve ur prob.
    Thanks,
    Mahi.

  • Variable Exit for YTD using posting period

    Hi Friends,
    I need to calculate the YTD amount per user entry, i.e., when user enters the posting period value as 5 the Actual value should calculate the amount for posting period 5 and Actual YTD value should calculate the amount from Period 1 - 5.
    I'm getting the same amount as period 1 for YTD as well....I created a two variables for YTD , one is with single value optional with default value as 1 not ready for input and another variable as customer exit with single value. In the exit I'm reading the user entry value as my 2nd variable value. Then I'm using these two variables as range in RKF with key figure and value type.... i.e,
      WHEN 'ZTEST'.
    data:      zper     TYPE t009b-poper
        if I_STEP = 2.
          READ TABLE I_T_VAR_RANGE INTO ZPER WITH KEY VNAM = '0P_PER3'. " this is the mandatory user entry for Actual value
         l_s_range-sign = 'I'.
         l_s_range-opt  = 'EQ'.
         l_s_range-low   = zper.
          append l_s_range to e_t_range.
    ENDIF.
    Thanks
    sam

    I used the range and when I use RSRT to test the query , I'm getting the exact variable values in the result example if I give the input as year = 2010 and Posting period = 3 - 6
    I'm getting the variale values for input as 3-6 and variable values for Actual YTD as 1-6 but the Actual YTD value is showing the same value as Actual.
    I have the cost element heirarcy as the row item. I'm not sure If we are allowed to use heirarchies in the rows when we are using the above logic for YTD?  Also when I drill down by posting period I could see all the values in Actual YTD but when I removed drill down it is only showing the value for 3-6 just as Actual....Please advice
    My Key figure in the RKF is a cumulated balance...Does it causes the YTD values and Actual values same?
    Example result below for Period input 10:
    Posting period Actual        Actual YTD
    1xxxxxxxxxx     xxxxxxxxxx     210,587,416 USD
    2xxxxxxxxxx     xxxxxxxxxx     172,717,190 USD
    3xxxxxxxxxx     xxxxxxxxxx     178,563,365 USD
    4xxxxxxxxxx     xxxxxxxxxx     160,894,981 USD
    5xxxxxxxxxx     xxxxxxxxxx     145,730,654 USD
    6xxxxxxxxxx     xxxxxxxxxx     109,796,716 USD
    7xxxxxxxxxx     xxxxxxxxxx     108,377,441 USD
    8xxxxxxxxxx     xxxxxxxxxx     95,732,276 USD
    9xxxxxxxxxx  xxxxxxxxxx     88,925,649 USD
    10xxxxxxxxx     107,755,724      107,755,724 USD
    Overall Result     107,755,724      107,755,724 USD 
    thanks

  • Dynamic URL Configuration using variable range - WAD

    Hi,
    I am trying to configure a URL dynamically using variable range values. There are two variables which I pass to the URL, Sales Document Number and Posting Date. Sales Document Number has a single value and Posting Date is a range variable. The single value for sales document is passed to the URL but the date range is not passed and hence the web template gets the blank value for the date and shows the variable screen as this is mandatory. The URL is as follows.
    CONCATENATE
    l_web_protocol
    l_portal_server
    Initial URL
    '/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE='
    l_web_template
    '&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE'
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING'
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING='
    l_var_value  "variable value
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE='
    l_var_name   "Variable for info object
    '&BI_COMMAND_2-BI_COMMAND_TYPE=SET_SELECTION_STATE_SIMPLE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR=INTERVAL_SELECTION'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-ATTRIBUTE_MEMBER_SELECTION-
    INFO_OBJECT=0PSTNG_DATE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER=MEMBERS_EXIT'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-MEMBERS_EXIT='
    l_range_var_name  "Customer Exit Variable
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-MEMBER_NAME='
    l_range-low     "Variable Value - Low
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-ATTRIBUTE_MEMBER_SELECTION- INFO_OBJECT=0PSTNG_DATE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER=MEMBERS_EXIT'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-MEMBERS_EXIT='
    l_range_var_name     "Customer Exit Variable
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-MEMBER_NAME='
    l_range-high      "Variable Value - High
    '&BI_COMMAND_2-RANGE_SELECTION_SIGN=INCLUDING'
    '&BI_COMMAND_2-TARGET_DATA_PROVIDER_REF_LIST=DP_TAB'      "Tab in the Web Template
    into  l_url.
    Can someone tell me asto what's going wrong with this URL? I passed single value for Posting Date and it worked fine.
    Thanks and Regards,
    Arya

    Thanks for the reply. However I did not understand couple of things. Should I try the URL like below?
    BI_COMMAND=&
    BI_COMMAND-TARGET_DIALOG_REF=l_var_name&
    BI_COMMAND-BI_ADVANCED=DLG_VARIABLE_vsc_DropdownVariants& "Which value to be passed?
    BI_COMMAND-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&  "Which value to be passed?
    BI_COMMAND-PASSIVE_ID=DLG_VARIABLE_vsc_DropdownVariants_combobox& "Which value to be passed?
    BI_COMMAND-PASSIVE_VALUE=l_var_value&
    BI_COMMAND_1=&
    BI_COMMAND_1-TARGET_DIALOG_REF=l_range_var_name&
    BI_COMMAND_1-BI_ADVANCED=DLG_VARIABLE_vsc_CommonVariablesList_VAR_1_VARINPUT& "Which value to be passed?
    BI_COMMAND_1-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&
    BI_COMMAND_1-PASSIVE_ID=DLG_VARIABLE_vsc_CommonVariablesList_VAR_1_VARINPUT_inp& "Which value to be passed?
    BI_COMMAND_1-PASSIVE_VALUE=l_range_low-l_range_high&
    BI_COMMAND_2=&
    BI_COMMAND_2-TARGET_DIALOG_REF=l_range_var_name&
    BI_COMMAND_2-BI_COMMAND_TYPE=OK
    Thanks and Regars,
    Arya

  • Why can I not use variable filter on 0FISCPER at InfoPackage data selection

    Hi,
    I have several InfoPackages that have to be filtered with the same 0FISCPER range (for example with 0CO_OM_OPA_1 data source).
    In data section tab of my InfoPackage, column Type is not applicable for InfoObject 0FISCPER.
    Can I change this behavior?
    Thanks an regards,
    Wolfgang
    Edited by: Wolfgang Taag on Mar 5, 2008 1:53 PM

    Hi Wolfgang,
    well it is ok in my system. May be you have some fixed values entered in the columns 'From' - 'TO' Value. Delete those values and the column will be ready for input. After entering a type e.g. a abap routine, the fields 'From' and 'TO' Value will be greyed out.
    regards
    Siggi

  • Average of values in variable ranges

    Post Author: Graybane
    CA Forum: Charts and Graphs
    I am trying to generate a trend values that use variable ranges. For instance, I want a 12 month trend developed from preceeding 1 year + 1 month average, then preceeding year + 2 months average, then preceeding year + 3 months average and so on. I only want the values for the report for the 12 monthly values. This is all complicated by being a group function. Basically I am looking at priorities for requests in a single field and developing how long it takes to resolve the request based on another field which is what is used to develoe the averages for the trend. I have tried several methods and never gotten a good trend. The total average is correct if I do not do any weighting. Has anyone had any success with this? Are there any examples I can look at. Does anyone have any recommendations? Thanks for any help

    I'm not entirely following you, Visakh, but I have a SQL Task setup in which I have an expression that makes a call to a db2 database such as the abbreviated set example below.  The list of IDs in the IN statement must come from another  SQL Server
    database.   In the past I have  gotten the list of IDs, put them in a recordset and then put that in a for loop to iterate and make one call to db2 for each and every ID.   The single ID example can literally take days to run for 100,000 IDs.
     Therefore, I want to pull the entire set of results back at one time via a single (or at least fewer calls than there are IDs) DB2 call using 'in' instead.  Maybe I am overlooking something but I don't quite see how your example will get me where
    I want to go.  
    Set Example
    SELECT 
       A,
       B
    FROM 
        Table 1, 
        Table 2, 
    WHERE 
        Joins   
        AND PRSNEUP.ID in  ( This is where I want a list of IDs )
    Single ID Example
    SELECT     A,  
     B
    FROM   
      Table 1,      Table 2, 
    WHERE     
    Joins        AND PRSNEUP.ID =  ( VariableContainingASingleID

  • How to determine number range for billing document based on company code ..

    Hi Friends!!
    can anybody tell me how to determine number range for billing document based on company code & tax departure country if required??
    Amit...plz help me!!

    Hi Amit,
    1. Define different Billing Document number ranges in  SPRO -> Sales & Dist -> Billing -> Define number ranges for billing docs. (VN01). Make sure that all are internal number ranges.
    e.g.
    NO.  From number To Number    Current number  Ext
    A1   0930000000    0930999999
    A2   0940000000    0940999999
    A3   0950000000    0950999999
    2. Define a Ztable ZNUMB_RANGE as follows
    Comp. Code | Tax departure country | Billing Doc Type | Number Range
    100                IN                               F2                      A1
    200                IN                               F2                      A2
    200                US                              F2                     A3
    3. In user exit RV60AFZZ (USEREXIT_NUMBER_RANGE)
    Read table ZNUMB_RANGE for Number Range with Comp. Code, Tax country and Billing Doc.
    If found pass this number range value to us_range_intern.
    us_range_intern is a standard SAP variable which tells program which number range use to create the current document which is under process.
    Let me know if you are clear.
    Thanks,
    Mandar

  • Ask help about  variable range

    1.if I define a variable at the start of the class: private JList flightsList;
    2.then write a method :public void doQuery( )
    String startAirport = (String)from.getSelectedItem();
    String endAirport = (String)to.getSelectedItem();
    String timeDate = date.getText();
    if( manager.getFlights(startAirport, endAirport,timeDate) != null )
         Flight [] flightQuery = manager.getFlights(startAirport, endAirport,timeDate);
         int length = flightQuery.length;
         String [] number = new String[length];
         System.arraycopy(flightQuery,0,number,0,length);
         //flightsList = new JList( number );
    3.then make a constructor,I want in the constructor invoke the method doQuery( ) ,then use
    code: flightsList = new JList( number );
         contents.add( new JScrollPane( flightsList) , BorderLayout.CENTER );
    I want to put arryaay number in the flightsList,then create a JScrollPane show the arraay number.
    But it does not work.I know it is the variable range,how to pass the number into the flightsList?
    I have thought about it for a long time.
    Please help me,thanks!

    I mean:
    example:
    public class look extends JFrame {
    //if I define a variable at the start of the class:
    private JList flightsList;
    //2.then write a method :public void doQuery( )
    String startAirport = (String)from.getSelectedItem();
    String endAirport = (String)to.getSelectedItem();
    String timeDate = date.getText();
    if( manager.getFlights(startAirport, endAirport,timeDate) != null )
    Flight [] flightQuery = manager.getFlights(startAirport, endAirport,timeDate);
    int length = flightQuery.length;
    String [] number = new String[length];
    System.arraycopy(flightQuery,0,number,0,length);
    //flightsList = new JList( number );
    3.then make a constructor,I want in the constructor invoke the method doQuery( ) ,
    public gui
    //use code
    flightsList = new JList( number );
    contents.add( new JScrollPane( flightsList) , BorderLayout.CENTER );
    in sort I want to put array number in the jlist( flightsList),then create a JScrollPane show the arraay number(number).
    //Your constructor assigns the private variable the value of what it is passed, then you can use it in other functions in the class.
    Is that what you are asking?
    no,I mean assingns a private variable,then write a method ,then invoke the method to put array number in the private variable.

  • Number range for the customized transaction

    Hi Experts,
    I am developing customized screen. When user saves after entering data a number should be generated automatically. Please tell how to maintain the number ranges for my transaction.
    Regards,
    B V Rao

    Hi,
    Go to SNRO tcode and enter an object to be created and press create button.
    Enter data element as S_CARR_ID and domain as POSNR
    and 10% as warning and save.
    create small program to update SCARR table with a carrid 01.
    data : begin of itab occurs 0.
    include structure scarr.
    data end of itab.
    itab-carrid = '01'.
    append itab.
    clear itab.
    modify scarr from table itab.
    and execute the program now your SCARR table will have 01 as carrid.
    now maintain the number ranges for your newly created object in SNRO tcode
    prees numer ranges button and enter 01 in Air line input field
    in your program where you want these number ranges
    declare a variable as follows
    data number type nriv-nrlevel.
    CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr                   =  01  " Air line just you created
        object                        =  "the object name that you created in SNRO
      QUANTITY                      = '1'
       SUBOBJECT                     = '"naturally enter 01 ( which you assigned while creating N ranges)
      TOYEAR                        = '0000'
      IGNORE_BUFFER                 = ' '
    IMPORTING
       NUMBER                        = number
      QUANTITY                      =
      RETURNCODE                    =
    EXCEPTIONS
       INTERVAL_NOT_FOUND            = 1
       NUMBER_RANGE_NOT_INTERN       = 2
       OBJECT_NOT_FOUND              = 3
       QUANTITY_IS_0                 = 4
       QUANTITY_IS_NOT_1             = 5
       INTERVAL_OVERFLOW             = 6
       BUFFER_OVERFLOW               = 7
       OTHERS                        = 8
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Best Regards
    Ramchander Rao.K
    Edited by: ramchander krishnamraju on Dec 12, 2008 9:17 AM

Maybe you are looking for

  • ITunes knows there is music on my iPhone, but it doesn't show up in iTunes!?

    I recently got a new laptop and today I downloaded iTunes onto it. I have to latest version of everything (4.3.2). I plugged my iPhone 4 into the laptop and everything downloaded well and everything is fine. iTunes recognises I have 779 songs on my p

  • Swap size limitations / default rules

    I've been playing with software raid to speed up my hd performance. I currently have 4 x 160 gig hd's (2 x sata & 2 x pata). I got my 4'th hd today, so I did a clean install (got too much spare time) and for some reason decided to set my swap to 1gig

  • Updating Oracle BLOBs through Tomcat's DBCP

    Hi, I've been using Tomcat's DBCP and I'm trying to cast my ResultSet to an OracleResultSet so I can use the getBLOB message. I've searched and realized I had to take part of it out of the wrapper, so I got the connection out of the wrapper using: co

  • I've installed firefox and the bookmarks doesn't work

    I've installed, un-installed, and re-installed firefox. Bookmarks will not work. I've clicked the star - and nothing. I've tried to use the menu bar to bookmark a page and - nothing. I've checked the sqllite file and it is not marked as read only. Wh

  • Micro Sim is not detected in BlackBerry 10 Alpha.

    I have got BB10 alpha in Blackbeery 10 JAM. Problem is here, I want use internet through Mobile Network. But this is not working. What is problem here, could you please help me?  My service provider is Vodafone , India. I have contact to service prov