About select-option statement

Hi ,
I am writing a select-option
s_vtweg for /bic/szdistch-/bic/zdistch modif id r1.
when i do this i am unable to see the s_vtweg-high option in the selection screen.
i.e s_vtweg is displayed without extension and without interval.
and i am working on an APO system.
Thanks,

Hi,
while using select-options declare the table using ' TABLES'.
ie :  Tables : /BIC/SZDISTCH.
also try declaring select-options without modif id and give a try.
SELECT-OPTIONS : s_vtweg for /bic/szdistch-/bic/zdistch.
Regards,
Ranjith Nambiar

Similar Messages

  • About select options.

    Hi there;
    Is there any chance to sort an internal table (it_result) comparing an internal range table (s_ktorr) ?
    Example :
    Select-Options on screen
    s_ktorr = 
    DESK9A56KS
    DESK9AU634
    DESK9A53JD
    DESK9A7878
    Then when I select those tkorr from e071 table, the final result is :
    SELECT trkorr obj_name object
        FROM e071
        INTO CORRESPONDING FIELDS OF TABLE it_result
       WHERE trkorr IN s_ktorr.
    it_result =
    DESK9A7878 OBJ1
    DESK9A7878 OBJ2
    DESK9A56KS OBJ1
    DESK9A56KS OBJ2
    DESK9A56KS OBJ3
    DESK9A53JD OBJ1
    DESK9AU634 OBJ1
    DESK9AU634 OBJ2
    As you can see the final result is out of order comparing the s_ktorr order on the screen..
    My question is.. Is there any syntax or some SORT method to do not lose the original sort?
    Thanks in advance.
    E.

    No, but it the arrangement of data must match the original input list, one could loop at the input ranges table, then loop at the result looking for those values and increment a counter defined in the results table, then resort by that counter no.
    for example something like this (not very efficient, to be sure):
    data: lv_counter(4) type n value 1.
    loop at ranges table.
       loop at result table where <fieldname> = ranges-low.
       result-counter = lv_counter.
       lv_counter = lv_counter + 1.
    endloop.
    endloop.
    sort result table by counter.
    But, I don't understand why this would be important....a simple sort statement, as Sandra noted, would be desirable.

  • About select option

    Hi experts,
    In my alv report there is one field SERNR serial number, for this i have to put select option. My problem is this field doesn't exist in the table(Zmanifest) from where i'm fetching data. So i'm not able to mention this select option in my select query for that particular table. This field is existing in EQUI table and have no relation defined between zmanifest table & EQUI.
    In my internal table i have all fields of zmanifest & this sernr; to fulfill this field logic is
    Serial Number is combination of P_PREFIX-(dash)P_SERIAL fields in zmanifest. I have fetch all data including SERNR by above logic at my grid; but facing problem in defining SELECT-OPTIONS for Sernr.
    Please help.
    Points Sure.
    Anshuman

    Hi,
    do like this.
    take the lenght of P_PREFIX
    take the lenght of P_SERIAL
    add the length.
    for exmaple :
    P_PREFIX size is 4.
    P_SERIAL size is 10
    now declare the variable like this.
    data : v_selop(15).
    Note : 4101 = 15, so i declared the variable with lenght of 15.
    select-options : so_field for v_selop.
    now use off-set in your select query like this:
    where PREFIX = v_selop+0(4)
       and SERIAL = v_selop+5(10)
    it will work if you are using variable v_selop as a parameter else if you are using select option you have to break v_selop into two different select option like this:
    s_prefix type prefix,
    s_serial type serial.
    loop at v_selop.
    s_prefix-* = v_selop-. "      (  = sign, option)
    s_serial-* = v_selop-*.
    s_prefix-low = v_selop-low+0(4).
    s_serial-low = v_selop-low+5(10).
    s_prefix-high = v_selop-high+0(4).
    s_serial-high = v_selop-high+5(10).
    endloop.
    now use following select query
    where PREFIX in s_prefix
       and SERIAL in s_serial.
    it will surely wrok.
    Regards-
    Gagan Kumar
    Plz Reward if need full. also close the question.
    Edited by: Gagan Kumar on May 18, 2008 7:30 PM

  • S.O.S about select option in WD

    hi experts
    I have a emergent case that I need to mark a select option as red background when error happens.
    could anyone give me a solution?

    Hi,
    while using select-options declare the table using ' TABLES'.
    ie :  Tables : /BIC/SZDISTCH.
    also try declaring select-options without modif id and give a try.
    SELECT-OPTIONS : s_vtweg for /bic/szdistch-/bic/zdistch.
    Regards,
    Ranjith Nambiar

  • Issue about Select-options in NWG

    Hi Techies,
    Greetings of the day.
    I can able to get the data using Filter in the URI but when i want to use select-options as parameters in the URI it is giving me error.
    kindly help me on this issue how to write select-options to get the data
    Thanks In Advance.
    Thanks & regards
    Sathish

    Hi Sathish,
    Your question doesn't make a lot of sense. Filters are converted into select option format in the DPC, you can't "use select-options as parameters in the URI". The URI has to be OData-compliant and select-options are nothing to do with OData.
    You should be using a filter and interpreting the select options in the DPC. Be aware that not all select-options patterns are converted from filters.
    Regards
    Ron.

  • SMALL PROBLEM IN USING SELECTION-OPTIONS STATEMENT

    Hello ABAP Gurus,
    I am trying to write a simple program that takes 'FROM' and 'TO' dates which will be used to generate a report..
    However the requirement is that the 'FROM' date should have a default value that is read from a file and the 'TO' date should have a default value of today's date. The Client wants to option of changing these dates if needed.
    However, when I wrote the following program, it first doesn't read the text file for the 'FROM' date and therefore it is by default filling only 'TO' date and leaving the 'FROM' field blank. Can some one please let me konw what I am not doing correctly.
    The simple code that i have written is
    =======================================================================================
    REPORT  Z_PROGRAM1.
    DATA: DAYSTMP(40),
          FROMDATE LIKE SY-DATUM.
    DAYSTMP = 'C:\EXTRACTEDDATA\ExtractedDate.txt'.
    OPEN DATASET DAYSTMP FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    READ DATASET DAYSTMP INTO FROMDATE.
    CLOSE DATASET DAYSTMP.
    SELECTION-SCREEN: BEGIN OF BLOCK MAIN WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:   S_DATE FOR SY-DATUM DEFAULT FROMDATE TO SY-DATUM
    OPTION BT SIGN I.
    SELECTION-SCREEN: END OF BLOCK MAIN.
    ========================================================================================
    Any suggestions/feedback will be greatly appreciated.
    Thanks
    Ram
    Edited by: Prasad Ram on Oct 28, 2009 5:34 PM

    ... and please use the above <<>> code button after selecting the code with the mouse. Then formatting is preserved and readabilty is enabled.
    Many people (including me) refuse to read unformatted coding.
    Regards,
    Clemens

  • About select-options field name

    hi expects,
        in my select-options screen , i am gettting the field name ex .kunnr,land1,name1,but i want the name as "customer number ,name,country".how can i do this thing .please help me.

    u use selection screen begin of line and text-010 is the text symbol (text) which hold the name as u wanted
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_pci type rlgrap-filename default 'C:\CATS\'.
    selection-screen begin of line.
    selection-screen comment 1(31) text-010 for field p_unix.
    parameters:
    p_unix(200) default '/usr/sap/interfaces/celerra/CATS/AMR/in/SWAP/'
    lower case,
    p_namef type char15 lower case default 'amr_swap',
    p_datef type sy-datum default sy-datum,
    p_extf type char4 default '.txt' lower case.
    selection-screen end of line.

  • SELECT-OPTIONS Multiple selection

    Hello
    I have the following line of code:
       SELECT-OPTIONS: p_matnr FOR mara-matnr.
    The users would like to use the multiple selection button to paste/upload from the clip board but unable until at least one entry is entered before the multiple selection will work.  Is there a way for the multiple selection to work without entering a material?
    THANKS

    Hi Gary, Clicking the button shown below bring up the multiple selection screen without requiring a value. Do not add the obligatory keyword on the select-options statement as pointed out by Ramon.
    see below:

  • Select-options in module pool programming

    hi,
       I need to have four fields as part of my layout that are select-options fields with multiple values entry options. Since layout doesnt have 'select-options" functionality, i defined it from the module pool program, ie: I wrote a  selection screen in the PBO module. The problem is if i make any changes to the code, the layout changes back to the previuos format.
    Is there any way in which i can combine selection-screen logic with my layout.
    Thanks,
    Sruthy

    HI
    GOOD
    Selection Screen Version
    Only for Executable Programs
    If you do not specify a selection screen version, the system automatically creates a selection screen based on the selection criteria of the logical database and the parameters and select-options statements in the program.
    If you want to use a different selection screen of the logical database, enter a number in this field. The number must be smaller than 1000 and correspond to an additional selection screen of the logical database. The possible values help displays a list of available selection screens. You can also look in the selection include of the logical database (program DBxxxSEL, where xxx is the name of the logical database).
    Tomislav
    1. In the top include define the selection screen with
    selection-screen begin of screen 9250 as subscreen.
    SELECT-OPTIONS analyt FOR ztv_cc02-zd_mumla .
    selection-screen end of screen 9250.
    2. Using the screen painter create a subscreen area in
    the main screen where you want to have this.
    3. Then, in the screen flow logic code as follows:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1000. etc
    call subscreen SUB1 including 'PROGRAM NAME' '9250'.
    PROCESS AFTER INPUT.
    module exit at exit-command. etc.
    call subscreen SUB1.
    THANKS
    MRUTYUN

  • At new, EXIT,STOP and CONTINUE, Select-options Initialization

    Hi Experts,
    I am having the following requirements.
    1) I have design the selection screen by using Select-options statement. In that i have to initialize both low and high values. I don't know how to write and where to write the code for the same.
    2) and another requirement as
    field A  contain values ( 0, 1, 1, 0, 1, 1, 1, 0)
    Field B  contain values (1, 0, 1, 1, 1, 1, 1, 1)
    At new b.
    write:/ b.
    endat.
    In the above case how many times At new statement calls.
    3) How is EXIT differ to STOP and CONTINUE. Please give me the brief idea on this.
    I hope i will get the accurate results for the above soon.
    Regards
    Prabhakar

    Hi,
    1.
    Select-options could be initialised with the command INITIALIZATION.
    Ex :
    tables : MARA.
    select-options : s_matnr for mara-matnr.
    Intialization.
      move : '123456789' to s_matnr-low ,
             'I'         to s_matnr-sign ,
             'EQ'        to s_matnr-option.
      append s_matnr.
    I means  Include, the other possible value is E for exclude.
    EQ means EQual, could be BT BeTween ...
    The structure of a select-options is : Sign, Option, Low and High. (Low and High is the two values you see in screen).
    The commande Initialization could be place anywhere outside the start-of-selection ... end-of-selection.
    2.
    3 times ..  but, depends where are the fields ..
    4.
    The command EXIT leave the current command. Command could be a PERFORM, a DO, a LOOP, a SELECT, ...
    The command STOP go to the end-of-selection. If you put some code after the end-of-selection, the code will be processed.
    Rgd
    Frédéric

  • How do I use a Select-Options field without Ranges?

    Hi,
    I understand that by using the NO-EXTENSION option on the Select-Options statement I can limit the user to entering only one line...either a single value or a range of values.
    However, is there a way to allow multiple lines of single values, but not allow any of those lines to be a range...just a series of single values only?
    Thanks!
    Andy

    Amit,
    I do not see they yellow arrow "before" "to", but I see it "after" "to".
    When I click the arrow I am able to add ranges.  I would like to prevent the user from entering Ranges.
    Did I misunderstand what you were trying to say?
    Andy

  • How to set default values in initialization event for select option

    Abapers,
    I have 3 GL account like 0024831231,0024831238,0024831245.
    Please help me how to set default values in select-options ( s_hkont ) in INTIALIZATION event
    Thanks

    Select option is table <Structure> with fields, low, high, sign & option
    you need to append the value into the select option, with appropriate value in low or
    example:
    S_HKONT-low  = <value>
    S_HKONT-SIGN = 'I'
    S_hkont-OPTION = 'EQ'
    append s_hkont.
    Default value for select-option also can be added directly in select-option statement.
    Regards,
    Mahesh

  • SELECT-OPTIONS can u use it to read internal table ?????

    Hello All,
       I am trying to read an internal table with the select-options statement. I am getting a syntax error so i am hoping i am just coding it incorrectly. Can someone tell me what is wrong here is the if statement :
    if p_begdte in t_rpt-datab and
           p_enddte in t_rpt-datbi.
        else.
           exit.
        endif.
    thanks scott

    This is not working?
    tables: a916.
    * Beg valid date *
    data text021(29).
    selection-screen begin of line.
    selection-screen comment 1(30) text-021 for field p_begdte.
    selection-screen position 32.
    select-options: p_begdte for a916-datab default '20041101' to
    '99991231'.
    selection-screen end of line.
    * End valid date *
    data text022(29).
    selection-screen begin of line.
    selection-screen comment 1(30) text-022 for field p_enddte.
    selection-screen position 32.
    select-options: p_enddte for a916-datbi default '20041101' to
    '99991231'.
    selection-screen end of line.
    start-of-selection.
    <b>Loop at t_rpt.
    if t_rpt-datab in p_begdte
      and t_rpt-datbi in p_endte.
    * do something
    else.
    exit.
    endif
    Endloop.</b>
    Regards,
    Rich Heilman

  • Retriving the vaue given in select options in an internal table.

    Hi all,
    I have a requirement of using & printing the multiple values of country given in Select -options by the user.
    I have given the select -options statement as :
    s_ctry           FOR v_country obligatory.         (for selection screen)
    SO now i want to work on the values (input by user on screen) given either in the multiple selection tab(the arrow option that will come on screen) or in the range option(that too will come on screeen when i give the above statement)
    I will be putting these screen values in a work area and then will append into an internal table like this:                wa_country-country = s_ctry-low.
                                APPEND wa_country TO it_country
    How to retrive these values (values of s_ctry) so that i can work on them.

    HI,
    Go through this documentation ..
    The basic form of the SELECT-OPTIONS statement is as follows:
    SELECT-OPTIONS <seltab> FOR <f>.
    It declares a selection criterion <seltab> that is linked to a field <f> that has already been declared locally in the program. The names of selection criteria are currently restricted to eight characters. Valid data types of <f> include all elementary ABAP types except data type F. You cannot use data type F, references and aggregate types. If you want to use the selection criterion to restrict database selections, it is a good idea to declare <f> with reference to a column of the corresponding database table. It then inherits all of the attributes of the data type already defined in the ABAP Dictionary. In particular, the field help (F1) and the possible entries help (F4) defined for these fields in the Dictionary are available to the user on the selection screen.
    The selection table, which has the same name as the selection criterion, <seltab>, is usually filled by the user on the selection screen or by calling programs. You can also process the selection table like any other internal table in the program.
    REPORT DEMO.
    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.

  • Select-options on Dynpro?

    Hi colleagues,
    I am just asking me if there is a chance to get select-options on my Dynpro like we use it in the report programming. Sure I can develop it manually, but it would be much easier to have a "select-options" statement on the dynpro side with an automatically defined internal table with the low and high values.
    Maybe there are any function modules available.
    Thanks in advance!
    Regards
    Thomas

    Sure, even easier way is to have a "selection-screen" embedded in a subscreen on your dynpro.  On your dynpro, create a subscreen area.  In your TOP include code a selection screen but use the extension AS SUBSCREEN,  then in the PBO of your dynpro,  say CALL SUBSCREEN.....
    All of the functionality that you want for your select-options will be available.   This has worked very good me in the past.
    By the way, welcome to SDN!!!
    Regards,
    Rich Heilman

Maybe you are looking for

  • Upgrade Default Address Lists from LDAP

    Hello, I migrated from MS Exchange 2003 to 2010 some time back. Currently trying to upgrade the address lists as per the guide here: http://technet.microsoft.com/en-us/library/dd351283.aspx When I  run Set-GlobalAddressList "Default Global Address Li

  • Pc or Mac for Uni please help!

    I start uni soon my old toshiba is soon dead. I need a computer. I would love a macbook or macbookpro. The uni has some softwares - open uni - which are pc only. They recommend Pc. Now with a mac would I be ok? Like i know you can out windows on it ,

  • Routing Experts please help with below LAN routing issue with NAT

    Hello Experts, I have a weird situation and requirement. The existing setup is - We have email/ticketing server hosted in the LAN which is reachable on the publicly NAT'ed IP with respective port numbers of 89 & 443. We have LAN & servers on the same

  • How to use native XML driver in CR XI 2 (to avoid "Database Logon Failed")?

    Hello, I have a simple scenario: The Java Part: -Our Java application creates a pair of files: one XML and one XSD. -Both files are uploaded to an ASP.NET page along with a report (RPT file - based on the same XSD and some generated XML using the nat

  • Include file in jsp not working

    Hi , I have an include file statement in my jsp file which is not working. Not getting any error message either only the page is displayed without the jsp file included. My include code looks like this : <%@ include file ="Includes/hello.jsp" %>Also