Multiple Selection For Selections screen field

Hi Friends ,
Can any body tell me how to create multiple selection for a field in selection screen and how to capture all those values of that fields in program for database selction. Suppose i am having document number EBELN from EKKO exists in selectio screen . how to create multiple selection for that and how to use all those values given to EBELN to get data from EKKO.
Kumar.

hi,
select-options is one type of parameters where u can give multiple values in ranges or single as a input. when u use select-options then system will create a selection screen for u and u give multiple values as
ex:
select-options: s_ebeln for ekko-ebeln.
internally system creates a internal for s_ebeln which has for attributes
1. low --- starting value if  range is used
  2. high -
ending value
3. sign -
operator used for validating field
4. option -
to exclude given range of values or single value or to include.
for this u can assign default values in INITIALIZATION event as
INITIALIZATION.
s_ebeln -low = '1'.
s_ebeln- high = '100-100'.
s_ebeln-sign = 'BT'.
s_ebeln-option = 'I' // include
                         'E' // exclude.
if helpful reward some points.
with regards,
Suresh Aluri.

Similar Messages

  • Problem with Save functionality for a Screen - Field

    Hi Experts,
    I  have included a custom field with list box option to an infotype. The new filed  displays the values based on the values selected in the standard field which has a list box option.
    Now if we enter the transaction in change mode and change the standard field value without pressing ENTER and click SAVE button, it gets saved with an improper value in the custom field. The reason being the custom field values with drop down list is retreived only after we press enter (POV is triggered) after selecting a standard field.
    Options tried:
    I have included an error message (in PAI)  to stop the values being saved, but the screen beomes disabled.
    I have done my validation only on the custom field as there is no other possibility to validate any other fields on the screen (all are standard). Here the error message pops up and the field is in the enable mode, but it does not retrieve the possible values for the custom field based on my earlier selection for the standard field.( Because as POV does not get triggered in this case)
    Ex.  Std field value = USA
           Custom field   =  United States of America
    I changed the value in Standard field to = UK and click SAVE - It get saved
    Now how to stop it from SAVING and let it know that there is an error in the custom field and it needs to select the right value from the list ie - United Kingdom.
    Lakshmi

    Perhaps a solution is to save the code value, not the text for the code, and only display the text.  In this way, the database would have UK and when you re-entered the screen, a PBO module could obtain the text for UK for display.
    Or, if you must store the text value instead of the code (seems redundant...you can look up the text anytime), an enhancement to the save to database logic to obtain the correct value from the current value of the code and save that to the database....

  • How to get the screen groups for the screen field which are on selectionscn

    hiiii Experts,
                   How to know the screen groups for the screen field which are on selection screen.
    Thanks and regards,
    kasyap

         NAME                                             PNPABKRS-LOW
            GROUP1                                             SEL
            GROUP2                                             DBS
            GROUP3                                             LOW
            GROUP4                                             180
    to get this use this:
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        if screen-name CS 'ABKRS'.
          BREAK-POINT.
        endif.
      ENDLOOP.

  • Passing multiple values for a single field in URL to call sap Transaction

    Hi All,
    I need to pass multiple values for a single field to SAP transaction .
    means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
    Let me know pls.
    Regards,
    Sirisha.R.S.

    Hi Satyajit,
    I need to call a transaction with multiple values which gives me the report based on those values.
    So I need to pass multiple values for a single parameter.
    I hope u got it.
    Regards,
    Sirisha.R.S.

  • PDF as default selection for Select printing cotrol (for Web)

    Hi
    Can someone point me to righ direction? What we are trying to do is, in Infoview, set PDF as default selection for "Select printing Control (for Web)", so that each user does not have to do this in preferences in infoview.
    Is it possible to do so? If yes, how?
    Thank you
    Regards
    IMS

    Take a look for a .vbs sample that synchs the ADMINISTRATOR preferences to all users on the BOE platform.
    You can schedule this as a PROGRAM OBJECT in InfoView so that it runs on a regular schedule to apply the change to new users.

  • Check multiple checkboxes for selected

    I want to see if I can reduce my code more. I have five check
    boxes on the screen and when they are all checked, I want to call a
    function. I don't want to have a long if statement because I will
    re-use this and would prefer to have as streamlined as possible.
    Here is my code now. Thanks.
    var checkboxListener:Object = new Object();
    checkboxListener.click = function(evt_obj:Object) {
    for (cb=1; cb<6; cb++) {
    if (_root["c"+cb+"_ch"].selected) {
    nextItem()
    for (cb=1; cb<7; cb++) {
    this["c"+cb+"_ch"].addEventListener("click",checkboxListener);
    function nextItem() {
    if (c1_ch.selected && c2_ch.selected &&
    c3_ch.selected && c4_ch.selected && c5_ch.selected
    && c6_ch.selected) {
    trace("do something") }
    }

    var checkboxListener:Object = new Object();
    var cbTotal:Number = 5;
    checkboxListener.click = function(evt_obj:Object) {
    var numChecked:Number = 0;
    for (cb=1; cb<=cbTotal; cb++) {
    if (_root["c"+cb+"_ch"].selected) {
    numChecked++;
    if(numChecked==cbTotal){
    trace("do something");
    }

  • Need some help in creating Search Help for standard screen/field

    I need some help in adding a search-help to a standard screen-field.
    Transaction Code - PP01,
    Plan Version - Current Plan (PLVAR = '01'),
    Object Type - Position ( OTYPE = 'S'),
    Click on Infotype Name - Object ( Infotype 1000) and Create.
    I need to add search help to fields Object Abbr (P1000-SHORT) / Object Name (P1000-STEXT).
    I want to create one custom table with fields, Position Abb, Position Name, Job. Position Abb should be Primary Key. And when object type is Position (S), I should be able to press F4 for Object Abb/Object Name fields and should return Position Abbr and Position Name.
    I specify again, I have to add a new search help to standard screen/field and not to enhance it.
    This is HR specific transaction. If someone has done similar thing with some other transation, please let me know.
    There is no existing search help for these fields. If sm1 ever tried or has an idea how to add new search help to a standard screen/field.
    It's urgent.
    Thanks in advace. Suitable answers will be rewarded

    Hi Pradeep,
    Please have a look into the below site which might be useful
    Enhancing a Standard Search Help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-
    edc983384237
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.
    If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.
    timepoints
    The following timepoints are defined:
    1. SELONE
    Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
    Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.
    The timepoint is not accessed again if another elementary search help is to be selected during the dialog.
    2. PRESEL1
    After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
    3. PRESEL
    Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
    4. SELECT
    Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.
    5. DISP
    Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.
    6. RETURN (usually as return value for the next timepoint)
    The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.
    It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
    7. RETTOP
    You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.
    8. EXIT (only for return as next timepoint)
    The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
    9. CREATE
    The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
    The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
    10. APP1, APP2, APP3
    If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.
    Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.
    If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the
    F4IF_SHLP_EXIT_EXAMPLE
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several
    events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
    Hope this info will help you.
    ***Reward points if found useful
    Regards,
    Naresh

  • F4 help for the screen fields in module pool program

    Hi All,
      I have a requirement that, i want to provide F4 help for the 2 fields in module pool program. the fields are document number and fiscal year from rbkp table.
    i could provide search help for two fields.
    but how to select matching fiscal year for that document number.
    problem: i am getting fiscal year as first four digits of document number.
    please help me to solve this problem.
    Thanks & Regards,
    Namratha.V

    Hi,
       If your requirement is after selecting the document no from f4 help then the corresponding year should be updated in the document year field then use FM --> DYNP_VALUES_UPDATE
    In  this function module pass the screen no program & field for which u want to update value

  • Assign search help for a screen field in standard program?

    Hi All,
    Is there any other way to assign search help to a standard SAP screen field? (to be precise i want to assign search help to Recipient field in table control of components tab in transaction IW32/IW31)
    I know we can do this by assigning search help through screen painter (by changing standard program, which is my last option).
    Any advice/help will be greatly appreciated.

    Hi,
    I think you will find solution in below <b>threads</b>:
    Re: Search Help for standard field
    How to assign a search help
    Search help for Standard SAP field
    <b>Reward if helpful</b>
    Rgds,

  • I want the table fields name for the screen fields of transactions lm59

    Hi all
      I am enhancing transactions LM58,LM59and  LM 60
      But in that transactions underthe lable of storage bin , there are 3 input fields . I want to know the exact table fields for those 3 input screen fields .

    Ravi,
    OK.
    You can look to tables EKPO, EKKO for PO-related fields.
    Look to SE84 under   ABAP Dictionary > Fields > Table Fields   - This is search tool for existing names.  Or can create custom Y-   and  Z- fields, data elements, domains to meet your needs.
    Please reward points.

  • Adding search help (F4) for a screen field in standard screen of VA02

    Dear Gurus,
    I need to add a Search Help (F4) to a Standard Screen Field VBAK-VSNMR_V in the standard Screen of VA01/Va02.....Can anyone please guide me how it can be done.
    Regards
    Sajid
    Edited by: shaik sajid on Feb 2, 2009 8:38 AM

    Hi shaik,
    Refer to the following useful link:
    Search help enhancement in VA01
    Hope this will help you...

  • Create object type from multiple tables for select statement

    Hi there,
    I have 3 tables as given below and I wish to create an object type to group selected columns as 'attribute' from multiple tables. 
    I need to create 2 input parameters to pass in - 'attribute' and 'attribute value'  in PL/SQL and these 2 parameters will be
    passing in with 'column name' and 'column value'.  e.g. 'configuration' - the column name, 'eval' - the column value.
    Then, the PL/SQL will execute the select statement with the column and column value provided to output the record. 
    Pls advise and thank you.
    table ccitemnumber
    name                           null     type                                                                                                   
    ccitemnumber                   not null varchar2(20)                                                                                                                                                                                    
    configuration                           varchar2(20)
    item_type                               varchar2(30)
    table productmodel
    productmodelnumber             not null varchar2(6)                                                                                            
    description                             varchar2(60)  
    accesstimems                            number                                                                                                 
    numberofheads                           varchar2(2)
    generation                              varchar2(10)
    numberofdiscs                           varchar2(2)
    factoryapplication                      varchar2(150)
    table topmodel
    stmodelnumber                  not null varchar2(30)                                                                                           
    productfamily                           varchar2(60
    formfactor                              varchar2(10)                                                                                           
    modelheight                             varchar2(10)                                                                                           
    formattedcapacity                       number                                                                                                 
    formattedcapacity_uom                   varchar2(20)
    object type in database
    configuration                           varchar2(20)
    item_type                               varchar2(30)
    numberofheads                           varchar2(2)
    generation                              varchar2(10)
    numberofdiscs                           varchar2(2)
    factoryapplication                      varchar2(150)
    modelheight                             varchar2(10)
    formattedcapacity                       number                                                                                                 
    formattedcapac

    user12043838 wrote:
    Reason to do this as these fields are required to be grouped together as they are created in different tables. They are treated as 'attribute' (consists of many columns) of the part number. So, the PL/SQL is requested to design in a way able for user to pass in the column name and column value or part number, then the select statement should be able to query for the records. Another reason is a new column can be added easily without keep modifying those effected programs. Reuseable too.This basically equates to ... hard to code, hard to maintain, and poor performance.
    Are you really sure you want to do this? This isn't going to be easy-street as you seem to think it is, but it's a one way street to a poorly performing system with security vulnerabilities (google SQL Injection).
    I would highly recommend you reconsider your design decision here.

  • How to create a Drop down with values in Module Pool for a screen field.

    Hi all,
    I have created a Screen on which one field is created Say Bank Name. I would like to give some spcific value for this fileld where user can select only seeing in drop down cann't enter.
    Can anyone tell how can we do it ?

    Hi,
    The selected value key will be stored in the parameter.
    eg: Refer below code. Here if i select Vinod then po_name will be 1. After this read i_values WITH this key and get the actual value.
    PARAMETERS: po_name(30) TYPE c VISIBLE LENGTH 20 AS LISTBOX.
    TYPE-POOLS: VRM.
    DATA: i_values TYPE vrm_values,
          wa_values LIKE LINE OF i_values.
    AT SELECTION-SCREEN OUTPUT.
      wa_values-key = '1'.
      wa_values-text = 'Vinod'.
      APPEND wa_values TO  i_values.
      wa_values-key = '2'.
      wa_values-text = 'Kumar'.
      APPEND wa_values  TO i_values.
      wa_values-key = '3'.
      wa_values-text = 'Reddy'.
      APPEND wa_values  TO i_values.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id              = 'PO_NAME'
                values          = i_values
           EXCEPTIONS
                id_illegal_name = 1
                OTHERS          = 2.
    START-OF-SELECTION.
    READ TABLE i_values INTO wa_values WITH KEY key = po_name.
    MOVE wa_values-text TO w_name. " This will be ur actual value.
    Thanks,
    Vinod.
    Edited by: Vinod Reddy Vemuru on Jul 8, 2008 4:16 PM

  • USER DEFINED F1 documentation for seelction screen fields.

    I have one selection screen in my Program.
    If I give F1 , It has to display user defined documentation.
    like...I have customer field in selection screen.
    Select-options:S_CUST for BSAD-KUNNR.
    For this I need doc as "Enter customer number excluding from the Table"
    Not the documentation of the KUNNR field.
    How to do this.
    Many Thanks!!!

    Hi
    You can write what you want to dysplay your text. For example I created a document (type SIMG) by SO72 and this is the code to call it:
    FORM MY_F1_FOR_S_CUST.
      DATA: T_LINE LIKE TLINE OCCURS 0,
            XHEAD  LIKE THEAD,
            HELP_INFO LIKE HELP_INFO,
            TEXC LIKE SY-UCOMM OCCURS 0,
            V_OBJECT LIKE  DOKHL-OBJECT.
    Costants
      DATA: PREF_SIMG(4) VALUE 'SIMG',
            DOCID_HY LIKE DOKHL-ID VALUE 'HY'.
    Object name
      CONCATENATE PREF_SIMG MY_OBJECT INTO V_OBJECT.
    Get Text
      CALL FUNCTION 'DOCU_GET_FOR_F1HELP'
           EXPORTING
                ID       = DOCID_HY
                LANGU    = SY-LANGU
                OBJECT   = V_OBJECT
           IMPORTING
                HEAD     = XHEAD
           TABLES
                LINE     = T_LINE
           EXCEPTIONS
                RET_CODE = 1
                OTHERS   = 2.
      CASE SY-SUBRC .
        WHEN 0.
    Dysplay text
          GET CURSOR FIELD HELP_INFO-DYNPROFLD.
          HELP_INFO-DOCUID         = DOCID_HY.
          HELP_INFO-DOCUOBJECT     = V_OBJECT.
          HELP_INFO-SPRAS          = SY-LANGU.
          HELP_INFO-PROGRAM        = SY-REPID.
          HELP_INFO-DYNPRO         = SY-DYNNR.
          HELP_INFO-DYNPPROG       = SY-REPID.
          HELP_INFO-PFKEY          = SY-PFKEY.
          HELP_INFO-FIELDNAME      = HELP_INFO-DYNPROFLD.
          CALL FUNCTION 'HELP_DOCULINES_SHOW'
               EXPORTING
                    HELP_INFOS     = HELP_INFO
                    OVERLAY_HEADER = XHEAD
               TABLES
                    EXCLUDEFUN     = TEXC
                    HELPLINES      = T_LINE.
        WHEN OTHERS. MESSAGE S720(SH).
      ENDCASE.
    ENDFORM.
    Max
    Message was edited by: max bianchi

  • Capture lost focus for a screen field !!

    I was more into Visual basic programming so the event name "Lost focus" !!
    Basically i want to validate a field after the user enters a value in that and before he moves to the next field.
    how to do that ? if the value entered is wrong I will display a message using MESSAGE IXXX(FF) with ".....".
    whats the event to be captured and where ? how do i code it ?
    thks

    If it is module Pool program then you can use the FIELD Fieldname module Modulename under PAI event.
    in side the module you can raise the error message.
    If it is report programming then you can use AT SELECTION-SCREEN ON <PARMETER>.
    and raise the error message.

Maybe you are looking for