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.

Similar Messages

  • 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

  • HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.

    HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.
    how can we add range selection in screen painter.
    regards.

    Hi,
       create two input fields and a push button like select option in the screeen.
    Try checking this logic
    <b>Program:</b>
    <b>ranges</b> ra_matnr for mara-matnr.
    <b>Layout field name declaration:</b>
    Give the low field name as ra_range-low
      and high field name as ra_range-high.
    extension for pushbutton.--exten(function code)
    next -- function code for the enter key.
    PBO
    module status_3000.
    PAI
    module user_command_3000.
    <b>module user_command_3000.</b>
    if sy-ucomm = exten.
      call screen 400. (screen which shows extension values can be kept).
    elseif sy-ucomm = Next.
    if ra_matnr-low is not initial.
        ra_matnr-SIGN = 'I'.
        ra_matnr-OPTION = 'EQ'.
        APPEND ra_matnr.
        clear ra_matnr.
    endif.
    if ra_matnr-high is not initial.
        ra_matnr-SIGN = 'I'.
        ra_matnr-OPTION = 'EQ'.
        APPEND ra_matnr.
        clear ra_matnr.
    endif.
    endif.
    endmodule.
    module status_3000.
    read table ra_matnr  index 1 into ra_matnr .
    set pf-status '3000'.
    set title '3000'.
    endmodule
    Br,
    Laxmi.

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

  • Is possible in a dialog screen attach a field functional like select-option

    hi,
       Is it possible - in a dialog screen - to attach a field that has functionality like Select-options fields?
    And if so - how?
    and information about complex_selections_dialog

    Hi,
    Look at the below links
    module pool programming " to add selection-option on screen"
    module pool programming " to add selection-option on screen"
    Regards
    Sudheer

  • BAPI at INPUT give range like SELECT-OPTIONS

    hi all
         i don't know weather it right forum for BAPI , but writing under this .
         my requirement is like , as we give range in SELECT-OPTIONS,
    like wise i want to give range in BAPI at INPUT level .
    i.e.  say i want to get details of Vendors , i will write a BAPI and i will give VENDOR code range to get information of all vendor with in that range.
    please guide me in this .

    Hi!
    You could use this bapi fm: BAPI_VENDOR_GETDETAIL
    I could imagine it like this:
    1. You have to create an FM, with the RA_LIFNR range.
    2.
    SELECT * FROM lfa1 INTO TABLE gt_lfa1
    WHERE lifnr IN ra_lifnr.
    LOOP AT gt_lfa1 INTO gs_lfa1.
    CALL FUNCTION 'BAPI_VENDOR_GETDETAIL'
    with the parameters
    collect data into an output table
    ENDLOOP.
    3. Give back the output table to the caller program
    Regards
    Tamá

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

  • Batch Input and Select Option

    Hello,
    Please, i have one issue.
    I want to do one Batch Input for one standard transaction. In this transaction, exist one select-option and i fill more values.
    I generate the SDHB but i have problema with the select-option. How i can simulate enter value in the Select option by code?
    Thank you.

    Hi SALHI AMAL,
    We can do this. But its a lengthy process.
    You have to record by giving multiple selection values and do some changes in that code.
    The number of rows in that 'Multiple Selection' dialog is 8 and it is constant, i.e. it won't vary with monitor or screen size.
    In my testing,
      perform bdc_dynpro      using 'SAPLALDB' '3000'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=ACPT'.
    This is the code to just to fill values in 'SELECT SINGLE VALUES' tab.
    If i want to fill more than 8 values, the following code will do that,
          perform bdc_dynpro      using 'SAPLALDB' '3000'.
          perform bdc_field       using 'BDC_OKCODE'
                                        '=P+'.
    In this, you have to determine, how many times, we have to press 'PAGE DOWN'.
    This all regards one tab in that dialog. Still there are 3 dialogs.
    Regards,
    R.Nagarajan.

  • Selecting user input from Select option into smart form

    Hi,
    when i use parameter then i wil show company code in smart-form output
    but when i use  select option then its throwing error parameter specified here is different
    what should i do in this case i want to design a big select option screen for taking user input
    REPORT  ZMM.
    TABLES BSEG.
    DATA : V_FORMNAME TYPE TDSFNAME VALUE 'ZPUR_REG',
           V_FMNAME TYPE RS38L_FNAM.
    *PARAMETERS SO_BUKRS TYPE BUKRS.
    SELECT-OPTIONS : SO_BUKRS FOR BSEG-BUKRS.
    DATA : Z_CONTROL TYPE SSFCTRLOP,      "Smart Forms: Control structure
            Z_OPTIONS TYPE SSFCOMPOP.      "SAP Smart Forms: Smart Composer (transfer) options.
    MOVE 'X' TO : Z_control-no_dialog,        "SAP Smart Forms: General Indicator
                   Z_options-tdnewid,          "New Spool Request (Print Parameters)
                   z_control-PREVIEW.         "Print preview
    MOVE 'LP01' TO Z_options-tddest.         "Spool: Output device
    MOVE space  TO Z_options-tdimmed.        "Print Immediately (Print Parameters).
    MOVE 'PRINTER' TO Z_control-device.      "Output device
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME = V_FORMNAME
      IMPORTING
        FM_NAME  = V_FMNAME.
    CALL FUNCTION V_FMNAME
      EXPORTING
        CONTROL_PARAMETERS = Z_CONTROL
        OUTPUT_OPTIONS     = Z_OPTIONS
        USER_SETTINGS      = ''
        BUKRS              = SO_BUKRS.
    pls help me in this regards.
    ketan..

    hi
    thnx for your reply
    can u pls elaborate in my code
    now i changed code   BUKRS    = SO_BUKRS-low.
    either i can give low or high but how to select from range
    REPORT  ZMM.
    TABLES BSEG.
    DATA : V_FORMNAME TYPE TDSFNAME VALUE 'ZPUR_REG',
           V_FMNAME TYPE RS38L_FNAM.
    *PARAMETERS SO_BUKRS TYPE BUKRS.
    SELECT-OPTIONS : SO_BUKRS FOR BSEG-BUKRS.
    DATA : Z_CONTROL TYPE SSFCTRLOP,      "Smart Forms: Control structure
            Z_OPTIONS TYPE SSFCOMPOP.      "SAP Smart Forms: Smart Composer (transfer) options.
    MOVE 'X' TO : Z_control-no_dialog,        "SAP Smart Forms: General Indicator
                   Z_options-tdnewid,          "New Spool Request (Print Parameters)
                   z_control-PREVIEW.         "Print preview
    MOVE 'LP01' TO Z_options-tddest.         "Spool: Output device
    MOVE space  TO Z_options-tdimmed.        "Print Immediately (Print Parameters).
    MOVE 'PRINTER' TO Z_control-device.      "Output device
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME = V_FORMNAME
      IMPORTING
        FM_NAME  = V_FMNAME.
    CALL FUNCTION V_FMNAME
      EXPORTING
        CONTROL_PARAMETERS = Z_CONTROL
        OUTPUT_OPTIONS     = Z_OPTIONS
        USER_SETTINGS      = ''
        BUKRS              = SO_BUKRS-low.
    ketan..

  • Create Popup like Select options

    Hi at all,
    I want to create a button that calls a popup like in the select options, without using the select options component.
    In Standard ABAP there is a function called "COMPLEX_SELECTIONS_DIALOG" who creates and call the dialog.
    Does anybody know an adaption for this function in Web Dynpro for ABAP?
    Thx a lot to all.
    Dirk

    Hello Dirk,
    We have a new enhacement in code wizord by which you could replicate a screen into a webdynpro view.
    So the framework would choose different ui elements to create similar screen,
    Regards
    Anurag Chopra

  • Parameters will it work like Select-Option is there any chance

    Hi Every One
    I am using Parameters to do selection .but in one case i need to get  some data for the whole month .i have the values in 2 different variables .(If we use select-option then we can use sign,option,low,high .).but how to do here . Any idea is please do let me know.
    Sravya

    Hi,
    <li>Define range table.
       DATA:r_data TYPE RANGE OF datum,
            w_data LIKE LINE OF r_data.
    <li>Build range table
       w_data-low  = parameter1.
       w_data-high = parameter2.
       w_data-sign  = 'I'.
       w_data-option  = 'BT'.
       APPEND w_data TO r_data.
       CLEAR  w_data.
    <li>Use that in SELECT statement.
    SELECT * FROM <db_tab> INTO TABLE <it_tab> WHERE <date_field> IN r_data.
    Thanks
    venkat.O

  • Selection Screen - User input to select option only through f4 help,

    Hi..
    In case of selection screen,  I need selection screen such a that user input must be through search help not manual entry is allowed/ possible

    TYPES:BEGIN OF ty,
          field1 TYPE char01,
          END OF ty.
    DATA:it TYPE TABLE OF ty,
         wa TYPE ty.
    data:v_var type c.
    select-options:so for v_var.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'SO-LOW'  .
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
        IF screen-name = 'SO-HIGH'  .
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so-low.
      CLEAR it[].
      wa-field1 = 'A'.
      APPEND wa TO it.
      wa-field1 = 'B'.
      APPEND wa TO it.
      CLEAR wa.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'FIELD1'
          dynpprog    = sy-cprog
          dynpnr      = sy-dynnr
          dynprofield = 'SO-LOW'
          value_org   = 'S'
          display     = 'F' "F = Force
        TABLES
          value_tab   = it[].
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so-high.
      CLEAR it[].
      wa-field1 = 'A'.
      APPEND wa TO it.
      wa-field1 = 'B'.
      APPEND wa TO it.
      CLEAR wa.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'FIELD1'
          dynpprog    = sy-cprog
          dynpnr      = sy-dynnr
          dynprofield = 'SO-HIGH'
          value_org   = 'S'
          display     = 'F' "F = Force
        TABLES
          value_tab   = it[].

  • Import parameter shall be same type like select option

    Hey guys,
    how can i make it possible that my importparameter of my FB has the type of the select option field of my program??
    I need something like a tabletype or a list of values.
    Thx

    Hi,
    <li>Define like below
    DATA: s_matnr TYPE RANGE OF mara-matnr.
    or
    TABLES: mara.
    RANGES: s_matnr FOR mara-matnr.
    Thanks
    Venkat.O

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

  • Maximum allowable input for select-options

    Hi All,
        Can we enter any number of values in select-options on the selection screen. What is the limit on the number of values that can be given for select options.
    For example if the limit for a select-options field is 100000 and if i want to give  999999 values as input on the selection screen, how am I supposed to handle this.
    Thanks in advance,
    Madhu

    Hi Madhu,
    see the sample code below .. i hope it this will help you..
    SELECT-OPTIONS: s_order FOR vbak-vbeln .   "Default the value range 100000 to 9999999 appears on the screen
    INITIALIZATION.
    * Loading default values to screen input for Sales Order field
      MOVE 'I'          TO s_order-sign.
      MOVE 'BT'         TO s_order-option.
      MOVE '1000000'   TO s_order-low.
      MOVE '9999999'   TO s_order-high.
      APPEND s_order.
    * Screen field Validation
    AT SELECTION-SCREEN ON s_order.
    if s_order-low NE 100000.
    message 'Sales order Low value should be 100000' type 'E'.
    endif.
    if s_order-High NE 999999.
    message 'Sales order High value should be 999999' type 'E'.
    endif.
    Regards,
    Prabhudas

Maybe you are looking for

  • Incoming filling up!!!

    Hello, I have the folder C:\Program Files (x86)\Microsoft Configuration Manager\CCM\Incoming which is filling up for several days now about 350,000 items in a week... already 7,000 items for the 3 past hours (after cleanup)... I checked the dataldr.l

  • Old Toad!  I'm Missing the expected DPI lines in iPhoto 6 .plist File

    Old Toad: Using Pref Setter to examine my iPhoto 6's com.apple.iPhoto.plist, I have discovered something very strange. Some of the lines you say we should edit are outright missing from the file. See below for lines present and not present in my plis

  • Aspire ZS600 Graphics Card Installation

    I am a noob here but I wanted to ask about a specific detail with this computer that I have(the Aspire ZS600) and the questions apply to other AIOs that I have that are similar (Gateway AIOs - 1 ZX6980, and 1 ZX 6970). When I first discovered that I

  • When in call, if I switch to speaker they cant hear me

    Hello, When I am in a call if I switch to speaker they cant hear me. Mic is working 100% in all other applications. Also this morning I have done one reset of all the settings. Any ideas?/

  • MDI FORM

    Hi, In the beginning I'm Sorry as i didnt know where is the right place in the forum to post this thread... I developed an application using forms 6i, I wanted to know if there is a way to detect when the user clicks on close control of the MDI windo