Problem in select querry with select option

Hi all,
How have a problem with the select querry, Pls correct my querry
select opbel gpart betrw fdgrp into table lt_balance from dfkkop
                  where fdgrp in s_augrp
                    and hvorg = '5000'
                    and tvorg = '0100'.
Thanx in advance,
Line

Hi
I have tried this select querry, but I am unable to fetch the data in the internal table
select opbel gpart betrw fdgrp into correspondiing fields of table it_balance
from dfkkop
where fdgrp in s_augrp
and hvorg = '5000'
and tvorg = '0100'.
Can you please tell me what is wrong in this querry,
Line

Similar Messages

  • Want to use ldb selection screen with select queries

    I want to use ldb selection screen with select queries since ldb having performance issue .How can I use the fields of the dynamic selection of LDB in the select queries

    Hi,
    Check the code snippet below: Here 'XXXX' is the table for your select query.
      DATA L_DS_CLAUSES TYPE RSDS_WHERE.
      MOVE 'XXXX' TO L_DS_CLAUSES-TABLENAME.
      READ TABLE DYN_SEL-CLAUSES WITH KEY L_DS_CLAUSES-TABLENAME
                                 INTO L_DS_CLAUSES.
      SELECT * FROM XXXX
              WHERE field1 IN ...
               AND   field2 ....
               AND (L_DS_CLAUSES-WHERE_TAB).
          PUT XXXX.
      ENDSELECT.
    You can also try using the FM 'RS_REFRESH_FROM_DYNAMICAL_SEL' passing SY-CPROG in curr_report and 'M'  for mode to get the dynamic selection screen values.
    Regards,
    Munesh.

  • Problem crating text index with PREFIX_INDEX option

    I am trying to create a text index with prefixes option for use in wildcard search scenarios.
    Here is the code I use:
    connect CTXSYS/*******
    BEGIN
    ctx_ddl.create_preference('wildcard_pref', 'BASIC_WORDLIST');
    ctx_ddl.set_attribute('wildcard_pref','PREFIX_INDEX','TRUE');
    ctx_ddl.set_attribute('wildcard_pref','PREFIX_MIN_LENGTH',3);
    ctx_ddl.set_attribute('wildcard_pref','PREFIX_MAX_LENGTH',8);
    ctx_ddl.set_attribute('wildcard_pref','SUBSTRING_INDEX','YES');
    END;
    And preference is created
    SELECT PRE_OWNER, PRE_NAME FROM CTXSYS.CTX_PREFERENCES;
    PRE_OWNER PRE_NAME
    CTXSYS WILDCARD_PREF
    CTXSYS DEFAULT_STORAGE
    CTXSYS DEFAULT_CLASSIFIER
    Now when I log as one of the database users and try to create the index,
    I got this:
    create index wildcard_idx on MY_Table(Name)
    indextype is ctxsys.context
    parameters ('WORDLIST wildcard_pref') ;
    create index wildcard_idx on MY_Table(Name)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: wildcard_pref
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364
    What I am doing wrong ? Keep in mind that I was able to create a text index without the prefixes, but a lot of the searches will be based on patial word search.
    Eventualy I would also like to make those indexes be tansactional and work as a datastore (multiple column search)
    Thanks.
    Stefan

    Problem solved.
    Atrributes and preferences had to be created by the same user creating the index.
    Log as sysdba and
    GRANT EXECUTE ON CTX_DDL TO <user_that_creates_index>
    And it works.
    Message was edited by:
    Stef4o

  • How to select rowid with select * from table_name

    Hello guys i have a cursor like so.
      Cursor c1 IS SELECT * FROM FZRASST;
      -- Row of type FZRASST row
      fzrasst_row c1%ROWTYPE;when i try to reference the row id like this
    fzrasst_row.rowid;i get an error invalid indentifier? how can i reference the row id without implicitely selecting rowid? is this possible or do i need to change my select statement to select every column on the table?
    Any help would be greatly appreciated.

    Hi,
    mlov83 wrote:
    Hello guys i have a cursor like so.
    Cursor c1 IS SELECT * FROM FZRASST;
    -- Row of type FZRASST row
    fzrasst_row c1%ROWTYPE;when i try to reference the row id like this
    fzrasst_row.rowid;i get an error invalid indentifier? how can i reference the row id without implicitely selecting rowid? is this possible or do i need to change my select statement to select every column on the table?Fzrasst_row contains every column that is in the SELECT clause, and nothing more. If you want fzrasst_row to include pseudo-columns (such as ROWID) or anything else, then you have to include them in the SELECT clause.
    To avoid naming every single column in hte table, you can do something like this:
    Cursor c1 IS
        SELECT  FZRASST.*
        ,       ROWID   AS r_id
        FROM    FZRASST;(assuming the table doesn't already have a column called r_id).
    Edited by: Frank Kulash on Feb 13, 2012 3:29 PM

  • Validate plant and material on selection screen with select-options

    Hi all,
    I want to validate plant and material on selection screen. More over I need to validate the combination of that also (i.e plant based materials). Individually I made the validations, but combination I didn’t get it.
    For your information both are select-options, please reply me if you have an idea. The table to get the relationship is KEKO. <b>I have the below code for parameters, but I require code for select options.</b>
    SELECT MATNR WERKS FROM KEKO UP TO 1 ROWS
    INTO (KEKO-MATNR, KEKO-WERKS)
    WHERE MATNR = P_MATNR AND
    WERKS = P_WERKS.
    IF SY-SUBRC <> 0.
    MESSAGE E023 WITH 'COST ESTIMATE NOT FOUND FOR '
    P_MATNR P_WERKS 'COMBINATION'.
    ENDIF.
    ENDSELECT.
    Surely I will reward you.
    Thanks in Advance,
    Raghu.

    Raghu,
    You can't validate on select-options, MARC will have N to 1 relation between Material and plant.
    You can do one thing, keep material as select-option and plant as parameter, now you can validate the materials on plant level.
    Reward if this helps,
    Satish

  • Differences in the object selection order with Select Same and Key Objects

    If you manually select multiple objects using Shift, the first object you select becomes the Key Object for alignments. If you use the Select Similar command, it's the last object. Shouldn't this be uniform between the two methods?

    I have this same issue... HUGE problem and I can't seem to solve it.  Anyone in the same boat?  Solutions?  Thanks in advance for any help!

  • Problems using WITH SELECTION-TABLE

    I am trying to call rfrecpsfa140 using:
      SUBMIT rfrecpsfa140
      "VIA SELECTION-SCREEN
      WITH SELECTION-TABLE gt_rsparams. "parameter table
    I am setting up the table gt_rsparams like this
      "Company Code
      wa_rsparams-selname = 'S_BUKRS'.
      wa_rsparams-kind    = 'S'.
      wa_rsparams-low     = '1000'.
      wa_rsparams-sign    = 'I'.
      wa_rsparams-option  = 'EQ'.
      APPEND wa_rsparams TO gt_rsparams.
      "Land Record
      wa_rsparams-selname = 'S_SGRNR'.
      wa_rsparams-kind    = 'S'.
      wa_rsparams-low     = '287'.
      wa_rsparams-sign    = 'I'.
      wa_rsparams-option  = 'EQ'.
      APPEND wa_rsparams TO gt_rsparams.
    "Land Record
      wa_rsparams-selname = 'S_SGRNR'.
      wa_rsparams-kind    = 'S'.
      wa_rsparams-low     = '392'.
      wa_rsparams-sign    = 'I'.
      wa_rsparams-option  = 'EQ'.
      APPEND wa_rsparams TO gt_rsparams.
    Table is defined like this
           gt_rsparams            TYPE STANDARD TABLE OF rsparams,            "parameter table
           wa_rsparams            like line of gt_rsparams.                   "Work area for gt_rsparams
    The problem I am having is that I am only seeing the results for the first land record, if I uncomment the VIA SELECTION SCREEN and run it, the Multiple Selections is Active, when I go into the multiple selections I can see both land records, however, if I close out of that window I get a message "The entered selections were not copied". If I select Copy from that screen, then run it I get info for both land records.
    Seems like I am setting up the gt_rsparams table wrong, or maybe calling the program incorrectly.
    Any ideas??

    try this way..
    data: r_bukrs type range of bukrs,
            wa_bukrs like line of r_bukrs,
            r_sgrnr type range of sgrnr,
            w_sgrnr like line of r_sgrnr.
    *wa_bukrs-selname = 'S_BUKRS'.
    wa_bukrs-low = '1000'.
    wa_bukrs-sign = 'I'.
    wa_bukrs-option = 'EQ'.
    APPEND wa_bukrs TO r_bukrs.
    *w_sgrnr-selname = 'S_SGRNR'.
    w_sgrnr-low = '287'.
    w_sgrnr-sign = 'I'.
    w_sgrnr-option = 'EQ'.
    APPEND w_sgrnr TO r_sgrnr.
    *w_sgrnr-selname = 'S_SGRNR'.
    w_sgrnr-low = '392'.
    w_sgrnr-sign = 'I'.
    w_sgrnr-option = 'EQ'.
    APPEND w_sgrnr TO r_sgrnr.
    SUBMIT rfrecpsfa140
      with s_bukrs in r_bukrs
      with s_rgrnr in r_sgrnr
      and return.

  • Cannot move objects with Selection Tool

    Having problems moving a selcected with Selection Tool: the selection does not move.
    Also cannot isolate imported picture as it always seems to be selected, even when deselected: Selection Tool always activates first layer even though I'm on another layer
    Any new imported burshes i make up are not saved, even though file names shows up: only managed to save one brush
    I nearly awlays have to re select stroke width everytime I use selection tools or re open file.
    Are the problems due to compatibility issues with Mac OS and Illustrator CS4, as this new version is know to be very buggy in the industry.

    bottchichellee,
    Illy is Illustrator.
    I apologize for the unavailability of the site, owing to some mess by the webhost. This is an extract:
    Up to Illustrator 10, almost all the preference settings were included in the AIPrefs/Adobe Illustrator Prefs file, and almost all issues with corrupted settings could be solved by deleting or moving it; in some rare cases, moving or deleting the folder holding the settings was required.
    From Illustrator CS on, the preference settings have been spread over a number of files/subfolders so in many cases deleting the AIPrefs/Adobe Illustrator Prefs file is not enough: the easy solution is to move the whole folder rather than trying to figure out which file(s) may be corrupted; just deleting the folder without moving it first has proved fruitless in some cases.
    Therefore, the cure all consists of the following steps:
    1. Close Illustrator.
    2. Make a search including hidden files and folders and including subfolders for the folder holding the preference files; the name of the folder depends on the Illustrator version, and the position of the folder depends on the OS version. There is one folder for each version and for each user so it is important to find the relevant one.
    Up to version 10, the name of the folder is Adobe Illustrator [X],
    From version CS on, the name of the folder is Adobe Illustrator [X] Settings.
    [X] is the version number; up to 10, it is just a number, and above that the Creative Suite version number, CS, CS2, CS3, CS4, and so on, is used (the corresponding standalone versions still have simple numbers, CS is called 11, CS2 is called 12, CS3 is called 13, and CS4 is called 14, but the version numbers with CS are used in the folder name).
    3. Either:
    a) Create a subfolder and move all the contents into it; or
    b) Move the whole folder to a place where you can find it again, such as the Desktop.
    With both you may recover the contents of the folder by moving it back if the issue is not solved and get your preference settings back.
    a) requires creation of the subfolder, but it makes recovery easier, especially if you create a shortcut to the preference settings folder, and you can skip the search if/when corruption occurs again.
    You may delete the folder/contents subsequently.
    4. If you have Windows Vista, restart Windows. If not, continue to 5 without delay.
    5. Restart Illustrator, and see whether the issue is solved.
    If the issue is solved, and you wish to keep as many of your preference settings as possible, you may move the folder back and repeat 3) - 5) for groups/individual files/subfolders until you have found the corrupted one(s). You may also start by only moving the AIPrefs/Adobe Illustrator Prefs file.
    You may also see a terse version from ADOBE: Adobe Illustrator CS4 * About preferences.
    Scripts for cleaning out everything between uninstallation and reinstallation for versions CS4 and CS3:
    CS4 Clean Script, http://www.adobe.com/support/contact/cs4clean.html
    CS3 Clean Script
    I believe it is possible to get a refund, but there are some options still.

  • Select querry using inner join

    Hi Friends,
    I need to fetch data from two tables, I used inner join but I am not able to fetch the data in some fields can any one tell me what is wrong in this select querry.
    SELECT but000~partner
             but000~name_org1
             but000~name_first
             but000~name_last
             but000~bpext
          FROM but000 INNER JOIN dfkkop ON but000partner = dfkkopgpart
        INTO table lt_but000
        WHERE but000~partner IN so_part
        AND dfkkop~faedn IN so_faedn.
    Thanx in advance,
    Parvez

    hi Lutin,
    SELECT but000~partner
    but000~name_org1
    but000~name_first
    but000~name_last
    but000~bpext
    FROM but000 INNER JOIN dfkkop ON but000partner = dfkkopgpart  <------check this condition,it has to *satisfy  both table                                                                        
    INTO table lt_but000
    WHERE but000~partner IN so_part
    AND dfkkop~faedn IN so_faedn.
    Regards,
    siva
    Message was edited by:
            SivaKumar

  • Strange problem with select options, problem in my code or standard bug?

    I have a selection screen with no intervals.
    In my select option When i give a range for example
    BT(Between) 1 to 3 and then if i  remove 3 (s-high) value and press enter the BT changes to EQ automatically which is correct.
    Suppose i select BT as my operator and just give 1 in S-low and keep S-high as blank.
    It behaves wiered and the data selected is not correct.  BT now should have changed to EQ but it doesnt happen.
    Same case occurs with NB ie not in between.
    Can experts please give there advice on this behaviour of selection screen

    wht u can do is.....
    u can keep these two input fields as two diff attributes....
    consider it as A , B
    then on various possibilities....fire select queries...
    for eg:
    if A & B not initial.
    then select data between A and B
    if A is not initial B is initial
    then select data = A
    and all possiblities to can think

  • Problem with SUBMIT report [ WITH SELECTION-TABLE ] or [ IN range ]

    Hello Everybody,
    I am trying to call transaction F.80 for mass reversal of FI documents by using SUBMIT sentence and its parameters like this:
      LOOP AT i_zfi013 INTO wa_zfi013.
        PERFORM llena_params USING 'BR_BELNR' 'S' 'I' 'EQ' wa_zfi013-num_doc ''.
    range_line-sign   = 'I'.
    range_line-option = 'EQ'.
    range_line-low    = wa_zfi013-num_doc.
    APPEND range_line TO range_tab.
    endloop.
    Line: -
          SUBMIT sapf080
            WITH br_bukrs-low = p_bukrs
            WITH SELECTION-TABLE it_params  [ same  problem with -  WITH BR_BELNR IN range_tab]
            WITH br_gjahr-low = p_an1
            WITH stogrd = '05'
            WITH testlauf = ''
            AND RETURN.
    My problem is that  when the report is executed the BR_BELNR only delete one document of the all the inputs in the selection criteria from the loop. if I add the statement [ VIA SELECTION-SCREEN] in the SUBMIT if open the multiple selection criteria in the screen I can check that all the documents are set in it from the ABAP code in the loop from it I just need to push F8 to copy them and run the program processing all the documents normally .
    Can some one help me with this? is there a way to execute the transaction BY the SUBMIT with the multiple selection criteria for the Document Number working well?
    Thank for you time and help.

    This is my code:
      TYPES: BEGIN OF T_ZFI013,
              BUKRS     TYPE BUKRS,
              GJAHR     TYPE GJAHR,
              MONAT     TYPE MONAT,
              ANLN1     TYPE ANLN1,
              ANLN2     TYPE ANLN2,
              NUM_DOC     TYPE BELNR_D,
              DATE     TYPE DATUM,
              TIME  TYPE UZEIT,
              USER     TYPE SYUNAME,
             END OF T_ZFI013.
       DATA: I_ZFI013  TYPE STANDARD TABLE OF T_ZFI013,
             WA_ZFI013 TYPE T_ZFI013,
      DATA: br_belnr       TYPE BELNR_D,
            rspar_tab  TYPE TABLE OF rsparams,
            rspar_line LIKE LINE OF rspar_tab,
            range_tab  LIKE RANGE OF br_belnr,
            range_line LIKE LINE OF range_tab."range_tab.
      LOOP AT i_zfi013 INTO wa_zfi013.
        range_line-sign   = 'I'.
        range_line-option = 'EQ'.
        range_line-low    = wa_zfi013-num_doc.
        APPEND range_line TO range_tab.
      ENDLOOP.
      SUBMIT sapf080
        WITH br_bukrs-low = p_bukrs
        WITH br_belnr IN range_tab
        WITH br_gjahr-low = p_an1
        WITH stogrd = '05'
        WITH testlauf = ''.
    This is the RANGE_TAB table before submit:
    1     I     EQ     1001xxxxxx
    2     I     EQ     1002xxxxxx
    3     I     EQ     1003xxxxxx
    4     I     EQ     1004xxxxxx
    5     I     EQ     1005xxxxxx
    6     I     EQ     1006xxxxxx
    7     I     EQ     1007xxxxxx
    8     I     EQ     1008xxxxxx
    I think this wont work for some reason so I will start to do this by a BDC.
    Many thanks for your help.

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • Issue with Select options in select statement - ABAP Question

    Hi
    I am facing an issue with select options. Select statement is returning sy-subrc as 4.
    I wrote the program as below:
    SELECT-OPTIONS:
    s_kunnr FOR bsad-kunnr,
    s_lifnr FOR bsak-lifnr,
    s_gjahr FOR bsad-gjahr,
    s_bukrs FOR bsad-bukrs,
    s_saknr FOR bsad-saknr,
    s_budat FOR bsak-budat.
    In start of selection I have written the select statement as
    SELECT * FROM bsak INTO TABLE lt_bsak
    WHERE bukrs IN s_bukrs AND lifnr = s_lifnr AND gjahr IN s_gjahr AND budat IN s_budat AND saknr IN s_saknr.
    In selection screen I have not entered any values and executed the program. I am not getting any result. When I debug that, sy-subrc is 4 at above select statement. But table has records.
    If am removing the "lifnr = s_lifnr " condition in select then select is returning values.
    I am not getting where I made the mistake. Please suggest.
    Thank you
    Hanu

    Hi,
    The problem here with where condition select option lifnr = s_lifnr.
    Use below select query.
    SELECT * FROM bsak INTO TABLE lt_bsak
    WHERE bukrs IN s_bukrs
        AND lifnr     IN s_lifnr
        AND gjahr   IN s_gjahr
        AND budat  IN s_budat
        AND saknr  IN s_saknr.
    s_lifnr is a select option and you are passing it as parameter lifnr = s_lifnr.
    if you want to pass this s_lifnr as single vale then pass in below mentioned way.
    lifnr = s_lifnr-low
    BR,
    Vijay

  • Problem with:  select 'c' as X from dual

    Problem with 'select 'c' as X from dual'
    I get 2 different results when I execute the above with SQLPlus (or java) depending on the instance I am connected to. For one instance the result is a single character and for the other the character is padded with blanks to 32 chars in the SQLPlus window (and java). Does anyone know what database setting causes this to happen? Is it a version issue ?
    Test #1: Oracle 9.2.0.6 - SQLPlus result is padded with blanks
    SQL*Plus: Release 9.2.0.1.0 - Production on Mon Dec 10 09:27:58 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    SQL> select 'c' as X from dual;
    X
    c
    SQL>
    Test #2 Oracle 9.2.0.1 SQLPlus result is a single character.
    SQL*Plus: Release 9.2.0.1.0 - Production on Mon Dec 10 09:29:27 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL> select 'c' as X from dual;
    X
    c
    SQL>

    Using 9.2.0.6 On AIX 5.2 I get the single byte result:
    UT1 > select 'c' as X from dual;
    X
    c
    If the databases are on different Oracle Homes you may want to check the sqlplus global logon files for any set commands.
    If you executed the two sql statements from different OS directories you may also want to check your sqlpath for sqlplus .logon files.
    Try issueing clear columns and repeating the statement. Are the results the same?
    HTH -- Mark D Powell --

  • Mulitple selection with select option on subscreen

    Hi colleagues,
       I've the following issue:
    I'm programming a dynpro this dynpro contains two subscreens. The lower subscreen will contain another dynpro defined as subscreen with an ALV to display results.
    The top subscreen (0150) area will be filled with a generated subscreen with the command
      SELECTION-SCREEN BEGIN OF SCREEN 0150 AS SUBSCREEN.
    with select options I define my selection area like:
    SELECT-OPTIONS: sa_6 FOR gs_rp_attrib_sel-sonr.
       If I call my transaction starting up the dynpro containing the two subscreens the result looks quit how I expect it. BUT then I try to start up the multiply selection Pop-UP for the selection field by pressing the button just right behind the HIGH input field, nothing happens. The multiply selection pop-up basicly does not show up.
       Any clues what I need to add that it will show up?
       Does the mulitply selection not work with
    SELECTION-SCREEN BEGIN OF SCREEN 0150 <b>AS SUBSCREEN</b>???
    (If I do a simple test program with a selection screen not being a subscreen, the multiply select popup comes up.)

    Hi,
    A subscreen cannot call another screen.
    I guess this is the reason why u are facing this problem.
    Thanks,
    Rashmi.

Maybe you are looking for

  • Variable substitution

    Maybe someone can give me a short hint regarding an error we are getting during the variable substitution in an outbound file adapter. How can we specify a namespace in the variable substituion? Without namespace this is working well, but we don't kn

  • My ipod touch is stuck in zoom mode. How do I fix this?

    I've updated the software, updated my Itunes, restored the stupid thing, I'm running out of options. Because of this issue I can't even really get into the main screen, because all I can see is the upper left hand corner of the lock screen.

  • Unable to open help files in Pagemaker 7.0.1a in Windows 7

    I see this question has been asked before, but the link to the solution no longer works.   Page maker works fine in Windows 7 64 bit, but when I click  on the help button, nothing happens.  If the link on the previous solution can be updated or expou

  • Access Error Using Webservice In Weblogic 7

    Hi, I am getting the following error in Weblogic 7 sp1 when I call a client, which invokes a web service application (A). The application will then connect through the t3 protocol to call another application (B) returning some data. <Dec 17, 2002 4:5

  • How can I switch a book purchase to an audio book purchase?

    Please help me figure out how to switch an iTunes "book" purchase to an "Audio-Book" purchase! I can't believe I made this mistake and want to exchange or cancel the book purchase and then buy the audio book version as new purchase. HELP Please - I f