Variable in selection screen

Hi
   I have two fields one for reporting period and another for Creation date on which user can seletct on selection screen(variable).  I have made both of the variable mandatory so that if user does not enter value any one of them , it is showing message to make an entry in all required fields.
Now user wants               
                      1. If user enters value in any one of the seletcion field and keep other field blank, report 
                          should display without giving error message. But if he keeps both fields blank and 
                         execute report, it should display error message to enter value in required field.
Can anybody please guide me is it  possible?
If i make one field(reporting period )mandatory and other(Creation date ) optional,  when user will execute report without giving any value in reporting period , it will show message to make entry for Reporting Period.
Regards
Deep

Hello Guys,
i am facing an issue with pop up of error message on the screen after validation. here is my code
case i_step.
    when 3.
      loop at i_t_var_range into lv_temp.
        if lv_temp-vnam = 'ZCUR_TYP'.
          var1 = lv_temp-low.
          exit.
        endif.
      endloop.
      clear: lv_temp.
      loop at i_t_var_range into lv_temp.
        if lv_temp-vnam = 'ZVEXRATE'.
          var2 = lv_temp-low.
          exit.
        endif.
      endloop.
      clear: lv_temp.
     loop at i_t_var_range into lv_temp.
        if lv_temp-vnam = 'ZVICOMPC'.
          var3 = lv_temp-low.
          exit.
        endif.
      endloop.
     select single * from /BI0/PCOMP_CODE into compcode where
             COMP_CODE = var3.
      if sy-subrc = 0.
        if compcode-currency  = var1
            and var2 ne ''.
            MESSAGE E000(ZBW).
        endif.
      endif.
endcase.
when i try to texecute this code, i am getting disconnected from BW with a message connection closed without message (CM_NO_DATA_RECEIVED)
its working fine in RSRT. i get the message at the bottom in the scrol bar.
please let me know if there is any thing wrong inthe code.
Thanks
Krishna

Similar Messages

  • Input Variable on Selection screen in BEx

    Hi Team,
    Is there a way to change the sequence of Input variables on Selection screen in BEx ?
    Thanks in Advance.

    Hi,
    Go to query designer - query poperties - you find variable sequence tab
    you change the sequence of your variables
    Thanks,
    pk.

  • Hierarchy Node Variables in Selection Screen

    Hi Experts!
    I have a hierarchy Node variables of  InfoObject in BEx. When I execute the report, I choose Hierarchy variables in Selection screen of BEx Web. I see all of attributes of infoObject, I want to reject all of those.
    Suppose that:  In infoObject 0COSTCENTER has attributes (Controlling Area, BusinessArea, CompanyCode, ProfitCenter u2026.), I donu2019t need to see those attributes of Costcenter when I choose node in Hierarchy variables. I only want to get the CostCenter. Please some advise to solve that issue or how can I do that?
    Thanks in advance,

    hii
    Try This:
    Double click on the info object
    then go to the Hierarchy Tab
    here u find a button of External Char in hierarchies
    Click on this
    On right hand side u find some of the attributes of the info object
    place them on left hand side
    Execute it & activate the Info object.
    Thanks
    Neha

  • Change order variable in selection screen of WAD

    Hi,
    I created a wad with 2 queries.
    Selection screen of Query A :
    Year
    Month
    Site
    Customer
    Activity
    Selection screen of Query B :
    Year
    Site
    Customer
    I checked the [MELT_VARIABLES] in the WAD because Year, Site and Customer are in both queries
    Unfortunately, the result in my wad is :
    Year
    Site
    Customer
    Month
    Activity
    But i would like to have :
    Year
    Month
    Site
    Customer
    Activity
    How could i do it ?
    Thanks in advance

    @Rakesh,
    I'm using WAD 7.0
    @Edward,
    Yes, i know it's possible to change the ordre in Query Designer.
    It's why i set the sequence in Query A and Query B as i showed in my initial post.
    Unfortunately, it seems than in WAD the sequence is changed.
    First, it show the variable that exist in both queries ( in my case : Year, Site and Customer )
    then the variable that exist only in query A ( Month, Activity )
    then the variable that exist only in query B  ( Nothing )
    I wish to change this behavior.
    Thanks,
    David

  • HIerarchy Variable in Selection Screen not taken into account.

    Hi,
    Our users choose a cost center hierarchy in the selection screen and run the report. As we have suppressed Unassigned Nodes, they do not appear. However when users then deactivate the hierarchy, unassigned nodes are shown. Their argument is that the unassigned nodes should still not be displayed because a hierarchy was entered on the selection screen. Is there a way of stopping this?
    Thanks

    Hi Shawn,
    I think I get what you did in your query, though it took me some time...
    Did you select the cost center in your query and set the display hierarchy using settings, hierarchy tab, select hierarchy, hierarchy variable (or something like that)? That would explain why the query isn't filtered on that hierarchy, only the display of cost elements is affected. You should also have the same hierarchy variable in your filter settings in the query designer. That way, the user filters on a hierarchy and the unassigned nodes will never be in the result.
    Hope it helps, tell me if I got it wrong,
    Kind regards,
    Alex

  • Display description of query variable in selection screen

    Hi @ All.
    we have a query with a variable (..UVO_0currency_001D).
    In the selection screen of the query I see the technical name of the variable instead of the description "Currency".
    What and where I have to change to see the description of my variable?
    Thanks a lot!
    Stephan

    Hi,
    change the infoobjec property for that perticular infoobject at Multi provider if your Query is on Multiprovider. goto Change mode of multiprovider - > expand respective dimension -> right click ob perticulat infoobject - > select provider - specific properties of the infoobject. select disply ad key and text.
    hope this helps
    Regards,
    Daya Sagar

  • How to Restrict Variables in Selection Screen

    Hi Experts,
    I have set filter variable for my Region which includes (East, West, North, South).
    And I'm restricting North and South in the Selection Screen and displaying a choice of East or West on the Selection Screen.
    I tried right click variable in filter pane-> Restrict -> Move.....East and West to right side. and saved it.
    When I tried executing it I'm being displayed all the 4 values at the Selection Screen.
    Can any real experts help me resolve this
    Thanks

    Hi
    There are two ways in which you approach this
    - Create a variable for Region and set the Default values to East and West. This way when the user runs the query the selection will be by Default populated as East and West. You don't have to go in and do a selection.
    - Personalize the variables.
    Refer to the link below which contains details on Personalizing variables.
    http://help.sap.com/saphelp_nw70/helpdata/en/45/6e4f4db9cc1956e10000000a11466f/frameset.htm
    In short, when you run the query you can see a Personalize variables button where you can just choose Ease and West. You can also choose whether to display or hide the personalized variable. When you hide it will internally be restricted to Ease and West.The result is displayed with your personalized values the next time you execute the query. The down side to this is this is specific to a user.
    Apart from the above two, i don't think you can choose the selection only to display East and West. As long as your master data and info provider has all four values you cannot hide them.
    In the query designer, when you click on the Region infoobject in the Advanced tab, you will see four options. You can only choose among the four. Here you can see that you can only choose between Master data, infoprovider etc.
    Regards,

  • Global Variable for selection screen variable

    Hi All,
    We need to create a report where calendar day has to be included in the selection screen.Later after executing the report we should be able to retrieve the selection screen input for calendar day and modify it and use the modified one for other calculations.Can somebody help me out in finding the global variable in the variable exit where we find all the inputs for selection screen variables....
    Regards,
    Shravani

    shravani,
    I_vnam will store the varaible names...if you have varaible in the query...
    please use this code for ur help...
    DATA: ww_der_date LIKE sy-datum,
            wzdate LIKE sy-datum,
            wzact_gi_dte TYPE /bi0/oiact_gi_dte.
      wzact_gi_dte = sy-datum.
      IF i_step = 2.
        READ TABLE i_t_var_range INTO wa_i_t_var_range WITH KEY vnam =
        'ZNODAYS'.
        ww_der_date = sy-datum - wa_i_t_var_range-low.
            CLEAR wa_i_t_var_range.
        IF i_vnam = 'ZVAGIDCUSTEXIT'.
          CLEAR l_s_range.
          l_s_range-low    =  ww_der_date .
          l_s_range-high   =  wzact_gi_dte.
          l_s_range-sign   = 'I'.
          l_s_range-opt    = 'BT'.
          APPEND l_s_range TO e_t_range.
          CLEAR l_s_range.
        ENDIF.
      ENDIF.
    in this case user will enter no.of days in ZNODAYS and that being is used in calculation and used in the next varaible....

  • How to arrange the variables in Selection Screen (Query)

    Hi,
    I am having Query-A (Contains 4 variables, among those, one is mandatory and one is Replacement Variable)
    Using Replacement Variable am calling Query-B (Contain one mandatory Variable).
    Now when am executing Query-A, in Variable screen its shows
    Query-A--Mandatory Variable
    Query-A--*********
    Query-A--*********
    Query-B--Mandatory Variable. (like this)
    But i need the Query-B--Mandatory Variable to be position in top. how to achieve this.
    Regards,
    Jackie.

    Hi Friends,
    Thanks for your quick replies, but like Dieu said i need to rearrange Variable between Query-A and Query-B.
    Query-A Variables                                
    Query-A--Mandatory Variable               
    Query-A--********
    Query-A--********
    Query-B Variables
    Query-B--Mandatory Variable
    I have join both the Query using Replacement Path Variable.
    Now when i execute Query-A, it shows the variables in Query-B also. Like this
    Query-A--Mandatory Variable          
    Query-A--********
    Query-A--********
    Query-B--Mandatory Variable
    But i need to like the following
    Query-A--Mandatory Variable          
    Query-B--Mandatory Variable
    Query-A--********
    Query-A--********
    Regards,
    Jackie
    Edited by: Jackie on Aug 11, 2008 12:04 PM
    Edited by: Jackie on Aug 11, 2008 12:05 PM

  • Need help on selection screen

    Hello Experts,
       I have a requirement. My user want when she run the report online all variable on selection screen should be parameters means not range or extension and some selection screen checks. But when she run the report in batch mode, all variable on the selection screen should be select-options means ranges with extension. Is it possible to create 2 selection screen in same report, I have no idea, is it possible or not. If possible please tell me how.
    Thanks,
    Amit

    Hi,
    Try this code,
      <b>Important thing is, don't use default selection-screen(1000).</b>
    DATA: w_matnr TYPE matnr.
    SELECTION-SCREEN BEGIN OF SCREEN 1001.
    PARAMETER: pr_param  TYPE matnr.
    SELECTION-SCREEN END OF SCREEN 1001.
    SELECTION-SCREEN BEGIN OF SCREEN 1002.
    SELECT-OPTIONS: so_sele FOR w_matnr.
    SELECTION-SCREEN END OF SCREEN 1002.
    INITIALIZATION.
      IF sy-binpt = 'X'.
        CALL SELECTION-SCREEN 1001.
      ELSE.
        CALL SELECTION-SCREEN 1002.
      ENDIF.
    <b>You should be the same logic in the remaining program(like in START-OF-SELECTION, END-OF-SELECTION etc) where ever the implication of selection screen fileds are there.</b>
    Thanks and Regards,
    Bharat Kumar Reddy.V

  • Selection screen versions in LdB

    The following questions are related to SAP delivered LdBs that are not for HR.
    a) Do you know where the selection screen versions for a delivered LdB are stored?
    b) Can additional selection versions be created /delivered selection screen versions modified? Or the authorization for doing the changes is generally not provided.
    Thank you much,
    Fred.
    Edited by: Fred Myer on Jan 30, 2008 11:16 PM
    Guys, any help?

    Hi,
    Try declaring some global variable in the data delclaration event, and pass the values these variable at selection screen, and use them wherever required.
    Regards,
    Santhosh.

  • How to Display key/text in default selection screen?

    HI Gururs,
    I want to display key/text in variable default selection screen in BI Analyzer in Quality.
    please give me any suggestions to resolve this.
    Thanks
    vadlamudi

    hi,
    What i have done is in the cube level, in the dimensions i have made specific properties and set to key/text in development, so its working fine in development of the analyzer, but still its showing text only in quality analyzer.
    please give me the solutions if you know any.
    regards
    vadlamudi

  • Selection Screen Validation In ABAP Queries

    Hello all,
      I have created a selection screen field in the Infoset by EXTRAS --> Create Field.
      Now i want the values entered in this field at the selection screen to be available
      at the event Record Processing.
      The values entered at the selection screen are getting stored in some system generated varaible
      SP** .i am not able to read from this field.
      Please let me know ur inputs.
      Regards,
      Najam

    Hi,
    Try declaring some global variable in the data delclaration event, and pass the values these variable at selection screen, and use them wherever required.
    Regards,
    Santhosh.

  • How to add customize message on the variable selection screen in the query

    Hi all,
    Can we add an customise message on the variable selection screen in the query? If yes please let me know how it can be achevied?
    Thanks,
    Rani

    Hi Rani,
    I faced a similar issue (for what I understand your request is).
    My requirement for the Variable Screen was to do:
       1) place a link to a ppt file
       2) remove buttons "Save", "Save As...), "Delete"... the standard buttons come when running the Query or WebTempl
    We were using a Web Templ for BI7.0
    I struggled trying to find out how to do it. My conclusions are:
    - WAD, not sure we can accomplish it using a Web Template but i did not "play" a lot with the Web_Template Properties in order to know
    - XHTML, I was told in my post HTML modification was the way, but I have close to nil background in HTML and couold not find the way of accessing the Variable Entry screen
    For instance, I had to remove similar buttons and change some font size from a link on the Web Template (WAD), which was pretty straight forward. In WAD the buttons come with its own icon and to increase the Font size for that link we used XHTML (<font size="2" >). But the heck of the variable screen...well, i just did not get trhough to it to modify it in any way.
    Good luck,
    Definetly in a Query I would say that no.
    alex
    PS: If anyone had a better insight, please feel free to share it.

  • Error while using selection option variable in the selection screen

    Hi All,
    I am facing an issue while using selection option variable in the selection screen for one of my reports.
    Scenario: For the field "Region From" we need to have wild card logic () in tes selection screen, for example if we put "BE" in the selection screen for the field Region From then the query should be executed only for those "Region From" values which begin from "BE".
    Approach: For the above requirement I have made a selection option variable for "Region From". This allows use wild card
    But when the report is executed we get the following error:
    "System error in program CL_RSR_REQUEST. Invalid filter on ETVRGNFR".
    (ETVRGNFR is technical name of the info object Region From)
    Though the report is executed it displays all the values for the field "Region From" irrespective of the selection given in the selection screen.
    Please give suggestions / alternate solutions to crack this issue.
    Thanks in advance
    Regards
    Priyanka.

    Hi,
    Try to use a variable of type Customer Exit and do the validation inside the exit to display according to your request.
    This is just my view, i am not sure if u are already using this or Char. Variable.
    Cheers.
    Ranga.

Maybe you are looking for

  • I had a name for my user name not an email address and now I cannot get access to my itunes account

    I had a simple user name through the itunes store. It was just a name not an email address, now when I sign in it sends me to an old itunes account which does not recognize purchases that I have made over  the last 5 years. Any clue as to how I can a

  • Display Web page in SWF file?

    I want to use flash to build a desktop application for our touchscreen kiosk... And I need a button that will open a web page inside of flash... and not using IE or FF... If I use IE with getURL... and the user happens to touch outside of the browser

  • Sent messages from IMAP accounts are not being saved

    I have three IMAP accounts setup on MAIL but none of them save sent mail - preferences are set correctly ......

  • Pdf on nokia 2690 and c2-00

    I need pdf reader on my nokia 2690 and nokia c2-00

  • Height and Width:

    Hi, I keep trying to increase the height and width of my quicktime video but nothing happens - please view an example page here: http://petsitterbible.com/movies/avoidonstreet.shtml and the code I used is: <embed src="http://downtownpets.com/sitstays