Changes in search screen..

Hi gurus...
Now a days some search screens looks different then earlier...think some modification had done, was it due to changes done in configuration level or anyother reason? if so Where can we see the changes in configuration level?

Hi Shrikant,
I have never worked with Substitution an rules etc.
As far as ur first question is concerned I am almost sure that u can not change a .ear file( A WD appln).
Only .pars can be changed. i would suggest u not to waste ur time trying this. Its better to find another way around.
Regards,
Sumit

Similar Messages

  • How to change the default operators in sap web ui Search screen?

    How to change the default operators in sap web ui Search screen?
    For eg. Using advance search option , I have some fields with default operators like equals, contains,is between, is less than and is greater than. I don't need all these operators for this field.
    I need only "equals" operator. How do i remove the rest of the operators?

    There is a view cluster crmvc_dq where all the standard setting is present related to you r issue. Please try if you can modify that, that way you will avoid the code.
    Incase you are not able to make any changes there then in that case you have to redefine the method GET_DQUERY_DEFINITION () of the IMPL class to delete the operators for a particular serach field.
    Regards,
    Harshit

  • User exists for changing the selection screen of the transaction CS11

    Hi,
    I want to change the selection screen of the transaction cs11 and modify the ALV output.
    I searched the old forums but not got satisfactry results.
    I want to change the plant and material from the parameter to the select option.
    i dont want to copy the transaction for the zcs11.
    any suggestion on this ?
    Regards,
    udupi

    one more requirement i have is that, i need to remove all the header fields such as material , plant etc and place that field in the item level. i can use the user exists PCSD0002 for the adding the customer field in the item. but how can i removed the header level field such as plant and material. whether we have any user exits for that?

  • Changing the search help  for vbap-aufnr in va01

    Hi Folks,
    Can we change the search help provided for the field Order(vbap-aufnr) in the table Control ALL ITEMS in VA01.
    1.go to va01.
    2.give the order type.
    3.press enter.
    4.it will take us to the overview screen.
    5.there we will find a table control named ALL ITEMS.
    6.in that we can find a field called ORDER(vbap-aufnr) with a Search Help provided.
    7.I want to change this search help to the search help provided for the same field  in other screen.
    (the same field is in some other screen which is having a different kind of search help,I want to provide that search help for the above said screen too)
    Let me know how to go with this in detail.
    Thanks,
    K.Kiran.

    Hi Folks,
    The same requirement I am trying to explain in a detailed manner.
    1.go to va01.
    2.give the order type.
    3.press enter.
    4.it will take us to the overview screen.
    5.there we will find a table control named ALL ITEMS.
    6.in that we can find a field called ORDER(vbap-aufnr) with a Search Help provided showing only the Orders.
    7.Now double click in the same field which is taking us to Item Data Screen.
    8.here we will  be able to see a few tab strips.
    9.click on the accounts assignment tab.
    10.we will be able to find the filed ORDER having a Search Help.
    Now I want this search help at the screen I had discussed above.At both the areas search help is provided using 'DD_SHLP_CALL_FROM_DYNP'.
    How to solve this?
    K.Kiran.

  • Google searches redirect to google search screen

    For past two days google searches will not allow me to reach a searched result. Touching the. Result redirects to the google search screen. Is anybody else experiencing this? Is it an iPad pr.oblem or a google problem? Is there anyway on the IPad to change the default search engine in Safari?

    Choose Setting > General > Safari > Clear history and Clear cookies.
    There you can also change the Search engine.

  • Formatted Search screen - populate multiple fields

    I have an Employee Id field in my screen.
    On clicking Choose button,I use a Formatted Search screen to populate value to that field.
    I also have other fields like employee Name,department which should be populated, once an employee Id is chosen from Formatted Search screen.
    The functionality is like that of "Purchase Order screen".
    Once a vendor Id is chosen Name,Contact Person etc get populated in "Purchase Order screen".
    How do I do that?
    Should I trap the Choose button event of Formatted Search screen?
    Please help.

    I think all you are missing is a check to make sure you don't try and re-run the lookup when you are validating the return value from a previous lookup.
    I made a minor change to my code and achieved the behaviour you described.  I have extracted the relevant  code from the application .  Unfortunately it looses its indentation when I post it, so it might be quite hard to read.  It uses recordsets for the validation as in practice most of the real validation is more complex than this cut-down sample.
    This particular example is from a screen with a Customer Code prompt, and displays the customers name below it.
    Regards,
    John.
    <b>Constant holding menu uid of Formatted Search</b>
    Public Const AZU_MNU_SEARCH             As Long = 7425
    <b>Declare a variable at module level</b>
    Dim mblnCardLookup as Boolean
    <b>Create validation routine (cut down sample included)</b>
    Sub ValidateCustomer(sboApp As SAPbouiCOM.Application, sboCompany As SAbobsCOM.Company, BubbleEvent As Boolean)
        On Error GoTo ErrorHandler
        Const AZU_PROCEDURENAME     As String = "ValidateCustomer"
        Dim sboRecordset            As SAPbobsCOM.Recordset
        Dim sboForm                 As SAPbouiCOM.Form
        Dim sboDSCard               As SAPbouiCOM.UserDataSource
        Dim sboDSName               As SAPbouiCOM.UserDataSource
        Set sboForm = sboApp.Forms(strUID)
        Set sboDSCard = sboForm.DataSources.UserDataSources("UCARD")
        Set sboDSName = sboForm.DataSources.UserDataSources("UNAME")
        If sboDSCard.value <> "" Then
            Set sboRecordset = sboCompany.GetBusinessObject(BoRecordset)
            sboRecordset.DoQuery "Select CardCode, CardName, Currency From OCRD where CardCode Like '" & sboDSCard.value & "%'"
            If sboRecordset.RecordCount < 1 Then
                If sboDSName.value <> "" Then
                    sboDSName.value = ""
                    sboForm.Items("edtName").Update
                End If
                If Not mblnCardLookup Then
                    LookupCustomer sboApp
                End If
                BubbleEvent = False
                Exit Sub
            End If
            sboRecordset.MoveFirst
            sboDSCard.value = sboRecordset.Fields(0).value
            sboDSName.value = sboRecordset.Fields(1).value
            mstrCurrency = sboRecordset.Fields(2).value
            sboForm.Items("edtName").Update
        Else
            sboDSName.value = ""
            sboForm.Items("edtName").Update
            BubbleEvent = False
        End If
        Set sboDSName = Nothing
        Set sboDSCard = Nothing
        Set sboForm = Nothing
        Set sboRecordset = Nothing
        Exit Sub
    ErrorHandler:
        Call AZU_STD_ERROR_MSGBOX(AZU_MODULENAME, AZU_PROCEDURENAME)
    End Sub
    <b>Create lookup routine (cut down sample included)</b>
    Private Sub LookupCustomer(sboApp As SAPbouiCOM.Application)
        On Error GoTo ErrorHandler
        Const AZU_PROCEDURENAME     As String = "LookupCustomer"
        Dim sboForm                 As SAPbouiCOM.Form
        Set sboForm = sboApp.Forms(strUID)
        mblnCardLookup = True
        sboApp.ActivateMenuItem AZU_MNU_SEARCH
        Set sboForm = Nothing
        Exit Sub
    ErrorHandler:
        Call AZU_STD_ERROR_MSGBOX(AZU_MODULENAME, AZU_PROCEDURENAME)
    End Sub
    <b>Add the following code to the ITEMEVENT handler</b>
        'Validate Customer Code
        If pVal.EventType = et_VALIDATE And pVal.ItemUID = "edtCard" And pVal.Before_Action = False Then
            Call ValidateCustomer(sboApp, sboCompany, BubbleEvent)
        End If
        'Customer Code Lookup on TAB Key
        If pVal.EventType = et_KEY_DOWN And pVal.ItemUID = "edtCard" And pVal.Before_Action = True And pVal.CharPressed = 9 Then
            Set sboDSCard = sboApp.Forms(strUID).DataSources.UserDataSources("UCARD")
            If sboDSCard.value = "" Then
                LookupCustomer sboApp
                BubbleEvent = False
            End If
        End If
        'Force Validation on Return from Lookup
        If pVal.EventType = et_FORM_ACTIVATE And mblnCardLookup = True Then
            sboApp.Forms(strUID).Items("edtRef").Click
            mblnCardLookup = False
        End If

  • My mozilla firefox search engine always defaults to amazon...how do I get just basic mozilla firefox search screen with out the default to amazona?

    My mozilla firefox search engine always defaults to amazon...how do I get just basic mozilla firefox search screen with out the default to amazon.com for everything ?

    Change the search plugin in the search bar to something else and you can search with that.

  • Not able to display and search on CLOB attribute in default search screen

    Hi,
    My requirement:
    I have three VARCHAR attributes and 1 CLOB attribute. i need to search the values on these 4 attributes.
    Created View crieteria on these 4 attributes and created default ADF search screen. but not able to add the CLOB attribute as search attribute.
    is there any solution for this or we can't search on CLOB attribute.
    FYI: i have created Converter using ClobDomain and and using this converted for editing the CLOB data.
    If i try adding the CLOB attribute in view criteria with ClobDomain and not able to see that attribute on search panel.
    Please help on this.
    Thanks in advance!!
    Thanks & Reagrds,
    Madhu

    Madhu, please tell us your jdev version!
    The search is done on the DB (query) so the converter is not used. To search clob columns you can use special SQL statements called contains or catsearch. These are using special index to find the data in blob or clob columns.
    Check my blog on how to integrate this into VC: http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/
    Timo

  • Required values should be displayed in forst search screen for Variable

    HI Gurus
    I have a Variable CUSTOMER which has 20000 values. In the first search screen we are getting 1 to 1000 values by default ( I have selected 1000 in properties). But I want the Values between 6000 to 7000. Is it possible?
    Thanks in advance.
    Best Regards
    Raj

    Hi
    I want to give single value in between 6000 to 7000. The single values which appear in first search should not be 1 to 1000. It must be 6000 to 7000
    Thanks
    Raju

  • Why is it that when I go to the search screen to find a particular message in a conversation it comes up with the message but when I click on it it takes me to the conversation where the most recent message was sent and not the message I wanted

    Why is it that when I go to the search screen and type in a particular message I want to view, my iPhone finds it but when I click on it it only takes me to the conversation at the most recently thing texted and not the particular message I clicked on?

    Never occurred to me you can search messages that way, thanks.
    Another way to do it is to scroll from the most recent message to the top of the screen and tap load more messages, repeatedly till you reach the one you want.
      I like your method better, but with both methods it refreshes to the most recent message.

  • How do I change Default search engine in the address bar, not the search window on the top right or by using about:config, doesn't work. Worked fine until this FF 8.0 update, now defaults to Yahoo 7. About to throw it in and use Chrome.

    When Firefox 8.0 installed it has automatically changed my address bar default search engine to Yahoo7 which is crap. I can not change this back. So when I start FF it opens to my google home page, when I type a subject and search the results are displayed in a Yahoo 7 results page, not google. I am not talking about my default home page or the search bar to the top right. This is still google.
    The settings in about:config do nothing.
    This was fine until FF 8.0.

    Thanks dmcritchie,
    Nice effort but that answers a different question about fixing the add-on Yahoo toolbar.
    Pernich and I want to know; If you type search criteria directly into the address bar and hit enter, how to change that search engine from Yahoo to Google.
    Otherwise I too will go back to using Google Chrome, even though I really like FF8.0
    please help

  • Issue with programmatically created LOV on Advanced Search Screen in OCO.

    Hi All,
    I am trying to create a LOV programmatically on Advanced search screen of Oracle Customer's Online module for the country field present there, i have extended a controller and
    in it i am carrying out the creation for this.
    i am using the below code to do this.
    i am able to access the particular rowlayout bean and code below is starting after that.
    OARowLayoutBean CountryRowLayoutBean =
                            (OARowLayoutBean)RgtColTableLayoutBean.getIndexedChild(8);
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "CountryRowLayoutBean: " +
                                                         CountryRowLayoutBean,
                                                         PROCEDURE);
                        int CountryRowLytChldCount =
                            CountryRowLayoutBean.getIndexedChildCount();
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "CountryRowLytChldCount : " +
                                                         CountryRowLytChldCount,
                                                         PROCEDURE);
                        OAMessageTextInputBean CountryMsgTxt =
                            (OAMessageTextInputBean)CountryRowLayoutBean.getIndexedChild(2);
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "CountryMsgTxt : " +
                                                         CountryMsgTxt,
                                                         PROCEDURE);
                        CountryMsgTxt.setRendered(false);
                        OAMessageLovInputBean CountryLOV =
                            (OAMessageLovInputBean)createWebBean(pageContext,
                                                                 LOV_TEXT, null,
                                                                 MatchRuleAttrId); //MatchRuleAttrId - the fields are rendered through DQM so, this is the Id for the text input , same is taken as id for LOV, to enable search later.
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "CountryLOV : " + CountryLOV,
                                                         PROCEDURE);
                        CountryRowLayoutBean.addIndexedChild(CountryLOV);
                        Integer webBeanRegionAppId =
                            (Integer)webBean.getAttributeValue(REGION_APPLICATION_ID);
                        CountryLOV.setAttributeValue(REGION_APPLICATION_ID,
                                                        webBeanRegionAppId);
                        // Specify the path to the base page.
                        CountryLOV.setAttributeValue(REGION_CODE,
                                                        "/oracle/apps/imc/ocong/search/webui/ImcSearchPage");
                                  CountryLOV.setAttributeValue(LOV_REGION_APPLICATION_ID,
                                                        webBeanRegionAppId);
                        // Specify the LOV region definition.
                        CountryLOV.setLovRegion("/oracle/apps/ar/hz/address/webui/HzCountryLOV",
                                                   webBeanRegionAppId.intValue()); //Standard LOV region used
                        // Validation should be enabled for LOVs unless it's essential for the field to allow a partial value (in a "Search" region, for example).
                        CountryLOV.setUnvalidated(false);
                        CountryLOV.setAttributeValue(SELECTIVE_SEARCH_CRITERIA,
                                                        true);
                        CountryLOV.setAttributeValue(SEARCH, true);
                        // Configure the LOV mappings.
                        // Note that you must call this method after you add the messageLovInput item
                        // to the web bean hierarchy.
                        // base page item
                        // lov item
                        // direction
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "webBeanRegionAppId : " +
                                                         webBeanRegionAppId,
                                                         PROCEDURE);
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "MatchRuleAttrId : " +
                                                         MatchRuleAttrId,
                                                         PROCEDURE);
                        CountryLOV.addLovRelations(pageContext,
                                                      MatchRuleAttrId,
                                                      "TerritoryShortName",
                                                      LOV_RESULT,
                                                      LOV_REQUIRED_NO); // base page item
                        // lov item
                        // direction
                        CountryLOV.addLovRelations(pageContext,
                                                      MatchRuleAttrId,
                                                      "TerritoryShortName",
                                                      LOV_CRITERIA,
                                                      LOV_REQUIRED_NO);
    I am facing the issue that the torch icon is visble on the screen but when i click on it, it does not display the LOV region and a blank page saying website declined to show the page is displayed.
    Please suggest what needs to be added that i am missing right now.
    Thanks,
    Mayank

    on the first option I mean you can add new region  programaticaly like this on Processrequest
                OAStackLayoutBean newLocationLovs=
                    (OAStackLayoutBean)createWebBean(pageContext
                                                        ,"/yandex/oracle/apps/csi/instance/location/webui/YaLocationLovsRN"
                                                        , "xxnewLocationLovs"
                                                        ,true);
                  webBean.addIndexedChild(newLocationLovs);   

  • How to Change the Search Engine in Safari?

    How can I change the Search engine?
    I want to use google instead of Genieo. Everytime I open Safari it automatically redirect to Genieo and it really ******* me off! >_<

    Back up all data, then remove the "Genieo" spyware by following the instructions on this page.
    Some versions of the spyware may not be completely removed by those instructions. If you still have problems, do as follows.
    Triple-click anywhere in the line below on this page to select it:
    /Library/Frameworks/GenieoExtra.framework
    Right-click or control-click the line and select 
    Services ▹ Reveal
    from the contextual menu.* A folder should open with an item selected. Move the selected item to the Trash. You may be prompted for your administrator password.
    Repeat with each of these lines:
    /Library/LaunchAgents/com.genieoinnovation.macextension.plist/Library/LaunchDaemons/com.genieoinnovation.macextension.client.plist/Library/PrivilegedHelperTools/com.genieoinnovation.macextension.client
    Then reboot.
    From the Safari menu bar, select
    Safari ▹ Preferences ▹ Extensions
    Uninstall any extension you don't recognize. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • Custom Search Screen Question

    I have a search screen where the user can enter multiple search criteria fields and click 'FIND' button.
    Below is the code behind the find button. As you can see if the use doesn't enter any of the search criteria
    then it is supposed to get all the records in the block BLI_DATA (this is a db block built on a view of a table).
    At the bottom of the BLI_DATA screen, there are two buttons 'OPEN' and 'CANCEL' (these belong to a diff. block called
    BLI_DATA_ACTION). Open opens up the record selected in BLI_DATA. Cancel cancels out of this and takes back
    to the search screen. That scenario works ok. Else if the user enters any of the criteria, then the dynamic where
    gets the required records. That works too.
    What is not working is, if I enter say state = 'LA' in the first pass and click find, it gets
    me the records for LA. Then if I click'CANCEL'and come back to the search screen, remove all the search criteria
    and now click 'FIND' in the 2nd pass, it still gets me the LA information.
    Code behind the FIND button
    DECLARE
      v_where varchar2(1000):=null;
      v_orderby varchar2(1000):='BLI_ID';
      al_id ALERT;
      al_button NUMBER;
    BEGIN     
    IF :BLI_SEARCH.BLI_STATE IS NULL AND :BLI_SEARCH.BLI_STORE_TYPE IS NULL
        AND :BLI_SEARCH.BLI_COUNTY IS NULL AND :BLI_SEARCH.BLI_COUNTY_NAME IS NULL
        AND :BLI_SEARCH.CITY IS NULL AND :BLI_SEARCH.GEO_IND IS NULL
        AND :BLI_SEARCH.BLI_PLAT_LEASE IS NULL AND :BLI_SEARCH.FORM_DATE_FROM IS NULL
        AND :BLI_SEARCH.BLI_LEASE_DATE_FROM IS NULL AND :BLI_SEARCH.FORM_DATE_TO IS NULL 
        AND :BLI_SEARCH.BLI_LEASE_DATE_TO IS NULL THEN
       --app_find.find('BLI_DATA');
       -- P_GET_BLI_DATA;
    --   v_orderby:=':BLI_ID ASC';
    --SET_BLOCK_PROPERTY('BLI_DATA',ORDER_BY,v_orderby);
      message('i am here' ||'-'|| :BLI_SEARCH.BLI_STATE);
      GO_BLOCK('BLI_DATA');
      Execute_Query(all_records);
      GO_BLOCK('BLI_DATA_ACTION');
      GO_ITEM('BLI_DATA_ACTION.OPEN'); 
    ELSE
         v_where := 'WHERE state = nvl( ''' || :BLI_SEARCH.BLI_STATE ||''',state)
                                       and concept =  nvl( ''' || :BLI_SEARCH.BLI_STORE_TYPE ||''',concept)
                                       and county_type = nvl( ''' ||:BLI_SEARCH.BLI_COUNTY ||''' , county_type)
                 and county_name = nvl( ''' || :BLI_SEARCH.BLI_COUNTY_NAME || ''', county_name)
                 and city = nvl( ''' || :BLI_SEARCH.CITY || ''', city)
                 and platform_lease = nvl( ''' || :BLI_SEARCH.BLI_PLAT_LEASE || ''', platform_lease)
                 and geo_ind = nvl ( ''' || :BLI_SEARCH.GEO_IND || ''', geo_ind)
                 and form_date >= nvl(to_date(''' || to_char(:BLI_SEARCH.FORM_DATE_FROM,'DD-MON-RR') || ''',''DD-MON-RR''),form_date)
                            and form_date <= nvl(to_date(''' || to_char(:BLI_SEARCH.FORM_DATE_TO,'DD-MON-RR') || ''',''DD-MON-RR''),form_date)
                 and lease_date >= nvl(to_date(''' || to_char(:BLI_SEARCH.BLI_LEASE_DATE_FROM,'DD-MON-RR') || ''',''DD-MON-RR''),lease_date)
                            and lease_date <= nvl(to_date(''' || to_char(:BLI_SEARCH.BLI_LEASE_DATE_TO,'DD-MON-RR') || ''',''DD-MON-RR''),lease_date)';
    SET_BLOCK_PROPERTY('BLI_DATA',DEFAULT_WHERE,v_where);
    GO_BLOCK('BLI_DATA');
    DO_KEY('execute_query');
    message('i am here1 ' ||'-'|| :BLI_SEARCH.BLI_STATE);
    IF :BLI_DATA.STATE IS NULL THEN
          al_id := Find_Alert('AOK');
         Set_Alert_Property(al_id, alert_message_text, 'No Records were found');
         al_button := Show_Alert(al_id);
         GO_BLOCK('BLI_SEARCH');
         GO_ITEM('BLI_SEARCH.BLI_STATE'); 
         RAISE FORM_TRIGGER_FAILURE;
    ELSE
      GO_BLOCK('BLI_DATA_ACTION');
      GO_ITEM('BLI_DATA_ACTION.OPEN'); 
    END IF;
    END IF;
    END;Code behind the CANCEL button:
    GO_BLOCK('BLI_DATA');
    CLEAR_BLOCK(NO_VALIDATE);
    GO_BLOCK('BLI_SEARCH');
    CLEAR_BLOCK(NO_VALIDATE);
    :BLI_SEARCH.BLI_STATE :=NULL;
    :BLI_SEARCH.BLI_STORE_TYPE:=NULL;
    :BLI_SEARCH.BLI_COUNTY:=NULL;
    :BLI_SEARCH.BLI_COUNTY_NAME:=NULL;
    :BLI_SEARCH.CITY:=NULL;
    :BLI_SEARCH.GEO_IND:=NULL;
    :BLI_SEARCH.BLI_PLAT_LEASE:=NULL;
    :BLI_SEARCH.FORM_DATE_FROM:=NULL;
    :BLI_SEARCH.FORM_DATE_TO:=NULL;
    :BLI_SEARCH.BLI_LEASE_DATE_FROM:=NULL;
    :BLI_SEARCH.BLI_LEASE_DATE_TO:=NULL;
    :BLI_SEARCH.BLI_LL_REF_CODE:=NULL;
    :BLI_SEARCH.BLI_LOC_TYPE:=NULL;
    :BLI_SEARCH.BLI_CLASSIFICATION:=NULL;
    show_view('BLI_SEARCH');
    GO_ITEM('BLI_SEARCH.BLI_STATE');
    hide_view('BLI_DATA');When I remove all the search criteria in the 2nd pass, why does it still get the LA information?
    Thanks,
    Chiru
    Edited by: Megastar_Chiru on Sep 21, 2010 9:44 AM

    I had a similar requirement and I put it in a procedure like this.
    PROCEDURE BUILD_WHERE_CLAUSE IS
      hold_clause varchar2(2000);
    BEGIN
          -- check location code and add condition if it is not null
       IF :key_block.locn_code IS NOT NULL THEN
          hold_clause := hold_clause ||
          ' and (cwvcatr_locn_code = :key_block.locn_code)';
       END IF;
          -- check case type and add condition if it is not null
       IF :key_block.case_type IS NOT NULL THEN
          hold_clause := hold_clause ||
          ' and (cwvcatr_ctyp_code = :key_block.case_type)';
       END IF;
          -- check action code and add condition if it is not null
       IF :key_block.cwvatyp_code IS NOT NULL THEN
          hold_clause := hold_clause ||
          ' and (cwvcatr_cwvatyp_code = :key_block.cwvatyp_code)';
       END IF;
          -- check case assign day and add condition if it is not null
       IF :key_block.case_assn_day IS NOT NULL THEN
          hold_clause := hold_clause ||
          ' and (upper(cwvcatr_case_assn_day) = upper(:key_block.case_assn_day))';
       END IF;
          -- strip off initial 5 characters ' and '
       IF hold_clause IS NOT NULL THEN
          hold_clause := SUBSTR(hold_clause,6);
       END IF;
       -- Set the DEFAULT_WHERE to newly built WHERE clause
       SET_BLOCK_PROPERTY('CWVCATR_1_BLOCK',DEFAULT_WHERE,hold_clause);
          -- Set the ORDER_BY clause
          IF :key_block.sort_by = 'C' THEN
                 SET_BLOCK_PROPERTY('CWVCATR_1_BLOCK',ORDER_BY,'cwvcatr_case_id');
          ELSE
                 SET_BLOCK_PROPERTY('CWVCATR_1_BLOCK',ORDER_BY,'cwvcatr_assn_date');
          END IF;
    END;So regardless of what user puts in parameters, the default where is set accordingly. If there is no parameter entered, it does not set anything. And if only one parameter is entered, only one condition is set and so on. This might be helpful in your case too.
    Edited by: Zaafran Ahmed on Sep 21, 2010 10:49 AM

  • Changing the selection screen based on the option in list box option

    Hi Experts,
    I have a list box parameter in my selection screen,
    i have four options and i am changing my selection screen based the option selected.
    see my code below,
    at selection-screen output.
      GS_VRM_VALUES-KEY = '1'.
      GS_VRM_VALUES-TEXT = TEXT-S02.
      APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
      GS_VRM_VALUES-KEY = '2'.
      GS_VRM_VALUES-TEXT = TEXT-S03.
      APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
      GS_VRM_VALUES-KEY = '3'.
      GS_VRM_VALUES-TEXT = TEXT-S04.
      APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
      GS_VRM_VALUES-KEY = '4'.
      GS_VRM_VALUES-TEXT = TEXT-S05.
      APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
      CLEAR: GS_VRM_VALUES.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID                    = 'P_DROP'
          VALUES                = GT_VRM_VALUES
      EXCEPTIONS
        ID_ILLEGAL_NAME       = 1
        OTHERS                = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    LOOP AT SCREEN .
        CASE P_DROP .
          WHEN '1'.
            IF SCREEN-GROUP1 = 'M2' OR
              SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 = 'M4'.
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          WHEN '2'.
            IF SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 = 'M4'.
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          WHEN '3'.
            IF SCREEN-GROUP1 = 'M2' OR
                SCREEN-GROUP1 = 'M4' .
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          WHEN '4'.
            IF SCREEN-GROUP1 = 'M2' OR
            SCREEN-GROUP1 = 'M3'.
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          WHEN OTHERS.
            IF SCREEN-GROUP1 = 'M2' OR
               SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 = 'M4'.
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
          screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
        ENDCASE.
      ENDLOOP.
    my problem is when i change the option in the list box, the particular modify group ie, the screen is getting changed only after i press enter, So please suggest me how i can change the screen without pressing enter.

    Hi,
    without using VRM_SET_VALUES...you just create one data element by going se11....create one domain for it...now give the values in the "value range" tab....and at the time of declaration just write ..
    PARAMETERS var1 TYPE <your created data element>
                        AS LISTBOX VISIBLE LENGTH 20
                        USER-COMMAND onli
                        DEFAULT <one value>.
    You will get the same effect as list box....and make it mandatory..
    Arunima

Maybe you are looking for