In search help i am facing problem

created search help using below function module . here element list is like this
in search help 2 fields is there and data is like this
arbpl werks
y 1
y 2
x 1
x 2
x 3
z 1
z 3
a 1
b 1
if i select x and 2 it taking the value as x and 1 how to solve this problem
would any body solve this problem?
i write the code like this
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl.
select arbpl werks from zpces into corresponding fields of table
itab .
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = 'CRHD'
retfield ='ARBPL'
PVALKEY = ' '
DYNPPROG = sy-repid
DYNPNR = sy-dynnr
DYNPROFIELD = 'P_ARBPL'
STEPL = 0
WINDOW_TITLE = 'title'
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = 'F'
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = itab
FIELD_TAB = dynfields
RETURN_TAB = return
DYNPFLD_MAPPING = dynmap
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 return with key fieldname = 'P_ARBPL'.
dynfields-fieldname = return-retfield.
dynfields-fieldvalue = return-fieldval.
append dynfields.
itab-arbpl = return-fieldval.
read table itab from itab.
read table itab with key arbpl = return-fieldval.
dynfields-fieldname = 'P_WERKS'.
dynfields-fieldvalue = itab-werks.
append dynfields.
Update the dynpro values.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
tables
dynpfields = dynfields
exceptions

Change your code as below.
dynfields-fieldname = return-retfield.
dynfields-fieldvalue = return-fieldval.
append dynfields.
* itab-arbpl = return-fieldval.
* read table itab from itab.
<b>read table itab index return-recordpos.</b>
dynfields-fieldname = 'P_WERKS'.
dynfields-fieldvalue = itab-werks.
append dynfields.
Hope this helps.
Manoj

Similar Messages

  • Search help multiple values selection problem

    Hello Friends,
    I am using FM f4_if_int_table_value_request FM to display multiple values on selection screen
    in AT-selection-screen on value request event.
    Multiple values are getting displayed perfectly .
    Then after that I am using DYNP_VALUES_UPDATE FM to return the values back to screen.
    But the problem is in the select-option field . It only picks the last value selected.
    I have a row:
    I EQ 'last value selected from F4 help screen''.
    Is there a way to update multiple rows in the select option selection screen field.
    Thanks.

    Hi Suhas,
    you may try the following:
    TABLES spfli.
    SELECT-OPTIONS: s_carrid FOR spfli-carrid.
    SELECTION-SCREEN: PUSHBUTTON /1(20) but1 USER-COMMAND carr.
    INITIALIZATION.
      but1 = 'Choose CARRID(s)'.
    AT SELECTION-SCREEN.
      CASE sy-ucomm.
        WHEN 'CARR'.
          TYPES: t_return_tab  TYPE ddshretval.
          TYPES: BEGIN OF ty_line,
            carrid   TYPE spfli-carrid,
            carrname TYPE scarr-carrname,
          END OF ty_line.
          DATA: it_list TYPE STANDARD TABLE OF ty_line,
                wa_return_tab TYPE t_return_tab,
                i_return_tab TYPE STANDARD TABLE OF t_return_tab,
                v_repid TYPE sy-repid,
                v_dynnr TYPE sy-dynnr.
          v_repid = sy-repid.
          v_dynnr = sy-dynnr.
          SELECT carrid carrname
          FROM scarr
          INTO TABLE it_list.
          IF sy-subrc = 0.
            CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
              EXPORTING
                retfield        = 'CARRID'
                dynpprog        = v_repid
                dynpnr          = v_dynnr
    *        dynprofield     = 'S_CARRID-LOW'
                value_org       = 'S'
                multiple_choice = 'X'
              TABLES
                value_tab       = it_list
                return_tab      = i_return_tab
              EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
            IF sy-subrc = 0.
              s_carrid-sign = 'I'.
              s_carrid-option = 'EQ'.
              LOOP AT i_return_tab INTO wa_return_tab.
                s_carrid-low = wa_return_tab-fieldval.
                APPEND s_carrid.
              ENDLOOP.
              READ TABLE s_carrid INDEX 1.
            ENDIF.
          ENDIF.
      ENDCASE.
    What I have done is:
    - not linking the result of the F4 search to field S_CARRID-LOW
    - inserting this F4 search into event AT SELECTION SCREEN. This allows to see the select-options filled when its contents are actually populated.
    I hope this helps. Kind regards,
    Alvaro

  • Problem in Translation of search helps

    Hi all,
    SAP has not presented my language version so I have selected Arabic and there I translate words to my own language. But while translating search helps, I have some problems. I would like to see the text written for guidance in my own language when pressing F1. Can anyone help me?
    Regards.
    Mona

    Hi Mona,
    can you provide  a screenhot of the text you need to find and a click path for calling it up? Search helps can use different translation object types depending on how the functionality is implemented, so I cannot give a general answer.
    Thanks,
    Martin

  • Free Programmed Search Help Question

    I want to use the free programmed search help interface to make
    my own search help.
        But the problem is, I want to embed SAP's search help into my own
    search help.How can I do that?
        Thank you.

    Hi,
    I had the same requirement and so I used Dictionary search help.
    In this you have to attach dictionary search help as inpute mode for paricular
    context node.
    e.g. If you want to attach a F4 help for vendor number, then goto attribute of that particular node and search for your attribute. Now click on vendor and change the properties of the same attribute as input help mode will be changed as
    'Dictionary search help' and put your own created search help name in the
    'Dictionary search help' tab. Also you can use standard search help name if you know as 'Dictionary search help '.
    Also there is another way to handle the same.
    In this blog you can find a solution with select options and custom F4
    /people/koen.labie2/blog/2006/11/17/custom-f4-functionality-in-webdynpro-for-abap
    Hope I have solved your problem.
    Cheers,
    Darshna.

  • VA01 and VA02 Change Search Help

    I need to add extra field in the search help of the ORDER in SALES ORDER (VA01, VA02). I want to see both the ORDER and the DESCRIPTION in the search help of ORDER field.
    I ask for this in existing thread but it was marked as Answered: [ Re: VA01 and VA02 Search Help Mitigation]
    The main problem is that after i create search help in se11, I do not know what to do after that. Where is the place to say this search help is for this field. I search for exits but no results. Some advises will help.
    Thank you.

    I try this and learn a lot. But i think that this is not the exact way. It do not work. The table is VBAP and the field AUFNR (Order Number). It has not search help. It has only the standard one field. When I press F4 on it it shows only its list and I need the description. When I press F4 and see the technical data it show table AUFK and field AUFNR. The description is in AUFK-KTEXT.
    I think i miss something small to do it. I think that I do not need collective search help or search help exit because it is for some more complex checks. May be I need only view with this two fields and elementary search help. But how to 'tell' to the field to use it.

  • CRM IC Search Help

    hi expert I've to create a custom search help but there is problem.
    I want to pass to search help a parameter so I can filter the result list.
    I'm thinking to use a search help created by SE11 but I don't know how to pass the parameter.
    Can you explain me step by step what I've to do?
    thank you!

    For using a search help in IC WC where u can pass some parameter and get a result list in popup u need to do these things:
    1.Create a search help in SE 11 (this must be compulsorily an elementary search help, secondary search help will not run on ICWC view.)
    2.In the view write the following code:
    <crmic:inputField id          = "INPUTFIELDID"
                                  width = "100%"
                                  maxlength = "3"
                                  helpId    = "STRNAME-FIELDNAME"
                                  helpOutputFields = "INPUTFIELD=FiELDforresult"
                                  helpInputFields = "Outputfield=valuetobepassed"
                                  value       = "variablename" />
    here the strname is the name of the str which contains field Fieldname and where the searchhelp is attached.
    give the input parameters and the result fields in the helpinput and helpoutput fields.
    thanks.
    ashish.

  • F4 help in selection fields of search help

    Hi all,
    I've created a elementary search help for sold to party and appended it to collective search help.
    Now my problem is i need F4 help in one of the selection fields of search help.
    How can i get it.
    I m using selection method where ive created a view which fetches all data..
    Thanks in advance
    Palak

    Hi,
    1)Double click on the dataelement of your field on which you want f4 help then in the first tab itself you will find two option one for attaching the search help you have created(Elementry/ Collective) and second option is the parameter ID.
    You have to look for the first option to attach the search help.
    2) You can create f4 help for your Parameter or Selection screen by using the event.
    AT SELECTION-SCREEN ON VALUE-REQUEST for PARA/Selection screen.
    Further you can use the FM mentioned above F4_INT.....
    Hope it is clear now.
    Vikas Badhan

  • Sorting problem in standard vendor search help

    Hi all,
    I'm enhancing the vendor search help.
    I found that there is a sorting problem in the original standard search help.
    The 1st time to search vendor in the search help returns a correct list, then I just sort the vendor in ascending order. This time the column name of the hit list changes and mismatch the actual values.
    Any one faced this problem before?
    What's wrong are there ?
    Thanks.

    Thanks Peluka.
    But even I don't enhance the vendor search help, I still found that the original standard version has this problem after sorting.
    Is that the program bug?
    Have anyone encountered this problem before?

  • Search help problems

    Hi All,
    we are facing problems with search helps. The search help doesnt work when ever there is an error in the UI.
    If there is an error in the application window and the user press F4, the error is coming up on the search help window also. Now any value selected in the personal value list is working fine. But if we go to More Values to provide filter criterion, the search help window hungs up. It wont respond at all.
    Any one knows how to resolve the issue. Please let me know.
    Thanks,
    Anand

    Maybe thats a SAP standard error.
    Have you looked at OSS / notes search page?
    Regards, Matthias

  • Since yesterday iam facing problem my iphone 5 doesn't get activated, i tried even with i tunes it give me this message : iTunes cannot restore the iphone because Find My iphone is on. please help me

    since yesterday iam facing problem my iphone 5 doesn't get activated, i tried even with i tunes it give me this message : iTunes cannot restore the iphone because Find My iphone is on. please help me

    If you are a developer, go here:
    solution to Activation Lock with expired iOS 7 beta:
    https://devforums.apple.com/message/880712#880712
    (thanks to suzan135 for the link)
    If you are not a developer, your favorite search engine may provide some direction.

  • I am facing problems while openin an application in facebook and other places.when i go to the application,an error shows and firefox closes autmatically either i send error reports or dont.....plz help

    i am facing problems while openin an application in facebook and other places.when i go to the application,an error shows and firefox closes autmatically either i send error reports or dont.....plz help

    Notes:
    1) Please use the code tags when posting code or JNLP/HTML. It helps to retain indentation and avoids asterisks and plus sings being interpreted as formatting marks. To do that, select the code/JNLP etc. and click the CODE button seen on the Plain Text tab of the message posting form.
    2) That launch file is invalid. You might check it (and the project in general) using JaNeLA.
    3) The only place that SimpleSerial class could be, that the JRE would find, is in the root of aeon.jar. Is it actually there?

  • Search Help Parameter Default - Problems with VKO and VTW in Sales Order

    Hello,
    we've implementend an own serchhelp for the material-search.
    The fields VKORG and VTWEG have the default VKO and VTW.
    If I open this searchhelp in VA03 those values are not filled, if I open it in MM03 or ME23N those values are filled.
    My user has the VKO and VTW-parameters set.
    We have no custom "preselect-code" implemented.
    If I change the values to VKU and VTW the output is the same (works in MM03 / ME23N but not in VA03) (copied default values from MAT1S search help, didn't change my user parameters!)
    What could be the problem?

    Our searchelp was in our own append ZA_SD_MAT1.
    Solution:
    We deleted this append and added our search-helps to SD_MAT1 and now everythings works in mm03, me23n and va03.

  • Problem in assigning value from search help

    Hi experts,
              I have created an elementary search help for the custom field (Say for example YFIELD1) via SE11. Selection method's field name is YFIELD2 with same type as YFIELD1.  
    But when I press F4 on YFIELD1, I could see the values list but when i selected any value, it is not getting assigned to my field.
    What my doubt is whether YFIELD1 and YFIELD2 should have same name?
    Please help me to solve this issue.
    Thanks,
    Peri

    Dear Peri,
    Greetings.
    there should not be any problem if your field names are different.
    While creating elementry search help.... make sure that U check both import (IMP) and export (EXP) parameters and activate the search help once again.
    If Ur EXP parameter is unchecked then U will be able to see the list of entries but  it won't get into the field while creating entries in the main table.
    Hope this helps.
    Sathya

  • Problem with custom search help for std SD_DEBI

    Hi,
    I have created a custom zcustom search help and included in std search help SD_DEBI.
    In the custom serach help i have added the fields ktokd and sales area fields(sales org, Disb channel, division).
    now when i goto va01 transaction and hit F4 for sold to party i was able view the KTOKD and sales area fields in the custom tab
    when i select the values from f4 help and hit enter they are not getting displayed in sold to party field.
    when i select only sales area fields from f4 and press enter they are getting displayed in sold to party field.
    problem is with the ktokd field that i have included.
    Any suggestions please let me know

    Hi deepti,
    I think you have missed parameter assignment from your Z append search help to standard search help.
    Select the search help and click on Param Assignment button and assign the refernece parameter(KUNNR) of your
    append search help to std collective search help (KUNNR).
    Thanks,
    Pawan

  • I am facing problem in starting ShellHWDetection service Error code 1075,please help

    I am facing problem in starting ShellHWDetection service Error code 1075,please help

    Shellhwdetection is a Windows service which stands for Shell Hardware Detection Service.
    It provides notifications for AutoPlay hardware events.
    System error code 1075 means "The dependency service does not exist or has been marked for deletion."
    Please run services.msc, then find Shell Hardware Detection Service, view its dependencies
    Make sure the three services are set to running "automatic" in Services.
    If this doesn't help, then run sfc to check if there're some missing or corrupted files in system.
    Yolanda Zhu
    TechNet Community Support

Maybe you are looking for