Search Help: Multiple Return Values in WD4A

Hello,
I would like to fill more than one fields on my WD4A screen when executing a search help for one input field.
So I need to manage somehow to get all the export parameters from the search help and post them to a context node.
Simple example: The customer sales view consists of sales org and customer number. The search help contains both of them as export parameter. So when the user selects one user I need to get and show the sales organization as well.
In "normal" SAP Dynpro development its quite easy as shown in thread
Re: Export search help results to more dynpro fields.
But how can I execute a search help in WD4A to get all the export parameters?
Thanks for you help!!
Kind regards,
Hendrik

Hi,
found the answer by myself.
The solution is:
- Create a structure which contains the fields for the search help.
- then create the search help with all required export parameters.
- Assign the search help to the corresponding field in the structure.
- Create the context node with reference to the structure.
All context node attributes are then filled automatically.

Similar Messages

  • Search help to return multiple values

    Hi all,
    I've created a search help and I'd like it to return several values to different fields, I don't want these fields to be seen on the selection screen.
    For example:
    1. User clicks on search help for FIELD1 and selects a value from the pop-up box
    2. Program populates FIELD1 depending on the user selection
    3. Program also populates FIELD2 and FIELD3 which can be used in the program at a later date.
    I can do 1 and 2 but I'm having an issue with 3.  I've tried selecting all fields in the search help as Export, but although that populates the fields in the search help test facility, it doesn't know which fields I want it to populate in my program.
    I've also tried using FM F4IF_FIELD_VALUE_REQUEST but can only get this to return one line in table RETURN_TAB.
    The screen fields are declared as:
    PARAMETERS: FIELD1 LIKE TAB1-FIELD1 MATCHCODE ZSEARCH_HELP,
                             FIELD2 LIKE TAB1-FIELD2 NO-DISPLAY,
                             FIELD3 LIKE TAB1-FIELD3 NO-DISPLAY.
    Any help is appreciated.
    Gill

    Thanks for your suggestion but what I failed to put in my original post was that FIELD1 is a description field and FIELD2 and FIELD3 are the actual key fields for the table which I need.
    So, I can't do your suggestion of populating them based on FIELD1, I need to know which line the user selects to populate these key fields as FIELD1 may not be unique within the table.
    Does that make sense?
    That's why I wanted the search help to return all 3 values then I can populate FIELD2 and FIELD3 from that.

  • Multiple return values (Bug-ID 4222792)

    I had exactly the same request for the same 3 reasons: strong type safety and code correctness verification at compile-time, code readability and ease of mantenance, performance.
    Here is what Sun replied to me:
    Autoboxing and varargs are provided as part of
    JSRs 14 and 201
    http://jcp.org/en/jsr/detail?id=14
    http://jcp.org/en/jsr/detail?id=201
    See also:
    http://forum.java.sun.com/forum.jsp?forum=316
    http://developer.java.sun.com/developer/earlyAccess/adding_generics/index.html
    Multiple return values is covered by Bug-ID 4222792
    Typically this is done by returning an array.
    http://developer.java.sun.com/developer/bugParade/bugs/4222792.html
    That's exactly the problem: we dynamically create instances of array objects that would better fit well within the operand stack without stressing the garbage collector with temporary Array object instances (and with their backing store: 2 separate allocations that need to be recycled when it is clearly a pollution that the operand stack would clean up more efficiently)
    If you would like to engage in a discussion with the Java Language developers, the Generics forum would be a better place:
    http://forum.java.sun.com/forum.jsp?forum=316
    I know that (my report was already refering to the JSR for language extension) Generics is not what I was refering to (even if a generic could handle multiple return values, it would still be an allocated Object
    instance to pack them, i.e. just less convenient than using a static class for type safety.
    The most common case of multiple return values involve values that have known static datatypes and that should be checked with strong typesafety.
    The simple case that involves returning two ints then will require at least two object instances and will not solve the garbage collection overhead.
    Using a array of variable objects is exactly similar, except that it requires two instances for the components and one instance for the generic array container. Using extra method parameters with Integer, Byte, ... boxing objects is more efficient, but for now the only practical solution (which causes the least pollution in the VM allocator and garbage collector) is to use a custom class to store the return values in a single instance.
    This is not natural, and needlessly complexifies many interfaces.
    So to avoid this pollution, some solutions are used such as packing two ints into a long and returning a long, depacking the long after return (not quite clean but still much faster at run-time for methods that need to be used with high frequencies within the application. In some case, the only way to cut down the overhead is to inline methods within the caller code, and this does not help code maintenance by splitting the implementation into small methods (something that C++ can do very easily, both because it supports native types parameters by reference, and because it also supports inline methods).
    Finally, suppose we don't want to use tricky code, difficult to maintain, then we'll have to use boxing Object types to allow passing arguments by reference. Shamely boxed native types cannot be allocated on the operand stack as local variables, so we need to instanciate these local variables before call, and we loose the capacity to track the cases where these local variables are not really initialized by an effective call to the method that will assign them. This does not help debugging, and is against the concept of a strongly typed language like Java should be:
    Java makes lots of efforts to track uninitialized variables, but has no way to determine if an already instanciated Object instance refered in a local variable has effectively received an effective assignment because only the instanciation is kept. A typical code will then need to be written like this:
    Integer a = null;
    Integer b = null;
    if (some condition) {
    //call.method(a, b, 0, 1, "dummy input arg");
    // the method is supposed to have assigned a value to a and b,
    // but can't if a and b have not been instanciated, so we perform:
    call.method(a = new Integer(), b = new Integer(), 0, 1, "dummy input
    arg");
    // we must suppose that the method has modified (not initialized!)
    the value
    // of a and b instances.
    now.use(a.value(), b.value())
    // are we sure here that a and b have received a value????
    // the code may be detected at run-time (a null exception)
    // or completely undetected (the method() above was called but it
    // forgot to assign a value to its referenced objects a and b, in which
    // case we are calling in fact: now.use(0, 0); with the default values
    // or a and b, assigned when they were instanciated)
    Very tricky... Hard to debug. It would be much simpler if we just used:
    int a;
    int b;
    if (some condition) {
    (a, b) = call.method(0, 1, "dummy input arg");
    now.use(a, b);
    The compiler would immediately detect the case where a and b are in fact not always initialized (possible use bere initialization), and the first invoked call.method() would not have to check if its arguments are not null, it would not compile if it forgets to return two values in some code path...
    There's no need to provide extra boxing objects in the source as well as at run-time, and there's no stress added to the VM allocator or garbage collector simply because return values are only allocated on the perand stack by the caller, directly instanciated within the callee which MUST (checked at compile-time) create such instances by using the return statement to instanciate them, and the caller now just needs to use directly the variables which were referenced before call (here a and b). Clean and mean. And it allows strong typechecking as well (so this is a real help for programmers.
    Note that the signature of the method() above is:
    class call {
    (int, int) method(int, int, String) { ... }
    id est:
    class "call", member name "method", member type "(IILjava.lang.string;)II"
    This last signature means that the method can only be called by returning the value into a pair of variables of type int, or using the return value as a pair of actual arguments for another method call such as:
    call.method(call.method("dummy input arg"), "other dummy input arg")
    This is strongly typed and convenient to write and debug and very efficient at run-time...

    Can anyone give me some real-world examples where
    multiple return values aren't better captured in a
    class that logically groups those values? I can of
    course give hundreds of examples for why it's better
    to capture method arguments as multiple values instead
    of as one "logical object", but whenever I've hankered
    for multiple return values, I end up rethinking my
    strategy and rewriting my code to be better Object
    Oriented.I'd personally say you're usually right. There's almost always a O-O way of avoiding the situation.
    Sometimes though, you really do just want to return "two ints" from a function. There's no logical object you can think of to put them in. So you end up polluting the namespace:
    public class MyUsefulClass {
    public TwoInts calculateSomething(int a, int b, int c) {
    public static class TwoInts {
        //now, do I use two public int fields here, making it
        //in essence a struct?
       //or do I make my two ints private & final, which
       //requires a constructor & two getters?
      //and while I'm at it, is it worth implementing
      //equals(), how about hashCode()? clone()?
      //readResolve() ?
    }The answer to most of the questions for something as simple as "TwoInts" is usually "no: its not worth implementing those methods", but I still have to think about them.
    More to the point, the TwoInts class looks so ugly polluting the top level namespace like that, MyUsefulClass.TwoInts is public, that I don't think I've ever actually created that class. I always find some way to avoid it, even if the workaround is just as ugly.
    For myself, I'd like to see some simple pass-by-value "Tuple" type. My fear is it'd be abused as a way for lazy programmers to avoid creating objects when they should have a logical type for readability & maintainability.
    Anyone who has maintained code where someone has passed in all their arguments as (mutable!) Maps, Collections and/or Arrays and "returned" values by mutating those structures knows what a nightmare it can be. Which I suppose is an argument that cuts both ways: on the one hand you can say: "why add Tuples which would be another easy thing to abuse", on the other: "why not add Tuples, given Arrays and the Collections framework already allow bad programmers to produce unmainable mush. One more feature isn't going to make a difference either way".
    Ho hum.

  • Form disappears when clicking search help multiple times

    Hi All,
    I have created an interactive adobe form with Web dynpro application.
    We have multiple multiple search helps (custom and standard) on the form.
    when the user clicks on any search helps multiple times (4-5 times), the whole form disappears.
    Please provide some solution / hints.
    Best regards,
    Meep.

    We are not facing this problem on Adobe 9.4. The newest v10.1 has this problem.
    Also, this issue is only on 1 server and on other, it works fine.
    We are using Native control with ZCI layout.

  • Multiple return values in Customized elementary search help

    Hello,
      I have a requirement when i select the value from F4 . It should populate the more than one return values in ALV grid in different rows .  
       Any FM or help search exit  is available to do this .
    Regards,
    kevin

    Hi Kevin,
    About your first question, for filling several fields of an ALV from a single F4 search help, I think that you should register F4 event to call the search help yourself (F4IF_INT_TABLE_VALUE_REQUEST for instance), and fill the ALV fields inside your F4 handler method. If you used REUSE_ALV_GRID_DISPLAY, then I am not sure how you can handle F4, but you can do it using CL_GUI_ALV_GRID or SALV classes. See BCALV_TEST_GRID_F4_HELP.
    About the second question, for filling automatically another field in the same row in the ALV grid, it should work automatically, as for normal dynpros, i.e. the search help must have these 2 fields defined as exporting, and these 2 fields of the ALV field catalog must refer to the same DDic structure, the search help must be assigned there to the field, and fill in the 2 exporting parameters too.
    Sandra

  • Values from Search help not returned to UI

    Hi,
    For a field on Web UI, i have to open a popup which would be configured from a search help created in transaction SE11. The search help uses a Searchhelp Exit. On the UI, I am getting the popup but the value i select is not reflecting on the UI. The moment i select the value, the popup closes. The 'Get_XXX' method of the attribute also does not triggered. Following is the code which i am using to call the search help in the GET_V_XXX method of the attribute.
      DATA:
      ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
      lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
      lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
      ls_map-context_attr = 'STRUCT.ZZSTORAGE_LOC'.
      ls_map-f4_attr      = 'STORAGE_LOC'.
    APPEND ls_map TO: lt_inmap, lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZOFI_SHLP_STORAGE_LOC2'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    I have tried various approaches suggested in the forum, but none could solve the issue. Please guide.
    Thanks and Regards,
    Radhika

    Hi,
    The client wants to use the search help method only. i am using the following code to call the serach help.
    DATA:
      ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
      lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
      lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
      CLEAR ls_map.
      ls_map-context_attr = 'EXT.ZZSTORAGE_LOC'.
      CONDENSE ls_map-context_attr no-GAPS.
      ls_map-f4_attr      = 'STORAGE_LOC'.
      APPEND ls_map TO: lt_inmap, lt_outmap.
      CLEAR ls_map.
      ls_map-context_attr = 'EXT.ZZPLANT'.
      CONDENSE ls_map-context_attr no-GAPS.
      ls_map-f4_attr      = 'PLANT'.
      APPEND ls_map TO: lt_inmap, lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZOFI_SHLP_STORAGE_LOC2'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    this code is written in the GET_V of the field ZZSTORAGE_LOC.The ZZ Storage_Loc field is getting saved but the field ZZPLANT does not. Please provide your inputs.
    Thanks,
    Radhika

  • Elementary Search help with distinct values. Kindly help!

    Hi Experts,
        I have to create a search help for Plant field. The Plant field is in a custom table YPLANT_DET. Unfortunately the plant field in this table is not unique.
    So the elementary search help will show duplicate plant entries.
    How to customize the elementary search help so that I get only distict values on F4 help?
    KIndly help!
    Thanks
    Gopal

    Hi,
    You need to use Search help exit...
    i am attaching below sample code..write the select query at appropriate location and pass the internal table to sub FM mentioned in the code..
    Code Sample
    BEGIN OF CODE SAMPLE -
    BEGIN OF INCLUDE LZSHLPTOP -
    FUNCTION-POOL zshlp. "MESSAGE-ID ..
    TYPE-POOLS shlp.
    TYPES:
    BEGIN OF t_knvp,
    kunnr TYPE kna1-kunnr,
    name1 TYPE kna1-name1,
    ort01 TYPE ort01_gp,
    stras TYPE stras_gp,
    kunn2 TYPE knvp-kunn2,
    name1_2 TYPE kna1-name1,
    END OF t_knvp.
    DATA: i_knvp TYPE TABLE OF t_knvp,
    wa_knvp TYPE t_knvp,
    wa_selopt TYPE ddshselopt,
    wa_fielddescr TYPE dfies.
    DATA:
    rc TYPE i,
    v_tabix LIKE sy-tabix.
    RANGES: r_ktokd FOR kna1-ktokd,
    r_mcod1 FOR kna1-name1,
    r_sortl FOR kna1-sortl,
    r_kunnr FOR kna1-kunnr,
    r_ort01 FOR kna1-ort01.
    END OF INCLUDE LZSHLPTOP -
    BEGIN OF FUNCTION MODULE Z_CUSTOM_SEARCH -
    FUNCTION z_custom_search.
    ""Local interface:
    *" TABLES
    *" SHLP_TAB TYPE SHLP_DESCR_TAB_T
    *" RECORD_TAB STRUCTURE SEAHLPRES
    *" CHANGING
    *" VALUE(SHLP) TYPE SHLP_DESCR_T
    *" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
    EXIT immediately, if you do not want to handle this step
    CASE callcontrol-step.
    STEP SELECT (Select values)
    This step may be used to overtake the data selection completely.
    To skip the standard seletion, you should return 'DISP' as following
    step in CALLCONTROL-STEP.
    Normally RECORD_TAB should be filled after this step.
    WHEN 'SELECT'.
    Change column header texts appearing on the search help hit list
    LOOP AT shlp-fielddescr INTO wa_fielddescr.
    v_tabix = sy-tabix.
    CASE wa_fielddescr-fieldname.
    WHEN 'KUNNR'.
    wa_fielddescr-fieldtext = 'ShipToCustomer#'.
    wa_fielddescr-reptext = 'ShipToCustomer#'.
    wa_fielddescr-scrtext_s = 'ShipTo #'.
    wa_fielddescr-scrtext_m = 'ShipToCustomer#'.
    wa_fielddescr-scrtext_l = 'ShipToCustomer#'.
    MODIFY shlp-fielddescr FROM wa_fielddescr
    INDEX v_tabix TRANSPORTING fieldtext reptext scrtext_s
    scrtext_m scrtext_l.
    WHEN 'KUNN2'.
    wa_fielddescr-reptext = 'BillToCustomer#'.
    wa_fielddescr-fieldtext = 'BillToCustomer#'.
    wa_fielddescr-scrtext_s = 'BillTo #'.
    wa_fielddescr-scrtext_m = 'BillToCustomer #'.
    wa_fielddescr-scrtext_l = 'BillToCustomer #'.
    MODIFY shlp-fielddescr FROM wa_fielddescr
    INDEX v_tabix TRANSPORTING fieldtext reptext scrtext_s
    scrtext_m scrtext_l.
    WHEN 'NAME1'.
    wa_fielddescr-fieldtext = 'ShipToCustomer Name'.
    wa_fielddescr-reptext = 'ShipToCustomer Name'.
    wa_fielddescr-scrtext_s = 'ShipTo Name'.
    wa_fielddescr-scrtext_m = 'ShipToCustomer Name'.
    wa_fielddescr-scrtext_l = 'ShipToCustomer Name'.
    MODIFY shlp-fielddescr FROM wa_fielddescr
    INDEX v_tabix TRANSPORTING fieldtext reptext scrtext_s
    scrtext_m scrtext_l.
    ENDCASE.
    ENDLOOP.
    Select the Bill to party customer based on the select options
    FREE: r_ktokd, r_kunnr, r_sortl, r_mcod1, r_ort01, i_knvp.
    LOOP AT shlp-selopt INTO wa_selopt.
    Build a Range for the 5 selection options of the search help
    CASE wa_selopt-shlpfield.
    WHEN 'KTOKD'.
    r_ktokd-sign = wa_selopt-sign.
    r_ktokd-option = wa_selopt-option.
    r_ktokd-low = wa_selopt-low.
    r_ktokd-high = wa_selopt-high.
    APPEND r_ktokd.
    CLEAR r_ktokd.
    WHEN 'KUNNR'.
    r_kunnr-sign = wa_selopt-sign.
    r_kunnr-option = wa_selopt-option.
    r_kunnr-low = wa_selopt-low.
    r_kunnr-high = wa_selopt-high.
    APPEND r_kunnr.
    CLEAR r_kunnr.
    WHEN 'SORTL'.
    r_sortl-sign = wa_selopt-sign.
    r_sortl-option = wa_selopt-option.
    r_sortl-low = wa_selopt-low.
    r_sortl-high = wa_selopt-high.
    APPEND r_sortl.
    CLEAR r_sortl.
    WHEN 'MCOD1'.
    r_mcod1-sign = wa_selopt-sign.
    r_mcod1-option = wa_selopt-option.
    r_mcod1-low = wa_selopt-low.
    r_mcod1-high = wa_selopt-high.
    APPEND r_mcod1.
    CLEAR r_mcod1.
    WHEN 'ORT01'.
    r_ort01-sign = wa_selopt-sign.
    r_ort01-option = wa_selopt-option.
    r_ort01-low = wa_selopt-low.
    r_ort01-high = wa_selopt-high.
    APPEND r_ort01.
    CLEAR r_ort01.
    ENDCASE.
    ENDLOOP.
    Retrieve data from KNVP table for the above selected ranges
    Doing query to retrieve data for the search help
    SELECT knvp~kunnr
    kna1~name1
    kna1~ort01
    kna1~stras
    knvp~kunn2
    INTO TABLE i_knvp
    FROM knvp
    INNER JOIN kna1
    ON knvpkunnr = kna1kunnr
    WHERE
    knvp~parvw = 'RE' AND " Bill to Party
    knvp~kunnr IN r_kunnr AND
    kna1~ktokd IN r_ktokd AND
    kna1~sortl IN r_sortl AND
    kna1~mcod1 IN r_mcod1 AND
    kna1~ort01 IN r_ort01.
    CHECK sy-subrc = 0.
    DELETE ADJACENT DUPLICATES FROM i_knvp.
    Select the short text for kunn2 from kna1.
    Move all the selected records to Record_Tab
    LOOP AT i_knvp INTO wa_knvp.
    v_tabix = sy-tabix.
    SELECT SINGLE name1 FROM kna1
    INTO wa_knvp-name1_2
    WHERE kunnr = wa_knvp-kunnr.
    MOVE wa_knvp TO record_tab-string.
    APPEND record_tab.
    CLEAR record_tab.
    MODIFY i_knvp FROM wa_knvp INDEX v_tabix.
    CLEAR wa_knvp.
    ENDLOOP.
    rc = 0.
    IF rc = 0.
    callcontrol-step = 'DISP'.
    ELSE.
    callcontrol-step = 'EXIT'.
    ENDIF.
    EXIT. "Don't process STEP DISP additionally in this call.
    WHEN 'PRESEL1'.
    WHEN 'DISP'.
    WHEN OTHERS.
    ENDCASE.
    ENDFUNCTION.
    END OF FUNCTION MODULE Z_CUSTOM_SEARCH -
    END OF CODE SAMPLE -
    Save and activate at every step.
    Regards,
    Chandra
    (Award points if helpful)

  • Search help multiple selection of search results

    Hi,
    I have a search help (SE11) and it is correctly integrated in my WDP4A application using 'automatic' search help integration. Unfortunately multiple selection of search results does not seem to be supported (the ok button greys out when >1 result is selected). Is there a standard way to link a search help to an attribute in a 0..n value node, so that at runtime a new context element is created for each selected search result? Or do I have to recreate the search help from scratch to get this behaviour (OVS)?
    If the latter is true, then why is it even possible to select multiple search results?
    Kind regards,
    Jeroen

    Hallo Jeroen,
    OVS standard configuration does not allow you to select more than one configuration, You need to specify that explicitely on Phase-0 of OVS using the set_configuration method.
    see
    [Multiple Selection in F4 help|Multiple Selection in F4 help]
    [http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP|http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP]
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70cee684-ccbb-2c10-3c94-91e806e5f7ac?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70cee684-ccbb-2c10-3c94-91e806e5f7ac?quicklink=index&overridelayout=true]

  • WDA Search Help Multiple Selection

    Hello everyone,
    I've managed to integrate a standard search help into my WD ABAP application.
    The thing is that from the search help pop-up I can select multiple rows but when I select more than 1 row in the help value list the OK button is greyed out.
    I would like to select more than 1 entry and transfer it back to the associated input field, like a list of values separated by a comma.
    How can I implement this?
    Thanks!

    To be honest I didn't mean that.
    I've integrated a standard search help in my WDA, just defining a context attribute bound to a dictionary field having a search help. Now I'd like to have a multiple selection enabled for it.
    What I am getting is a General Value List from which I cannot transfer multiple values back to the caller.
    Is there a way to do it?

  • ALV grid - using f4 search help - want separate value from hit list

    I have the following scenario that I am trying to resolve.
    I have created my own search help with a search help exit for a bespoke maintenance table which lists categories against HR positions which are to receive workflow for these categories.  I am designing a front-end for this table using an ALV grid whereby the person holding that position (i.e. name) is shown instead of position number.  The search help allows you to select by First name and last name and brings up a hit list which includes employee number, first name last name, formatted name field, position number, position description and org unit it belongs in.
    The issue occurs where the list brings back more than one hit.
    e.g.:
    1 Fred     Bloggs Fred Bloggs 50000001  pos1  org 1
    2 Frederic Bloggs Fred Bloggs 50000002  pos2  org 3
    If you select an entry, the formatted name field goes in the ALV grid field. I call the search help via F4IF_FIELDVALUE_REQUEST using the onf4 event .
    What I want to do is retrieve the position number of the entry selected and put this into another table without having to add this to my ALV grid and make available for input. I want to use name only for the input in my ALV grid (i.e. if I select the second example, the return table in F4IF_FIELDVALUE_REQUEST shows the name Fred Bloggs but does not show the position number which I need to add to another table to update my maintenance table).
    Can anyone suggest any way around this?
    Many thanks
    Larissa

    You are right, you can add this fields as an import parameter to the list.
    In Custom search help you must have marked fields as Export or Import parameters.
    If field is marked as Export parameters, it will be displayed in the selection pop up.
    If Import paramter check box is selected then this will be imported to the screen.
    Check this SAP documentation for both these options -
    Flag for IMPORT parameter of the search help                      
         Flag if the parameter is an import parameter.                                                                               
    Context information from the processed input template (screen) can be
         copied to the help process with an import parameter. Where an import 
         parameter gets its values from is defined when the search help is    
         attached to the corresponding field of the input template.           
    Flag for EXPORT parameter of the search help                                                                               
    Flag if the parameter is an export parameter.                                                                               
    Values can be returned from the hit list to the input template (screen)
         with an export parameter. The fields of the input template in which the
         contents of the export parameter are returned are defined by the search
         help attachment.
    Message was edited by: Ashish Gundawar

  • Issue in custom search help for Suggest Value

    Hi,
    I have a requirement to have the suggest values pick up the records form any par of the string. Basically, using pattern. I have written the code in search help exit and it work in some cases and doesnt work for others.Eg. The result shows up for 123 but doesnt show for 1234, even though 1234 exists and it had showed up when i keyed in 123.
    My select quest works fine and i can see the values in record tab but on the screen. What could be going wrong.
    Thanks in advance for your help.
    Pris.
    PS: the code:
    IF callcontrol-step = 'SELECT'.
        DATA:lwa_selopt TYPE  ddshselopt,
             lit_selopt_id TYPE RANGE OF yselxyz-builder_id,
             lwa_selopt_id LIKE LINE OF lit_selopt_id ,
             lit_selopt_desc TYPE RANGE OF yselxyz-builder_name,
             lwa_selopt_desc LIKE LINE OF lit_selopt_desc,
             lwa_header TYPE yselabc,
             lit_header TYPE STANDARD TABLE OF yselabc,
             lv_sel_val TYPE ddshselopt-low.
        READ TABLE shlp-selopt INTO lwa_selopt WITH KEY shlpfield = 'BUILDER_ID'."'DKEY'.
        IF sy-subrc EQ 0.
          lwa_selopt-option = 'CP'.
          CONCATENATE '*' lwa_selopt-low INTO lwa_selopt-low.
          MOVE-CORRESPONDING  lwa_selopt TO lwa_selopt_id.
          APPEND  lwa_selopt_id TO lit_selopt_id.
          MOVE-CORRESPONDING  lwa_selopt TO lwa_selopt_desc.
          APPEND  lwa_selopt_desc TO lit_selopt_desc.
          CLEAR:lit_header[],record_tab[].
          SELECT builder_id builder_name FROM yselxyz INTO TABLE lit_header
            WHERE ( builder_id IN lit_selopt_id )
           OR ( builder_name IN lit_selopt_desc ).
          SORT lit_header BY builder_id.
          DELETE ADJACENT DUPLICATES FROM lit_header COMPARING builder_id.
          CALL FUNCTION 'F4UT_RESULTS_MAP'
            EXPORTING
              source_structure  = 'YSELABC'
            TABLES
              shlp_tab          = shlp_tab
              record_tab        = record_tab
              source_tab        = lit_header
            CHANGING
              shlp              = shlp
              callcontrol       = callcontrol
            EXCEPTIONS
              illegal_structure = 1
              OTHERS            = 2.
          callcontrol-step = 'DISP'.
          EXIT.
        ENDIF.
      ENDIF.

    Issue Resolved. For less than 50 records, client side filtering takes over. In that case the search help exit will not come into picture. Issue resolved by avoiding client side rendering.
    callcontrol-maxexceed = 'X'.
    Thanks,
    Pris.

  • Search help for default value

    Hi all..
    I doing a dialog program. I need to have a search help in my input field. How can i do it?
    I want to have 3 default value in the search help.
    example: apple, orange, pear.
    How to retrieve it?

    hi,
    u can make drop down list
    declare that field as list box... ( in attribute )
    then write this after PAI in screen flow logic...
    PROCESS ON VALUE-REQUEST.
      FIELD ifmtp-form_type MODULE fm_drop.
    MODULE fm_drop INPUT.
      CLEAR ifmtp.
      REFRESH ifmtp.
      ifmtp-form_type = 'C'.
      APPEND ifmtp.
      ifmtp-form_type = 'F'.
      APPEND ifmtp.
      ifmtp-form_type = 'H'.
      APPEND ifmtp.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield  = 'FORM_TYPE'
          value_org = 'S'
        TABLES
          value_tab = ifmtp.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " fm_drop  INPUT
    here ifmtp-form_type is my field of screen which i have declared as list box...
    and u have to declare one internal table with this field in TOP Module...
    DATA : BEGIN OF ifmtp OCCURS 0,
              form_type LIKE zform_track_mast-form_type,
           END OF ifmtp.
    reward if usefull....
    Edited by: Dhwani shah on Jan 22, 2008 11:58 AM

  • Search help to filter values

    hi friends,
    appreciate your help on this search help issue
    TYPE   ACTCODE
    DUN     A01
    DUN     A02
    DUN     A03
    COL     A06
    COL     A07
    i need to have a search help on selection screen when it loads, search help should have only values TYPE = DUN
    please tell me how to
    thnaks
    iver

    Hi
    the same req
    see this code
    aapply for ur logic
    by putting condition in where condition
    reward if usefull
    it is a code for search help which will give u the based on ur condition
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
    IF S_OBJID IS NOT INITIAL.
        SELECT OTYPE OBJID FROM HRP1000
                     INTO TABLE IT_OBJID_SH
                     WHERE OTYPE = 'D'.
    IF SY-SUBRC EQ 0.
    SEARCH HELP FOR QUALIFICATION.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
                 DDIC_STRUCTURE         = ' '
            RETFIELD               =  'OBJID'
                 PVALKEY                = ' '
           DYNPPROG               = SY-REPID
           DYNPNR                 = SY-DYNNR
           DYNPROFIELD            = 'S_OBJID'
                 STEPL                  = 0
                 WINDOW_TITLE           =
                 VALUE                  = ' '
           VALUE_ORG              = 'S'
                 MULTIPLE_CHOICE        = ' '
                 DISPLAY                = ' '
                 CALLBACK_PROGRAM       = ' '
                 CALLBACK_FORM          = ' '
                 MARK_TAB               =
               IMPORTING
                 USER_RESET             =
          TABLES
            VALUE_TAB              =  IT_OBJID_SH
                 FIELD_TAB              =
                 RETURN_TAB             = RETURN_TAB
                 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.
      ENDIF.

  • Search help and defualt value select from R/3 System.

    Hi,
    Search help value is has pick from R/3 System and put into shopping cart/purchase order in SRM and for country of origin and country to destination value has to pick from R/3 as defualt value in SRM side.
    i think i need to call RFC functional module. please provide the best alternative with sample code.
    i am using BBP_DOC_CHANGE_BADI for implementation BADI, method is BBP_PO_CHANGE.
    could you provide me sample code how to get the value from R/3 to SRM.
    Regards
    Ahmed
    Message was edited by:
            Mohammed Shakeer Ahmed

    Hi
    <u>Please go through the following links which will help -></u>
    Re: Search help in ITS
    Re: GL Validations
    Re: Changing the accounting information on an SC
    Re: I cannot access "Supplier Catalogue no" in BBP_DOC_CHANGE_BADI
    Re: BBP_DOC_CHANGE_BADI
    Re: Derive GL code based on UNSPSC from catalog
    Re: GL Account details at the header are not flowing to the item level in SC
    Re: SRM standard search help
    Re: Search help for Custom Item level field
    Re: Importing parameters empty in BBP_DOC_CHANGE_BADI  ?
    Re: Account details not coming while creating a Shopping Cart with Limit Item
    Regards
    - Atul

  • 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

Maybe you are looking for

  • Error Message: Copying files failed. The file name was invalid or too long.

    I get the above error message when trying to copy in my library into itunes. Is there a log file generated somewhere that says what this file is, or is there some way of locating it?

  • Problems with the starbucks app on iphone 5s

    When I go to sign in it says error 500 or something like that. Anyone else having problems??

  • Firewire and gnome-volume-manager

    I have a firewire scanner, when hotplugged, nothing happens in gnome. I have 'run when scanner is plugged' checked, but I get nothing. Does gnome-volume-manager work with firewire devices? or is it just my scanner? (Canon 2540 photo)

  • Some photo's have lost brushed in adjustments

    Is there a way to reserect my brished in adjustments? The only thing I have done out of the ordinary is organise my photo's by merging projects.  Obviously, this might not be the cause of my problems. Symptoms: Some images have lost their rendering o

  • Exchange DAG Replication Data Rate

    i need some information regarding DAG replication issue. In my environment there is two mailbox server. One DC and another in DR site. The connectivity between DC and DR site is VPN. Bandwidth is one MB. But in VPN connection have ping loss. The ping