WD ABAP - Search help using Selection-options

Hi Experts
i am using interface IF_WD_SELECT_OPTIONS method  ADD_SELECTION_FIELD for filling the selection parameters
add a new field to the selection
  wd_this->m_handler->add_selection_field(
  i_id = '/DMF/EXT_PROD_ID'
  it_result = lt_range_table
  i_read_only = read_only
*I_HELP_REQUEST_HANDLER = lt
    i_value_help_type = 'SEARCHHELP'
    i_value_help_id   = '/DMF/PROD_SHLP' ).
I would like to like to pass the importing parameter to '/DMF/PROD_SHLP'
Is it possible through this interface .
thnks in advance

I assume this is a data dictionary based search help.  You can't pass the importing parameter directly into the field creation.  Data Dictionary Search Helps get their importing parameters from their relationship to other attributes in the same context node automatically. 
This is from the online help:
If an input help structure is stored in a field in the ABAP Dictionary, and if you want to use the field mapping of search help parameters stored in the ABAP Dictionary as the field name for the structure for your Web Dynpro input help, then map your context nodes to this structure. This ensures that all components of the structure are available dynamically at runtime as attributes of the node.
If the context node is not mapped to the structure, the data element's input help can be used if there is one.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm

Similar Messages

  • Applying stadard search help to SELECT-OPTIONS

    applying stadard search help to SELECT-OPTIONS
    i have the below code in the selection screen:
    SELECT-OPTIONS : so_stain FOR gv_stai1
                                  MATCHCODE OBJECT ZSTA,
                     so_staex FOR gv_stai1
                                  MATCHCODE OBJECT ZSTA.
    where ZSTA is the search help defined in the data dictionary which is the copy on standard SAP search help..
    but this is not working..:(  when i run the program and click on the
    F4 help for these two fields i get no out put..
    can any one suggest me to search help to select-options..

    Hi,
    u can see this example code for f4 help on the select-option,
    DATA: li_ret_tab TYPE STANDARD TABLE OF ddshretval,
            lws_retfield TYPE dfies-fieldname.
      DATA : wa_ret_tab LIKE LINE OF li_ret_tab.
    **- Get the device numbers
      SELECT serge FROM equi
             INTO TABLE i_help1
             WHERE sparte EQ c_51.
      IF sy-subrc EQ 0.
        lws_retfield = text-030.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield        = s_device
            dynpprog        = sy-repid
            dynpnr          = c_dynpnr
            dynprofield     = s_device
            value_org       = 'S'
          TABLES
            value_tab       = i_help1
          EXCEPTIONS
            parameter_error = 1
            no_values_found = 2
            OTHERS          = 3.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    Regards,
    kk.

  • Problem on Search Help  for select-option

    Hi,
    Iam working on a search help for select-option,
    is there a way to incorporate select-all or multiple
    selection on this?
    Thanks!

    Hi catherine,
    1. Just copy paste this program.
      (It will POPULATE the SELECT-OPTION,
       based upon
       MULTIPLE Selection,
       selected by the user,
       in the  help provided thru F4IF_INT_TABLE_VALUE_REQUEST.)
    2. Eg. is for BUKRS (company code)
    3.
    REPORT ABC.
    TABLES : T001.
    DATA : ITAB LIKE TABLE OF T001 WITH HEADER LINE.
    DATA : RETURN LIKE TABLE OF DDSHRETVAL WITH HEADER LINE.
    SELECT-OPTIONS : BUKRS FOR T001-BUKRS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR BUKRS-LOW.
    PERFORM MYPOPULATE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR BUKRS-HIGH.
    PERFORM MYPOPULATE.
    FORM MYPOPULATE.
      REFRESH ITAB.
      SELECT * FROM T001 INTO TABLE ITAB.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynprofield     = 'BUKRS'
          dynpprog        = sy-REPID
          dynpnr          = sy-dynnr
          multiple_choice = 'X'
          value_org       = 'S'
        TABLES
          value_tab       = ITAB
          return_tab      = return.
    IF RETURN[] IS NOT INITIAL.
    REFRESH BUKRS.
    CLEAR BUKRS.
      LOOP AT RETURN.
        BUKRS-SIGN = 'I'.
        BUKRS-OPTION = 'EQ'.
        BUKRS-LOW = RETURN-FIELDVAL.
        BUKRS-HIGH = RETURN-FIELDVAL.
        APPEND BUKRS.
      ENDLOOP.
    ENDIF.
    ENDFORM.
    regards,
    amit m.

  • ABAP WD application using Select Options  & Adobe form :Don't see form data

    Hi,
    I am trying to get multiple PDF forms by passing multiple order numbers.I was able to get one PDF form successfully and now I am enhancing this application.
    For doing this I have created nested WD Context .
    1) Created a Node for Selections. ND_SELECT  ,
    Cardinality: 1..n ,
    Selection: 1..n ,
    Intialization lead Selection : Checked ,
    Singleton : Checked
    2) Created a Node for Output Structures ADOBE_DATA
    Properties same as above
    3) As we need Nesting Under ADOBE_DATA node I have created a subnode for Header: HEADER
    Properties same as above
    4) Under HEADER node I have created a items Node : ITEM
    Properties same as above
    As I have used Select-options and I am getting both header and Item data in to button search method .
    DATA lo_nd_adobe_data TYPE REF TO if_wd_context_node.
      DATA lo_nd_header TYPE REF TO if_wd_context_node.
      DATA lo_el_header TYPE REF TO if_wd_context_element.
      DATA ls_header TYPE wd_this->element_header.
    * navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
      lo_nd_adobe_data = wd_context->get_child_node( name = wd_this->wdctx_adobe_data ).
    * navigate from <ADOBE_DATA> to <HEADER> via lead selection
      lo_nd_header = lo_nd_adobe_data->get_child_node( name = wd_this->wdctx_header ).
      lo_nd_header->bind_table( new_items = it_header  set_initial_elements = abap_true ).
      DATA lo_nd_item TYPE REF TO if_wd_context_node.
      DATA lo_el_item TYPE REF TO if_wd_context_element.
      DATA ls_item TYPE wd_this->element_item.
    * navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
      lo_nd_adobe_data = wd_context->get_child_node( name = wd_this->wdctx_adobe_data ).
    * navigate from <ADOBE_DATA> to <HEADER> via lead selection
      lo_nd_header = lo_nd_adobe_data->get_child_node( name = wd_this->wdctx_header ).
    * navigate from <HEADER> to <ITEM> via lead selection
      lo_nd_item = lo_nd_header->get_child_node( name = wd_this->wdctx_item ).
    lo_nd_item->bind_table( new_items = it_item  set_initial_elements = abap_true ).
    Could you please tell me where I am doing wrong?
    In adobe form
    Created one MainForm  and its properties are
    Binding : $record.HEADER.DATA[*]
    Repeat subform for each data item Checked , Min Count: 1
    Subform Content : Flowed ,Western Text , Allow page breaks withing Content Checked
    Accessibility /Subform Role: None
    Inside this Mainform I have created a small table ITEMTABLE  with 3 fields and mapped it item data.
    Itemtable properties
    Binding : ITEM
    Uncheck Repeat table for Each Data item.
    I have Itemtablerow inside Itemtable  and its properties are:
    Binding : DATA[*]
    Repeat row for each data item Checked ,Min count: 1
    Accesibility:/Subform Role: Body row
    Row: body row, Check Allow page breaks within content
    Still donu2019t see data on form.here is what i have in Hierarchy tab.
    ADOBE_DATA (no Caption)
    - (Master pages)(no caption)
             Page1
                      Untitled Content Area(no caption)
    - Mainform(no Caption)
                       PSPID {PSPID}
              -ItemTable (No caption)
                      - ItemtableRow (no Caption)
                                   PSPID(no Caption)
                                    CJTDAT(no Caption)
                                    CPERCO(no Caption)
    What could be going wrong ?
    Rgds
    Vara

    Hi John,
    In the WD4A view, there is a button "Show/Hide Layout Preview".
    Click on that button to be able to see the Layout.
    Note that this button is next to the Pretty Print button.
    regards,
    Reema.

  • Search help in select option

    Hi,
    I created a select options with a field.The field does't have any search help in it.
    I needs to give an explicit search help for that field , for that i created one serch help and i passed the
    search help name in the parameter i_value_help_id  of method add_selection_field.
    But i didn't get the f4 in my select options.
    please help to solve this issue.
    Thanks.

    hi bala,
    Whether the search help field refers to any dictionary field ( ie any customized table field)..
    if so, thn give ur search help name for that dataelement in furthercharacteristics tab.. b'z u have to
    use DATAELEMENT for defining the select option..

  • Search Help in Select - Options

    Dear experts,
    i use three select options and they work fine.
    In the node of the view i declared the attributes i need and bound a search help (F4 help) to them.
    here is the problem.
    One attribute has the help visible when i start the application, the other two not.
    Can you give me a hint how to solve this ?
    Thanks and best regards
    René

    Hi Rene,
    I had the similar question earlier, later what i have found is like this:
    1. I have a WDC with three Select options to it.
    2. First Select options relates to the first attribute in my context node which takes the Data element as the Data type. For Ex: take BUKRS as the DE. This has pre-defined search help to the DE C_T001.
    3. Second select options relates to the second attribute in my context node which takes the string as the data type. I manually assigned the Search help to that attribute 'C_T001'.
    4. Thirs Select options relate to the third attribute inmy context node which takes the string as the data type. I manually assigned a Search help to it 'H_T002'.
    5. In the WDDOINIT of my view, I have written the code as follows in the bottom of the post.
    6. The observation is the search help assigned to the first attribute will be opened with out any problem or additional code to it.
    7. The search help assigned to the second one at the context level wont be picked in the select-options.
    8. The search help assigned to the third one will be picked if and only if there is manual assignment of the search help at the time of creating a selection field.
    Conclusion: So, the search help assignment assigned to the attribute at context level is ignored. It will be considered only if the DE has that search help in the case of select-options.
    Hope it is clear and appreciate your feebback.
    Regards,
    Shashikanth. D
    First Select option.
    Instantiating the Used component WDR_SELECT_OPTIONS
      DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_select_options( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
      wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
    init the select screen
      wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
      wd_this->m_handler->set_global_options(
                                  i_display_btn_cancel  = abap_false
                                  i_display_btn_check   = abap_false
                                  i_display_btn_reset   = abap_false
                                  i_display_btn_execute = abap_false ).
    create a range table that consists of this new data element
      lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'BUKRS' ).
    add a new field to the selection
      wd_this->m_handler->add_selection_field( i_id = 'BUKRS'
      it_result = lt_range_table i_read_only = read_only ).
    Second select option.
    Instantiating the Used component WDR_SELECT_OPTIONS
      DATA lo_cmp_usage1 TYPE REF TO if_wd_component_usage.
      lo_cmp_usage1 =   wd_this->wd_cpuse_use_select1( ).
      IF lo_cmp_usage1->has_active_component( ) IS INITIAL.
        lo_cmp_usage1->create_component( ).
      ENDIF.
      wd_this->m_wd_select_options1 = wd_this->wd_cpifc_use_select1( ).
    init the select screen
      wd_this->m_handler1 = wd_this->m_wd_select_options1->init_selection_screen(  ).
      wd_this->m_handler1->set_global_options(
                                  i_display_btn_cancel  = abap_false
                                  i_display_btn_check   = abap_false
                                  i_display_btn_reset   = abap_false
                                  i_display_btn_execute = abap_false ).
    create a range table that consists of this new data element
      lt_range_table = wd_this->m_handler1->create_range_table( i_typename = 'STRING' ).
    add a new field to the selection
      wd_this->m_handler1->add_selection_field( i_id = 'IF1'
      it_result = lt_range_table i_read_only = read_only ).
    Third Select options:
    Instantiating the Used component WDR_SELECT_OPTIONS
    DATA lo_cmp_usage2 TYPE REF TO if_wd_component_usage.
    lo_cmp_usage2 =   wd_this->wd_cpuse_use_select2( ).
    IF lo_cmp_usage2->has_active_component( ) IS INITIAL.
      lo_cmp_usage2->create_component( ).
    ENDIF.
    wd_this->m_wd_select_options2 = wd_this->wd_cpifc_use_select1( ).
    init the select screen
      wd_this->m_handler2 = wd_this->m_wd_select_options2->init_selection_screen(  ).
      wd_this->m_handler2->set_global_options(
                                  i_display_btn_cancel  = abap_false
                                  i_display_btn_check   = abap_false
                                  i_display_btn_reset   = abap_false
                                  i_display_btn_execute = abap_false ).
    create a range table that consists of this new data element
      lt_range_table = wd_this->m_handler2->create_range_table( i_typename = 'STRING' ).
    add a new field to the selection
    CALL METHOD wd_this->m_handler2->add_selection_field
      EXPORTING
        i_id                         = 'IF2'
        it_result                    = lt_range_table
        i_value_help_type            = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_SEARCHHELP
        i_value_help_id              = 'H_T002'.

  • Search help for select options

    Hi,
    I want to give search help for a field on selection screen based on value in another field in same selection screen. I am using DYNP_VALUES_READ function module to retain the values and F4IF_INT_TABLE_VALUE_REQUEST function module to give search help and it works fine, but when i give multiple selections i am not able to read the values. Please help. Points will be rewarded.

    Hi,
    Check the below code.
    tables: t001k.
    For Identification Number
    DATA: BEGIN OF it_bwkey OCCURS 0,
            bwkey LIKE t001k-bwkey,
          END OF it_bwkey.
    data: v_bukrs(4).
    For Run date
    DATA: BEGIN OF it_bukrs OCCURS 0,
            bukrs LIKE t001k-bukrs,
          END OF it_bukrs.
    DATA it_ret LIKE ddshretval OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN: BEGIN OF BLOCK main WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS:    p_bukrs(4) TYPE c.
    SELECT-OPTIONS s_bwkey FOR t001k-bwkey NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK main.
    Validation Section
    INITIALIZATION.
      SELECT DISTINCT bukrs FROM t001k INTO TABLE it_bukrs.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'P_BUKRS'
          value_org       = 'S'
        TABLES
          value_tab       = it_bukrs
        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.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_bwkey-low.
      TABLES: t130r.
      DATA: BEGIN OF dynpfields OCCURS 0. "Hilfsstruktur zum auslesen des
              INCLUDE STRUCTURE dynpread. "Feldwertes vom Dynpro bei >F4<
      DATA: END OF   dynpfields.
      DATA : sy_repid LIKE sy-repid,
             sy_dynnr LIKE sy-dynnr.
      CLEAR dynpfields.
      REFRESH dynpfields.
      dynpfields-fieldname = 'P_BUKRS'.
      APPEND dynpfields.
      Lesen des akt. Wertes von Dynpro
      sy_repid = sy-repid.
      sy_dynnr = sy-dynnr.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = sy_repid
          dynumb     = sy_dynnr
        TABLES
          dynpfields = dynpfields
        EXCEPTIONS
          OTHERS     = 01.
      IF sy-subrc = 0.
        READ TABLE dynpfields WITH KEY fieldname = 'P_BUKRS'.
        IF sy-subrc = 0.
          v_bukrs = dynpfields-fieldvalue.
        ENDIF.
      ENDIF.
      SELECT bwkey FROM t001k
      INTO TABLE it_bwkey
      WHERE bukrs = v_bukrs.
      DELETE ADJACENT DUPLICATES FROM it_bwkey.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BWKEY'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'S_BWKEY'
          value_org       = 'S'
        TABLES
          value_tab       = it_bwkey
        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.

  • Search Help in Select - Options for Time field

    Hi,
    I have a select option which is a  time field.
    For date field the F4 help is automatically generated.
    How to get F4 help for time field.
    Regards,
    Remo

    Selection-Options or normal field - it doesn't matter.  There is no system delivered value help for a time field. This is documented in the online help:
    There is no automatic F4 help for data element TIMS.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm
    You would have to create your freely programmed value help if you want something like the time value help available in the SAPGUI.

  • Can i assign a collective srch help for select option in list display

    can i assign a collective srch help for select option in list display

    Hi,
    Yes ,u can assign a collective search help for select-option in list display.
    Eg:
    Define your select option like this
    SELECT-OPTIONS: s_vbeln FOR likp-vbeln MATCHCODE OBJECT vmva.
    Regards,
    Shiva.

  • Search help is not coming while using select-options?

    Hi All,
    I am using select options in my selection screen, i used wdr_select_options, also i coded some parameter values also
    ( non select-options ). For that field i am not getting search help. If i create as normal i am getting? Suggestions pelase?
    Thanks,
    Venkat.

    HI
    what kind of search help is associated with the field.
    ADD_SELECTION_FIELD method has some specific parametrs for value_help
    give the input there and try again.
    these parameters are
    I_VALUE_HELP_TYPE
    I_VALUE_HELP_ID
    I_VALUE_HELP_MODE
    I_VALUE_HELP_STRUCTURE
    thanks
    sarbjeet dingh

  • How to assign search help using ovs for select options for ALV in web dynpr

    how to assign search help using ovs for select options for ALV in web dynpro

    Hi,
    refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
    http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
    and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
    Thanks,
    Chandra

  • Serach help in Select-option in WD ABAP

    Hi Folks,
    I am using WDR_SELECT_OPTIONS reusable component in my Component.  I want to attach customized search help particular fild while creating select-option using
    wd_this->m_handler->add_selection_field(
                 i_id        = 'IWERK'
                 it_result   = lt_range_table
                 i_read_only = read_only ).
    Can anyone explian how can I attach search help here.
    Regards,
    Vishal.

    Hi Vishal,
    If its a search help, use the following code:
    lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_PLANETYE' ).
    wd_this->m_handler->add_selection_field(
    i_id = 'S_PLANETYE'
    it_result = lt_range_table
    i_read_only = read_only
    I_VALUE_HELP_TYPE = 'SEARCHHELP'
    i_value_help_id = 'Z_SAPLANE' ).
    In this example, 'Z_SAPLANE' is the dictionary search help.
    This will solve your problem
    For further details, goto interface IF_WD_VALUE_HELP_HANDLER to get a list of values you can supply to parameter I_VALUE_HELP_TYPE.
    This is similar to what you do with a context, similar to the options you get in the dropdown for Input Help property.
    Regards,
    Chitrali

  • Using select-option in webdynpro for ABAP where I have two separate pages

    Hi Experts,
             I have a requirement where I have two pages. The first page is a selection screen that contains 2 select-options to select carrid and connid. There is also a button 'Submit'. The second page contains a ALV grid output based on the selection screen criteria.
    Second page is opened on the clicking the 'Submit' button in first page.
    How to design a ABAP webdynpro component for this scenario?
    How to pass select-option values to the next page?
    What nodes/attributes should I have to create in component controller?
    Please provide me the step by step info.
    I have seen the weblog by Rich Heilman at /people/rich.heilman2/blog/2005/12/20/using-select-options-in-a-web-dynproabap-application
    But it has only one page. So I am not able to recreate my scenario based on this.
    Thanks
    Gopal

    Hi Experts,
             I have a requirement where I have two pages. The first page is a selection screen that contains 2 select-options to select carrid and connid. There is also a button 'Submit'. The second page contains a ALV grid output based on the selection screen criteria.
    Second page is opened on the clicking the 'Submit' button in first page.
    How to design a ABAP webdynpro component for this scenario?
    How to pass select-option values to the next page?
    What nodes/attributes should I have to create in component controller?
    Please provide me the step by step info.
    I have seen the weblog by Rich Heilman at /people/rich.heilman2/blog/2005/12/20/using-select-options-in-a-web-dynproabap-application
    But it has only one page. So I am not able to recreate my scenario based on this.
    Thanks
    Gopal

  • OVS Help in Select Options-Text to be Shown and Code to be captured

    Hello Experts,
    I am using Select options in web dynpro abap.
    On a particular View container i have added a selection field using ADD_SELECTION_FIELD which has an OVS help to it.
    The selection field is of type CODE.
    And on click of a button i am reading the select option fields using GET_RANGE_TABLE_OF_SEL_FIELD and assigining this to a
    field symbol which inturn is being set to an attribute.
    My requirement is to show the TEXT to the user and send the CODE to the method which is called
    when the button is clicked and a table is populated.
    Normally we can keep two attributes one for TEXT and the other for CODE but for Select options i am not very sure how this can be achieved.
    Because in select options we are reading the values present on the select option field and there may be multiple values.
    Please guide me through this.
    Thanks in Advance,
    Shravan

    Hello Shravan,
    This can be easily achieved if you convert the selection field to dropdown.
    Create a valueset containing the list of valid values and then pass this to the ADD_SELECTION_FIELD method
    "Creating valueset
    DATA lt_valueset TYPE wdy_key_value_table.
    DATA ls_valueset LIKE LINE OF lt_valueset.
      ls_valueset-key = 'EN'.
      ls_valueset-value = 'English'.
      APPEND ls_valueset TO lt_valueset.
    "Creating selection field as Dropdown
    lr_helper->add_selection_field( i_id = <ID>
                                                       it_result = lt_range
                                                       i_as_dropdown = abap_true
                                                      it_value_set = lt_valueset ).
    BR, Saravanan

  • Search help on select optionbased on other select ooption entered

    hi,
    I need to know search help for selection screen based on value entered in another select options
    SELECT-OPTIONS : s_bukrs FOR bkpf-bukrs OBLIGATORY,
                     s_belnr FOR bkpf-belnr,
                     s_gjahr FOR bkpf-gjahr OBLIGATORY,
                     s_budat FOR bkpf-budat OBLIGATORY,
                     s_akont FOR lfb1-akont,
                     s_saknr FOR bseg-saknr.    """"""""""
    *PARAMETERS : p_akont type lfb1-akont.
    here i need to get the vaues of s_akont based on values entered in s_bukrs,
    In event at selection screeen for s_akont i am writing
        SELECT a~bukrs
              a~saknr
              a~mitkz
              b~txt50
                     FROM skb1 AS a
                     INNER JOIN skat AS b
                     ON asaknr = bsaknr
                      INTO CORRESPONDING FIELDS OF TABLE lt_skb1
                      WHERE bukrs IN s_bukrs
                        AND mitkz = 'K'
                        AND b~spras = 'EN'.
    but not getting value of s_bukrs at this point of execution. I requir the fiels in select statement in F4 of s_akont.
    what are the function modules to call and what is the way to do??
    thanks..

    Check the below solution for your issue - The FM "'RS_SELECTIONSCREEN_READ" is used to get the S_BUKRS values. Even though the FM returns single values of the Select options ( Low & High ) it fits the requirement.As the trick part is...If user enters multiple values or even enters sign for select options, S_BUKRS itself will have the value. That's why we have If else S_BUKRS[] is initial and R_BUKRS. Let me know if you have any issues with the solution provided.
    TABLES: bkpf, lfb1.
    DATA lt_fieldvalues TYPE STANDARD TABLE OF rsselread.
    DATA ls_fieldvalue TYPE rsselread.
    DATA r_bukrs TYPE RANGE OF bkpf-bukrs.
    DATA ls_bukrs LIKE LINE OF r_bukrs.
    SELECT-OPTIONS: s_bukrs FOR bkpf-bukrs,
                    s_akont FOR lfb1-akont.
    INITIALIZATION.
      ls_fieldvalue-name = 'S_BUKRS'.
      ls_fieldvalue-kind = 'S'.
      ls_fieldvalue-position = 'LOW'.
      APPEND ls_fieldvalue TO lt_fieldvalues.
      ls_fieldvalue-name = 'S_BUKRS'.
      ls_fieldvalue-kind = 'S'.
      ls_fieldvalue-position = 'HIGH'.
      APPEND ls_fieldvalue TO lt_fieldvalues.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_akont-low.
      refresh r_bukrs.
      clear ls_bukrs.
      IF s_bukrs[] IS INITIAL.
        CALL FUNCTION 'RS_SELECTIONSCREEN_READ'
          EXPORTING
            program     = sy-repid
            dynnr       = '1000'
          TABLES
            fieldvalues = lt_fieldvalues.
        IF NOT lt_fieldvalues[] IS INITIAL.
          ls_bukrs-sign = 'I'.
          READ TABLE lt_fieldvalues INTO ls_fieldvalue WITH KEY position = 'LOW'.
          IF sy-subrc EQ 0.
            ls_bukrs-low  = ls_fieldvalue-fieldvalue.
          ENDIF.
          READ TABLE lt_fieldvalues INTO ls_fieldvalue WITH KEY position = 'HIGH'.
          IF sy-subrc EQ 0.
            ls_bukrs-high = ls_fieldvalue-fieldvalue.
          ENDIF.
          IF ls_bukrs-high IS NOT INITIAL.
            ls_bukrs-option = 'BT'.
          ELSE.
            ls_bukrs-option = 'EQ'.
          ENDIF.
          if ls_bukrs-low is not initial or ls_bukrs-high is not initial.
            APPEND ls_bukrs TO r_bukrs.
          endif.
        ENDIF.
      ELSE.
        r_bukrs[] = s_bukrs[].
      ENDIF.
      SELECT a~bukrs a~saknr a~mitkz b~txt50 FROM skb1 AS a
             INNER JOIN skat AS b
             ON a~saknr = b~saknr
             INTO CORRESPONDING FIELDS OF TABLE lt_skb1
             WHERE bukrs IN r_bukrs         " Changed to r_burks
             AND mitkz = 'K'
             AND b~spras = 'EN'.

Maybe you are looking for