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

Similar Messages

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

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

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

  • Alv table line F2 details

    when F2 is pressed in ALV, a pop-up window shows, giving the details of that table line.
    how do I do the same in OO ALV report when F2 or double-click is used.

    Please find the code:
    FORM sub_show_detail USING uw_check TYPE boole_d.
      DATA: lt_fcat_main   TYPE lvc_t_fcat,
            lt_fcat        TYPE lvc_t_fcat,
            ls_fcat        TYPE lvc_s_fcat,
            ls_data        TYPE lvc_s_deta,
            ls_deta        TYPE lvc_s_detm,
            lw_layo        TYPE lvc_s_layo,
            lt_deta        TYPE lvc_t_detm,
            lw_main        TYPE zfd0r_invoice_analysis_strc,
            lw_count       TYPE lvc_index,
            lw_title       TYPE string.
      FIELD-SYMBOLS: <l_fcat> TYPE lvc_s_fcat,
                     <l_data> TYPE zfd0r_invoice_analysis_strc,
                     <l_cval> TYPE ANY,
                     <l_tval> TYPE ANY.
    Get the Global Field Catalog.
      lt_fcat_main = gt_fieldcat.
    Delete entries based on Invoice or F2 Invoice
      IF uw_check = abap_true.
        DELETE lt_fcat_main WHERE emphasize EQ space
                              AND fieldname NE 'GERNR'.
        lw_title = text-f30.
      ELSE.
        DELETE lt_fcat_main WHERE emphasize >< space.
        lw_title = text-f29.
      ENDIF.
    Get the Detail Display Fieldcatalog
      ls_fcat-fieldname = 'COLUMNTEXT'.
      ls_fcat-ref_table = 'LVC_S_DETA'.
      ls_fcat-key       = abap_true.
      ls_fcat-coltext   = text-f27.
      ls_fcat-outputlen = 20.
      APPEND ls_fcat TO lt_fcat.
      CLEAR ls_fcat.
      ls_fcat-fieldname = 'VALUE'.
      ls_fcat-ref_table = 'LVC_S_DETA'.
      ls_fcat-coltext   = text-f28.
      ls_fcat-outputlen = 35.
      APPEND ls_fcat TO lt_fcat.
      CLEAR ls_fcat.
    Define layout
      lw_layo-no_toolbar = abap_true.
    Fill the Main table
      LOOP AT gt_main ASSIGNING <l_data>.
        lw_count = lw_count + 1.
        DO.
          READ TABLE lt_fcat_main ASSIGNING <l_fcat> INDEX sy-index.
    End of All Fields -> EXIT
          IF sy-subrc >< 0.
            EXIT.
          ENDIF.
          ASSIGN COMPONENT <l_fcat>-fieldname
                  OF STRUCTURE <l_data> TO <l_cval>.
          IF sy-subrc = 0.
            ls_data-columntext = <l_fcat>-scrtext_l.
            ls_data-value = <l_cval>.
            APPEND ls_data TO ls_deta-detailtab.
            CLEAR: ls_data.
          ENDIF.
        ENDDO.
    Generate the Index
        ls_deta-blockindex = lw_count.
    append the display data.
        APPEND ls_deta TO lt_deta.
        CLEAR: ls_deta.
      ENDLOOP.
    Call The Item Detail FM.
      CALL FUNCTION 'LVC_ITEM_DETAIL'
           EXPORTING
                i_title         = lw_title
                it_fieldcatalog = lt_fcat
                is_layout       = lw_layo
           TABLES
                t_outtab        = lt_deta.
    Hope That Helps
    Anirban M.

  • 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

  • Rectifications of different sizes for all the three table lines in footer.

    Hi friendz,
                    i am working in ecc6 system(smartforms).
                    i am using 3 table lines in the footer one for total, the second one for tax calculation, and the third one for the grand total.
    But in the output screen display - the total, tax and grand total(in different table lines) are displayed with different heights, which gives unprofessional look for the form.
    i want all the table lines in the footer to display with equal heights.

    Hi,
    first you create LTYPE follow below sequence
    Go table tab--> details tab--->give suitable heights for ltype
    next go to FOOTER in the main window
    create three table lines under footer like
    FOOTER1
    FOOTER2
    FOOTER3
    for three table lines we need to assign line type LTYPE
    Go FOOTER1 ---> output options -
    > give LTYPE.
         FOOTER2 ---> output options -
    > give LTYPE.
         FOOTER3 ---> output options -
    > give LTYPE.
    reward points if helpful.
    Regards,
    Bhupal.
    Edited by: bhupal reddy on Jul 22, 2008 11:55 AM

  • List UIBB - Access to cell editor for a certain table line possible

    Hi,
    I am looking for a way to access the cell editor of the last table line as I want to mark it as a special - summary - line.
    I intend a similar approach like in WebDynrpo ABAP when accessing the node info and modifying the "CELL DESIGN" attribute like in the following code (copied from WD Comp WDR_TEST_TABLE, View CELL DESIGN, method FILL_CELL_DESIGNS) :
      data tab type IF_CELL_DESIGN=>Elements_Cell_Designs.
      data line type IF_CELL_DESIGN=>Element_Cell_Designs.
      data node_info type ref to if_wd_context_node_info.
      data attribute_info type wdr_context_attribute_info.
      data attr_value type WDR_CONTEXT_ATTR_VALUE.
      node_info = node->get_node_info( ).
      attribute_info = node_info->get_attribute( 'CELL_DESIGN' ).
      line-is_expanded = abap_true.
      line-is_leaf     = abap_false.
      line-key         = 'FIRST'.
      loop at attribute_info-value_set into attr_value.
        line-text = sy-tabix.
        concatenate 'Text #' line-text into line-text. "#EC NOTEXT
        line-cell_design = attr_value-value.
        insert line into table tab.
        line-is_leaf = abap_true.
        line-key = attr_value-value.
        line-parent_key = 'FIRST'.
      endloop.
      node->bind_table( tab ).
    I suspect the method IF_FPM_GUIBB_LISTGET_DATA (or IF_FPM_GUIBB_LISTGET_DEFINITION) of my feeder class to be the right access point.
    But unfortunately, I have not yet found out how to change the cell design for specific lines, only for whole columns.
    Can anyone give me a hint here?
    BTW: The "summary" line is not a sum of the lines above, but determined by backend logic, so not ALV-summary line for me.
    Kind Regards

    Hi,
    A short update for all interested:
    My current work around is to always set the lead selection to the summary line. It does in a kind "mark" that line as special as long as I cannot mark it using a different cell design.
    How do I assure this?
    I have implemented the following code in a redefinition of the method ADJUST_SELECTION:
    *- alter selection
      DATA:
       ls_size TYPE rstabix.
      "get index of summary line
      ls_size-tabix = mo_collection->size( ).
      "change only if there are any cash conc. proposals
      IF ls_size-tabix > 0.
        "do FPM selection
        CLEAR: ev_lead_index, et_selection.
        ev_lead_index = ls_size-tabix.
        APPEND ls_size TO et_selection.
        "do BOL selection
        mo_collection->if_bol_bo_col_multi_sel~unmark_all( ).
        mo_collection->if_bol_bo_col_multi_sel~mark( iv_index = ls_size-tabix ).
      ENDIF.
    The general downside is, that no other selection is possible!
    The selection is always reset to the summary line with each roundtrip.
    Waiting for a better solution...
    Kind Regards,
    Robert

  • MS Word 2007 table lines have interesction tick marks

    Hello,
    MS Word 2007 SP2
    Adobe Acrobat 9.0.0 Plus
    A table created in Word, where row lines are shown but not column lines, shows on some lines tick-marks where row and colums would intersect. In AA version 7 this was not an issue, however, when converting from within Word this too was an issue.
    The image below didn't turn out as clear here than the original, but you still can see the Word bit left and AA on the right with the tick-marks.
    How can it be avoided?
    Thank you
    Stefan

    I'm experiencing this myself. I found instructions to navigate to Edit > Preferences > Page Display. Then, uncheck 'Enhance Thin Lines'. This lightens the lines considerably; reducing the very dark, chunky lines. However, table lines are still not the same width/thickness regardless of the zoom level in Acrobat (50% - 800%). And there is no pattern to where thicker lines appear; header rows, odd rows, etc. A random mess. I'm 100% positive the lines are set properly in Word 2007. And interestingly, all tables lines display equal widths consistently in printed copy- when printing from the PDF. The issue seems to be Adobe's electronic page display and that the 'solution' I found does not work. I have the latest version of Acrobat Pro and a colleague has the latest version of the Reader without a writer license-- no conflict of versions or software suite.
    I deliver documentation to customers electronically. My documents have many tables. My deliverables to look unprofessional and unpolished. My deadlines haven't been met due to research and this unresolved issue. Difficult to accept.
    So frustrated!  Please help!
    Jennifer

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

  • How to adjust space between table lines in smartform

    Hi experts,
    I created a smartform and use table to display content. But I find the space between 2 table lines is always wider than the space between to text lines. I'm using font 10, 6 lines per inch in the style. Is there any way to adjust the height of table line and make it the same as normal text line? Thanks in advance.
    Best Regards,
    Wu Xue

    Hi,
    we have the option of the adjusting the space between lines in the style.
    Select the style that is applied to Form. Once u double click the paragraph that is assigned. You will be able to tab for Spacing ..
    Change  the Line Spacing ..
    Please close the thread, if solved
    Regards,
    Aditya

  • Tables lines/borders, although all formatted to the required weight, once pdf'd show up as different

    Tables lines/borders – although all formatted to the required weight in MS Word 2003, once pdfd show up as different weights and the 'heavier' line varies depending on which magnification the page is in. These lines are coloured, not automatic colour. Hope someone can help. Thanks

    Close the form so you are looking at the "My Forms" tab, the view that shows you all of your forms.  In the "My Forms" tab you can right click on a form and choose "Duplicate" from the context menu or you can select a form and click on the "Duplicate" button in the toolbar above the list of forms.
    Thanks,
    Josh

  • WD ABAP: How to get the contents of selected table lines?

    Hi,
    I'm trying to figure out how to get the contents of table lines back from the UI. I display a table with several lines of data. The user selects some rows. I want to move the contents of the selected rows to another table. I have a context attribute, say DATA, with attributes FIELD1... FIELDn, using a DDIC structure. These are bound to the table UI element and the corresponding table columns. To get the selected rows, I use wd_context->get_selected_elements(). This works, but what I get from this method is references to if_wd_context_element. How do I know which row (row number = ?) this corresponds to? And how do I get the actual data? I want a structure with FIELD1 = value1 FIELD2 = value2 etc. My context attributes FIELD refer to table columns, but I'm looking for the table line...
    Can somebody help me?
    Thanks,
    Ira

    Hi Ira,
    wd_context->get_selected_elements() returns WDR_CONTEXT_ELEMENT_SET which is a table type of IF_WD_CONTEXT_ELEMENT. You can loop through the WDR_CONTEXT_ELEMENT_SET, get into variable say node_elelement which is of type ref to If_Wd_Context_Element. Then you could use the method GET_STATIC_ATTRIBUTES of If_Wd_Context_Element which returns a structure with values of all the attributes in the selected row.
    If you need the row number, while populating the node you could have an additional attribute called rowno and populate it correctly. When you select the data using method GET_STATIC_ATTRIBUTES, you would get the appropriate row number.
    Regards,
    Srini.

  • How to adjust the heigh of the table line

    Dear ABAPers,
           I have created the smartform.In that in MAIN window i created one table.
    In that table i created the table line.My requirement is i want to minimize the height of the table line.
    How to achieve this.
    Thanks & Regards,
    Ashok.

    Hi Ashok,
    What Venkat said is correct. One more way to decrease the size of table line is by:
    Go to smartstyle - go to paragraph format which you are using for your texts.. If it is *, create another paragraph format.
    ANd in that format put line spacing as .1 MM (Less or more accordingt to your requirement)..
    Thanks and regards,
    Palak

  • No table line started. Output to cell not possible

    Hi Everybody:
    I have developed a smartform where in if i give single record as input, it comes fine, but if more than one record is given thru selection scr, the error comes  No table line started. Output to cell not possible when page break is issued.
    Pls help as to why is it coming,
    I also tried SF TRACE, but when i display the error, it says Cannot read from the database.
    Best Regards, Neetu

    To print the internal table's data in the smartform you should use the TABLE.
    LIke define a TABLE, inside the table define required table types.
    Put your data inside your main ... under the Table by using one of the line type.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • Question on PI 7.1 release restrictions

    Hello folks, we are going to be upgrading to PI 7.1 EHP1 from PI 7.0 in our environment soon. Our DEV environment is on a unix server that also hosts EP and MDM usage types (on same physical server although on different filesystems alltogether). I ca

  • BPC 7.5 - Member properties disabled (grey marked)

    Since the upgrade to BPC 7.5 some of the member properties are greyed (disabled). Is it possible to change this setting somewhere?

  • Oracle virtual directory plugin

    Hi, I've developed an OVD plugin which does a call to a webservice, this webservice is protected by basic authentication and thus I need to supply credentials to the OVD plugin to be able to successful connect and make use of the webservice. Now my q

  • Row Span in Advanced data Grid component

    Hi, I have tried to span rows in advancedDatagrid,can anyone help me with an example. Thanks, Chandrasekhar

  • Poor font rendering

    Hello, an application, that loads a ttf font and uses g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); on all components that display text with this font worked well with jre 1.4 on WinXP. Sometimes