Search Help Issue : Pls suggest

Dear All,
I have three text fields in one of my screens.
1. Transporter
2. TruckType and
3. Destination
I have provided search help for Transporter field and  I display all the above three fields in the search help LOV.
My requirement is that on selection of any entry from the search help, the other two fields on the screen i.e. Truck Type & Destination should also get populated from the relative fields of the selected entry.
Regards,
Alok.

Hi Alok,
check this code...
tables: mara, makt.
data mat like mara-matnr.
data: begin of itab occurs 0,
matnr like mara-matnr,
end of itab.
data : begin of btab occurs 0,
maktx like makt-maktx,
end of btab.
data mak like makt-maktx.
DATA : return like ddshretval occurs 0 with header line.
data: begin of dynpfields occurs 3.
include structure dynpread.
data: end of dynpfields.
parameters: p_matnr like mara-matnr,
p_maktx like makt-maktx.
Initialization.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
REFRESH ITAB.
SELECT matnr FROM mara INTO TABLE ITAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR '
dynprofield = 'P_MATNR '
dynpprog = sy-REPID
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = ITAB
return_tab = return.
mat = return-fieldval.
unpack mat to mat.
select single maktx from makt into mak where matnr = mat.
p_matnr = return-fieldval.
refresh return.
clear return.
move 'P_MAKTX' to dynpfields-fieldname.
move mak to dynpfields-fieldvalue.
append dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'SY-REPID'
dynumb = '1000'
tables
dynpfields = dynpfields.
refresh return.
clear return.
Regards
CNU

Similar Messages

  • Enhancing F4 Search Help Issue - Standard Component

    Hello All,
    We have a requirement in SRM to customize couple of standard Search helps attached to the Webdynpro components. As such I know the concept of how we can handle this requirement but hitting an issue.
    Standard Working scenario -
    1) Standard Structure available with multiple fields. Two fields that are of our interest are SH_VALUE and SH_VALUE_LABEL.
    2) Standard Search help for this being used has fields VALUE and VALUE_LABEL.
    3) In the Structure the both the fields SH_VALUE and SH_VALUE_LABEL are mapped to the Search help VALUE and VALUE_LABEL.
    4) In the WD component the node is mapped to the standard structure.
    Running the application and the picking up the values from F4 on the SH_VALUE field will return its corresponding value and also map the SH_VALUE_LABEL field with the Label from the F4 since the structure and Search help mapping are there.
    So far good when its standard.
    Issue I am facing -
    We need to modify this standard search help to customize our needs.
    1) Did a Copy of the standard Search help and then modified to suit our needs. The output structure of the search is still the same as the standard one.
    2) Did a Post Exit in the WD component to call our custom search help through the below code -
    data lo_nd_attrib type ref to if_wd_context_node.
    data lo_nd_attrib_info type ref to if_wd_context_node_info.
    lo_nd_attrib = wd_context->path_get_node( path = `ATTRIBUTES_DATA.ATTR_DTLS_MULT` ).
    lo_nd_attrib_info = lo_nd_attrib->get_node_info( ).
    lo_nd_attrib_info->set_attribute_value_help( name = 'SH_VALUE' value_help_mode = '121' value_help = 'Z_ORG_ATTR' ).
    lo_nd_attrib_info->set_attribute_value_help( name = 'SH_VALUE_LABEL' value_help_mode = '121' value_help = 'Z_ORG_ATTR' ).
    Running the application just returns the SH_VALUE field but does not get the data for the SH_VALUE_LABEL.
    Is there something wrong in the way I am calling the Custom Search help or should I need to approach this differently?
    Thanks,
    Nagarajan.

    Hi Nagarajan,
    Well, you are trying to set the search help to both attributes ( sh_value, sh_value_label) individually and it is having no link between these two attributes
    i.e. once you select a value from search help of SH_VALUE, its no where linked that the other details to be passed to SH_VALUE_LABEL.
    We generally, do the linking of attributes to search help parameters at structure level as below
    So, if you need the same behaviour, then you need to assign the Zsearch help at strucuture field SH_VALUE and link the parameters to both fields SH_VALUE & SH_VALUE_LABEL
    In case, if find it not possible to to this way,
    You need to populate the value of field SH_VALUE_LABEL upon selection of value from search help of SH_VALUE.
    i.e. by registering the search help selection event to an OnEnter action and write the logic to populate the value to SH_VALUE_LABEL
    Please refer the below link
    Automatically Trigger onEnter event after selecting value from the Value Help(F4 Help)
    Hope this helps you.
    Regards,
    Rama

  • Problem with OVS search help.. pls help..

    Hi friends, I have a prblem with OVS component layout
    can some tell me create another  COPY button just under the search button on OVS.
    Basically in my product search.. there is already an OVS component created.. in the Z component layout.. jus the result table is been designed. I dnt see any other UI elements availble in that layout. (like input field to accept vaules on OVS), .. so i was wondering how to create a new button.
    this was developed by others;s so .. i m fighting with this and not able to get anything from sdn aswell.. pls help me.
    And also when they enter values in input fields.. instead of clicking search.. they wanted to hit ENTER key on keyboard... and result shoud display.. how to achieve this..
    sorry im very sorry but pls take out some time and help me out.
    I want one more button COPY on OVS search help. just under the SEARCH button... and also the search shud start once i hit ENTER key on keyboard.
    pls help on this.
    Niraja

    Hi Niraja,
    As how discussed in the email we can get this additional push button as how desired by enhancing the standard component WDR_OVS. Just click on the "Enhance" (spiral kind of button) button present in the application toolbar & create an Enhancement Implementation for the component. Now within this standard component you have the corresponding layout present in the SEARCH view. So go to this view & make the necessary changes. From now on what all components which declare a component usage of the WDR_OVS would be getting this newly modified UI & functionality.
    Regards,
    Uday

  • Search Help Issue

    Hi All,
    I'm facinng one strange issue with search helps.  I have devloped online form in WDA with some F4 helps(I have used "Value Help button from Webdynpro Native) .
    If I click search help buttons 15 times, the whole browser is closing with out any warning or error. I have been analysing why it is happening, but no use till  now. I have seen browser log using HTTP Watch and Debug Webdynpro application etc.
    Did any one face this issue? Is there any parametere setting or something? Or Is any other setting in ADS or J2ee or Adobe or any where???
    Any pointer will  be really apprecaited. Going live very soon in days..:)... Till now I couldnt realize this issue, infact tested in Dev and QA...but never tried keep on clicking for few times, until user pointed it out..
    Can some one also try clicking for 15 times any search help and see , is it the same case?
    Apprecaite your response.
    Version Details:
    SAP ECC 6.0
    SAP_BASIS     700     0016     SAPKB70016     SAP Basis Component
    SAP_ABA     700     0016     SAPKA70016     Cross-Application Component
    Findings:
    I was reducing the form size gradually like deleting some script, and fields... then number of hits  increasing. I mean now after the changes the count increased to 22 then application is closing..
    Regards,
    Ravi
    Edited by: Ravi Devarasetty on Apr 2, 2010 11:51 AM

    Hi Otto,
    I have already gone through that Snote. Nothing related to my issue. Probably I should open an OSS message.
    New Findings:
    I thought It is the problem with search helps, but after testing rigorously...the same problem with Submit Button. After clicking 22 times the applicaion gets closed automatially...
    I doubt some related to Sizing????
    Regards,
    Ravi
    Edited by: Ravi Devarasetty on Apr 3, 2010 10:03 AM

  • GL Account Search Help Issue

    We want to change the standard search help of GL Account in the Shopping Cart line item.
    Currently it fetches the value from ECC backend but we need to utilise a custom search help from SRM system.
    Pease let me know how do we do this.
    Thanks.

    Hi,
      You can do this with WD dynamic programming.
      You can do with domodifyview badi for accounting component /SAPSRM/WDC_UI_DO_ACC.
      You need to handle both views 'V_DO_ACCOUNTING' and  'V_DO_ACCOUNT_DETAIL' in the domodifyview badi implementation.
    I am sending the sample  code. How to attach the custom search help dynamically.
      DATA lo_nd_comp_context    TYPE REF TO if_wd_context_node.
      DATA lo_nd_acc_context     TYPE REF TO if_wd_context_node.
      DATA lo_nd_info_acc        TYPE REF TO if_wd_context_node_info.
      DATA lv_value_help_mode    TYPE i.
      DATA lv_value_help         TYPE string.
      " Read Context
      lo_nd_comp_context = wd_context->get_child_node( name = 'COMP_CONTEXT' ).
      " get node info object of accounting node
      IF lo_nd_acc_context IS BOUND.
        lo_nd_info_acc = lo_nd_acc_context->get_node_info( ).
      ENDIF.
      " continue only if node info is supplied
      IF lo_nd_info_acc IS BOUND.
        " get current search help info
        lo_nd_info_acc->get_attribute_value_help(
          EXPORTING
            name            = 'G_L_ACCT'
          IMPORTING
            value_help_mode = lv_value_help_mode
            value_help      = lv_value_help
    " Below this will add the custom search help from SRM .
             lo_nd_info_acc->set_attribute_value_help(
            EXPORTING
              name            = 'G_L_ACCT'
              value_help_mode = 'BUS2121'
              value_help      = 'Z_F4-Your search help'   " you own search help.
      endif.
    Regards,
    Devi prasad

  • Search help issue with WebGui Transaction iView

    Hi All,
        We have customized transaction ZME51 for ME51 transaction.
        Transaction  iView has been created for this in EP.
       But we are not getting search help within search help.
    Please guide if anybody has got idea.
    regards,
    gangadharayya.

    Hi,
    Is your transaction working directly.
    Try actual program/report transaction.. dont use Z transaction.
    Check if you are getting search help for standard one? If so, you need to create Z searchhelps for yours.
    regards
    Kedar Kulkarni

  • Search Help issue in VA03

    Hi Gurus,
    After entering the PO/Job reference Number as 80 and clicking on search,we are receiving an error message saying that "No document selected" for one user ID.
    But for the remianing User ID's,with the same Search options,we are able to get the list and user will select the appropriate Sales Order from the avaialable list.
    We have given SAP_ALL for this User ID.Please help in resolving this issue.
    Regards,
    Narendra.

    hi Narendra,
    please check the following Basis notes 1450365 & 1489927 & 1521329
    kind regards
    Paul Quinn

  • Issues in attaching a search help to a transport?

    Hello
    We have a Z_search_help in the Developemnt system(its attached to TR# DEV12345678, which is not yet transported) because of some reason i have deleted this Z_search_help from TR# DEV12345678, well.
    After couple of hours I decided to use it again for my other Z_table, so I went to Z_search_help and just made some changes to 'Short Description' field and some parameters (dummy parameter created, saved, deleted) and used the same TR# DEV12345678, well.
    But, when I saw this TR# DEV12345678 in SE10, i have noticed my z_search_help is saved as 'Search Help Defination'! but when i checked my other search helps they saved as 'Search Help'!
    Pls. let me know
    1) Can I go ahead with this 'Search Help defination' and move the TR to QA box? or do i get any issues while transporting to QA box along with its associated Z table(in which I used this Search help)?
    2) Whts the difference in these two terminology (Search help defination and Serach help?)
    3) Am i all set? or do i need to delete this Z_search_help from the system and create a brand new search help with the same?
    Thank you

    Hi
    1) Can I go ahead with this 'Search Help defination' and move the TR to QA box? or do i get any issues while transporting to QA box along with its associated Z table(in which I used this Search help)?
    I think so as you have changed the structure of your search help, so all component of that search help will be transported
    2) Whts the difference in these two terminology (Search help defination and Serach help?)
    Sincenrely I don't know the real difference, but I've done your same steps and I've noticed the same behavior, I see the type of object attached to the request is different:
    A) R3TR/SHLP/<search help> for Search Help
    B) LIMU/SHLD/<search help> for Search Help Definition
    Probably the first case A) is for a new search help, so when a search help is created, B) if it's changed: but I think in the both case all components of a search help will be transported
    3) Am i all set? or do i need to delete this Z_search_help from the system and create a brand new search help with the same?
    No
    but if you want you can delete the search help from the request, and then you insert it manually again (just as explained in case A)
    Max

  • Strange Issue With Search Help

    Hi Experts,
    I am stuck with a search help issue, when using a certain Help for an input field on my screen i am getting a "Value help dialog canceled" cancelled error , the same search help seems to be working fine
    when run from sap r/3.
    I am pretty sure the design part (Attribute binding and mentioning the search help in the context ) is correct and how it should be.
    Could Someone Please throw some lite on this issue.
    Thanks In Advance,
    Chaitanya.

    Hi Chaitanya,
    When reusing DDIC search helps in WDA, it may not always work as desired. Calls to classic screens in search help exits for example is one of the scenarios that works pretty well with SAPGUI but doesnt work with WDA.
    The following links may be of help!
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm
    Thanks,
    Chitrali

  • 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.

  • How to include elementry search help into predefined collective search help

    Hi guys...
         how to include the user defined elementry search help into pre-defined collective search help.. pls reply as soon as possible..its urgent..
    regards
    kirankpasupuleti

    Hi Kiran,
    I have a complete doc on this which gives you step by step procedure to achieve the same.
    If you want I can send you the docs.
    Please give me your email id.
    Regards,
    Amit Mishra

  • Freely program Search Help

    hi,
    I am using a freely program search help. In this i have two buttons OK and Cancel.
    I have put these buttons in the view under the search table. But my requirement is that, buttons should come at the window level, not in the view, like in dictionary search help.
    Please suggest how can i achieve that.
    Regards,
    Pankaj Aggarwal

    Use a container and every element in Container.

  • Exit Search Help Standard /DSD/RPSH_EX_DRIVER

    Hi guys,
    I need know what is the best way to implement a exit search help standard.... I found that the help search /DSD/RPF1_SH has a exit search help called /DSD/RPSH_EX_DRIVER (Function Module), i need modify this exit search help standard.... the question is: is better unlock the object standard /DSD/RPSH_EX_DRIVER or create a copy of this Function Module into Function Module Z, then modify it and next link this Function Module to the search help?
    Any suggestion?
    Thanks.

    /DSD/RPSH_EX_DRIVER has some unneccesary code in it... but it would be better to create another FM with the same signature and the code, and attach it to the search help.

  • Adobe forms search help

    Hi,
    How can we create the adobe forms search help,can anybody suggest.
    Regards,
    Aravind.

    hi, Jkuma,
    we met the similar situation with you while developing a anpplication form for HR.
    our conclustions are:
    1. it's not feasible to put all the data into the form, it will make the form too big and slow, so it must be a online interactive form
    2. you may put a search field to let the user to input some kind of criteria and do the search on the r3 side and return the hit list on the form , but it's not so easy to develop a table control on the form using javascript to get the selected one.
    3. so we built a 'selection screen' , using webdynpro for abap,
    it will show up before the form, while can use ddic search help, to make the selection, then put all the selected entries into the adobe form for further processiong.
    how this is helpful hint for you.
    br.
    jun

  • 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.

Maybe you are looking for

  • How to add values in a List item using code

    Hi all, I want to populate a list item at run time with the values of my choice. im using this add_list_element('list34',1, 'Name','Smith'); or add_list_element('list34',1, 'Name',:emp.txtname); where emp is my data block and txtname is a text field

  • Anonymous Block Troubles

    Hey everyone. I'm fairly new to the SQL world and this is my first time posting on any forum for help with coding. I have an assignment and I'm supposed to construct an anonymous block. I am using sqldeveloper and I am trying to run the following: --

  • How to add [playheadtime / totaltime] to FLVPlayback skin

    I need to add [playheadtime / totaltime] to my FLVPlayback skin so that I can see it while the video is in fullscreen mode. Thanks in Advance, Siraj R Khan [email protected]

  • Optional URL Redirect - choice

    I have a form with 3 check boxes 1 report 1 2 report 2 3 report 3 I have a button with an optional url redirect it's request is (PRINT_REPORT=fundi1) but depending on which check box is checked I wanted PRINT_REPORT=fundi1, PRINT_REPORT=fundi2, PRINT

  • Unable to import photos and movies from iphone 4

    I am getting an error message when I try to import photos from my iphone 4. I had no problem previously. The message states a specific file name for the photo, but I cannot find a way to make iphoto show me photo names on my phone. I don't think it i