Query in Search Help

Hi Gurus,
we have a custom elementry search help. It uses a view , which is a combination of 5 tables. Now I need to change the logic of this search help as below.
If there are entries found in 1st table with combination of a 6th (another table) table. then Search help has to pick the values form that combination. else it has to pick the values from the first 5 tables combination.(i.e. the old logic)
Can we create a new view in combination with the view(which has 5 tables) and with the 6th table?
or how we have to write the code in exit?
Please suggest the best way to get the output. this is the first time am working on search helps.
Awaiting your response.
Regards
Hanu M

Hi
If there are entries found in 1st table with combination of a 6th (another table) table. then Search help has to pick the values form that combination. else it has to pick the values from the first 5 tables combination.(i.e. the old logic)
So u must create a new view so that search help can  be used to gather data from the views those having common data.

Similar Messages

  • Query about Search help exits

    Hi experts,
               I have one query regarding search help. I have created a elementary search help which is having two fields.Now my requirement is that in the selection screen when I will enter any value in one field and i will press F4 in other field the list should contain only the values corresponding to the first field.
    e.g.two fields comp code and name of company. When I will select the company code and press F4 in the second field the companies corresponding to the particular code should appear. Should I write a particular exit for that.
      Experts please help me.
      I will reward points accordingly.
      Thanks in advance,
        Abir.

    hi abir,
    no neeed for that.
    here i am fetching zones under a country.
    so first user enters a country.
    eg india.
    then on the zone field f4 help, only the zones of india shulod come.
    chk how i did it.
    *&      Form  F_GET_ZONE_DESC
          THIS SUB ROUTINE WILL FETCH THE ZONE DESCRIPTION
    -->  p1        F_GET_ZONE_DESC
    <--  p2        F_GET_ZONE_DESC
    FORM f_get_zone_desc .
      CLEAR int_ret.
      IF wf_country_code IS INITIAL.
    *--MESSAGE IS 'Country Not Selected'.
        MESSAGE s016(zm050).
      ELSE.
    *--THIS WILL FETCH THE ZONE CODES INTO THE INTERNAL TABLE'INT_ZONE_CODE'
    *--WITH RESPECT TO A COUNTRY CODE.
        SELECT zonecode zone_desc
          FROM zmpets_zone
            INTO TABLE int_zone_code
              WHERE land1 = wf_country_code
               AND loekz NE 'X'.
        IF sy-subrc NE 0.
    *MESSAGE IS 'No Zone Available In <COUNTRY_NAME>
          MESSAGE s019(zm050) WITH wf_country_desc.
        ELSE.
          CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
            EXPORTING
      DDIC_STRUCTURE         = ' '
              retfield               = 'WF_ZONE_CODE'
      PVALKEY                = ' '
      DYNPPROG               = ' '
      DYNPNR                 = ' '
      DYNPROFIELD            = ' '
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
             value_org              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
            TABLES
              value_tab              = int_zone_code
      FIELD_TAB              =
             return_tab             = int_ret
      DYNPFLD_MAPPING        =
           EXCEPTIONS
             parameter_error        = 1
             no_values_found        = 2
             OTHERS                 = 3
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          READ TABLE int_ret INDEX 1." INTO INT_RET.
          wf_zone_code = int_ret-fieldval.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    " F_GET_ZONE_DESC
    rgds
    anver
    if helped mark points

  • Query on search help

    Hi,
    I am attaching VMVA search help for a field on the selection screen. In the search help, I have a parameter called order type. Can you please let me know how can I fill that field with a default value say 001.
    Thanks in Advance,
    Regards,
    Madhuri.

    Thanks for the immediate response.
    Unfortunately it is a standard search help and in the default value column it is empty.  i mean it is neither a parameter id or the import parameter. Hence, I am not able to pass the value.
    Regards,
    Madhuri.

  • Search Help Error while Publishing Query in Explorer

    Hi All,
    We have upgraded BW from version 3.1 to BI 7.0. SP level is 15. When we publish query in Explorer, selection screen appears, we get error in selecting variable(Fiscal Year/Period) entries from search help. After selecting a value from a list of possible entries, the format is changed on the screen.
    For example:
    If we select 002.2002 for variable FiscalYear/Period, we get
    002 02 i.e. it is truncating 20 from 2002.
    Now, we have to manually enter the values.
    While executing query in BEx analyser, no such error occurs.
    What will be the solution?
    Regards,

    887188 wrote:
    Hi,
    I have added the below query in the EBS dataset to retrieve only unique applications as APPLICATION_NAME column has some duplicate data. I imported data to DB.
    select distinct(APPLICATION_NAME) as NAME from APPLICATIONIs there any table in OIM schema which you have named APPLICATION? AFAIK, applications from EBS are imported into Lookups in OIM and you will have to query lookup to get the Application name in OIM.
    But, when I try to filter on application I get below error
    Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00936: missing expression
    Error Code: 936
    Call: select distinct(APPLICATION_NAME) as NAME from APPLICATION WHERE UPPER ( DISTINCT(APPLICATION_NAME) ) like UPPER('%%') The UPPER ( DISTINCT(APPLICATION_NAME) ) like UPPER('%%') clause here is wrong. What are you trying to achieve through this query?
    >
    >
    -Bikash

  • F4 search-help in infoset query selection-screen fields

    Hi all,
    I created an infoset, and it's corresponding query, and now I need to associate F4 search-help in two of the selection-screen fields. Since they don't have any reference field associated (they are SAP standard table fields), there are no possible values available to select.
    How can I do this?
    I have already tried to use the "AT SELECTION-SCREEN OUTPUT" in the infoset, but I'm not able to do that. When I try to use the select-options generated by the query (SP$00013 and SP$00014) I have a syntax error with "Field not known".
    Can you help me? I never done this before, so I really don't have a guess.
    Thanks in advance.
    Beste regards,
    Sónia Gonçalves

    Hi all,
    I have found thread  that helped me a lot in this issue.
    I just have one more doubt: I created the selection criterion and I can already see it in the query selection-screen, but it's appearing in the top of the selection-screen, in a different area called "General data selections".
    Isn't it possible to include it in the "Report-specific selctions"?
    Thanks in advance.
    Best regards,
    Sónia Gonçalves

  • ABAP query (Search help)

    One Standard search help is giving resutlts perfectly ok in user's login having 'SAP ALL' profile but same is giving different results in user's loginwho do not have 'SAP ALL' profile. Kindly suggest.
    Thanx and regards,
    Rajesh Vasudeva

    Hi Rajesh,
    The reason for this may be that the user is not given the complete authorization for one or more firld in that query.For example user may have authorization for onle one plant PT01 and hence the o/p of query shows only relative data,where as in SAP_ALL there will be all the plants say PT01,PT02,PT03...
    You may contact the Basis person for clarification.
    Reward points if useful
    Bhavin P Shah

  • Selection screen - search help with dynamic sql query

    hey ,
    is it possible to change the search help of the selection field ?
    when i create the range table i put a data element :
    create a range table that consists of this new data element
      LT_RANGE_TABLE = WD_THIS->M_HANDLER->CREATE_RANGE_TABLE( I_TYPENAME = 'S_CARR_ID' ).
    can i control the search help via the the data element or by other methods ?
    i want that when the user press F4 the values that will show is the result of a sql query that i will write .
    is it possible ?
    thanks
    ASA.

    Hi,
    yes it is possible...
    This is my test code for say personal number select options...
    lt_range_table = wd_this->m_handler->create_range_table(
      i_typename = 'PERSNO' ).
    add a new field to the selection
      wd_this->m_handler->add_selection_field(
      i_id = 'PERSNO'
    I_VALUE_HELP_TYPE = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
    I_VALUE_HELP_ID = 'ZHELP_WDA_PERNR'   "this is the custom search help we need to create
    I_NO_INTERVALS = abap_true
      it_result = lt_range_table
      i_read_only = read_only ).
    do the following:
    1) copy the std function module: F4IF_SHLP_EXIT....to ZF4IF_SHLP_EXIT_pernr (in my case i am testing for pernr so my fm
    name is like that....obviously it can be anything you want...under the recommended naming convention)
    2) look for "STEP SELECT"
    STEP SELECT    (Select values)
    3)write the code as follows:
    "NOTE: this is my testing code...but you can build your logic on it....
    IF CALLCONTROL-STEP = 'SELECT'.
    types: begin of zpri_listing,
    pernr type PERSNO,
    end of zfund_listing.
    DATA: lo_syuname TYPE sy-uname.
    data itab type standard table of Zpri_LISTING.
    data wa type zpri_listing.
        DATA : t_fields LIKE TABLE OF shlp_tab-fielddescr.
        DATA : w_fields LIKE LINE OF shlp_tab-fielddescr.
        DATA : l_fname TYPE dfies-lfieldname.
        IF lo_syuname <> sy-uname.  "means we were here before and ITAB is filled...fm retains its data values...unless refresh happens
    "this if condition make sure that we do not do this select all the time as long as the same user is logged in...
    "a user can press f4 many times...you might want to enhance this logic a little bit more for performance
          lo_syuname = sy-uname.
    ))))))))))))))HERE DO YOUR SELECT(((((((((((((((((((((
    select pernr from "sometable" into table itab.
        ENDIF.
        LOOP AT shlp_tab.
          LOOP AT shlp_tab-fielddescr INTO w_fields.
            l_fname = w_fields-fieldname.
            CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
              EXPORTING
                parameter               = w_fields-fieldname
              OFF_SOURCE              = 0
              LEN_SOURCE              = 0
              VALUE                   =
               fieldname               = l_fname
              TABLES
                shlp_tab                = shlp_tab
                record_tab              = record_tab
                source_tab              =  itab
              CHANGING
                shlp                    = shlp
                callcontrol             = callcontrol
             EXCEPTIONS
               parameter_unknown       = 1
               OTHERS                  = 2
          ENDLOOP.
        ENDLOOP.
        IF sy-subrc EQ 0.
          callcontrol-step = 'DISP'.
        ELSE.
          callcontrol-step = 'EXIT'.
        ENDIF.
        EXIT. "Don't process STEP DISP additionally in this call.
      ENDIF.
    4) save and activate this function module...
    5) go to se11 and create "Elementary srch hlp"....
    6) fill out all the necessary fields...i am assuming that you already know how to create the search helps...
    look for this field: "Search help exit" and put your function name which you created in the above steps...
    in this example i have: ZF4IF_SHLP_EXIT_pernr....
    7) create and activate the search help....
    hope this helps...i just tested this and it is working for me....
    Thanks..
    AS...

  • Search help for field in ABAP Query

    Hi Experts,
    For a particular field in standard table the search help(F4) is not maintained in the table level, which is used in a ABAP query.
    Is there any possibilities for user-defined Search help using InfoSet or Query?
    Please help me in this regard.
    Thanks in advance,
    Balaganesh.

    Hi Bala,
    I understand your question better now.  Since you mention standard selections I assume that your InfoSet is based on a logical database instead of a table join, direct read, or custom data retrieval program.  You are correct that the AT SELECTION-SCREEN ON VALUE REQUEST logic I mentioned earlier will not work for the standard selections of a logical database.  The system gives you an error when generating your InfoSet if you try to use the standard selection name (in ECC 5.0 at least).  I've tried various tricks to attempt to get it to work, but so far no luck. 
    You could, of course, use a different logical database as your InfoSet basis (e.g. VAV has a matchcode on VBAK-VBELN) or create your own data retrieval program and change your InfoSet to use the custom program instead of a logical database.  In the second case you wouldn't need to deal with standard selections at all.  I understand that these solutions are probably not what you need and, in the case of the custom data retrieval program, would be more complex (it may not be worth it to write a custom program just to allow F4 help... or maybe it would be... just depends). 
    Please keep us updated if you find a way to do it.  I'll also report back if I happen to discover a way.
    Best Regards,
    Jamie

  • Adhoc Query (How to add search help for IT0008-subty)

    Hello Experts,
    My requirement is to get the search help on Field
    <b>SUBTY IT0008</b>,
    Field SYBTY is already there in the infoset,
    but when query has been run and we try to select SUBTY values using F4 it doen't give anthing. 
    Is there is anyway of cusotmization to meet this requirement.
    Any help would be appreciated and awarded. 
    With regrads,
    Harsh

    Go to SPRO >Personnel Management>Personnel Administration>Payroll Data>Basic Pay>Define reason for change   here u can create ur own subtypes for Basic PAY Infotype 0008

  • Search help for OBJECT ID with Text Description for a query

    I need to create search help for the field object text in HRP1000 - P1000-STEXT table in an infoset based on LDB PCH. Can anyone help me? I want it to appear on the adhoc query screen.
    Thanks,

    look at search help FC_RFCDEST. that problem has already been solved with this search help.

  • Search Helps - View Query

    hi,
    I need to create a matchcode for the field kunnr whose search help is DEBI.
    1.     In the transaction FBL5N (Customer Line Item Display) include a new match code ‘ Active Account with Balance’.
    2.     The search parameters will be similar to match code ‘’ Customers(By Company Code) / Customers per sales group.
    3.     When the search is made by entering the name in the name field , the program logic would be as:
                 a.   The table KNB1 will be used to search the customer based on company code.
    a.     The list of customers obtained will be queried in the table KNA1(General Data in Customer Master) to get the list of customers with name 1, postal code , city etc.
    b.     This list of corresponding customers is queried in the Table BSID  (Accounting: Secondary Index for Customers) to check if the customers have an open item.
    c.     If there is an open item for any customers then they are considered as Active customers.
    d.     Display only the list of active customers for the name search with the details ‘Name1, city, Postal code, Customer No. , company Code etc.
    My query is in the view which i am gonna create, what would be the join condition for the above logic.

    Is this related to BSP?  Are you needing help creating the SQL statement for the logic you described?  I guess I'm not sure what you are asking for and how it is related to BSP.

  • Search Help for query

    Hi,
    I'm facing an issue related to the variable search help.
    I have a query which has been recently migrated to 7.0. When I open the query on Analyzer and look for values in a variable it is throwing me the relevent values for that particular variable itself, which is perfect.
    When I run the same query on portal, and look for variable input values, I'm getting all the master data entries along with the variable value. I do not want all these other master data entries.
    Please help.

    Hi,
    There are two possible read modes for the value help of variables:
    - Read mode "M" means "Values in master data table".
    - Read mode "D" means "Only values in InfoProvider".
    Please set related setting in infoobject level it should resolved your issue.
    Regards,
    Venkat

  • Query Designer&WAD: Variable search help - Display Key/Text button

    Good day.
    Please, can you write me some solution of my problem.
    I have the character with hierarchy.
    In tab "Business Explorer" of character set display as "Text".
    When i run my query on SAP Portal and enter to search help of character, it is displays text of my ZCHARACTER(not key and text). But name of levels(0HIER_BODE) display key and text... (NODENAME and TEXT).
    When i run query in BEx Analyzer, in search help all correct. My ZCHARACTER and 0HIER_NODE displays only text.
    When i press tech button "Display Key/Text", a see marked "Text". I cannot find the same button when run search help in Query Designer, WAD(or Portal).
    How can i display only texts of 0HIER_NODE? But no [Key] Text.
    Thank you for answer.
    Regards
    Update. Can be usefull:
    View table RSDVDPA with key DPNAM='0HIER_NODE' consist field CHAPRSNT with value = '0' (Key and Text).
    When i change value of table
    UPDATE RSDDPA SET CHAPRSNT = '4'
      WHERE DPANM   EQ '0HIER_NODE'
        AND objvers EQ 'A'.
    All works correct!
    Change this value directly not correct. I think, that it is change of value of parent character. But when?

    I have created own 0HIER_NODE character - ZNODENAME.
    Only root node infoobject is 0HIER_NODE. All another - Z.
    Thanks! ^)

  • Creating search help for a field in AdHoc Query

    Hi
    We have created an infoset based on LDB PCH.
    (The infoset contains object type O only).
    For the object-id field the users want search help when choosing this field for selection.
    Using "start via selection screen" does not give a good solution.
    Can anyone explain how I can create search help for fields in an infoset?
    Regards
    Kirsten

    Hi
    We have created an infoset based on LDB PCH.
    (The infoset contains object type O only).
    For the object-id field the users want search help when choosing this field for selection.
    Using "start via selection screen" does not give a good solution.
    Can anyone explain how I can create search help for fields in an infoset?
    Regards
    Kirsten

  • F4 or search help query

    Hi sap GURUS,
    I NEED TO CREATE A F4 HELP FOR A FIELD IN MY SCREEN.THE FIELD IS INPUT FIELD AND ITS FROM A ZTABLE SOMETHING LIKE ZABC-ZDEF WHERE zABC IS TABLE AND ZDEF IS FIELD.
    WHAT IS THE DIFFERENCE BETWEEN BETWEEN SEARCH HELP AND F4 HELP.IF ANY ONE HAS CODE RELATED TO THIS PLS DO SEND IT TO
    [email protected]

    Hi,
    Check this...instead of the standard table give ur table name
    we can restrict the values in the F4 help as shown below when we use it like this.
    if we create normal search help all the values come
    types: begin of itab,
    pernr type  pernr_d,
    end of itab.
    data: itab type standard table of itab with header line.
    parameters: p_pernr type vbpa-pernr ,"matchcode object zpernr,
                p_parvw type vbpa-parvw ."matchcode object zparvw..
    data: dynfields type table of dynpread ,
    wa type dynpread.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pernr.
    select  pernr from vbpa into table itab where parvw = 'KB'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = ' '
        RETFIELD               = 'PERNR'
      PVALKEY                = ' '
       DYNPPROG               = sy-repid
       DYNPNR                 = sy-dynnr
       DYNPROFIELD            = 'P_PERNR'
      STEPL                  = 0
      WINDOW_TITLE           = WINDOW_TITLE
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               = MARK_TAB
    IMPORTING
      USER_RESET             = USER_RESET
      TABLES
        VALUE_TAB              = itab
      FIELD_TAB              = FIELD_TAB
      RETURN_TAB             = RETURN_TAB
      DYNPFLD_MAPPING        = DYNPFLD_MAPPING
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Vidya

Maybe you are looking for