Multiple records in select options-Urgent help

Hi all,
   Iam using the following function module to get the set values. I need to pass multiple values in select options(ie) select options with no intervals. to the function module parameter Shortname. I have declared the variable which has to be passed as
     S_SETID   FOR  SETHEADER-SETNAME NO INTERVALS.
  The problem is when i use S_SETID-LOW the value is passed to the function module , but if multiple data is entered in the input then how to pass all the data to the function module. Please Help.

Hi,
Declare the Range in the Function module , then you can pass that Select-option fields to that ranges and use that in the Function module.
Or you can use the RANGE_C8 for the Select-optios in the Function module, you can declare the Internal table with the type of RANGE_C8 in the tables parameter, then pass the Select-option to this Internal table
If you want more length field then search based on RANGE_* then you will get all the Range Structure.
Regards
Sudheer

Similar Messages

  • Multiple records with select option

    i have to use select option in selection screen, which wl take the multiple values but that select option wont act as a range, the select option is a session name  from sm35, the table from where data is retrieved is APQI, i have used  a parameter before using select option ,like:
    selection-screen begin of line.
    parameters: P_grpid like apqi-groupid.
    select-options: s_grpid like apqi-groupid.
    selection-screen end of line.
    AT-SELECTION SCREEN ON VALUE REQUEST FOR p-GRPID. " previous situation
    {the code starts
    FM F4 selection is called}
    AT-SELECTION SCREEN ON VALUE REQUEST FOR S_GRPID-low. " CURRENT situation
    FM F4 selection is called}
    now when i give data in slection screen for s_grpid-low then it works as a parametr, but it doesnt take multiple values at s_grpid when i have alos mentioned the same for s_grpid-high.
    Please tell me how to achive multiple records with select option, or u can also send a sample code if you have..
    Thanks
    Swarnali

    Hello Swarnali,
    You need to fill internal table of select-option once you got into the event AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
    so sudo code will be:
    AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
    Select data from table.
       so_carr-LOW = value
       append so_carr.
    You can also use NO INTERVAL to suppress the so_carr-HIGH value on selection screen.
    Thanks,
    Augustin.

  • Can i have html code for date select options (SEARCH HELP)

    Hi frinds,
    I have a BSP Page with input as date.
    Can i have html code for date select options (SEARCH HELP)
    Moosa

    Hi
    Please find the sample code below.
    FROM DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X" <- Search help
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"
                            value     = "<%= w_FROMDATE %>" />
    TO DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X"
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"                      
    value     = "<%= w_TODATE %>" />
    Thanks
    kalyan

  • Can i get multiple records if selection screen is 900 using PROVIDE

    Hi All,
    Iam using following statement for fetching MULTIPLE records from infotype 0008. In Attributes if i declare LDB as pnp and selection screen as 900, then iam not getting any records.
    Instead of th selection screen 900 is empty. then records will getting properly.
    How can i get multiple records if selection screen is 900?
      PROVIDE * FROM p0008
                    between pn-begda and pn-endda.

    Hi Ranjith
    You can use
    PYBEGDA and PYENDDA instead of PN-BEGDA AND PN-ENDDA.
    Regards
    Muneer.VK

  • Select-Option F4 Help Multiple Selection

    Hi
    I have wriiten the code to provide custom F4 help for a field using F4IF_INT_TABLE_VALUE_REQUEST' and then updating the values back to screen using Function Module DYNP_VALUES_UPDATE.
    It is working fine when the F4 is used on the main screen, But when i click on the multiple selection button and press F4, i do get the F4 values list, but selected value is not getting passed back to the field.
    I guess the issue is the field name changes in the multiple section option, Please suggest how can i fix it.
    *&      Form  update_date_bATCH
          Updating the sel_screen with the retrieved values
    FORM update_date_batch USING pt_filename pt_fieldvalue.
    Rundate
      st_dyn_fields-fieldname  = pt_filename.
      st_dyn_fields-fieldvalue = pt_fieldvalue.
      APPEND st_dyn_fields TO it_dyn_fields.
    Function Module to update the screen with the values retrieved
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname               = sy-repid
          dynumb               = sy-dynnr
        TABLES
          dynpfields           = it_dyn_fields
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          OTHERS               = 8.
      IF sy-subrc <> 0.
        MESSAGE i006(zffi).
      ENDIF.
    ENDFORM.                    " update_new_date_time

    You have added the F4 to a select-option for areport and would like to get the F4 values back into the select-option, when the user selects multiple values?
    If this is the case you have to fill the internal table behind the select-option and this will have to based on waht the user selected.
    The first value will go on to the screen the way you have done it.
    If this is what you want to do?
    Rene

  • Passing multiple values to select-option low by submit at one go from zpro.

    Hi all,
    I have a requirement pass descrete multiple values form my z-program to to select-option low on selction screen of standard SAP program using SUBMIT statment at one go.At the same time select-option high will be empty.I will be thankful if anybody can help me in this regard.
    Sandeep.

    Hi Check this link...on submitting programs
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db9d7535c111d1829f0000e829fbfe/frameset.htm
    here is the code . we are calling the same program....you can call any other program as well.
    REPORT  demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS      paramet(14) TYPE c.
    SELECT-OPTIONS  selecto FOR number.
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
          rspar TYPE TABLE OF rsparams,
          wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
         / 'Selection 2'.
    AT LINE-SELECTION.
      CASE sy-lilli.
        WHEN 4.
          seltab-sign = 'I'. seltab-option = 'BT'.
          seltab-low  = 1.   seltab-high   = 5.
          APPEND seltab.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH paramet eq 'Selection 1'
                          WITH selecto IN seltab
                          WITH selecto ne 3
                          AND RETURN.
        WHEN 5.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
          wa_rspar-low  = 14.  wa_rspar-high = 17.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
          wa_rspar-low  = 'Selection 2'.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
          wa_rspar-low  = 10.
          APPEND wa_rspar TO rspar.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH SELECTION-TABLE rspar
                          AND RETURN.
      ENDCASE.

  • How to pass Multiple entries of select-options to FM

    Hi friends,
            i need to pass values date_from and date_to of FM BAPI_AR_ACC_GETSTATEMENT in my report. i have select-option in the selection screen for the posting date i.e, s_pstgdate-low = date_from and  s_pstgdate-high = date_to.
        My question is how to pass values if the user enters multiple entries in s_pstgdate (selection-screen).
        Hope i'm clear with my question.
        Thanks in anticipation.
    Regards
    Poorna

    Hi,
    This is not possible.
    You may wish to call it multiple times with each row of your select-option, and consolidate the returned records.
    Better is to restrict the select-option with no-extension.
    cheers,

  • Select-Option F4 Help in POV event Module pool?

    Hai Experts,
                           I have select options in one of my module pool screen for that i want F4 Help for that select option in
    POV event . i already the write the F4 help for input field . in same way im createing the F4 help for select option it gives the
    error like ' S_kunnr is not maintain in Screen' please help on this.
    Thanks,
    Adv.

    in same way im createing the F4 help for select option it gives the
    > error like ' S_kunnr is not maintain in Screen' please help on this.
    Hi.,
    I think You used Function Module for Manual Input Help., From Your It is clear that You used S_kunnr in Return Field,
    You have to use S_kunnr-LOW  for Input in Low field and S_kunnr-HIGH for Input in High Field
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Select-Options search help with where

    Hi Experts,
    I need to have a search help in my selection screen with a Where clause.
    I've tried to search it but I cant find answers.
    The logic is like this, wherein the search help for my selection screen should just have the value PM001 and ZMIS.
    SELECT-OPTIONS stsma estat tj30 FOR  s_eqpstt FOR tj30t-estat WHERE stsma = 'PM001' and stsma = ZMIS.
    Thanks

    Sorry, a little more detail... create a view, of search help type, with the columns you present and restrict those two values. Then create the search help with that view. Then add the search help to the select-option.
    Regards,
    Edgar

  • WDA select-options value help configuration

    Hello,
    I would like to configure the value help in the select-options component in WebDynpro ABAP. I used the parameter I_VALUE_HELP_TYPE of the method ADD_SELECTION_FIELD, but I didn't know how to pass a correct value for this parameter. Could someone give me an example with coding? That would be great! Thanks in advance.
    Regards,
    Georg

    For those of you who, like me, get a screen full of OTR keys on the buttons and tabs, the answer is on the first tab, 6th button.  Note that it is based on SPFLI, so the expected linkage between CARRID and CONNID does not happen.
    The code is in MAIN_VIEW method ONACTIONON_CRS_FLD_F4_CASES.
    The essence of it is:
        wd_this->m_handler->add_selection_field(
            i_id                         = CARRID
            it_result                    = lt_range_table
            i_value_help_structure       = 'SFLIGHT'
            i_value_help_structure_field = "CARRID  ).
        wd_this->m_handler->add_selection_field(
            i_id                         = CONNID
            it_result                    = lt_range_table
            i_value_help_structure       = 'SFLIGHT'
            i_value_help_structure_field = "CONNID  ).
    The result is that you select the CARRID, and that restricts the CONNIDs.
    I have used SFLIGHT because it will give linked search helps for CARRID and CONNID.  It works with parameters too, but remember GET_PARAMETER_FIELD is not currently implemented (it exists, but contains no code, so your program will seem to work, but it won't) , so use GET_PARAMETER_FIELDS which does work.

  • Multiple inputs like select-option

    Hi everybody,
    Please let me know if there exists an option in BSP for multiple inputs in inputfield, like we have in select-option in R/3.
    Thanks

    Hello Swarnali,
    You need to fill internal table of select-option once you got into the event AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
    so sudo code will be:
    AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
    Select data from table.
       so_carr-LOW = value
       append so_carr.
    You can also use NO INTERVAL to suppress the so_carr-HIGH value on selection screen.
    Thanks,
    Augustin.

  • SELECT-OPTIONS -Urgent

    Hi all,
    I am new to ABAP  ,while doing a report i have been given one task in which i have to take SALES DOCUMENT NUMBER range from the user through the selection screen through select options, the requirement is that while going for the F4 help in the select options only that Sales Document Number Should come which starts from 7or 7*.
    Please do help me out in solving this issue.
    Thanks in Advance.
    syed.

    Hi Syed,
    you can do like this:
    Use this events:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_abc-low.
       PERFORM fm_f4.
    FORM fm_f4.
    --> here u called this function F4IF_INT_TABLE_VALUE_REQUEST
    --> put your own query for the F4 value (in you req sales doc begin with 7) and pass to the value_tab table.
    ENDFORM.
    Hope this help, cheers.
    Victor.

  • Max no of records in select-options

    Hi,
    I have a select option for MATNR.
    I want to perform a validation where in the values given for selection should not exceed 500 material Numbers.
    How can I do that?
    Regards,
    Vinod.

    Hi vinod,
    Try this code yaar.
    data:loop like I default '0'.
    loop at itab occurs 500.
    select matnr from table mara.
    loop = loop + 1.
    sy-tabix.
    endloop.
    if loop > 500.
    Message 'e000'. (This message should be given in the message area and u have to include the msg area name inside the report.)
    endif.
    This should solve ur problem.
    Regards,
    Nagarajan.

  • Multiple record insert thru PROCEDURE - Urgent

    All,
    My requirement is, I have to invoke a procedure which accepts two input and 1 out variable. The operation of the procedure is to insert the data to two tables(head_tab and line_tab-accepts multiple record). I used %rowtype for the two inputs i.e procedure proc(head_var head_tab%rowtype, line_var line_tab%rowtype, out_var out number). The incoming doc comes from 3rd party application which sends a header record and multiple line record for the same header.
    I used the transformation activity, to insert line record I used for-each loop for multiple record. But %rowtype being a scalar data type, it doesn't accept array of record to it! I'm stuck here. Can we achieve this scenario with using of procedure? or should I configure DBAdapter to insert the data directly to the table rather the procedure does this? If we can achieve it thru procedure, how can I go about?
    Thanks,
    Sen

    Hi,
    I believe you should change the signature of the procedure.
    I tried below code for my proc to send multiple records without use of for loop.
    Type line_var_rec IS RECORD(
    Var1;
    var2;
    Type line_var_tab IS TABLE OF line_var_rec INDEX BY BINARY INTEGER;
    Type head_var_rec IS RECORD(
    var3;
    var4;
    line_var line_var_tab ;
    Type head_var_tab IS TABLE OF head_var_rec INDEX BY BINARY INTEGER;
    proc(head_var IN head_var_tab, out_var out number);
    With the above code you can insert multiple header records each having multiple line records.
    Pls let me know if u have any questions.

  • How to select multiple data without select options?

    Dear experts,
    I have a rquirement that i have a one selection screen and in that selection screen on date field is there which is parameter type. we using this parameter date field in the program for selecting data..after that i am using the logic to multiple value..now my requirement is how to select the data for multiple value..
    PARAMETERS :  SO_DATE TYPE SY-DATUM OBLIGATORY.
    CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
       EXPORTING
         DATE            = so_date
         DAYS            = 1
         MONTHS          = 0
         SIGNUM          = '-'
         YEARS           = 0
       IMPORTING
         CALC_DATE       = so_date
          l_cm_first+0(6) = so_date+0(6). " month & year
          l_cm_first+6(2) = '01'. " date
          l_cm_end = so_date.
    my requirement is that how to use l_cm_first and  l_cm_end multiple selection in select query ??
    eg- i want to fetch the data from 1/8/2014 to 11/08/2014 using this field l_cm_first and  l_cm_end

        l_cm_first+0(6) = so_date+0(6). " month & year
          l_cm_first+6(2) = '01'. " date
          l_cm_end = so_date.
    after executing this line l_cm_first = 1/8/2014 and  l_cm_end = 11/08/2014
    now i have to select in this range how to do it?

Maybe you are looking for

  • Use of KEY-OTHERS trigger

    Hi, I have a form that has numerous triggers defined at the form level. The form has a block that appears in a dialog window. The block should only have a small subset of triggers that are defined at the form level. I went ahead and created the key t

  • Apple Templates and shapes, etc. are not showing up for me to select??

    i did a search and came up empty- i am using FCS, and have done all the updates, including the Proapps one, in the last 6mo.s, and have been religious about repairing permissions. all the files for the Apple templates, shapes, buttons, etc. are in th

  • Swapping out iBook G4 video card?

    Is it possible to swap out the video card in my 1.33GHz iBook G4 14.1"? If so, what sort of video card do I need? Thanks in advance!

  • Transfer ABAP Coding from one system to other.

    Hi, I have a ABAP package in a SAP system. Is there a easy way how I can transfer it to a other system in a completely different landscape. Thanks for your help. regards, Mario

  • RFCSDK Receive IDOC from HPUX

    I have created a rfcserver application that handles "IDOC_INBOUND_ASYNCHRONOUS". When connected to SAP on windows IDOC's received are OK. From HPUX the first 8 bytes are swapped like "04CD_IDE" instead of "EDI_DC40". Have anybody seen this before ? H