Get the Number of rows or set the number of rows dynamically (internal tab)

Hi,
question pls see subject ?
Regards
sas

Hi,
Use the method describe_by_data of the class cl_abap_structdescr. this will give you a refernce of the class type descriptor class and you need to down cast it to a more specifc class of cl_abap_structdescr.
Once you get the correct reference, you can use the components attribute and you will get a list of all the fields of that table.
DATA: BEGIN OF line OCCURS 0,
        col1 TYPE i,
        col2(10) TYPE c,
        col3 TYPE i,
      END OF line.
FIELD-SYMBOLS : <itab_line> TYPE ANY.
DATA : BEGIN OF t_comp OCCURS 0,
        comp(5) TYPE c,
       END OF t_comp.
DATA : l_struc TYPE REF TO cl_abap_structdescr.
DATA : l_typedesc TYPE REF TO cl_abap_typedescr.
DATA : lt_comp TYPE abap_compdescr_tab,
       w_comp LIKE LINE OF lt_comp.
line-col1 = 11.line-col2 = 'SAP'.line-col3 = 33.
APPEND line.
line-col1 = 44.line-col2 = 'P.I.'.line-col3 = 66.
APPEND line.
ASSIGN line TO <itab_line>.  " Refer of the table is passed to the field symbol
*Call the static method of the structure descriptor describe_by_data
CALL METHOD cl_abap_structdescr=>describe_by_data
  EXPORTING
    p_data      = <itab_line>
  RECEIVING
    p_descr_ref = l_typedesc.
*The method returns a reference of  a type descriptor class therefore
*we need to Cast the type descriptor to a more specific class i.e
*Structure Descriptor.
l_struc ?= l_typedesc.
*Use the Attribute COMPONENTS of the structure Descriptor class to get
*the field names of the structure
lt_comp = l_struc->components.
data l_components.
describe table lt_comp lines l_compoents.  " count the components
Write : 'Table has ', l_component, ' fields.'.
Hope this helps.
regards,
Advait

Similar Messages

  • How to get the field name of an internal table during runtime?

    How to get the field name of an internal table during runtime?

    Hi  Sudhir,
    Declare and Use Get Cursor Field in Your Prm to get the field Name of the Intenal Table
    Example Code:
        <b>  DATA: v_field(60).                        " Insert this code.
         GET CURSOR FIELD v_field.        " Insert this code.</b>
         <b>CHECK v_field = 'ITAB-KUNNR'.    " Insert this code. (or)
    Write: v_field.</b>
    Regards,
    Ramganesan K.

  • Get the ID of a dynamically created symbol from library, INSIDE another symbol.

    Hi everyone,
    I'm trying to get the id from a dynamic created symbol from library.
    When dynamically creating the symbol directly on the stage (or composition level), there's no problem.
    But I just can't get it to work when creating the symbol inside another symbol. 
    Below some examples using both "getChildSymbols()" and "aSymbolInstances" 
    // USING "getChildSymbols()" ///////////////////////////////////////////////////////////////////////// 
    // ON THE STAGE 
    var m_item = sym.createChildSymbol("m_item","Stage");
    var symbolChildren = sym.getChildSymbols(); 
    console.log(symbolChildren[0].getSymbolElement().attr('id')); // ok eid_1391853893203
    // INSIDE ANOTHER SYMBOL
    var m_item = sym.createChildSymbol("m_item", sym.getSymbol("holder").getSymbolElement()); 
    var symbolChildren = sym.getSymbol("holder").getChildSymbols(); // Am i using this wrong maybe?
    console.log(symbolChildren.length) // returns 0 so can't get no ID either
    // USING "aSymbolInstances"" ////////////////////////////////////////////////////////////////////////// 
    // ON THE STAGE
    var m_item = sym.createChildSymbol("m_item","Stage"); 
    console.log(sym.aSymbolInstances[0]); // ok (i guess) x.fn.x.init[1] 0: div#eid_1391854141436
    // INSIDE ANOTHER SYMBOL
    var m_item = sym.createChildSymbol("m_item", sym.getSymbol("holder").getSymbolElement());
    console.log(sym.getSymbol("holder").aSymbolInstances[0]); // Javascript error in event handler! Event Type = element 
    In this post http://forums.adobe.com/message/5691824 is written: "mySym.aSymbolInstances will give you an array with all "names" when you create symbols"
    Could it be this only works on the stage/ composition level only and not inside a symbol? 
    The following methods to achieve the same are indeed possible, but i simply DON'T want to use them in this case:
    1) Storing a reference of the created symbol in an array and call it later by index.
    2) Giving the items an ID manually on creation and use document.getElementById() afterwards.
    I can't believe this isn't possible. I am probably missing something here.
    Forgive me I am a newbie using Adobe Edge!
    I really hope someone can help me out here.
    Anyway, thnx in advance people!
    Kind Regards,
    Lester.

    Hi,
    Thanks for the quick response!
    True this is also a possibility. But this method is almost the same of "Giving the items an ID manually on creation and use document.getElementById() afterwards".
    In this way (correct me if i'm wrong) you have to give it an unique ID yourself. In a (very) big project this isn't the most practical way.
    Although I know it is possible.
    Now when Edge creates a symbol dynamically on the Stage (or composition level) or inside another symbol it always gives the symbol an ID like "eid_1391853893203".
    I want to reuse this (unique) ID given by Edge after creation.
    If created on the stage directly you can get this ID very easy. Like this;
    var m_item = sym.createChildSymbol("m_item","Stage");
    var symbolChildren = sym.getChildSymbols(); 
    console.log(symbolChildren[0].getSymbolElement().attr('id')); // ok eid_1391853893203
    I want to do exactly the same when created INSIDE another symbol.
    var m_item = sym.createChildSymbol("m_item", sym.getSymbol("holder").getSymbolElement());
    Now how can I accomplish this? How can I get the Id of a dynamically created symbol INSIDE another symbol instead of created directly on the stage?
    This is what i'm after.
    Thnx in advance!

  • How can I get the book box in preferences' general tab to show up so I can start adding books to my ipad?

    How can I get the book box in preferences' general tab to show up so I can start adding books to my ipad? I am running OSX 10.9 and Itunes version 11.1.3(8) 64 bit.  I have tried re-installing Maveriks and reinstalling Itunes but the box for books is never there when I click on Preferences' General Tab.
    I am unsure what to do.  Please help.

    There is no "book box in preferences' general".
    There is a new iBooks application that appears on Mavericks' dock.  It looks like this:
    Go there to add books from your Mac to your iPad.

  • Calendar entry takes along time.  I get the spinning color wheel after each tab.

    Calendar entry takes along time.  I get the spinning color wheel after each tab.  How do I avoid this?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Getting the value of variable dynamically

    Hi Gurus,
    How can i get a value of a variable dynamically through user input?Is it possible to get it interacively?
    my reqiurement is to control my loop according to the user supplied value for the flag variable.
    if the user gives the flag as 'Y' loop should continue.else loop should terminate in a PL/SQL block
    here is a piece of code
    CREATE OR REPLACE procedure c is
    flag1 varchar2(10):='Y';
    begin
    while flag1 <> 'N' loop
    dbms_output.put_line('Enter the value.....' );
    +*<< Here I have to get the value of flag1 from user .How to get the user value>>*+
    end loop;
    end;
    Please advice
    Edited by: user5203944 on Nov 18, 2008 3:01 AM

    To add my 2 cents worth you can not get where you want with sqlplus calling PL/SQL
    You have 2 problems
    SQLPLUS has no loop construct and not much in the way of conditional capabilities.
    PL/SQL can not talk to a terminal.
    If you use an &variable in an anonymous block, it is evaluated by sqlplus before the parse of the block takes place.
    Nothing you do in the block can change its value.
    dbms_output.put_line buffers everything output to it and then sqlplus outputs it all after the block completes.
    You can accept variables in sqlplus and pass them into an anonymous block for use, but you would have to exit the block if you wanted to ask something based on a condition determined in the block. You would then have no way to re-enter that block within the sqlplus session.
    Host language programs do not have this problem. You can use ProC ProCOBOL, OCI, Visual Basic, and web interfaces.
    Unless you are on windows you can use a shell script (Unix, Linux or VMS) to do what you want.
    You can accept the variable in the script within a loop. You can call sqlplus silently passing the variable on the command line. You can use the variable command to define variables that will be set in pl/sql blocks use selects of these :variables to set defined sqlplus &variables. You can spool files that will then be processed by the shell language. All this can be done in that shell loop.
    In other words you can do anything you need. You do need to understand your tools and their limitations. You can not use sqlplus commands in pl/sql for example.
    Edited by: Old DBA on Nov 18, 2008 7:31 PM

  • Getting the Person Responsible from Requiremts Assignmts Tab in Service Ord

    Hi,
    I am trying to get the person responsible for a particular operation from the Requiremts Assignmts Tab in Service Order.In the IW32 transaction,in the requirements assignment tab for a particular operation when
    I look at the technica information of the field where the person is assigned, I see that it is on Structure : CYSPLITIN, field: SHORT.
    I need to know the actual database table or link to the operation/activity where I can read the person from in an ABAP program.
    Please find below the SQL trace for your reference.
    Transaction          ?     Work process no                    18     Proc. Type               UP2          Client          100          User          AAAAAAAA          TransGUID          4877F6D607E15917E1000000C0A8D032          Date          12.07.2008
         Duration     Obj. name                    Op.     Recs.               RC     Statement
                 7     VBHDR                    REOPEN                         0     SELECT WHERE "VBKEY" = '4877F6D607E15917E1000000C0A8D032' FOR UPDATE
               697     VBHDR                    FETCH         1                    0
                 6     VBMOD                    REOPEN                         0     SELECT WHERE "VBKEY" = '4877F6D607E15917E1000000C0A8D032' AND "VBRC" <> 0 AND ( "VBMODE" = '2' OR "VBMODE" = '4' OR "VBMODE" = '5' )
               241     VBMOD                    FETCH         3                 1403
                 6     VBDATA                    REOPEN                         0     SELECT WHERE "VBKEY" = '4877F6D607E15917E1000000C0A8D032' AND "VBMODCNT" = 1 AND "VBBLKNO" >= 0 ORDER BY "VBKEY" , "VBMODCNT" , "VBBLKNO"
               233     VBDATA                    FETCH         1                 1403
                 7     TMC2F                    REOPEN                         0     SELECT WHERE "MANDT" = '500' AND "ZEITP" = 'I3' AND "KBTCH" <> ' ' ORDER BY "MANDT" , "ZEITP" , "SUHIE" , "STAFO" , "KBTCH" , "FPROG" , "FROUT"
               363     TMC2F                    FETCH        44                 1403
               496     MCIPMIS                    REEXEC         1                    0     UPDATE SET "STWAE" = 'EUR' , "WAERS" = 'EUR' , "EQUNR" = '000000000003000200' , "BEGRU" = ' ' , "EQTYP" = '1' , "EQART" = ' ' , "INVNR" = ' ' , "ANSDT" = 00000000 , "ELIEF" = ' ' , "HERST" = ' ' , "SERGE" = ...
                 6     VBDATA                    REOPEN                         0     SELECT WHERE "VBKEY" = '4877F6D607E15917E1000000C0A8D032' AND "VBMODCNT" = 2 AND "VBBLKNO" >= 0 ORDER BY "VBKEY" , "VBMODCNT" , "VBBLKNO"
               273     VBDATA                    FETCH         1                 1403
                 8     VBDATA                    REOPEN                         0     SELECT WHERE "VBKEY" = '4877F6D607E15917E1000000C0A8D032' AND "VBMODCNT" = 7 AND "VBBLKNO" >= 0 ORDER BY "VBKEY" , "VBMODCNT" , "VBBLKNO"
               523     VBDATA                    FETCH         1                 1403
               774     VBMOD                    REEXEC         8                    0     DELETE WHERE "VBKEY" = '4877F6D607E15917E1000000C0A8D032'
               476     VBDATA                    REEXEC         8                    0     DELETE WHERE "VBKEY" = '4877F6D607E15917E1000000C0A8D032'
               173     VBHDR                    REEXEC         1                    0     DELETE WHERE "VBKEY" = '4877F6D607E15917E1000000C0A8D032'
               698                         EXECSTA         0                    0     COMMIT WORK ON CONNECTION 0
         Transaction          ST05          Work process no                    0     Proc. Type               DIA          Client          100          User          AAAAAAAA          TransGUID          4877F79907E15917E1000000C0A8D032          Date          12.07.2008
         Duration     Obj. name                    Op.     Recs.               RC     Statement
                10     TFDIR                    REOPEN                         0     SELECT WHERE "FUNCNAME" = 'PERFORMANCE_TRACE_OFF'
               461     TFDIR                    FETCH         1                    0
                 8     TFDIR                    REOPEN                         0     SELECT WHERE "FUNCNAME" = 'SQLT_TRACE_OFF'
               303     TFDIR                    FETCH         1     
                   0
    Regards,
    Sophia Xavier

    Hi Sophie,
    Check if these FMs helps you anyway -   RH_READ_OBJECT or RP_CHECK_PERNR
    I found them in include program - LCOI0F14 . Give a breakpoint in these FMs and check how they are working.
    My system unfortunately dont have any service order ( or i dont know how to see that )
    Cheers
    Kothand
    Edited by: Kothand on Jul 12, 2008 10:19 AM

  • How to get the values of 2 dynamic comboboxes in one jsp to another jsp?

    I have 2 comboboxes and one submit button on my jsp page.I select a value in 1st combobox then the values in the second combobox populated from the database. next i select 2nd combobox and then submit the button.After submit the button call the next jsp page. In that page i want to display the values of two comboboxes. but my problem is , in that page only 2nd combobox value is displayed.1st combobox is displayed as null. plz tell me, how to get the values of two comboboxes at a time?
    Select.jsp:
    <%@ page language="java" import="java.sql.*" %>
    <%!
         Connection con = null;
         Statement  st  = null;
         ResultSet  rs  = null;
         String     sql = null;
         void addItems(javax.servlet.jsp.JspWriter out, String sql)
           try{     
              rs = st.executeQuery(sql);
              while( rs.next() )
                   out.println("<option>" + rs.getString(1) + "</option>");               
         }catch(Exception e)
                   System.out.println(e);
    %>
    <HTML>
    <HEAD>
    <TITLE>JSP WITH  MULTIPLE FORMS</TITLE>
    <script language="javascript">
              function checking()
                        form1.submit();
         </script>
    </HEAD>
         <body>
             <center>
             <b><font size="5" color="#333399">Staff ID:</font></b></center>
                     <FORM NAME="form1" METHOD="POST" ACTION="Select.jsp">
                         <p align=center>
                         Details of Staff :  
                       <SELECT 1 NAME="type" onchange="checking();">
                                    <option> Administrator </option>
                              <option> OfficeAssistent </option>
                              <option> Clerk </option>
                                  </SELECT 1>
                          </p>
    </FORM>
                      <FORM NAME="form2" METHOD="POST" action="welcome1.jsp">
                      <center>
                          <TABLE><TR><TD>Staff ID:</TD>
                                 <TD><SELECT 2 NAME="staff_id">
                    <%    
            String type = request.getParameter("type");
            try {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            con = DriverManager.getConnection("jdbc:odbc:java","system","manager");
            catch (ClassNotFoundException ex) {
                   System.out.println(ex);
            catch (SQLException ex)
                System.out.println(ex);
         st  = con.createStatement();
         sql = "select staff_id from "+type+"";
         addItems(out, sql);
    %>
              </SELECT 2>
           </TD>
         </TR>
    </table></center>
    <h2> Details of <%= type + "s" %> </h2>
                         <center><input type=submit value=ok onclick="submit();"></center>
                  </FORM>
         </BODY>
    </HTML>
    welcome1.jsp
    <center><h1>WEL COME</h1></center>
    <%    
            String type = request.getParameter("type");
            String sid = request.getParameter("staff_id");
    %>
    <h2> Details of <%= type + "s" %> </h2>
    <h2> Details of <%= sid %> </h2>

    <SELECT 1 NAME="type" onchange="checking();">
                                    <option value = "0"> Administrator </option>
                              <option value = "1"> OfficeAssistent </option>
                              <option value = "2"> Clerk </option>
                                  </SELECT 1>

  • How do I get the thumbnails back on a new tab page?

    I get a AVG Secure Search page instead of the thumbnail page now when I load a new tab. How do I get the thumbnails back? I don't have an gear icon on the page to switch it back. This happen after I did a reset of Firefox so that MapQuest would work again which it now does.
    What is interesting is that I get thumbnails if I open a second Firefox window and then click on a new tap page.
    I've install the searchreset addon with no luck. I've run Microsoft Safety Scanner and no problems have been identified.

    Bookmark and use this;
    Download the '''[https://addons.mozilla.org/en-US/firefox/addon/searchreset/ Mozilla Search Reset]''' {web link}
    This add-on is very simple: on installation, it backs up
    and then resets your search preferences and home page
    to their default values, and then uninstalls itself. This
    affects the search bar, URL bar searches, and the home page.
    If you still have a problem, you may have add-ware on your system.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/viruses/disinfection/5350 Anti-Rootkit Utility - TDSSKiller]
    * [http://general-changelog-team.fr/en/downloads/viewdownload/20-outils-de-xplode/2-adwcleaner AdwCleaner] (for more info, see this [http://www.bleepingcomputer.com/download/adwcleaner/ alternate AdwCleaner download page])
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Get the fieldnames of a generic internal table or work area

    Hi All,
           I have one generic work area which I have created in the below manner...
    * ET_DATA itself is a generic table of type ANY...can have any internal table data in it.
    * Create dynamic internal table
      CREATE DATA lv_new_table LIKE et_data.
      ASSIGN lv_new_table->* TO <fs_dyn_table>.
    * Create dynamic work area and assign to fieldsymbol.
      CREATE DATA lv_new_line LIKE LINE OF <fs_dyn_table>.
      ASSIGN lv_new_line->*   TO <fs_dyn_wa>.
    Now...I need to get the field names of this dynamic internal table or work area..
    I have already searched in forum...got many answers..but none them gives me the output.
    Please note that I require the field names and not field position..
    Awaiting your suggestions on how to get field names of this dynamic work area...

      create data wa_ref like line of it_data.
      assign wa_ref->* to <p_data>.
      desc_table ?= cl_abap_tabledescr=>describe_by_data( it_data ).
      desc_struc ?= desc_table->get_table_line_type( ).
      describe field <p_data> type rtty components ncom.
    This one is working in our environment without any error. it_data is an importing parameter in the signature of a method of type any table.

  • How to get the User input of Dynamic Action confirmation message ?

    Hi Guys,
    I'm using apex 4.1,
    I have added a confirmation message box as page Dynamic Action. How can i get the user input of that confirmation pop up ?
    Thanks

    Hi,
    you don't directly get the user input. But you should still be able to get what you want. Let's assume you have a dynamic action which fires for a "Change" (or any other) event and which has two or more actions
    1) Confirm
    2) Execute PL/SQL Code
    If the user clicks Cancel/No in the confirm dialog, APEX will stop the execution of this dynamic action and not run "Execute PL/SQL Code".
    Hope that helps
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • When using the search bar, is it possible to get the search results in a new tab?

    In the old Google toolbar, it was possible to view the search results in a new tab. Google toolbar is compatible with Firefox 7, so I have to use the Firefox Search Bar. However, it always gets the search results in the current tab. Can this be modified?

    Yes. Open a new tab and type or paste ''about:config'' into the location bar, hit enter, and hit enter again to get past the warning. Then paste ''browser.search.openintab'' into the filter box that shows, then double-click on the ''browser.search.openintab'' line to toggle it (it will switch to bold).
    If you'd rather an addon just do the above for you and add a menu option for it, try this:
    https://addons.mozilla.org/firefox/addon/searchontab/
    Alternatively, you can type a search into the search bar and press ''alt+enter'' instead of just enter to open your search in a new tab.

  • Get the class attributes name dynamically?

    Hi all,
    I have to call a transformation and give it as result parameter an internal table with ABAP_TRANS_RESBIND_TAB type.
    How can I get the name & the adresse of the current class parameters ?
    Thanks.
    Edited by: Noureddine MOUTAA on Oct 20, 2008 2:01 PM

    I have to call a transformation and give it as result parameter an internal table type ABAP_TRANS_RESBIND_TAB.
    And to fill this internal table, I need the name and the reference of the attribute
    I mean by REFERENCE the result of this instruction GET REFERENCE OF, as shown below:
    DATA: attribute TYPE string.
    DATA: the_reference TYPE REF TO data.
    GET REFERENCE OF attribute INTO the_reference.
    Thanks.
    Edited by: Noureddine MOUTAA on Oct 20, 2008 4:37 PM

  • What is the best way to get the end of record from internal table?

    Hi,
    what is the best way to get the latest year and month ?
    the end of record(KD00011001H 1110 2007  11)
    Not KE00012002H, KA00012003H
    any function for MBEWH table ?
    MATNR                 BWKEY      LFGJA LFMON
    ========================================
    KE00012002H        1210             2005  12
    KE00012002H        1210             2006  12
    KA00012003H        1000             2006  12
    KD00011001H        1110             2005  12
    KD00011001H        1110             2006  12
    KD00011001H        1110             2007  05
    KD00011001H        1110             2007  08
    KD00011001H        1110             2007  09
    KD00011001H        1110             2007  10
    KD00011001H        1110             2007  11
    thank you
    dennis
    Edited by: ogawa Dennis on Jan 2, 2008 1:28 AM
    Edited by: ogawa Dennis on Jan 2, 2008 1:33 AM

    Hi dennis,
    you can try this:
    Sort <your internal_table MBEWH> BY lfgja DESCENDING lfmon DESCENDING.
    Thanks
    William Wilstroth

  • Logic for retreiving the values from a dynamic internal table

    Hi all,
    I have an issue with the logic to fetch data from a dynamic internal table into fields. let me give you guys an example the sy-tfill = 9 (subject to vary). I need to populate the fields.
    Regards,
    Sukumar

    Hi,
    this is for printing out the info in a dynamic table,
    it will work likewise to insert data.
    PARAMETERS:
      p_tabnam TYPE tabname DEFAULT 'DB_TABLE_NAME'.
    DATA:
      lv_dref TYPE REF TO data,
      ls_dd03l LIKE dd03l,
      lt_fieldname TYPE TABLE OF fieldname,
      ls_fieldname TYPE fieldname.
    FIELD-SYMBOLS:
      <fs> TYPE STANDARD TABLE,
      <wa_comp> TYPE fieldname,
      <wa_data> TYPE ANY,
      <wa_field> TYPE ANY.
    REFRESH lt_fieldname.
    SELECT * FROM dd03l INTO ls_dd03l
                       WHERE as4local = 'A'
                         AND as4vers  = '0000'
                         AND tabname  = p_tabnam
                       ORDER BY position.
      ls_fieldname = ls_dd03l-fieldname.
      APPEND ls_fieldname TO lt_fieldname.
    ENDSELECT.
    IF NOT ( lt_fieldname[] IS INITIAL ).
      CREATE DATA lv_dref TYPE TABLE OF (p_tabnam).
      ASSIGN lv_dref->* TO <fs>.
      SELECT * FROM (p_tabnam) INTO TABLE <fs>.
      WRITE:
        / 'CONTENTS OF TABLE', p_tabnam.
      LOOP AT <fs> ASSIGNING <wa_data>.
        SKIP.
        WRITE:
          / 'LINE', sy-tabix.
        ULINE.
        LOOP AT lt_fieldname ASSIGNING <wa_comp>.
          ASSIGN COMPONENT sy-tabix OF STRUCTURE <wa_data> TO <wa_field>.
          WRITE:
            / <wa_comp>, <wa_field>.
        ENDLOOP.
      ENDLOOP.
    ENDIF.
    grtz
    Koen

Maybe you are looking for

  • NEW  fields in the hr cube 0pt_c01

    Hi Experts, I inserted a noew infoobject in the datafields of the ODS and try to create new update rule. I got the problem " Data Fields was set to 'no update' " for two Info objects (data fields) one already existing and another new Info object. I t

  • Looking for a good music player application........

    Hey everyone, I am still looking for a great music player app for the Bionic and wonder if anyone could provide some good suggestions. The apps I have tried have all had something wrong with it 1) The bionic stock app is ok, but  the lock screen widg

  • Urgent Help needed - locked out of my 7610!

    Hi all. Think I might have locked myself out of voice calls on my 7610 accidentally. Forgot to lock the keypad when I put the phone i my bag and when I retrieved it it had "###########" on the keypad. Now it won't allow me to make any outbound calls

  • List box question

    I am seeing a weird behavior with single select list boxes. If you want to select an item in the list box you click on it. My question is how do you deselect the item? If you click on it again the item should be deselected, but in this case it stays

  • How to catch change cell selection in a JTable?

    I'm using a ListSelectionListener with a JTable to catch the list selection changes but it only detects row changes, and if i select a different cell but within the same row it does not trigger the event. Do you guys know a way to detect this event?