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

Similar Messages

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

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

  • 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

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

  • Result in SELECT-OPTIONS not valid

    Hi, I wrote the next statment about SELECT-OPTIONS..but for example if the selection criterio S_HKONT is initial..this is don´t have a value...all the result are true when I compare..
    I wrote:
    SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:   S_BUDAT        FOR  EKBE-BUDAT OBLIGATORY,    "Posting Date in the Document
                      S_HKONT        FOR  BSEG-HKONT.
    SELECTION-SCREEN END OF BLOCK 1.
    When I wrote:
      SELECT BUKRS BELNR GJAHR KOART SHKZG BUZEI DMBTR
        WRBTR PSWBT PSWSL SAKNR HKONT LIFNR WERKS MENGE EBELN EBELP
        INTO CORRESPONDING FIELDS OF FILTER_BSEG
        FROM BSEG
        WHERE BELNR = A1
          AND GJAHR = A2.
          AND HKONT IN S_HKONT.
          APPEND FILTER_BSEG.
      ENDSELECT
    The result are many rows behind S_HKONT don´t have results..this mean..is initial..
    Or If I compare:  
          IF FILTER_BSEG-HKONT IN S_HKONT.
               Sentence...
          ENDIF.
    all the sentence that be in inside of IF are made..
    Only when S_HKONT has a value... the condition is evaluated ok.
    I hope that someone can help me.
    Thank you

    Hi Alicia...I see that you finally understand about reward points...coz you assign me some points -:) Thanx -:)
    Yes...I speak spanish, it's my mother language...But you know...We can't speak spanish here... -;)
    Of course you can write me to my personnal e-mail...But i actually prefer to answer in the forums, coz here at work, i just can access my mail -:(
    This is the link to my business card, you can check my e-mail in there -:)
    <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=nkxegtflwze%3d">blag's Business Card</a>
    If i undestand what you're saying...You actually need to delete HKONT initial records only if the SELECTION-SCREEN is initial, right??? If so...You need to use the DELETE code. Or maybe you only need to get record if the SELECT-OPTION is not initial...
    So...AFAIK you can do this...
    IF NOT MY_FILTER[] IS INITIAL.
    SELECT *
    INTO MY_TABLE
    FROM SOME_TABLE
    WHERE SOME_FIELD IN MY_FILTER.
    ENDIF.
    Now, you only select record if MY_FILTER got some value on it.
    Hope this helps you -:)
    Greetings,
    Blag.

  • About Reporter Painter,How to remove a selection option ?

    Hi ,Experts
        Now , I want to copy form 0SAPRATIO-01 (FSI4) to create my form in which i want to remove the standard selection option <b>G/L account </b> ,So how to do ? Could you give me the step in detail ?

    Hi,
       I  failed to  find the field crresponding to select-option 'G/L Account No.'  in the two level you mentioned .
       Take 0SAPRATIO-01  for example , Could you tell me which field should be removed if i want to delete the select-option 'G/L Account No.' in the report screen.
    At general data selection of form 0SAPRATIO-01, there are only two fields they are
    <b>Fin.Stmt Vers.  and   Plan./act.</b>
    while in the report's select-option ,there are five select-options. Why?
    Message was edited by: guixin chen

  • OnSelect event for a Drop down UI Element in Webdynpro ABAP Select Options

    Hi Experts
    We have built our UI based on the webdynpro ABAP Select Options. We have a requirement that, when we change the value of a drop down box in the UI, I need to hide some fields. Can anybody help me out in handling of OnSelect event of a drop down box built using webdynpro ABAP Select Options. We are on SAP Netweaver 7.0 EHP1.
    Rrgards,
    Srikanth.
    Edited by: Srikanth Kancherla on Apr 29, 2010 10:43 PM

    Hi Srikanth,
    as you seem to be already aware, the component is dynamically built.
    so you would have to enhance the code that builds the element and insert a reference to a new action (enhancement) that could handle the onSelect event.
    What is it about this that you particularly want help with?
    Cheers,
    Chris

  • Itunes 10.6.1.7 problem: when I change the file "media type" from 'Music' to 'Podcast' the file disapears from ITUNES. I do this via (1) right click, (2) select 'Get Info', (3) select 'options' tab, and (4) change media type. What is the problem?

    Itunes 10.6.1.7 problem: when I change the file "media type" from 'Music' to 'Podcast' the file disapears from ITUNES. I do this via (1) right click, (2) select 'Get Info', (3) select 'options' tab, and (4) change media type. What is the problem?

    Hi Memalyn
    Essentially, the bare issue is that you have a 500GB hard drive with only 10GB free. That is not sufficient to run the system properly. The two options you have are to move/remove files to another location, or to install a larger hard drive (eg 2TB). Drive space has nothing to do with SMC firmware, and usually large media files are to blame.
    My first recommendation is this: download and run the free OmniDiskSweeper. This will identify the exact size of all your folders - you can drill down into the subfolders and figure out where your largest culprits are. For example, you might find that your Pictures folder contains both an iPhoto Library and copies that you've brought in from a camera but are outside the iPhoto Library structure. Or perhaps you have a lot of purchased video content in iTunes.
    If you find files that you KNOW you do not need, you can delete them. Don't delete them just because you have a backup, since if the backup fails, you will lose all your copies.
    Don't worry about "cleaners" for now - they don't save much space and can actually cause problems. Deal with the large file situation first and see how you get on.
    Let us know what you find out, and if you manage to get your space back.
    Matt

  • How to created Freely Programmed F4 help in Select Options

    hi,all
       I have a probelm about how to created a Freely Programmed F4 help in Select Options,and put help value into select options field
      Thanks and Best Regards

    Hi Haung,
    You need to use FREE_HELP not the component name.
    Modify you code as below:
       LT_RANGE_TABLE_V = wd_this->m_handler_V->create_range_table( 'ZCYPHDATE' ).
      wd_this->M_HANDLER_V->add_selection_field(
          i_id                         = 'ZCYPHDATE'
          it_result                    = LT_RANGE_TABLE_V
          i_value_help_type            = if_wd_value_help_handler=>CO_PREFIX_APPLDEV
          i_value_help_id              = 'FREE_HELP'
          i_no_intervals               = abap_false ).
    Hope this helps you.
    Regards,
    Rama

  • How to retrieve data using logical database and custom select options

    Hi all,
    I have a selection screen which is displayed by logical database PSJ and I have two select options of my own. I need to retrieve data based on both selection screen of logical database and my own select options. How can I do it?
    Thanks in advance.

    Hai Gupta
    Check the following Document & Links
    1. A logical database is in fact
    a program only.
    2. This LDB provides two main things :
    a) a pre-defined selection screen
    which handles all user inputs and validations
    b) pre defined set of data
    based upon the user selection.
    3. So we dont have to worry about from
    which tables to fetch data.
    4. Moreover, this LDB Program,
    handles all user-authorisations
    and is efficient in all respects.
    5. tcode is SLDB
    good info about Logical Database. you can check the link.
    http://www.geekinterview.com/question_details/1506
    http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm
    Re: How to Create and Use ldb in reports?
    Re: Logical databases
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm
    Functions for displaying and changing logical databases:
    Call Transaction SE36 or
    Choose ABAP Workbench -> Development -> Programming environ. -> Logical databases
    Interaction between database program and report:
    During program processing, subroutines are performed in the database program and events are executed in the report.
    To read data from a database tables we use logical database.
    A logical database provides read-only access to a group of related tables to an ABAP/4 program.
    advantages:-
    The programmer need not worry about the primary key for each table.Because Logical database knows how the different tables relate to each other,and can issue the SELECT command with proper where clause to retrieve the data.
    i)An easy-to-use standard user interface.
    ii)check functions which check that user input is complete,correct,and plausible.
    iii)meaningful data selection.
    iv)central authorization checks for database accesses.
    v)good read access performance while retaining the hierarchical data view determined by the application logic.
    disadvantages:-
    i)If you donot specify a logical database in the program attributes,the GET events never occur.
    ii)There is no ENDGET command,so the code block associated with an event ends with the next event
    statement (such as another GET or an END-OF-SELECTION).
    1. transaction code SLDB.
    2.enter name z<ldb-name>
    3.create
    4.short text
    5.create
    6. name of root node (here Ekko)
    7. enter short text (f6)
    8.node type -> data base table.
    9.create
    10 change logical DB
    riht click on ekko and insert node
    here node name ekpo
    11.create
    12. click on selections
    13. press no Should the changed structure of Z<ldb name> be saved first.
    14.select tables which you want to join.
    15.transfer
    16 now you have to o to coding part.
    17. save
    activate.
    19.click to src code
    double click on first include and activate
    Regards
    Sreeni

  • Select option in gallery

    Hi everyone! My name is Pablo, and I live in Argentina.
    I own a Nokia 5800 XM, and i have a (good?) idea. When you are browsing your photos in the gallery, and you are in portrait mode, you can see three touch buttons at the bottom of the screen. The middle one, is the "check item button". I think that it should be useful to change this button to the "select item" button. If you want to selec a big quantity of photos using the "options-> check/unchek->check" is a painfull task to do.
    Please consider this, for a coming software update.
    What do you think guys?
    Regards to everyone, and sorry about my poor english!!!

    pablo4225 wrote:
    Hi everyone! My name is Pablo, and I live in Argentina.
    I own a Nokia 5800 XM, and i have a (good?) idea. When you are browsing your photos in the gallery, and you are in portrait mode, you can see three touch buttons at the bottom of the screen. The middle one, is the "check item button". I think that it should be useful to change this button to the "select item" button. If you want to selec a big quantity of photos using the "options-> check/unchek->check" is a painfull task to do.
    Please consider this, for a coming software update.
    What do you think guys?
    Regards to everyone, and sorry about my poor english!!!
    In fact the middle icon (similar to a Pencil) is for Editing..But Yes, Along with the Photo Gallery, wherever there is Mark/Unmark Option in the sub menu there should be a Mark Selected option too along with Mark /Mark all..

  • Select-Options in dialog program

    Hi there,
    I'm using a selection-screen in a dialog program, I declared it in the TOP.
    Selection-screens
    SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.
    parameters: p_lifnr type lfa1-lifnr  obligatory ,
                p_werks type t001w-werks obligatory .
    SELECT-OPTIONS:
      s_licha FOR zbrtconsig-licha.
    SELECTION-SCREEN END OF SCREEN 101.
    I have to use the event at selection-screen on value-request for s_licha-low, and I need the values from the fields p_lifnr and p_werks. the problem is:
    If I only fill the fields p_lifnr, p_werks and click on F4 for s_licha, the values of p_lifnr and p_werks are not updated, they are empty. Only wether I do an Enter this fields is updated.
    Thanks,
    Alexandre Nogueira

    Hi,
    i am not clear about your problem, please expalin it clearly.
    use FM : DYNP_VALUES_UPDATE to update screen fields.
    use FM : DYNP_VALUES_READ to read screen fields.
    use SET /GET Parameter id's to set parameters
    this FM will update the screen fields before to PBO event.
    check this link for sample code :
    Re: Issue Related to Module pool
    Regards
    Appana

  • How to develop ALV and select-option element in BSP? Help!

    Hi Experts,
    I have a requirement where I have a selection screen with 3 select-option elements and a search button. On clicking the search button an ALV table report has to be shown.
    The ALV table is used for new row/rows entry, delete row/rows and update row/rows data. This is something like table control in normal ABAP.
    Additionaly, I want the download to Excel, sorting, filtering, column swapping options in ALV.
    How can I achieve this in BSP?
    Is there any existing SElect-option and ALV component in BSP?
    Any code sample will be really helpfull.
    How much development time will it take?
    Please help!
    Thanks
    Gopal

    I think you will find that most of what you are looking for does NOT exist out of the box for BSP.  There is no delivered selection-option or value help.  I ended up creating my own over the years (You can find some versions online here in SDN in my weblogs - however a complete implementation of select-options was only delivered along with the Advanced BSP Programming book). 
    There is no ALV either.  However with the htmlb:tableView, you can acomplish quite a bit.  You may have to learn about table view iterators to get it all done.  Downloading to Excel also isn't delivered.  I developed a reusable BSP Extension element for this as well (can be found on SDN in my weblogs or with the Advanced BSP Programming book).
    If you plan to recreate all these elements by yourself, your project will take some time.  It took a while to build so many complex UI elements. 
    What release are you running on?  In Netweaver04S you have Web Dynpro ABAP.  WDA has delivered components for value help, select-options, and ALV.

Maybe you are looking for

  • I have goen back to Firefox 3.6. Why isn't my AdBlock plus working?

    (This is my 3rd try on this stupid new computer [just shy of 2 months]. It is an HP laptop with Windows 7. It is TOO responsive. It erases entire things I am writing for reasons I have no idea why....) Anyway. I have had this problem once before. I h

  • "ad hoc" audio setting?

    I've lost the "ad hoc" audio setting, very important in the old version. Now I can't find it: incredible! Can you help me?

  • Batch sequence to 'flatten' xfa form to static non-interactive AcroForm

    Hi, I'm looking for a way to flatten a bunch of xfa forms in a batch sequence. The result being the exact same as printing to pdf. I believe I use to just add optimizer settings in the sequence editor and that would do the trick. But now I'm getting

  • Message on monitor when cartridge is changed?

    Everytime I install a new ink cartridge a message appears on the monitor "Genuine HP print cartridge installed".  Since I have installed three cartridges there are three of these messages, I have to click OK on each one to clear them.  Everytime I pr

  • Assert is broken

    I'm a fairly new Java programmer, coming from a C++ background. Over the past several months, I've written about 26000 lines of Java code, with heavy use of the assert statement to catch bugs and invalid data. Works great. I'm using Borland JBuilder