Search help - from a list of user  secific valu

hi
how to create a serach help for a select-options or parameters
which contains only a list of user specified values not entirely of the DDIC values
Thx for any replies

For example ...
DATA: ltab_fields LIKE help_value OCCURS 0 WITH HEADER LINE,
        BEGIN OF ltab_values OCCURS 0,
          feld(40) TYPE c,
        END OF ltab_values.
  create F4 for Molga.
SELECT-OPTIONS : s_molga for t500l-molga.
AT SELECTION-SCREEN  ON VALUE-REQUEST FOR s_molga-low.
  clear : ltab_fields[] ,
          ltab_values[].
  ltab_fields-tabname    = 'T500T'.
  ltab_fields-fieldname  = 'MOLGA'.
  ltab_fields-selectflag = 'X'.
  APPEND ltab_fields.
  ltab_fields-tabname    = 'T500T'.
  ltab_fields-fieldname  = 'LTEXT'.
  ltab_fields-selectflag = space.
  APPEND ltab_fields.
*-- Fill values
  SELECT * FROM T500T WHERE spras = sy-langu
                      and   MOLGA in <b>r_molga.</b>
    ltab_values-feld = T500T-molga.
    APPEND ltab_values.
    ltab_values-feld = T500T-LTEXT.
    APPEND ltab_values.
  ENDSELECT.
or Append the ltab_values with your own values .. first should be the value and the
second should be the text for it ...
Here I have r_molga which is a range ... and has user specified values ..
say 10 , 11 , 12 , ......... 20
  CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
       EXPORTING
            fieldname                 = 'MOLGA'
            tabname                   = 'T500T'
           title_in_values_list      = 'Select a value'
             show_all_values_at_first_time = 'X'
       IMPORTING
            select_value              = s_molga-low
       TABLES
            fields                    = ltab_fields
            valuetab                  = ltab_values
       EXCEPTIONS
            field_not_in_ddic         = 01
            more_then_one_selectfield = 02
            no_selectfield            = 03.
Similarly for High .. just replace the LOW with High ...
Hope this helps you ...

Similar Messages

  • Calling a standard search help from MS Office

    One of the companies I work for has integration with Microsoft Office so users can create SAP DMS (document management system for those who aren't familiar with it) entries directly from e.g. Microsoft Word. The integration solution is a custom .Net application.
    In addition to the obvious integration to create the DMS info record and assign the document as an original the integration solution lets the user provide classification data. Some changes are now being planned, and one of them is challenging as a new characteristic (for the classification) will be used to store an organization unit. This is straightforward when the user is in the SAP GUI, as the standard search help can easily be displayed from custom code.
    Being a technology optimist I was hoping that with the new fancy technologies SAP would have provided a way to use .NET integration to display a standard search help from the MS Office integration dialogue - but so far I have not been able to find any information supporting this hope. Luckily I am not the developer working with the integration dialogue, but unless the mentioned possibility exists it looks like we have to resort to passing all organization units to the interface so a hierarchy can be constructed and displayed to the user for selection.
    Another alternative (I think) is to recreate the dialogue as a web dynpro screen, which will give us all the advantages of operating "inside" SAP. However, I am not sure if this is possible either. Can a web dynpro screen be called from an MS Office application (.Net), and can that web dynpro screen return values to the (external) calling application? In my simple view of the world this should be doable, if not otherwise it should at least be possibly by wrapping the screen in a function module that is exposed so the .Net application can call it - either by RFC or as a web service.
    Microsoft Office version is 2003.
    SAP release is ECC 6.0 (Netweaver 7.0).
    I think this is the right forum for my question. My apologies if it isn't (and any guidance towards a more appropriate forum would then be appreciated).

    Not solvable I suppose. There should be a way to close messages without marking them as answered.

  • Calling SAP GUI Search help from BSP

    Hi,
    Please find my requirement below:
    I have a Sales Order field with a Search button.
    Once Search button is clicked, it should call standard F4 composite search help.
    I have tried calling the search help VMVA for sales order, using the Function Module DD_SHLP_CALL_FROM_DYNP.
    Once search i clicked this FM is called but in CALL SCREEN statement it goes to page error/dump.
    Kindly let me know if there is any other solution for the same.

    Hi
    As far as I am aware there is no standard way of calling a search help from a bsp.  You have to create your own bsp tags to do this.
    Check out this link
    http://scn.sap.com/people/community.user/blog/2006/12/20/bsp-value-help-input-field-and-select-options-ranges
    Darren

  • Is there any way to filter the LCCS room console from the list of users?

    I want to be able to hide the user that's logged into the room console from the list of users. Is there any way to identify that user?

    Hi,
    There is no standard way to hide users as such other than using anonymous presence. But the catch is, if you would set any property of change anything from dev console that publishes a message, then you will be noticed.
    The user that logs into the room console is always the owner, may be your client app, you can hide based on your both permission level and name/userID by subclassing Roster. I am just throwing up ideas, but as such there is no standard method for this.
    Whats your use case ? It's an interesting thought though and something we would think about on our side.
    Hope this helps
    Thanks
    Hironmay Basu

  • Search help from one field used to populate another on subscreen.

    I have a subscreen with 2 fields;  Plant & Batch.   Search help MCH1F displays batches for plants.  When a batch for a plant is selected in the search help for the batch field, I want to populate the plant field in addition to the batch.  The batch number comes back from the search help selection, but I need to get the plant associated with that batch just selected and populate the subscreen plant field.  SET/GET doesn't work either in the screen field setup or abap flow logic.   Any tips would be appreciated.  Thanks.

    Hi Kurt,
    i think that way its not possible but the closest way is
    i HAVE TWO TABLES
    ZPHY
    ZPROC
    I HAVE SCREEN  IN WHICH I HAVE TO GET VALUE FOR  PHY BASED ON ID.
    AND FOR OTHER FIELD IN THE SCREEN I HAVE PROC BASED ON THE ID I USED TO GET PHY AND  FOR THE SAME ID I AHVE MULTIPLE PROC AND I HAVE SELECT ONE OF THOSE , HERE WHEN YOU PRESS F4 IT WILL GIVE ALL THE PROC ASSOCIATED TO
    ID THATI USED IN THE SELECTION OF PHY.
    AND I THINK YOURS IS THE SAME CASE RIGHT.
    FIRST GET
    process on value-request.
    FIELD zabc-def MODULE VALUE_REQUEST_PHYACT.
    FIELD zabc-proc MODULE VALUE_REQUEST_PROC.
    MODULE VALUE_REQUEST_PHYACT INPUT.
    DATA: progname TYPE sy-repid,
          dynnum   TYPE sy-dynnr.
    CLEAR zabc.
    CLEAR : zabc-def, zabc-id, zabc-proc,
    zabc-ZSHECPROC.
    CLEAR FINAL.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
      EXPORTING
        TABNAME                   = 'ZPHY'
        FIELDNAME                 = 'def'
        SEARCHHELP                = 'ZPHY'
      SHLPPARAM                 = ' '
        DYNPPROG                  = PROGNAME
        DYNPNR                    = DYNNUM
      DYNPROFIELD               = ' '
      STEPL                     = 0
      VALUE                     = ' '
      MULTIPLE_CHOICE           = ' '
      DISPLAY                   = ' '
      SUPPRESS_RECORDLIST       = ' '
      CALLBACK_PROGRAM          = ' '
      CALLBACK_FORM             = ' '
      TABLES
        RETURN_TAB                = IT_RETURN4
    EXCEPTIONS
      FIELD_NOT_FOUND           = 1
      NO_HELP_FOR_FIELD         = 2
      INCONSISTENT_HELP         = 3
      NO_VALUES_FOUND           = 4
      OTHERS                    = 5
    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 it_return4 index 1.
    zabc-def = it_return4-fieldval.
    select single id into zabc-id FROM ZPHY
                          WHERE def = zabc-def.
    FINAL-def = zabc-def.
    FINAL-id = zabc-id.
    HERE BASED ON ID I AM RETRIEVING  DEF FIELD ,THIS IS FROM SEARCH HELP USING SE11.
    AND FOR THE SAME ID I HAVE TO GET PROC FIELD FROM ANOTHER TABLE
    ENDMODULE.                 " VALUE_REQUEST_PHYACT  INPUT
    MODULE VALUE_REQUEST_PROC INPUT.
    DATA : SERVICE LIKE zabc-id.
    select single id into SERVICE FROM ZPHY
                          WHERE def = zabc-def.
    SELECT * INTO TABLE ITAB_TEST4 FROM ZPROC
                      WHERE id = SERVICE.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = ' '
        RETFIELD               = 'proc'
      PVALKEY                = ' '
      DYNPPROG               = ' '
      DYNPNR                 = ' '
      DYNPROFIELD            = ' '
      STEPL                  = 0
        WINDOW_TITLE           = 'PROCEDURE'
      VALUE                  = ' '
        VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      TABLES
        VALUE_TAB              = ITAB_TEST4
      FIELD_TAB              =
        RETURN_TAB             = IT_RETURN4
      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.
    if sy-subrc = 0.
              clear itab_TEST4.
              read table it_return4 index 1.
                   zabc-proc = it_return4-fieldval.
         read table itab_TEST4 with key id = itab_details-def
             itab_zMOR-def = itab_details-def.
             itab_zMOR-zzfname  = itab_details-zzfname.
            endif.
    SELECT SINGLE ZSHECPROC INTO zabc-ZSHECPROC FROM ZPROC
    WHERE proc = zabc-proc.
    FINAL-proc = zabc-proc.
    final-zshecproc = zabc-zshecproc.
    *********AGAIN THIS IS NOT THE SEARCH HELP FROM SE11
    ENDMODULE.                 " VALUE_REQUEST_PROC  INPUT
    hope this helps
    Thanks

  • How can I call a specific search help from and still get all the tabs

    hello
    I use F4IF_FIELD_VALUE_REQUEST to display a specific search help from my program. This search help is included in a collective search help, but only the one specified search help is displayed.
    Is it possible to call the collective search help and display one specific search help ?
    Example: in CRM i have a collective search help BUPA. When F4 is issued from a customer field the search help "Search customer" should be displayed, and not the last search help which was activated - i.e.. "Search employee".
    best regards
    Peter Christiansen

    Hi,
    you can try some thing like this..
          CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
            EXPORTING
              TABNAME           = 'KNA1'
              FIELDNAME         = 'KUNNR'
              SEARCHHELP        = 'DEBI'
            TABLES
              RETURN_TAB        = LT_RETURN
            EXCEPTIONS
              FIELD_NOT_FOUND   = 1
              NO_HELP_FOR_FIELD = 2
              INCONSISTENT_HELP = 3
              NO_VALUES_FOUND   = 4
              OTHERS            = 5.
          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
    vijay

  • Row limitation for list of User Defined Values

    Dear all,
    I need to make list of User Defined Values at the field in SO. Is there any limitation of row quantity for that ? because the list will grow until thousand..
    Regards
    Wibisana

    Dear Ho we,
    There is no limitation of user define filed for document level and document row level.
    At present i think no budy use 1000 UDF at row level so its very difficult to say after creation of 1000 UDF what is impact on system performance.
    You have to work try basis.
    REGARDS
    MANGESH PAGDHARE.

  • Return custom search results from a list

    Hello all!
    I'm currently on a Windows 7 migration project where we need a custom search function for our SP2010 page.
    Basically, the user will enter there machine barcode into the search box and query information from a list. This query will only return information relevant to that users machine barcode. For example, the user searches there barcode and the return results
    ONLY displays information for that user/barcode, information such as delivery date, delivery location, migration POC, etc..
    What is the best approach to this scenario?
    I'd like to do the least amount of custom coding as possible aka not using Visual basics.
    Thanks in advance!

    If you create a custom column, probably Managed Metadata, called Machine number, you can then search for items in hte list which have that value.
    This would work in both a search center, if you were to map that column to become a mapped property and then add it to the refiners bar, and on the list using metadata navigation in list settings > advanced.
    Zero code.

  • How to make custom append search help tab default for all users?

    I've implemented my own search help append and I need to make the F4 search help to display my tab as default for all users. I know that search help stores the last tab used by the user in memory and when user uses the search help next time the last used tab is displayed but I have to make the system display the tab od my search help append always as default tab. Any idea how to do it?
    Message was edited by:
            Marcin Milczynski

    hi
    <b>Enhancement using Append structures</b>
        Append structures allow you to attach fields to a table without actually having to modify the table itself. You can use the fields in append structures in ABAP programs just as you would any other field in the table.
    Click on the append structure tab and opt to create new
    structure.
    Append structures allow you to enhance tables by adding fields to them that are not part of the standard. With append structures; customers can add their own fields to any table or structure they want.
    Append structures are created for use with a specific table. However, a table can have multiple append structures assigned to it
        Customers can add their own fields to any table or structure they want.
    The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP

  • How to assign search help for an input field by fetchign values from an int

    i have an input field ,
    i want to assign search help for the same by fetching values from a table.
    how to achieve this ?

    Using the below ways you can assign search help to a field.
    1) [OVS Search Help|http://wiki.sdn.sap.com/wiki/display/Snippets/OVSsearchhelp]
    2) [Freely Programmed Search Help|http://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help]
    3) Dictonary Help - Use the Data element for that purpose.

  • Search Help from SAP values using WebDynpro ABAP in ADOBE Interactive Form

    Hi,
    How to populate search help on ADOBE interactive online form which is residing on a WebDynpro ABAP application?
    Thanks & Regards,
    Sandip amar

    HI,
    Adobe from is integraated with R/3 just like smartform.
    So if u use any DDIC tabel field which have inbuilt search help then it will automatically intergrated with Adobe form.
    If not then u have to make at ztable via foreign key or via FM at program level.
    Regards
    ricky

  • Using Search Help from another client?

    HI guys,
    I have a requirement where I have to use a search help available in another client in one of my input parameters on a selection screen.
    My report is in SRD system but the search help is in ECC.
    The search help is actually PRPM <== Matchcode for WBS elements
    ...Is it possible to do so?
    I hope you guys can guide me . Thanks guys!

    Thanks guys
    Well, the reason being...they want to use PRPM because they would like to allow users to search for the WBS element as well as filter by Person Responsible.
    Currently, I'm doing it like this
    CALL FUNCTION 'BBP_GET_BACKEND_SYSTEMS'
        TABLES
          et_logical_systems = lt_logical_sys
          et_messages        = lt_logical_msg.
      IF lt_logical_msg IS INITIAL.
        READ TABLE lt_logical_sys INTO ls_logical_sys INDEX 1.
        IF sy-subrc = 0.
          MOVE ls_logical_sys-logsys TO lw_logical_sys.
        ENDIF.
      ENDIF.
      CALL FUNCTION 'RFC_GET_TABLE_ENTRIES'
        DESTINATION lw_logical_sys
        EXPORTING
          table_name = 'PRPS'
        TABLES
          entries    = lt_entries.
      IF lt_entries[] IS NOT INITIAL.
        LOOP AT lt_entries INTO ls_entries.
          ls_wbs-posid = ls_entries+11(24).
          ls_wbs-post1 = ls_entries+35(40).
          APPEND ls_wbs TO lt_wbs.
        ENDLOOP.
    *       F4 for WBS pop up.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield     = 'POSID'
            window_title = text-012 "WBS Element
            value_org    = 'S'
          TABLES
            value_tab    = lt_wbs
            return_tab   = lt_return_tab.

  • Search Help from CAWNT

    Hello Expert,
       I have created the Elementry seach help from table CAWNT for field ATZHL. Field ATZHL is used in my custom table. I have add this search help with the domain of this field. Now my problem is when i hard code the ATINN value which is an internal number in the default value. I get all the required value. This will work fine in our developement client but when we transport it to the upper clients. This internal number will change. Could you guys help me how to pass the outside value which will internally convert to internal value.
    Thanks,
    Amit

    Hi  Amit,
           You need to hard code the Charecteristic value for the Internal number. For example 'SERVICE_CATEGORY'. Not the number generated for the characteristica value.
    Regards,
      Jayaram...

  • Add search help/drop down list to a standard field in MIR7

    Hi All,
    I have a requirement to add  a search help on one of the strandard field in MIR7. This field has no search help in dictionary (SE11). Do you have any idea on how to do this? Is there any exit that i can use to?
    Please help!
    Thanks in advance.

    Hi Akira,
    Please check the below threads.
    [how to create F4 for the standard transaction]
    [F4 HELP for standard field..;
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/daeda0d7-0701-0010-8caa-edc983384237]
    [Re: Adding a field in standard search help;
    Edited by: Prasath Arivazhagan on Apr 13, 2010 5:38 AM

  • ESS PORTAL Timesheet; Increase visible rows for Search help from 5 to 8

    Hi,
    My requirement is to increase the number of rows of Search help. Currently It is displaying 5 row. I need to increase it to 8.
    Thanks.

    check note  957741 for code changes for timesheet grid, similarly you need to do for Searchj help there is no customisation
    Use  build_f4_help Method in the class CL_XSS_CAT_RFC_COMMAND_TOOLS
    check here
    attributes to the "private" part of the CL_XSS_CAT_VALUE_HELP**
      class-data META_INFORMATION_T type DDFIELDS.
      class-data HEADER_T type HRXSS_CAT_VALUE_HELP_HEADER_T.
      class-data SELECTION_T type HRXSS_CAT_RFC_FIELDLIST.
      data FIELDNAME type FIELDNAME.

Maybe you are looking for

  • Download stops saying it is corrupt

    Hi, Im trying to install/download cs6 production premium I have my serial number, but in the original download it gets about 15 minutes into the download and stops saying something about corrupt. I then thought maybe I have to install the software th

  • Standard report for - Daily Store Material Issue

    Hi All, Can any one let me know which standard report gives me the details for "DAILY STORES MATERIAL ISSUE" in Oracle Inventory. Thanks Sunil

  • Trying to update the application manager in adobe photoshop cs6

    " I get this message in the log file. " Adobe Application Manager There was an error downloading this update. Please quit and try again later. Error Code: U43M1D204 " So far I have tried most of the suggestions but without luck. I would like to find

  • Skype crashing and Quicktime updates

    So I've had the newest Macbook pro or about a year or so, all the basic model I believe (Mac OS X Version 10.9.2). I'm not to great with technology so I may be trying all the wrong solutions and I don't know anything intricate about software ect.. an

  • Using JNI i am writing sample program i am getting the erro in jni.h

    Hi, i am writing sample programs using JNI interface while compliling the c program i am getting the error in jni.h file. wherever the JNICALL has in jni.h i am getting the error that particular line. can anyone help me on this regard? Thanks Balaji