Multiple Selection on Selection Screen

Hello Friends,
Iam having a selection screen where I can enter a single value or range of values directly into the select-option fields or I can click on Multiple Selection button and enter the single value or Range of values. And whatever I enter in the Multiple selection that is stored in table s_lifnr (because I enter vendor details).
Now, my question is.....Is there any Function Module or any BAPI to get or read all the values of this table into another internal table because I want to use them in another BAPI where I need to pass the range of vendor codes to get list of line items.
So if I could make up an internal table which contains all the vendor codes selected from multiple selection with options like (=,>,<,<=,>=)in single value and (BT, I, E)in Range I can use this table in that BAPI.
Any kind of help is appreciated..
Thanks in Advance..
Regards,
Raju....

Usually, you will want to select the vendors from the database.
data: ilfa1 type table of lfa1 with header line.
select-options: s_lifnr for lfa1-lifnr.
select * into table ilfa1 from lfa1
          where lifnr in s_lifnr.
loop at ilfa1.
* do something with all selected vendors.
endloop.
Regards,
Rich Heilman

Similar Messages

  • How to accept multiple attachments on selection screen?

    Hi All,
    I need to know how to accept multiple attachments on selection screen and send them as email to external system (outlook).
    Basically, my req is to send a common email with attachments to certain users. These users are displayed in ALV. User will select ALL or specific user from ALV and send an email with message entered on selection screen.
    I used text editor control to input message body. I need to know how to accept attachments and send them.
    Appreciate any inputs.
    Thanks,
    SKJ

    SAP uses a nifty little button called 'Object Services' on ME23N (top left) which you can use to attach documents to business objects.
    http://help.sap.com/saphelp_nw70/helpdata/EN/be/3fe63659241157e10000009b38f889/frameset.htm
    It's a complicated way of doing it but might give you extra functionality in the long run.

  • Validation of materials entered in multiple selection in selection-screen

    Hi,
    How can I do the validation for all the materials entered in multiple selection in selection-screen?

    What kind of validation do you need to do?
    One of the easiest options is to select the materials to an internal table and then loop through it. Something like this:
    SELECT-OPTIONS: SO_MATNR FOR MARA-MATNR.
    AT SELECTION SCREEN.
      SELECT MATNR FROM MARA
      INTO TABLE I_MATNR
      WHERE MATNR IN SO_MATNR.
      LOOP AT I_MATNR.
    "   <do validations here>
      ENDLOOP.
    Here table I_MATNR has only one field MATNR.
    But please be careful with this, because you might end up going through thousands of material numbers. You might want to limit the user's choices by making the field required and removing some other options. Also you can check number of records in I_MATNR and allow only, say, not more than 50 materials, thusly forcing the users to limit their selection criteria.
    Naturally, other selection options may be added here.

  • 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

  • RE: Code for error messages & for Multiple Selection at Selection screen

    Dear Friends,
    Following is the code to display PO created without Purchase Requisition Nos. Please help me with the correct code to display the error messages when PO No is entered with Purchase Requisition No & also a message should come when user enters some random or wrong PO NO.
                      Also, in the Selection-Screen I want PO NO, Purchase Org, Material, Plant & Date. So, please help with the code so that these options can also display the PO created without Purchase Requisition Nos.
    Waiting for your valuable replies,
    Suruchi.
    The Code is attached herewith:
    DATA: BEGIN OF itab OCCURS 0,
          ebeln TYPE ekko-ebeln,
          ebelp TYPE ekpo-ebelp,
          matnr TYPE ekpo-matnr,
          txz01 TYPE ekpo-txz01,
          menge TYPE ekpo-menge,
          meins TYPE ekpo-meins,
          banfn TYPE ekpo-banfn,
          END OF itab.
    SELECT-OPTIONS: s_ebeln FOR itab-ebeln.
    START-OF-SELECTION.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE itab
             FROM ekko
                 INNER JOIN ekpo
                    ON ekkoebeln = ekpoebeln
                             WHERE ekko~ebeln IN s_ebeln
                                   AND ekpo~banfn = space.
      WRITE:/ text-001,
              15 text-002,
              25 text-003,
              40 text-004,
              70 text-005,
              85 text-006.
      ULINE.
      LOOP AT itab.
        WRITE:/ itab-ebeln, 16 itab-ebelp, 25 itab-matnr,
                40 itab-txz01, 60 itab-menge, 88 itab-meins.
      ENDLOOP.

    select-options: s_ekorg for ekko-ekorg.
    select-options: s_matnr for ekpo-matnr.
    select-options: s_werks for ekpo-werks.
    select-options: s_aedat for ekko-aedat.
    Check the PO numbers here is not necessary because you are using a select-option(range),  if something erroneous is typed, the program will simply not select it.
    This would be a different story if you where using a parameter.  Here you would do a check against EKKO in the AT SELECTION-SCREEN event.
    at selection-screen.
    select Single * from ekko
              where ebeln = p_ebeln.
    if sy-subrc  <> 0.
    message E000(00).
    Endif.
    Regards,
    Rich Heilman
    Regards,
    Rich Heilman

  • Multiple Input in selection screen more than 10000 material,,prg dumped?

    Hi All,
    I am running a report and giving  input as..
    multiple selection for Matnr(Material no)   = 14000 materials
    but I m getting a
      Possible error causes:
      o The maximum size of an SQL statement was exceeded.
      o The statement contains too many input variables.
      o The input data requires more space than is available.
    Please let me the solution of this error.
    Thanks and Regards
    Steve

    Hi,
    There is a limit on the SQL statement length and if it exceeds, the program will dump and that is exactly what is happening in your case too. So the only choice you have is to introduce options BT or CP etc .
    The other alternative would be to break the selection range into small bits of say 1000, 2000 lines ,and select the data and append it to the internal table using these smaller bits of the selection range.
    loop at selection_range.
    append selection_range to selection_range_1000.
    if sy-tabix mod 1000 = 0.    " Select for every 1000 records of selection range
    select * from dbtab appending itab where field in selection_range_1000.
    refresh selection_range_1000.
    endif.
    endloop.
    " Remaining records
    if selection_range_1000[] is not initial.
    select * from dbtab appending itab where field in selection_range_1000.
    endif.
    Hope this helps.
    Br,
    Advait

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

  • SELECT-OPTIONS in Screen

    Hi,
    I am trying to create select - options in Screen , i.e. not the selection screen but a custom screen, say 9000. I can make the text boxes etc for having the select options. But How do I simulate the button wchich comes after select options. It would be used in dialogue programming with multiple screens having different reports.
    Please reply to me urgently,
    Thanks and Regards
    Arnab Panigrahi

    A few dot points:
    1. You can have a select-option embedded in a dynpro, if you want, by using a subscreen.  There's an example bit of code at
    Module - pool Question..?
    This would be easy to adapt to being a popup rather than a full screen if required.
    2. As noted above, you can code your own select-options as in
    Making a referenced field a range?
    which I think Sesh has quoted from.
    3. For the requirement you expressed initially, the code below should do the trick... you get a different block of extra selections depending on which radionbutton you select.
    Jonathan
    report zlocal_jc_radiobutton_hiding.
    tables:
      sscrfields.           "To allow trapping of Fcode on selection screen
    selection-screen begin of block tot with frame.
    parameters :
      p_rb_01          radiobutton group rbg1 user-command zrb1 default 'X',
      p_rb_02          radiobutton group rbg1.
    selection-screen begin of block block1 with frame title text1.
    parameters:
      p_date                like sy-datum modif id bl1.
    selection-screen end of block block1.
    selection-screen begin of block block2 with frame title text2.
    parameters:
      p_time                like sy-uzeit modif id bl2.
    selection-screen end of block block2.
    selection-screen end of block tot.
    *" Events:
    initialization.
      text1 = 'Enter a date'.
      text2 = 'Enter a time'.
    at selection-screen output.
      perform at_selection_screen_output.
    at selection-screen.
      perform at_selection_screen.
    *&      Form  at_selection_screen_output
    form at_selection_screen_output.
    *" Hide the appropriate fields
      loop at screen.
        if  p_rb_01       = 'X'
        and screen-group1 = 'BL2'.
          screen-active = '0'.
        endif.
        if  p_rb_02       = 'X'
        and screen-group1 = 'BL1'.
          screen-active = '0'.
        endif.
        modify screen.
      endloop.
    endform.                    "at_selection_screen_output
    *&      Form  at_selection_screen
    form at_selection_screen.
    *" trap the radiobutton
      if sscrfields-ucomm = 'ZRB1'. "clicked Subtotal checkbox
    *" if you want to trap this radio button press here
      endif.
    endform.                    "at_selection_screen

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

  • Ranges input using multiple selection in select-options

    Hello,
    I have declared a single selection field with multiple selection as follows:
    SELECT-OPTIONS:
       S_PONUM FOR EKKO-EBELN NO INTERVALS,
    If a range is entered using multiple selection, no value appears in the selection field on screen, however, the ranges tab in multiple selection shows the range. Is there a way to programatically test if a range has been entered using multiple selection? Help is appreciated.
    Regards

    Hi,
    If you not displaying the intervals then user can enter only one value then option field will be with 'EQ' sign.
    LOOP AT S_PONUM.
    IF S_PONUM-OPTION NE 'EQ'
    " Then Values are entered using the multple selections
    ENDIF.
    ENDLOOP.

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

  • IRecruitment Offer Letter review button to have multiple template to select

    Hi,
    I have a requirement in i recruitement Offer letter generation to have multiple Offer letter selection at the time of review page. I've Created a custom template and associate the template to Business group and now i've 10 different templates with different texts . i've started the process for selecting applicants and then gone into Enter basic details and then to review page and in that view offer letter button . here i need to select a tempate among the 10 custom template which i created , I've register this 10 template in Assocation template form where on whatever the radio button i kept in that form only that template output is bedefault coming where as i need to select the template as per my choice. Kindly let me know if any advice on this matter.
    Regards,
    Abdul Samad

    You can not select template at that time. While creating the offer you just submitting the details for the offer. Once the request is approved, Go to Offer Workbench => click on offer letter. Once you click there you will be able to choose the template on the following screen.
    Save the offer letter once you choose the template.

  • Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer

    I have connected TABULAR Model to Excel, and in the pivot the filter is on multiple dimensions. When doing the drillthrough action it gives error - Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer
    Is there any workaround to this error?  so that drillthrough can be done even with multiple selection.

    Hi Vikas,
    The reason behind the error message requires the knowledge on what happens at the backend. When you perform a drill-through action, a query is sent to Analysis Services. This query is expressed in a query language called Multi-Dimensional Expression (MDX).
    Since the MDX language doesnot support drill-through command against a set (collection of tuples) an error is persisted. 
    For now, there is no workaround as it is a limitation of the underlying language that is generating the query.
    When multiple items are selected you lose the ability to drill-down on individual metrics. To resolve you must either:
    1. Select a single Item.
    2. Select all items.
    Hope this helps!
    Please mark as Answer if this helps! Thanks, Rajasekhar.

  • 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 can i select multiple values form select list

    Hi ,
    I have created few items in a page and all items are Lov items and based on these items stacked charts will display. My requirement is I need to select multiple values form LOV's
    Eg: In Interactive report goto filter and select an item and expression as IN and select multiple items and i need to select multiple values like this.
    Please anybody help me how to get multiple values.
    I have one more doubt Can we have a Print preview option in APEX.
    I have to see print preview for stacked charts. is it possible?
    Regards
    Narender B

    HI ,
    Thank you for valuable information and looks good.but Here our client need to select multiple values.... for eg: Open IR report and click on Actions button --->select filter
    select any column , operator as IN and from expression select multiple items.
    I need to select multiple values in that way so, could you please guide me how can i achieve this.
    Regards
    Narender B

  • My Photoshop CS 5 has some strange actions when I copy a portion of a photo using the clone stamp  to transfer to another part of the image. It carries the entire layer (not just the stamps selection) across the screen and I cannot place it where I need t

    My Photoshop CS 5 has some strange actions when I copy a portion of a photo using the clone stamp  to transfer to another part of the image. It carries the entire layer (not just the stamps selection) across the screen and I cannot place it where I need to. It appears as if I selected the entire layer on purpose (which I did not)
    The below items appeared when I opened Photoshop CS 5:
    “Photoshop has encountered a problem with the display driver and has temporarily disabled G & U enhancements. Check the video card malfunctions website for latest software. GPU enhancements can be enabled in the performance panel of preferences.”
    (I believe this started after the automatically updated Windows was applied. It was coincident with the before mentioned problem . . . but I don’t really know if it had anything to do with it. )

    For the Clone Stamp problem, check the Clone Source panel and Clipped is probably unchecked.
    If so, check Clipped and see if that makes a difference.
    (Window>Clone Source)
    As to the video card problem:
    Which version of windows are you using?
    What is the make and model of your graphics card?
    Do you know which update windows installed?

Maybe you are looking for

  • Techniques in ABAP program

    What are the techniques involved in using SAP supplied programs? do you prefer to write your own programs to load master data? why ?

  • Problem with computing Font width while printing in Landscape mode

    I have an application which prints a table and fills it with some text. I render it on a JComponent using the drawString(theStr, xPos, yPos) and the drawLine(rigtX, topY, rigtX, botY) methods in Graphics2D object. I want to take print-out of the tabl

  • What is the advantage of using Wrapper Classes ?

    Hi friends, I am happy to join Java/J2EE tech. My project is scaled over the network. MVC-II struts, EJB based architecture, we are using. We are asked to use Wrapper Classes in in Java programs and not the primitive data types. I could not understan

  • Function call another function variable

    Is it possible to call another function variable? Below is my Script: f2(); function f1() {    var v2 = 1;  function f2(v2) {    var v3= 2;    alert(v2);

  • JavaContentSet - use an environment var as part of the url-path

    Hi, I startet to use JDeveloper beside Eclipse. As such i got some ressources in my Eclipse workspace i want to use in my JDeveloper Projekt. Its easy to tell JDeveloper to link some Resources from the Eclipse Workspace into my JDeveloper Workspace.