Describe table table_name lines var

Hi Gurus,
         In the internal table has 1 records, but only few fields are pouplated, While DESCRIBE statement its not showing the number of records, its a upgrade project from 4.6c to ECC 6.0
data: var type sy-tfill.
describe table table-name lines var.
if var gt 0.
reward asured.
with regards
Thambee.

hi Durai..
while there is only one record populated to an internal table via select statement it would be available only in a workarea. so the DESCRIBE stmt is not calculating the no. of records.
so try to append it to the body.
Try like this sample code..,
data: var type sy-tfill.
DATA: ITAB LIKE ZDB_EMP OCCURS 0 WITH HEADER LINE.
SELECT * FROM ZDB_EMP INTO ITAB WHERE EMPID = '111'.
ENDSELECT.
APPEND ITAB.   " put this append stmt
describe table ITAB lines var.
if var gt 0.
WRITE: / VAR.
ENDIF.
Regards,
K.Tharani.

Similar Messages

  • DESCRIBE TABLE it_pa2001 LINES nbr_lines

    hello evryone,
    please can anyone help me , i need t count in my internal table the number of line but with some conditions :
    the number of lines must be grouped by a field, see  exemple:
    PERNR     SUBTY
    99001000   ZCP
    26000001   ZAS
    26000001   ZAS
    26000001   ZAS
    26000001   ZJS
    26000001  ZJS
    26000001  ZZZ
    26000001  ZZZ
    99001000  ZCP
    i need to count number of lines for each value of fields PERNR, her i have 7 lines for '2600000' and 2 lines for '99001000'.
    thnks a lot.

    hi
    check the below sample code I have taken my own values and tried it its working but you need to SORT the table before you use it.
    DATA :
       BEGIN OF itab,
            a TYPE i,
            b TYPE i,
        END OF itab.
    DATA :
    t_itab LIKE
    STANDARD TABLE
           OF itab.
    DATA :
       w_temp TYPE i,
       w_count TYPE i.
    CLEAR itab.
    itab-a = 1.
    itab-b = 3.
    APPEND itab TO t_itab.
    CLEAR itab.
    itab-a = 1.
    itab-b = 4.
    APPEND itab TO t_itab.
    CLEAR itab.
    itab-a = 1.
    itab-b = 5.
    APPEND itab TO t_itab.
    CLEAR itab.
    itab-a = 1.
    itab-b = 3.
    APPEND itab TO t_itab.
    CLEAR itab.
    itab-a = 2.
    itab-b = 4.
    APPEND itab TO t_itab.
    CLEAR itab.
    itab-a = 2.
    itab-b = 5.
    APPEND itab TO t_itab.
    CLEAR itab.
    itab-a = 3.
    itab-b = 5.
    APPEND itab TO t_itab.
    LOOP AT t_itab INTO itab.
      AT NEW a.
        CLEAR w_count.
      ENDAT.
      ADD 1 TO w_count.
      AT END OF a.
        WRITE :
          / w_count , itab-a.
      ENDAT.
    ENDLOOP.
    The output will be
    4                                  1
    2                                  2
    1                                  3
    First column NO.of times the number is repeated and teh second column is the number that is repeated for that many number of times
    here in the output the first value is how many times the 1 is there in the table and the second value is the key value that you are suppose to sort the table
    Regards
    Pavan

  • Describe table lines

    hi,
    What is the purpose of using Describe table lines.
    DESCRIBE TABLE gt_ADMN_patnr LINES V_LCNT1.
    revert back as soon as possibe.
    kirthi

    Hello,
    Describe statement is mainly used to get the number of record in the itab.
    for example.
    If itab has 5 records.
    Then
    data: lv_lines type i.
    describe table itab lines lv_lines.
    write: lv_lines.
    Now in the output u will see 5.
    Hope this helps you.
    Vasanth

  • Table control: Line selection single issue

    Hi experts,
    I have created a table control and in the screen painter I have defined the line selection as "Single" for table control.
    The table control can display upto 20 lines in a screen and i can select a single record only which pertains to my requirement. if I try to select two records it will not allow.
    Issue: consider  i select a single record from the first 20 lines displayed in screen, then i scroll the records in the table control so that it displays the records from 21 to 40. if I select a single record now from line 21 to 40, the first record that i selected is not getting deselected. That is, totally two lines are getting selected.
    How to overcome this issue
    Thanks in advance
    Regards
    Anand

    Ok
    The "problem" is here:
    Types: Begin of ty_ic,
      ic(20),
      desc(20),
      sel(1)                                 <--------------------------------
    End of ty_ic.
    You've ha a field for selected line and that field is used in table control definition as you've written:
    "Note: wa_ic is the structure used in table control and wa_ic-sel is the mark field defined the table control attributes"
    So you're using the structure WA_IC as header line of internal table IT_IC and also as input/put field of your table control (I mean the screen fields of table control are based on WA_IC).
    You don't need any code in PBO to move the data from internal table to table control, because the headerline of IT_IC and field of table control are the same, infact you've implemented only the code in PAI to save the data from table control to IT_IC:
    Loop at it_ic.
    Modify it_ic from wa_ic index tc_ic-current_line
    Endloop
    t's a good solution if it needs to transfer all data to table control automatically: it doesn't need any code in PBO
    but, of course, there'll be a problem when you don't need to display something, in this case you have to think a solution, I mean you have to write a code in order to avoid to display those data.
    It's the case of the selected line: in your situation all selected lines keep the selection, because the code to clear IT_IC-SEL is missing: only the user can deselect a line, but if he doesn't do it, the line will remain selected after navigation.
    So you make to be sure to clear all selected lines are not displayed.
    You need to create a code in PAI out of the loop of table control where you clear the flag SEL, in order to do it you need to consider:
    - The index of the first record displayed in table control is stored in field TC_IC-TOP_LINE
    - The index of the last record displayed in table control can be calculated: the variable SY-LOOPC indicates how many rows can be displayed in table control, so the last record will be: TC_IC-TOP_LINE + SY-LOOPC.
    So you need to clear the field SEL for all records not displayed, a code like this:
    PROCESS PAI.
      LOOP AT IT_IC.
         MODULE GET_LOOPC.
      ENDLOOP.
      MODULE CLEAR_SEL.
      MODULE GET_LOOPC..
          TOT_LINE_DISPLAYED = SY-LOOPC.
      ENDMODULE
      MODULE CLEAR_SEL.
    * Here you need to clear the selection of the records before of TOP_LINE
           IF TC_IC-TOP_LINE > 1.
              LOOP AT IT_IC INTO WA_IC  TO TC_IC-TOP_LINE.
                 CLEAR WA_IC-SEL.
                 MODIFY IT_IC FROM WA_IC.
              ENDLOOP.
         ENDIF.
    * Here you need to clear the selection of the records after the last one:
          LAST_INDEX = TOT_LINE_DISPLAYED + TC_IC-TOP_LINE.
         DESCRIBE TABLE IT_IC LINES SY-TABIX,
         IF SY-TABIX > LAST_INDEX.
              LOOP AT IT_IC INTO WA_IC  FROM LAST_INDEX.
                 CLEAR WA_IC-SEL.
                 MODIFY IT_IC FROM WA_IC.
              ENDLOOP.
         ENDIF.
      ENDMODULE.

  • Problem with Table control lines

    Hi Friends,
    This is the problem with table control lines:
    I have screen with table control and I would like change the table control lines dynamicaly.
    Exp:
    In my PBO the Internal table which I am using to loop the TC is havig 7 records and its displayed with 7 records, now I have added one more record into my ITAB and now ITAB is having 8 records, when I am looping this ITAB with TC its taking the TC lines 7 only.
    here is the code:
    Initial values in gt_scr400 = 8
    Initial values in tc_scr400 = 8
    Now added one more recor into gt_scr400 , now gt_scr400  = 9.
      LOOP AT   gt_scr400
           INTO wa_scr400
           WITH CONTROL tc_scr400
           CURSOR tc_scr400-current_line.
      ENDLOOP.
    I have used this logic :
      DESCRIBE TABLE gt_scr400 LINES g_rec_300 .
      tc_scr300-lines = g_rec_300.
    but its not modifying the lines in my table control.
    How to change the TC lines based on ITAB total records.
    Thanks,
    Sridhar

    there is a field in TableViewName-xxx
    don't remember the exact field name for (total no of records)
    you can check it in debug.  when you add records in Internal table, u need to modify this field which is set at the first time when table control is populated.

  • Table control lines cannot be controlled in Batch Input session ?

    I am using a program which creates Batch Input sessions for the transaction FCHR (Online cashed checks) . The second screen is that of a table control where the check number is entered.
         I observed that while doing SHDB, if we tick the default size then changing the desktop resolution has no effect on the number of lines in table control - we see 14 lines in both cases.However, when the batch input session is processed, the number of table control lines varies according to the resoution(9 lines for 800600 and approx 15 for 1024768). Selecting the 'Dynpro standard size' option while processing the session has no effect.
      I know call transaction with 'default' parameter in optparam will take care of this problem. But I want to know whether Batch Input Session is known to have a problem with different resolutions.

    HI..
    i had the same problem once.... i dealt in the following way
    while entering values in table control
    1) enter value in the first line
    2) look for button on application toolbar using which you can increment line
    3) you will not find difference for first line but you will find it when you insert second line and go for next line.
    4) now for every increment you will get table conrol as (02) if you are going for recording.
    this will surely solve all issue related to table control as it solved for me
    regards
    Edited by: Mohit Kumar on Feb 19, 2009 12:04 PM

  • Describe table

    Hi all experts
      my requirement is to get the number of records from a itab,
    for a particular document number.
    and my itab is having so many document.
    how to find the number of record for particular  document??

    REPORT zsdq_gen_test .
    data: begin of itab occurs 0,
           doc type bkpf-belnr,
          end of itab.
    data: itab1 like itab occurs 0 with header line,
          itab2 like itab occurs 0 with header line.
    data: lno type i.
    select belnr
           from bseg
           into table itab
           up to 50 rows.
    itab1[] = itab[].
    sort itab1 by doc.
    delete adjacent duplicates from itab1 comparing doc.
    loop at itab1.
      itab2[] = itab[].
      sort itab2 by doc.
      delete itab2[] where doc ne itab1-doc.
      if not itab2[] is initial.
       describe table itab2 lines lno.
       write:/ lno.
      endif.
    refresh: itab2.
    endloop.

  • TABLE CONTRL-LINES SELECTED

    Hi All.
    I have one table control and I want to find out how many line (rows) are selected .
    Can any one help me how to calculate total rows of table control are selected.
    Thanks in advance
    Dhanu

    HI,
    If you want to find the no. of rows selected,you have to use a field of length 1 in database[say pick],and update the internal table everytime a field is selected in PAI.Kindly reward points by clicking the star on the left of reply,if it helps.
    PROCESS AFTER INPUT.
      LOOP AT i_makt.
        FIELD i_makt-pick MODULE check.
      ENDLOOP.
    Here is the complete sample code on table control.
    In the flow logic of the screen 9000, write the following code.
    PROCESS BEFORE OUTPUT.
      MODULE set_status.
      MODULE get_t_ctrl_lines.
      LOOP AT i_makt WITH CONTROL t_ctrl CURSOR t_ctrl-current_line.
    Dynamic screen modifications
        MODULE set_screen_fields.
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT i_makt.
        FIELD i_makt-pick MODULE check.
        FIELD i_makt-zmatnr MODULE zmatnr .
      ENDLOOP.
      MODULE user_command_9000.
    In the program, write the following code.
    PROGRAM SAPMZTC MESSAGE-ID zz.
    Tables Declaration
    TABLES: zzz_makt.
    Internal table Declaration
    DATA : i_makt TYPE STANDARD TABLE OF zzz_makt WITH HEADER LINE.
    Table control Declaration
    CONTROLS: t_ctrl TYPE TABLEVIEW USING SCREEN '9000'.
    Variable Declaration
    DATA : flg,           "Flag to set the change mode
           ln TYPE i.     "No. of records
    *&      Module  get_T_CTRL_lines  OUTPUT
    Populating data
    MODULE get_t_ctrl_lines OUTPUT.
      SELECT zmatnr zmaktx
             INTO CORRESPONDING FIELDS OF TABLE i_makt
             FROM zzz_makt.
      DESCRIBE TABLE i_makt LINES ln.
    To make the vertical scroll bar to come on runtime
      t_ctrl-lines = ln + 100.
    ENDMODULE.                 " get_T_CTRL_lines  OUTPUT
    *&      Module  USER_COMMAND_9000  INPUT
    Triggering event according to the user command
    MODULE user_command_9000 INPUT.
      DATA :lv_fcode LIKE sy-ucomm,    "Function Code
            lv_answer(1) type c.       "Storing the answer
      lv_fcode = sy-ucomm.
      CASE lv_fcode.
        WHEN 'CHANGE'.
    Setting the flag to make the table control in editable mode[excluding
    primary key].
          flg = 'Y'.
        WHEN 'DELETE'.
    Setting the flag to make the table control in editable mode after
    deleting the selected line
          flg = 'Y'.
    Confirmation of delete
          CALL FUNCTION 'POPUP_TO_CONFIRM'
            EXPORTING
             TITLEBAR       = 'Confirm'
             text_question  = 'Are you sure to delete from database?'
             TEXT_BUTTON_1  = 'Yes'(001)
             TEXT_BUTTON_2  = 'No'(002)
            IMPORTING
             ANSWER         =  lv_answer.
          if lv_answer eq '1'.
    Updating the database table from the internal table
            UPDATE zzz_makt FROM TABLE i_makt.
    Deleting the selected row from the internal table
            DELETE i_makt WHERE pick = 'X'.
    Deleting the selected row from the database table
            DELETE FROM zzz_makt WHERE pick = 'X'.
            MESSAGE s005 WITH 'Deleted Successfully'.
          ENDIF.
        WHEN 'SAVE'.
    Inserting new record or updating existing record in database table
    from the internal table
          MODIFY zzz_makt FROM TABLE i_makt.
          MESSAGE s005 WITH 'Saved Successfully'.
        WHEN 'BACK'.
          SET SCREEN '0'.
        WHEN 'EXIT' OR 'CANCEL'.
    Leaving the program
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Module  set_screen_fields  OUTPUT
    Setting the screen fields
    MODULE set_screen_fields OUTPUT.
      LOOP AT SCREEN.
        IF flg IS INITIAL.
          screen-input = 0.
        ELSEIF ( flg EQ 'Y' ).
          IF ( ( screen-name = 'I_MAKT-ZMAKTX'
                 OR screen-name = 'I_MAKT-CHECK1' )
                AND t_ctrl-current_line LE ln ) .
    Making the screen fields as editable
            screen-input = 1.
          ELSEIF ( ( screen-name = 'I_MAKT-ZMATNR' )
                     AND t_ctrl-current_line LE ln ).
    Making the screen field as uneditable
            screen-input = 0.
          ENDIF.
        ENDIF.
    Modifying the screen after making changes
        MODIFY SCREEN.
      ENDLOOP.
    ENDMODULE.                 " set_screen_fields  OUTPUT
    *&      Module  zmatnr  INPUT
    Appending records to the internal table
    MODULE zmatnr INPUT.
      MODIFY i_makt INDEX t_ctrl-current_line.
      IF t_ctrl-current_line GT ln.
        READ TABLE i_makt WITH KEY zmatnr = i_makt-zmatnr.
        IF sy-subrc NE 0.
    Inserting record if it does not exist in database
          APPEND i_makt.
        ELSE.
         MESSAGE i005 WITH 'Material Number' i_makt-zmatnr 'already exists'.
        ENDIF.
      ENDIF.
    ENDMODULE.                 " zmatnr  INPUT
    *&      Module  set_status  OUTPUT
    Setting the GUI status
    MODULE set_status OUTPUT.
      SET PF-STATUS 'ZSTATUS'.
      SET TITLEBAR  'ZTITLE'.
    ENDMODULE.                 " set_status  OUTPUT
    *&      Module  CHECK  INPUT
    Modify the internal table using the current line in table control
    MODULE check INPUT.
      MODIFY i_makt INDEX t_ctrl-current_line.
    ENDMODULE.                 " CHECK  INPUT

  • Difference between DESCRIBE TABLE..... and  SY-DBCNT

    Hi,
    i want to know the difference between DESCRIBE TABLE.. command and SY-DBCNT.

    hi
    good
    SY-DBCNT->
    SY-DBCNT gives the number of records in database table
    After an open SQL statement, the system field sy-dbcnt contains the number of database lines processed.
    REPORT ychatest.
    DATA : v_matnr LIKE mara-matnr.
    SELECT matnr FROM mara INTO v_matnr UP TO 1 ROWS.
    ENDSELECT.
    WRITE : sy-dbcnt.
    DESCRIBE->
    DESCRIBE LIST
    The DESCRIBE LIST statement allows you to import certain list attributes, such as the number of lines or pages, into program variables.
    you need to know the attributes of list levels that were not stored in system variables during list creation, you can use the DESCRIBE LISTstatement.
    To retrieve the number of lines or pages of a list, use:
    DESCRIBE LIST NUMBER OF LINES|PAGES n ...
    To get the page number of a particular line number, use:
    DESCRIBE LIST LINE lin PAGE pag ...
    To get the properties of a particular page, use:
    DESCRIBE LIST PAGE pag ...
    Use DESCRIBE LIST for completed lists only, since for lists in creation (index is sy-lsind) some properties are not up to date.
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba42335c111d1829f0000e829fbfe/content.htm
    thanks
    mrutyun^

  • Bug 6002713: Describe table@db_link gives an error that the object does not

    Not sure if this is correct place to report on a known bug, can't seem to find a bug site/database on the SQL Developer home page.
    Anyway in SQL Developer 1.2.1.32.13 release notes it says that the bug that stops you describing tables via a database link has been resolved.
    This doesn't seem to be the case, well 100% fixed anyway.
    The following statement works in SQLPlus but not in SQLDeveloper.
    DESCRIBE schema_name.object_name@database_link;
    You still get the message
    ERROR: object object_name@database_link does not exist
    It looks like the schema_name component is removed before the describe is executed?

    Hi Cliff,</br>
    <p>The Release Notes list the main known issues. So the bug #6002713 is a known issue and not a bug fixed. There is a separate Bugs Fixed list.
    <p>Not all bugs logged are published. I have now published this bug, so you can track it through Metalink.
    <p>Finally, while SQL Developer is a free product, you are supported through Metalink, and hence Oracle Support, if you have a Database Support contract. This detail is available from the "Pricing, Support & Licensing Questions" document on the SQL Developer page on OTN.
    <p>Regards
    </br>Sue

  • How to keep together Title + table's line across pages

    Hi all, I have a question.
    I'm trying to create a .rtf template where I have a table with 4 lines and a title <PROJ_NAME>
    I need to repeat this table (with all the necessary information - 4 lines) as many times as the projects' names are stored on the DB.
    For example: if the employee has 4 projects, on the report I will see 4 times these table and the relative project name as title.
    So, the repeating group mechanism works perfectly, but I am not able to control how the table's lines are splitted across pages....
    In other words if I have two pages in my .rtf template and I am at the end of the first page:
    1) I don't want to see the title on the bottom of the first page and the relative table above on the second page (title and table splitted on two differents pages)
    2) I don't want to see the title and a portion of the table on the bottom of the first page and the rest of the table (1,2 or 3 lines) above on the second page (table splitted on two differents pages)
    At the end I'd like to see always title and table together even if the page finishes. If the title + table exced the table's vertical border, it has not be splitted, but rewrite entirely (title + table) on the next page.
    The syntax is this:
    <?for-each-group:G_PROJ;./PROJ_NAME?><?PROJ_NAME?>
    TABLE WITH 4 LINES
    <?end for-each-group?>Page break
    I tried also, reading the forum, to use the paragraph properties (Keep lines together), but nothing.....
    Anyone can suggest me something ?
    Thanks in advance
    Alex

    After the for loop,
    take a table (suppose A) with one row and one column. In that table insert the Project name tag. Below that tag, insert an inner table(suppose B) in table A with 4 rows and columns you wish. Now select the outer table A(select the whole table), and in the table properties/Row , in the options , uncheck the 'Allow row to break across pages' property.
    end the for loop.

  • Why no table for Line manager in SAP HCM

    Hi ,
    I am a ABAP technical consultant , I am aware about the program and Function modules required for fetching an employees line manager . My question is why SAP has not made a table for line manager info . As every time I need that info I put in redundant coding efforts to fetch that details . I would like to get your views on this one .
    Thanks
    Gaurav Deep

    Hi Gaurav Deep,
    I think it would be too easy if there would be direct table for finding line manager Seriously speaking I think SAP HR is clever compared to other modules using the object-oriented concept. When relationship between position and person is updated standard function modules find the new line manager without going to specific table. Maybe if other modules would have as clever built we wouldn't have that many tables in SAP? My favourite function module in HR is RH_STRUC_GET. If you can't find fitting evaluation path to return what you want to get then it is easy to create one in tcode OOAW.
    cheers, s

  • Describe table causes ide to hang

    SQL Developer : 1.2.1.3205 , Win2K profession client.
    describe <table name > causes sql developer to report unexpected condition and sql worksheet hangs, The report error stuff does not work either for me , below is the error log.
    Is there any way i can go back to the previous release of 1.2.1 other than downloading the installable again.
    i just updated sqldeve and now describe does not work...
    Please advise.
    --Amol
    Performing action About[ from oracle.dbtools.raptor.navigator.NavWindow ]
    Invoking command: oracle.ide.cmd.AboutCommand[ from oracle.dbtools.raptor.navigator.NavWindow ]
    Performing action About[ from oracle.dbtools.raptor.navigator.NavWindow ]
    Invoking command: oracle.ide.cmd.AboutCommand[ from oracle.dbtools.raptor.navigator.NavWindow ]
    Performing action New...[ from oracle.dbtools.raptor.navigator.NavWindow ]
    Performing action Preferences...[ from oracle.dbtools.raptor.navigator.NavWindow ]
    Invoking command: oracle.ide.cmd.IdeSettingsCommand[ from oracle.dbtools.raptor.navigator.NavWindow ]
    Invoking command: Insert[ from oracle.dbtools.sqlworksheet.sqlview.SqlEditor ]
    Invoking command: Insert[ from oracle.dbtools.sqlworksheet.sqlview.SqlEditor ]
    Invoking command: Insert[ from oracle.dbtools.sqlworksheet.sqlview.SqlEditor ]
    Invoking command: Delete Previous[ from oracle.dbtools.sqlworksheet.sqlview.SqlEditor ]
    Invoking command: Insert[ from oracle.dbtools.sqlworksheet.sqlview.SqlEditor ]
    Performing action About[ from oracle.dbtools.sqlworksheet.sqlview.SqlEditor ]
    Invoking command: oracle.ide.cmd.AboutCommand[ from oracle.dbtools.sqlworksheet.sqlview.SqlEditor ]
    Performing action Execute Statement[ from oracle.dbtools.sqlworksheet.sqlview.SqlEditor ]
    Exception while performing action Execute Statement
    java.lang.IllegalAccessError: tried to access method oracle.dbtools.raptor.scriptrunner.ScriptRunner.<init>()V from class oracle.dbtools.sqlworksheet.scriptRunner.ScriptRunnerPane
    o.dbtools.sqlworksheet.scriptRunner.ScriptRunnerPane.setStatement(ScriptRunnerPane.java:181)
    o.dbtools.sqlworksheet.sqlview.SqlEditorMainPanel.scriptRunner(SqlEditorMainPanel.java:1256)
    o.dbtools.sqlworksheet.sqlview.SqlEditor.executeScriptRunnerPlan(SqlEditor.java:1522)
    o.dbtools.sqlworksheet.sqlview.SqlEditor.executeSql(SqlEditor.java:631)
    o.dbtools.sqlworksheet.sqlview.SqlEditor.executeSql(SqlEditor.java:268)
    o.dbtools.sqlworksheet.sqlview.SqlEditorController.handleEvent(SqlEditorController.java:649)
    o.i.controller.IdeAction.performAction(IdeAction.java:551)
    o.i.controller.IdeAction$2.run(IdeAction.java:804)
    o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:823)
    o.i.controller.IdeAction.actionPerformed(IdeAction.java:521)
    jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    jx.s.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
    j.a.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    j.a.Component.processMouseEvent(Component.java:5488)
    jx.s.JComponent.processMouseEvent(JComponent.java:3126)
    j.a.Component.processEvent(Component.java:5253)
    j.a.Container.processEvent(Container.java:1966)
    j.a.Component.dispatchEventImpl(Component.java:3955)
    j.a.Container.dispatchEventImpl(Container.java:2024)
    j.a.Component.dispatchEvent(Component.java:3803)
    j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    j.a.LightweightDispatcher.processMouseEvent(Container.java:3892)
    j.a.LightweightDispatcher.dispatchEvent(Container.java:3822)
    j.a.Container.dispatchEventImpl(Container.java:2010)
    j.a.Window.dispatchEventImpl(Window.java:1774)
    j.a.Component.dispatchEvent(Component.java:3803)
    j.a.EventQueue.dispatchEvent(EventQueue.java:463)
    j.a.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    j.a.EventDispatchThread.run(EventDispatchThread.java:110)

    "from "+
              "name_tbl n "+
              "join ecb_tbl e1 on n.prfx = e1.name "+
              "join ecb_tbl e2 on e1.name = e2.name "+
              "join ecb_tbl e3 on e2.name = e3.name and e3.vdat < e2.vdat "+
              "join ecb_tbl e4 on e3.name = e4.name and e4.vdat < e2.vdat "+You are joining the name table to the ecb table four different ways. It looks like you are going to get a huge number
    of records in some cases. Somewhere around the number of name records * the number of ecb records
    to the 4th power. So if the were 20 name records and 20 ecb records for each name record (with a
    matching prefix), you would get 20*20^4 records or 3.2 million matching records. I don't know what your
    data looks like, so it's hard to say.
    You might try catching the SQLException in doQuery and printing the sql statement produced and then
    throwing the error again. That way when the query times out, you can find out what it's doing and
    reproduce the problem in a query tool and refine your query there rather than recompiling and testing that way.

  • Table control line selection issue

    HI im facing a problem in table control.
    I have a table control with selection column ( single ).
    First time when i select a row its is marked X in the internal table,
    Now again when i select another row .. The old row still holds the value X and the new row is gettign marked as X.
    The problem here is the old selection is not getting cleared in the internal table.
    This is the statement used in PAI
    MODIFY gt_header INDEX tbl_header-current_line FROM wa_header .
    Here the previous value is not getting cleared.

    KSD,
    During PAI Loop, the screen flow logic loops only through the visible table control lines. In your case, the user has scrolled down and seeing line 30 to 40 (say for example) after selecting a line in first page view. This is very common with any table control.
    Now user is viewing 1 to 10 lines of the TC and have selected 3rd line. User then scrolls down by pressing page-down - now PAI is triggered and the internal table's 3rd line is modified with MARK='X'. User then views lines 30 to 40 and selects 33rd line. Now table control will automatically clear the MARK in 3rd line in the Table Control only. But it is the responsibility of the developer written code to clear the same in the Internal Table.
    So within PAI Table Loop, you have to check the MARK which is coming from Screen to ABAP program every-time and if it is 'X', you have to clear any other line's MARK. Remeber you should not do this for multi-select. There is an attribute of the table control LINE_SEL_MODE. The above logic of clearing other lines' MARK should be implemented only after checking this attribute.
    So incidentally your solution was the appropriate one.
    Cheers,
    Suresh

  • Table for line items of budget document posted through FMBB transaction.

    HI,
    I am looking for Table of line items of budget document posted through FMBB transaction.
    There is table FMBL but it is breaking the amount into 12 parts.
    Thanks.

    Hi
    check the tables
    FMBDA   
    FMBDP   
    FMBDT   
    FMBH
    BPDK
    Regards
    Anji

Maybe you are looking for