FM regarding select-options

Hi all,
Is there any function module to pass the values in a zstucture of select-options( i.e. in sign,options,low,high).
Thanks,
Goutam Sahoo.

DATA: BEGIN OF it_final1 OCCURS 10,
      sign(1) VALUE 'I',
      option(2) VALUE 'EQ',
      low TYPE crmd_order_index-guid ,
      high TYPE crmd_order_index-guid,
     END OF it_final1.
  LOOP AT it_final INTO wa_final.
    LOOP AT  it_guid1 INTO wa_guid1 WHERE partner = wa_final-partner.
      IF wa_guid1-sales_office NE wa_final-sales_office.
        it_final1-low = wa_guid1-header.
        APPEND it_final1.
      ENDIF.
    ENDLOOP.
  ENDLOOP.
SELECT object_id FROM crmd_orderadm_h INTO wa_object_id WHERE guid IN it_final1.
Regards
Anbu

Similar Messages

  • Regarding select option in a module pool prog .

    hello .. i need some help regarding select options in a module pool program .. i hav tried putting a select options in a module pool prog but i am not able 2 ... can any one tel me why select options r not aloowed in a module pool prog ?? and i read that we hav 2 use ranges 2 fulfil the needs of the select options . is there any way i cal get all the functionality of select options ( eg including , excludig , equal to , not equal to , .... .) using a range ??

    Hi
    Select-options won't work if you declare the program as Module POOL.
    if you wants to use select-options like utility in module pool programming
    use ranges
    declare and develop ranges and use that in select statement where condition.
    ranges: r_vbeln for vbak-vbeln.
    r_vbeln-low = '0018900678'.
    r_vbeln-sign = 'I'.
    r_vbeln-option = 'EQ'.
    append r_vbeln.
    r_vbeln-low = '0018900456'.
    r_vbeln-sign = 'I'.
    r_vbeln-option = 'EQ'.
    append r_vbeln.
    reward if useful
    regards
    Anji

  • Regarding selection options

    whan i am using select-options prior to this i what to display check  box on the same line.
              when i am selecting the this check box it should execute automaticall
    could u plz explain the code clearly with example.

    search forums.
    Re: Dynamic Selection Options
    Posted on: Jul 17, 2006 5:50 PM, by user: Praveen -- Relevance: 100% -- Show all results within this thread
    am doing exactly as you had stated. But the user wants to see it something like this: 1. For the selection options, he wants to see three box's. a. Technical Name of the field selection. b. ...
    Re: regarding selection options
    Posted on: Mar 15, 2007 8:46 AM, by user: SHIBA DUTTA -- Relevance: 99% -- Show all results within this thread
    you have to use begin of line and end of line. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1. PARAMETERS: ...
    Re: Restricting selection-options
    Posted on: Jan 18, 2005 8:58 AM, by user: Andreas Mann -- Relevance: 90% -- Show all results within this thread
    FOR vbak-vbeln OBLIGATORY DEFAULT '5300000000'. INITIALIZATION. PERFORM init_1001. START-OF-SELECTION. SELECT belnr FROM bkpf INTO bkpf-belnr WHERE bukrs = '0001' AND ...
    Check that at least on Selection Options are filled
    Posted on: May 25, 2006 4:37 AM, by user: Boater -- Relevance: 90% -- Show all results within this thread
    I have a program that has four selection options. The user needs to enter a selection for at least one of the four selection options. ...
    possible entry for selection-options
    Posted on: Feb 22, 2007 7:32 AM, by user: Tiwa Noitawee -- Relevance: 89% -- Show all results within this thread
    F-1 At last 3 alphabets of Prod.hierarchy is Product line (EX1, PC5) that users have to choose via selection-options like this <b>EX1</b> EXCEL 251 : F-1 <b>PC5</b> POWERTOP W-200 ...
    select-options multiple selection
    Posted on: Mar 5, 2007 3:06 AM, by user: venkateswarao gangavarapu -- Relevance: 87% -- Show all results within this thread
    hi can u send code for getting multiple selections in select-options Thanks in advance venkat ...
    Submitting Report with selection screen options
    Posted on: Apr 27, 2005 5:45 PM, by user: Rajesh Nittala -- Relevance: 85% -- Show all results within this thread
    Hi all, I have a situation, in my report i am using a selection screen which contains input select-options are store(range), date (from ..to)....after that ...
    sample program to remove standard selection-options & replace user defined.
    Posted on: Dec 7, 2005 5:37 AM, by user: Josephine Clara Arokiasamy -- Relevance: 83% -- Show all results within this thread
    The standard selection-options are provided for the logical database. i need to supress the standard selection-options ...
    Adding default value for a select-options in a selection-screen
    Posted on: May 26, 2006 11:51 AM, by user: sid alpay -- Relevance: 77% -- Show all results within this thread
    hello gurus, i have a report program with the following select-options in a selection-screen block:
    select-options: so_site for MyTable-werks.
    i want the so_site ...
    Adding Selection Options Fields in Report(Using Query)
    Posted on: Aug 25, 2004 5:26 AM, by user: lijo joseph -- Relevance: 76% -- Show all results within this thread
    Hi, how can we add Selection Fields Options in Query Reports Which we create using SQ01. I need a default option by which ...
    Getting the selection parameters/options in a diffrent program
    Posted on: May 11, 2006 3:05 AM, by user: Chad Cheng -- Relevance: 75% -- Show all results within this thread
    use Submit to get a report from a diffrent program and I am using variants to get the value of the selection criteria. However, for a less tedious approach, I think it would be better if I get the selection ...
    Read options from selection-screen
    Posted on: Aug 24, 2006 3:30 PM, by user: Silke Eng -- Relevance: 75% -- Show all results within this thread
    Hi Kiran, as all other questions are answered already, remains the one on the select-options. Function module <b>RS_REFRESH_FROM_SELECTOPTIONS</b> returns those. Kind regards, Silke ...
    Selection screen for SAP Query: OR between options
    Posted on: Jun 29, 2006 3:04 PM, by user: Tania Pouli -- Relevance: 74% -- Show all results within this thread
    need a variant where either of two fields should not be 0. Is there some way to add an OR between two selection options? I can't change the actual query because it's used with many other variants. Thanks ...
    Pass internal table of selection-options through method!
    Posted on: Nov 22, 2004 3:49 PM, by user: Frank Roels -- Relevance: 74% -- Show all results within this thread
    I created a selection screen with multiple select-options. Now I want in a method of a class work with the internal ...
    select-options: at selection-screen on value-request
    Posted on: Sep 18, 2006 10:51 PM, by user: Sumit Agarwal -- Relevance: 72% -- Show all results within this thread
    one field is dependent on the values of the other field in the select-options. I am using the "at selection-screen on value-request event on" to populate the select-options field, S_AUFNR, that is dependent ...
    Pages: 16 [ 1 2 3 4 5 6 7 8 9 10 |

  • Urgent regarding select option

    Hi All,
    Hi All,
    i have lfart(delivery type) field on selction screen defiend as select-option.whenever i click on the multiple selection arrow button besides the lfart field then i n that i have selected "=" as values for opyion field of select-option table(sign,option,low,high).then an icon of "=" is displayed behind the lfart field.
    then i have wriiten a qery like this
    SELECT lfart,lfdat,.....
    INTO TABLE tb_likp
    FROM likp
    FOR ALL ENTRIES IN tb_get_del1
    WHERE vbeln = tb_get_del1-vbeln
    AND lfart IN s2_lfart
    AND lfdat IN s_lfdat,......
    but it is failing(bczo s2_lfart is not initial).then how to write the correct query .
    Thanks&Regards,
    Padma.

    Hi Padma,
    remove the = because of this the Select-option is working as parameter and your select-query is looking for the lfart  = SAPCE in the DB, which it can't found so it is failing.
    Hope it is clear.
    Reward points if useful.
    Regards,
    Atish

  • Question regarding SELECT-OPTIONS

    All,
    When I create a select-option in my program like:
    SELECT-OPTIONS: s_role FOR AGR_DEFINE-AGR_NAME.
    It does not work. To make it work I need to define AGR_DEFINE with the tables statement.
    My question is why? In my opinion I just make a reference to a dictionary object. The tables statement is more or less used to create a headerline for a used database table. I don't see any relation in that. Still it is needed to make it work. Any ideas?

    This has been the syntax for select-options since the begining. You need the definition of 'FOR' defined before you use it in the select-option.
    I guess the interpreter/compiler was designed to understand and inherit the properties of the referred field if you use 'LIKE' or 'TYPE' but not when you are using 'FOR'. Since the LOW and HIGH fields of the select-option inherits the properties of the 'FOR' field, the properties of it are needed to be defined before. Why, I still don't know, but that is the design.
    For some strange reason, SYST(or SY) fields reference will work even if you don't define them before. Is there a clue here? System structure/fields seem to be available for referencing but not static database table fields.
    Regards,
    Srinivas

  • Regarding Select-options

    select-options :s_kunnr for kna1-kunnr.
    s_kunnr-low = 1000.
    the select options low value is 1000 and freeze the low value.mean's output mode onely.next high value is modified giving variable value.in select options how to freeze the only low value?

    REPORT demo_sel_screen_select_options.
    DATA wa_carrid TYPE spfli-carrid.
    SELECT-OPTIONS airline FOR wa_carrid.
    LOOP AT airline.
      WRITE: / 'SIGN:',   airline-sign,
               'OPTION:', airline-option,
               'LOW:',    airline-low,
               'HIGH:',   airline-high.
    ENDLOOP.
    Structure of select options:
    LOW Low value
    HIGH High value
    SIGN E = Excluding, I = Including
    OPTION BT = Between EQ = Equal
    data: l_sign(2) type c,
    l_option(3) type c.
    WRITE AT 3 ‘Printdoc:’ INTENSIFIED ON. loop at s_prtdoc. if s_prtdoc-sign = ‘E’. l_sign = ‘<>‘. else. l_sign = ‘=’. endif. if s_prtdoc-option = ‘EQ’. clear l_option. else. l_option = ‘to’. endif. write at 35 l_sign. write at 39 s_prtdoc-low. write at 55 l_option. write at 59 s_prtdoc-high. new-line. endloop.
    REPORT:
    Printdoc: = 800000000501 to 800000000501 <> 800000000502 = 800000000503

  • Regarding Select-option

    Provide validation in selection screen to restrict the users to enter only four digit account codes. Provide dropdown functionality to show the four digit statutory accounts list to allow users to select the required account from the list. When four digit account code is entered, select all the related six and eight digit account codes. Get all the accounting data for the selected accounts and diplay the data based on the level entered in the selection screen.
    rewards will be given.

    1:example
    type-pools: vrm.
    data: it_val type vrm_values,
          w_line like line of it_val,
          wa_line like w_line occurs 0.
    parameters P_ACCOUN(4) as listbox visible length 4 obligatory.
    --initialization--
    initialization.
      w_line-key = '0001'.
      w_line-text = '0001'.
      append w_line to it_val.
      w_line-key = '0002'.
      w_line-text = '0002'.
      append w_line to it_val.
      w_line-key = '0003'.
      w_line-text = '0003'.
      append w_line to it_val.
      w_line-key = '0004'.
      w_line-text = '0004'.
      append w_line to it_val.
      w_line-key = '0005'.
      w_line-text = '0005'.
    append w_line to it_val.
    --at selection-screen--
    at selection-screen output.
      call function 'VRM_SET_VALUES'
        exporting
          id     = 'P_ACCOUN'
          values = it_val.
    2:
    DATA:P_ACCOUNT TYPE ACCOUNT.
    CONCATENATE P_ACCOUN '*' INTO P_ACCOUNT.
    SELECT
    FROM TABLE
    WHERE
    AND ACCOUNT LIKE P_ACCOUNT

  • Regarding the select-options on the selection screen

    In select-options the low and high fileds must be displayed in the following explained manner...
    How to get the low field value as 1000 (default) and it must be in display mode (not possible to change the value) and high field must be empty and it has to allow us to enter the value.
    How to get this....?
    Please help me in this regard...
    Thank u very much
    Regards..
    Nagarjuna

    TABLES : mara.
    SELECT-OPTIONS: s_matnr FOR mara-matnr.
    INITIALIZATION.
      S_MATNR-SIGN  = 'I'.  "inclusion
      S_MATNR-OPTION = 'BT'    "between
      S_MATNR-LOW = '1000'.
      APPEND s_matnr.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name EQ 'S_MATNR-LOW'.
          screen-input = 0.
          MODIFY screen.
          EXIT.
        ENDIF.
      ENDLOOP.
    Reward if Helpful.

  • Query regarding OBLIGATORY option in SELECT-OPTIONS

    Hi,
    The requirement is to have a select-option for any date field(i've used bkpf-budat) and set its HIGH value to SY-DATUM i.e. current system date. The select-option field MUST BE "OBLIGATORY".
    On Executing, the current date should be display on the HIGH filed of select-options. Now, what i need here is that the program should execute normally even if the LOW field of select-options field is left BLANK.
    The code is as follows.
    TABLES: bkpf.
    SELECT-OPTIONS:  s_budat FOR bkpf-budat OBLIGATORY.
    AT SELECTION-SCREEN OUTPUT.
        s_budat-low    = space.
        s_budat-high   = sy-datum.
        s_budat-sign   = 'I'.
        s_budat-option = 'BT'.
        APPEND s_budat.
    Do suggest the methodlogy to achieve this requirement.
    Thanks & Regards,
    Rajesh

    Hi rajesh,
    1. directly its not possible.
      we have to use some extra logic.
    2. first of all remove OBLIGATORY.
    3. THEN USE LIKE THIS.
    REPORT abc.
    TABLES: bkpf.
    SELECT-OPTIONS: s_budat FOR bkpf-budat .
    AT SELECTION-SCREEN OUTPUT.
      s_budat-low = space.
      s_budat-high = sy-datum.
      s_budat-sign = 'I'.
      s_budat-option = 'BT'.
      APPEND s_budat.
    <b>START-OF-SELECTION.
      IF s_budat-high IS INITIAL.
        MESSAGE s999(yhr) WITH 'Date should not be blank'.
        LEAVE LIST-PROCESSING.
      ENDIF.</b>
    regards,
    amit m.

  • Report help for multiple Date Select options

    Hi Friends,
    For a particular year wise report, the client wants 12 date select-options which are changeable and informal every year .The report will also be displayed as per the given date selection period wise. Please help me how to fetch the datas from the table as per the given selection period. Currently the report have one date select-option where the user gives selection range as 1.04 to 31.03. It's related to EB power consumption report and hence the new requirement on date selection which are informal and not a fixed date of every year.
    Ex:Selection-Screen
    Period 1 : 08.04.2008 to 12.05.2008
    Period 2: 12.05.2008 to 20.06.2008
    Period 3: 21.06.2008 to 28.07.2008
    Period 4: 29.07.2008 to 15.08.2008
    Period 5: 15.08.2008 to 21.09.2008
    Period 6 : 21.09.2008 to 14.10.2008
    The data will derive as per the above selection ranges.......
    Please advise with example.
    thanks & regards
    Sankar.

    >
    sankar babu wrote:
    > Ex:Selection-Screen
    > Period 1 : 08.04.2008 to 12.05.2008
    > Period 2: 12.05.2008 to 20.06.2008
    > Period 3: 21.06.2008 to 28.07.2008
    > Period 4: 29.07.2008 to 15.08.2008
    > Period 5: 15.08.2008 to 21.09.2008
    > Period 6 : 21.09.2008 to 14.10.2008
    Hi,
    In this case just derive all records matching dates between 08.04.2008 (low in first select-options) and 14.10.2008(high in last select-options.
    Also my advice is to use a single select-options and prompt the user to give the dates as ranges in the multiple entries dialog which can be opened by clicking the button on the right side of the select-options.
    Regards
    Karthik D

  • Re : select-options in abap-objects program

    Dear friends,
                      I want to give select-options in abap-objects program. How to give that.
                                 Thanking You
    with regards,
    Mani

    In the transaction SE24, enter your class name, click modify.
    in the tab named "Types" you have to declare two types. By example, if you want to receive one select-options that in your program that uses this class is declared like:
    " P_SAKNR FOR SKAT-SAKNR".
    you've got to declare two types in the class:
    a- TYPES:  begin of E_S_SAKNR,
                          sign(1),
                          option(2),
                          low(10),
                          high(10),
                      end of E_S_SAKNR.
    b - TYPES E_T_SAKNR type standard table of E_S_SAKNR.
    so, in the class method that you want to receive P_SAKNR as importing parameter. You got to do this:
    method TEST importing ET_SAKNR type E_T_SAKNR.
    now, in the implementation of this method you should be able to use ET_SAKNR as the same way as you usually use a parameter or a select-option. You could use it in a select with the operator IN by example..

  • Re : select-options in abap objects

    Dear friends,
    I want to give select-options in abap-objects program. How to give that.
    Thanking You
    with regards,
    Mani

    HI Mani,
    It's common mix ABAP Procedural with ABAP Objects in the same program.
    You should use the same way used in ABAP procedural program as Marco Cerdelli sad.
    But inside ABAP OBJECTS classes you can't use is these statement type.
    Don't forget to close this thread and all yours previous when your question be answered ! In case of doubt read the [rules of engagement|https://forums.sdn.sap.com/].
    Best Regards.
    Marcelo Ramos

  • Checking against Select-Options with "CP" using "IF value IN select_option"

    Dear experts,
    first of all: I'm sorry, if this question already should have been asked and answered!
    I tried quite a lot of search terms but didn't find anything helpful.
    We are using a statement like "IF value IN select_option" to perform comparisons after the Select-Options have been used in a SELECT statement. This logical expression fails (compared to the results of the DB-SELECT) whenever a select-option line contains the option CP (Contains Pattern). To be more specific: The case sensitivity of the LOW value doesn't seem to play a role any more. A variable with the value 'ABCD' would be positively checked against a select-option with OPTION 'CP' and LOW 'abc*', whereas this value wouldn't have been selected if the select-option had been used in a DB-SELECT.
    Does anybody know a workaround?
    Thanks in advance
    Andreas

    Dear Keshav,
    it's an own field in an own table, defined as CHAR of length 140 (lowercase allowed), reflecting to a line of remittance info of an account statement. A regular Select-Option for this field is provided in a report which works perfectly fine regarding the case sensitivity. For reasons I don't want to point out in detail we need to check a value in this field against the select-option without selecting it from the db again.
    Let's assume that a field remittance_info contains the value 'ABCD'.
    A line of the select-option table looks like this:
    select_option_table-SIGN = 'I'
    select_option_table-OPTION = 'CP'
    select_option_table-LOW = 'abc*'.
    Then an ABAP statement such as
    IF remittance_info IN select_option_table.
    * would be true !!!
    ENDIF.
    but wouldn't deliver a result in a SELECT such as
    SELECT * FROM my_table INTO TABLE my_internal_table WHERE remittance_info IN select_option_table.
    because of the differences in lower/upper case.
    regards
    Andreas

  • Using roadmap and select-options

    I'm new to abap web dynpro, i'm using a roadmap with 4 views. This is working fine but, when I try to use select options in view1 they don't show. When I set view1 as default view the select options are working fine.
    this is how my current web dynpro looks like:
    Main view -> roadmap with viewcontainerUIElement
        view1 -> viewContainerUIElement + table (in the window I embedded the select options in the viewContainerUIElement)
        view2
        view3
        view4
    In view1 I'm using wddoinit to initialise the select options.
    Thanks in advance!

    Hi Srinivas,
    According to you mail, I will provide some solution please try them. It will definitely works.
    ---> Create a attribute which holds the lead selection values of the RADIO_GROUP.
    ---> When you click on the Next View, You will fire the plug. Right. Just before firing the Plug, update the above
          attribute with update information.
    > Do the same code for Select-options code in the WDDOINIT except the passing the values to the select-options.
    > Please pass the attribute information to Select-options with updated information in the method WDDOMODIFYVIEW every time. Without creating a attribute also you can approach the same method. Just for simple access we can create a attribute. Otherwise without that we can do the same.
    So Just populate the values into Select-options depending on the value of RADIO_GROUP you will do the same coding WDDOMODIFYVIEW. But initialization of SELECT-OPTIONS can be only done in the method WDDOINIT method only. WDDOINIT method only execute first time once you go through it and go back and move forward then this method won't execute.
    I hope this logic will work for you. If not Please send me the Code related to SELECT-OPTIONS and RADIO_GROUP Button information.
    I will be in office today up to 4.45 PM (IST). You can contact me in this time otherwise we will discuss on webex tomorrow morning at 9 AM.
    Warm Regards,
    Vijay

  • Text element assigned to select options not showing

    Hi guys,
    We have a problem in shaowing the text assigned to the select-options...
    When we run the program the text element ssigned to the select options is not showing instead the element name is shown.
    The original language is german, and it wont show the english word we appended to as text element for select-options.
    example:
    AUART insteat od blocked order
    How can we show the text elemen when we run the program?
    Thanks!

    Hi Mark,
    Go to the program text elements and select the Selection Texts tab,
    There you fill find the select option for AUART and the corresponding text maintained.
    You need to maintain translations for this text entered.
    Chose Goto (in menu bar) -> Translation
    Then maintain translation in English.
    Regards,
    Aditya

Maybe you are looking for

  • Script crashing

    Hello folks, I am running a script from mail.app in the rules section. mail.app Version 3.2 (919/919.2) OSX is Leopard 10.5.2, Every time the script runs mail.app closes with an Ignore relaunch or send dialog. This script runs fine in Tiger. Here is

  • Does DPS have GPS functionality? If not do they plan to add it and when?

    Does DPS have GPS functionality? If not do they plan to add it and when?

  • Firewire: 400 to 800

    I currently have a MacBook (BlackBook, in fact), with a FireLite backup disk that utilizes a 400 Firewire cable. The new PowerBook 13 will have, apparently, an 800 Firewire port. Can I still use the same cable, or do I need an adapter?

  • Only 0 EA of material available ( Strange Situation)

    Hello Guys, I have two Materials  Available Stock is Material A(QTY 10)  and Material B(QTY10). Now i have created sales order of each material with 1 qty. E.G Material A  qty 1 Material B qty 2 i have saved the document and then i have created deliv

  • NW2004S Installation - DI option

    When you install a Netweaver 2004s System as a dev server, do you need to tick the DI option? This is not supposed to be a DI server, but will be included in the DI landscape. I have searched for SAP Notes/forums here but have not got a definite answ