User entry in a query

Hi All,
I have a  query wherein I want to have a user entry but do not want the query result to be affected by it.
The details of the query are such that in this query I am calculating Sales actuals by posting period (selecting constant months to make a quarter) and sales commitment  by a normal characteristic Fiscal quarter.
Is it possible that I have a user entry for quarter and have that quarter (selected by the user) displayed in the query but at the same time display the entire data of the query?
Please advise.
Thanks and warm regards,
Sharmishtha

Hi Anil,
In rows I have CGL Branch (user netry/multiple values), organizational division(zdivision/user entry) and sales district. In th columns I have Previous to previous year's sales(SALDR NOTECASH restricted with fiscal year/ user entry variable with offset -2) similarly I have previous year's sales. Then I have current year's Q4 sales. For this I have restricted the same key figure with fiscal year/user entry and posting period=jan,feb,mar). This is because ZBDMIS1 does not have ZFIQUART1(fiscal quarter). Then similarly I have to calculate for all the quarters of the current year. Alongside I also have to calculate the commitments for all the quarters. For this I created a cube in which I included ZFIQUART1 (and loaded thru flat file), as customer will give data in quarter. Finally I made query on the multiprovider. Now, in the query I created a new selection for commitment of Q1 and restricted Sales Commitment Value with fiscal quarter = quarter1 and similarly for all quarters.
But the values of the Sales Commitment val is not coming at all.
Also I wanted to put quarter as user entry. (just as a display of the selected quarter in columns, we don't want it to filter the data)
Thanks and warm regards,
Sharmishtha

Similar Messages

  • How to Enable the LOV to query for partial user entries in af:query in an ADF search form

    Hi guys,
    I have faced one issue in creating a search form in ADF, in that I have used af:query and table region. and I have attached an lov vo to the base vo for the list of values and given UI hint as Input values with List of values. Now the issue is that I have given auto submit property as true so when I give some value suppose "Jan-14" and tab out it gives me all the correct results. but if I give like "Jan%" and then tab out then it does not give me any value. Could you kindly help me with some solution. I am using Jdev 11.1.1.6.0.
    Thanks,
    Tanmoy

    To enable the LOV to query for partial user entries, we can trap the 'LaunchPopupListener' event and add custom code there. Within the af:query component, just wondering how can we set property the 'LaunchPopupListener' for the search criteria ?

  • User Entry for BEx query

    Hi Gurus,
    When I run a standard Business Content query, I could see a dialog box popping up for the user to enter the values. This looks like a mandatory field. How do I modify this? Is there a code which I could do the modification, as to me it seems to be an SAP exit variable?
    Any help would be hugely appreciated.

    Hi,
    When we use variables in a query a pop-up appears at runtime. If we want to modify it, ie., if you want to delete this
    see for which field it's asking to enter the value, in Query -> Global definition -> go to that field, expand it, you can find a variable on that field, you can delete that variable or go to the left side panel and double click on the variable under the same field and modify it, under DETAILS change 'Variable Entery is' to optional from Mandatory.
    To create a variable right click on the field and create a 'New Variable'

  • User entry in Query output screen

    Hi Friends,
    Is there any option to allow user entry in the query output (not variable entry screen), so that the output will change accordingly?
    Regards,
    Guru

    Hi,
    Once query output is generated you can not have any variable selections further. What you can do is, Filter your output based on existing characteristics.
    If there are any free characteristics available you can drilldown on them or put filter restrictions on them and you can get the new data for those required attributes.
    But you can not change the original output set once generated, you will have to re-execute the query.
    Regards,
    Durgesh.

  • Query problem - authorization and user entry variable as filter

    hi,
    I made two variables for the characteristic 0COMP_CODE.
    The first variable is a user entry variable for the selection.
    The second variable is my authorization variable with multiple single values.
    This two variables are defined as filter in the query.
    The problem is as follows:
    A user is authorized to see the data from three companies. For example companies 1, 2 and 3.
    Now he enters on the selection for the 0COMP_CODE the value 2 to see only the data of this company. The query result gets me confused. It shows all data of the companies 2 and others. It basicly shows more companies than he has selected.
    Other companies of the authorization variable are shown.
    It works if the user has the authorization over all companies.
    Did someone has the same problem?
    Thanks for your help/advice.
    regards,
    Pascal

    Hi Pascal,
    this is an issue. The main problem is that you just can't influence via the exit for a vairable "ready for input".
    What could be done is define a dummy element (hidden in the final display) in your query like a restricted KeyFigure to a variable based on COMP_CODE; let's say VAR1 ready for input.
    You char COMP_CODE would then be filtered by a variable not ready for input processed by user exit, VAR2.
    The exit would ready VAR1. If there any value complying with the authorized one then populate VAR2 with it, otherwise remove it (you could use STEP_3 to raise a message "you aren't authorized to use comp_code XYZ" and return to the initial variable screen). If VAR1 is empty, then populate VAR2 wit all corresponding aithorized values.
    The main issue is that
    1- this is bypassing the standard functionality of authorization variables
    2- any report would have to be designed like that!
    What we have done is to add nav_attr / and added more IObjs in the InfoProviders related to 0COMP_CODE reflecting a country, region or any other group of comp_code authorization and then have based our authorizations on those nav....
    hope this helps...
    Olivier.

  • Check user entry in Customer Exit Variable in i_step2

    Hi Folks,
    at the moment I'm facing a challenging problem. In an BW Query i have a Customer Exit defined as "not ready for Input" to catch the Variable in I_Step = 2 and fill by a certain algorithm. When i change the CE Variable to "Inputready", the user can enter values, but i have no chance to react on these values as i_step = 2 will not b reached during execution- And this behaviour is correct. BUT is there any chance to Check user entries in an Customer Exit variable and change this somehow in des code?
    Thanks for all replies.
    BR,
    Maik

    Hi there,
    It is possibel depending on what you wish to accomplish.
    You can create two variables for the same characteristic.
    The first is an input ready variable for the user to enter the data and the second is a not input ready variable CE where you can in step 2 process the data entered from the variable ready for input.
    You can than fill the CE variable with any data, but you will have the variable restricted by the two variables (the ready for input and the CE).
    But for validating you could throw an error message based on the variable input ready.
    Diogo.

  • Current date as deafult for Calender Day and user entry

    Hello All,
    There is a select option for Calender Day for a BW query.
    This Calender Day should have a default as Current Date and User entry is also possible.
    I have used a Customer exit and written the following code under i_step = 1
    data: v_currdt like sy-datum.
    clear: v_currdt, vfl_range.
             if i_step = 1.
              vfl_range-sign = 'I'.
              vfl_range-opt = 'EQ'.
              v_currdt = sy-datum.
              vfl_range-low = v_currdt.
              append vfl_range to e_t_range.
             endif.
    Please inform if this code is incorrect, because I am not able to see the date at all.
    Cheers,
    KP

    Hi
    Check with this code!
    Implemented for the same function as you require.-
    if i_step = 1.
      case i_vname.
        WHEN 'ZZZZZZ'.
          IF i_step = 1.
            REFRESH e_t_range.
            CLEAR l_s_range.
            l_date1 = sy-datum.
            L_S_RANGE-LOW = l_date1.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT  = 'EQ'.
            APPEND L_S_RANGE  TO E_T_RANGE.
          endif.
      endcase.
    endif.
    Regards
    M.A

  • User entry variable with exclude values

    Hello All,
    I created a  user entry/ default value variable, which allows multiple single values and is optional entry. And I also got to exclude few values from this infoobject as well as have a variable.  When I select and exclude my value from selsction and run the report, I get a system error and the varibale is converted to mandatory entry. The detail error message is displayed below.  Any useful input will be awarded
    Diagnosis
    Variable &V1& is used in the query in such a way, that an optional entry is not possible.
    For example, you might be using an "Exclude", or the variable might be connected using OR to additional selections for &V2& in the global filter, but is still displayed in the columns selections.
    It is also not possible to use an optional parameter variable to fill an interval selection in either the from-field or the to-field.
    System response
    Procedure
    If you are able to accept the mandatory entry, you need not do anything. Otherwise you must work with several variables in the query. You can use an optional interval variable to do this.
    Procedure for System Administration

    Hello ,
    I did try creating a variable with the foll details:
    Variable Type : User Entry / Default Value
    Variable Represents : Multiple Single values
    Variable entry optional
    When I run the query it converts my variable to mandotary entry.  but I want to have optional user entry variable.
    Any help will be awarded

  • How to show all the user entry variables in a workbook.

    Hi,
    My user need to see in the workbook all variables he had entered in the variable entry popup at the openning of the workbook.
    I know how to show all the variables, included the hardcoded variable in the query (with a text element, select the checkbox "Display All Statics Filters"), but I need only the user entry variables.
    There is a way to print only these variables?
    Thank you

    Thanks, but the problem is that this workbook is my Global default workbook used for all the queries. So I only want the user entry variables visible automaticly.
    There is a way to do that ?
    For information, i'm using Netweaver 7.
    Thank you

  • Variable Creation on user entry FISPER

    Hi All,
    I need help to design a BEx Query , currently I am facing a challenge. The client require the report query design as per the screen shot.
    Hence I have
    1. I have calculated YTD using 0P_FPER (User Entry Value).
    2. But the rest figures , I need to display over the periods , for example user entered 003.2009 , the Key Figure should be displayed under three column 001 till 003 and YTD Key figure in single column cumulative of all three periods.
    3. Please help as I am unable to create variable which will give me 002.2009 and another variable 003.2009 ..
    The number of column should be dynamic in nature depending upon user entry.
    Regards,
    Subhasish

    So , I just have to use it as restriction (filter) = 0I_BA106 for the Previous Year YTD.
    Do I need to consider any other variable for Fiscal Year restriction ?
    The Function module states :
    FUNCTION RSVAREXIT_0I_BA106 .
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(I_VNAM) LIKE  RSZGLOBV-VNAM
    *"     VALUE(I_VARTYP) LIKE  RSZGLOBV-VARTYP
    *"     VALUE(I_IOBJNM) LIKE  RSZGLOBV-IOBJNM
    *"     VALUE(I_S_COB_PRO) TYPE  RSD_S_COB_PRO
    *"     VALUE(I_S_RKB1D) TYPE  RSR_S_RKB1D
    *"     VALUE(I_S_RKB1F) TYPE  RRO01_S_RKB1F
    *"     VALUE(I_THX_VAR) TYPE  RRO01_THX_VAR
    *"     VALUE(I_STEP) TYPE  I DEFAULT 0
    *"  EXPORTING
    *"     VALUE(E_T_RANGE) TYPE  RSR_T_RANGESID
    *"  EXCEPTIONS
    *"      NO_PROCESSING
    *"      NO_VALUE
    * Purpose:
    * get actual period from variable 0P_FPPER
    * and compute interval from first period to corresponding period
    * in previous fiscal year
    * returning parameter
      DATA: l_s_range TYPE rsr_s_rangesid.
    * work area for I_THX_VAR and Period
      DATA: l_wa_thx_var   LIKE LINE OF i_thx_var
          , l_ta_range     LIKE l_wa_thx_var-range
          , l_wa_range     LIKE LINE OF l_ta_range
          , l_period(3)    TYPE n
          , l_year(4)      TYPE n
          , l_prev_year(4) TYPE n
    * some checks to start with
      IF i_vnam <> '0I_BA106'.
        RAISE no_processing.
      ENDIF.
      IF i_step <> 2.
        RAISE no_processing.
      ENDIF.
      REFRESH e_t_range.
      CLEAR l_s_range.
      CLEAR l_period.
      READ TABLE i_thx_var INTO l_wa_thx_var
        WITH TABLE KEY vnam   = '0P_FPER'.
      l_ta_range = l_wa_thx_var-range.
    * only one value allowed
      READ TABLE l_ta_range INTO l_wa_range INDEX 1.
      l_year   = l_wa_range-low(4).
      l_period = l_wa_range-low+4(3).
      IF  ( l_period IS INITIAL )
       OR ( l_year   IS INITIAL ).
        CLEAR l_s_range.
        RAISE no_value.
      ELSE.
    * get previous year
        l_prev_year = l_year - 1 .
        CONCATENATE l_prev_year con_first_period INTO l_s_range-low.
        CONCATENATE l_prev_year l_period         INTO l_s_range-high.
        l_s_range-sign = 'I'.
        l_s_range-opt  = 'BT'.
      ENDIF.
      APPEND l_s_range TO e_t_range.
    ENDFUNCTION.
    Please suggest.
    Regards,
    Subhasish

  • User Entry/Default value

    Hi Experts,
      In my query i am having a User Entry/default value for characteristic variable.When i run the report for a particular value the data is not shown but if i run the report with out an entry then the data is shown for that value.
    User entry/Default variable is blocking the data?
    Can somebody give me an idea where lies the problem?

    Hi Venkat,
    Details:
    Processing type: User entry/Default value
    Default value: -
    (blank)
    Type of variable:Characteristic Value
    Variable represents: selection Option..
    Where can i check if problem is with variable or not?

  • Regarding Variable entry at the query runtime

    Hi
    In the Query Designer they have taken many variables which are user entry but when I run query I am getting only few options where I can enter values and other variables are not displayed for entry and they are taking some value as default though thay do not have default value. When I check it in Query Properties all Variables are displayed but at the Query Runtime very few are displayed.
    Please suggest me how to get all options at the Query Runtime  to enter the values. It is very urgent Plz send ur suggestions soon.
    Points will be assigned.
    Regards
    Balaji

    Balaji,
    I suspect some of your variables have been personalized. Run the query, when it's run then select Change query - Change variables values from the Bex toolbar. Have any variables little yellow smiley faces on the right hand side of the input area?  If so you may want to remove the personalization by selecting each face and select reset personalization.
    Regards
    Gill

  • User Entry variable - AND condition

    Hi,
    The requirement is, if the user enters two materials A and B, the query should pull out all the transactions with BOTH materials in it.
    If the user entry variable with selection option is used, it pulls out the records even if one of the materials exist (OR condition).
    Is there a way to have the AND condition without the use of Customer exit variable?
    Thanks.

    Hi,
    The scenario is like this. Transaction 1 has both the materials A and B. Transaction 2 has only material A. Transaction 3 has only material B.
    Trans.No Material
    1             A
    1             B
    2             A
    3             B
    When the user enters materials A and B, the output should contain only trans.no:1.
    Thanks.
    Edited by: P R on Jan 6, 2009 2:52 PM
    Edited by: P R on Jan 6, 2009 2:57 PM

  • Chioce of KF depending on user entry

    Hello,
    I have 3 different key figures that separate transaction currency, company code currency and controlling area currency per record.
    The requirement is to be able to display one of these key figures based on user entry. That is, I'd like to choose for example company code currency and thereby use that particular key figure in the query.
    Traditionally, a currency type is used for this, but in this case I doesn't exist. How would you solve this issue? Via a virtual KF?
    Regards,
    F C

    Hello,
    I want the query to select one of the mentioned key figures depending on the user entry. Hence, I cannot use variables. I reccon I need to fill a virtual KF with the value of either one of the real KF's.
    I could create an own column per KF and hide/unhide, but this is not the requirement. Only one should be chosen depending on user entry.
    Any other ideas?
    Regards,
    F C

  • Single user entry for two chracteristics

    Hi,
           I am using two characteristics for unit in my query ( 0UNIT and 0SKUNIT ), and I need to get user input for these units. The problem is, I am supposed to have only one user entry variable which should populate both the units.
    I am not able to use the same variable for both the units. Can someone please suggest a solution to do this?

    BEx : Characteristic Variable with Replacement Path
    check this:
    Re: Replacement Path Variable with Another Variable
    Edited by: Raj Coppar on Aug 11, 2008 10:02 AM

Maybe you are looking for