Any Suggestion to find nested-nested table levels??

My Code will dynamically generate nested types of arbitrary depth, create a table with a column of that type and populate it with a simple set of values.
create or replace procedure ntdepth1(n number)
AUTHID CURRENT_USER
as
type_stm varchar2(255);
type_name varchar2(250);
type_query varchar2(250);
no number;
table_name varchar2(250);
create_table varchar2(250);
drop_query varchar2(250);
ins_query varchar2(250);
store_query varchar2(250);
v_comma varchar2(250);
ins_query2 varchar2(250);
ins_comma varchar2(250);
begin
type_query:='create type nested01 as table of integer';
-- myprint(type_query);
create_table:='create table wrap01(nesttle01 nested01) nested table nesttle01 store as nest_01';
-- myprint(create_table);
ins_query:='insert into wrap01 values(nested01(1))';
-- myprint(ins_query);
drop_query:='drop table wrap01';
-- myprint(drop_query);
execute immediate type_query;
execute immediate create_table;
execute immediate ins_query;
execute immediate drop_query;
for i in 2..n
loop
-- myprint(chr(10));
no:=i-1;
type_name:='nested0'||no;
type_stm :='create type nested0';
type_query:=type_stm||i||' as table of '||type_name;
ins_query2:='nested0'||i;
-- myprint(type_query);
table_name:=' wrap0'||i;
store_query:=' nested table nesttle0'||i||' store as nest_0'||i;
for j in reverse 1..i-1
loop
ins_query2:=ins_query2||'(nested0'||j;
store_query:=store_query||'(nested table column_value store as nest_0'||j||'0'||i;
v_comma:=')';
ins_comma:='))';
if j=1 then
for k in 1..(i-1)-1
loop
v_comma:=v_comma||')';
ins_comma:=ins_comma||')';
end loop;
end if;
end loop;
store_query:=store_query||v_comma;
create_table:='create table'|| table_name||'(nesttle0'||i||' nested0'||i||')'||store_query;
-- myprint(create_table);
ins_query:='insert into'||table_name||' values('||ins_query2||'('||i||')'||ins_comma;
-- myprint(ins_query);
drop_query:='drop table'||table_name;
-- myprint(drop_query);
execute immediate type_query;
execute immediate create_table;
execute immediate ins_query;
execute immediate drop_query;
type_stm:='';
create_table:='';
end loop;
exception
when others then
myprint(sqlerrm);
myprint(sqlcode);
end ntdepth1;
SQL> /
Procedure created.
SQL> exec ntdepth1(5)
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
-6502
PL/SQL procedure successfully completed
It stops with level-4 and pops up with the above error.
But,when i create only nested levels seperately,i am able to create nearly 450 nested nested table types
create or replace procedure ntdepth(n number)
AUTHID CURRENT_USER
as
type_stm varchar2(255);
type_name varchar2(250);
type_query varchar2(250);
no number;
begin
type_query:='create type nested01 as table of integer';
-- myprint(type_query);
execute immediate type_query;
for i in 2..n
loop
-- myprint(chr(10));
no:=i-1;
type_name:='nested0'||no;
type_stm :='create type nested0';
type_query:=type_stm||i||' as table of '||type_name;
-- myprint(type_query);
execute immediate type_query;
type_stm:='';
end loop;
exception
when others then
myprint(sqlerrm);
myprint(sqlcode);
end ntdepth;
SQL> /
Procedure created.
SQL> exec ntdepth(450) -- I could create upto 450 nested levels
PL/SQL procedure successfully completed.
Why is it So?,Is there any better suggestion to improve my main code??
Regards,
S.

My Code will dynamically generate nested types of arbitrary depth blah blah blah...and what use is that exactly?
You are popping the create_table variable at line 55. Clearly 450 storage clauses are not going to fit into a 250 byte string.

Similar Messages

  • TS1382 I have a ipod classic 160GB and it's not showing any music anymore, but there is still 7GB of memory being used, and I don't have it back up on my itunes, since I had to put a new hard drive on my computer. Any suggestion to find out whats on that

    I have a ipod classic 160GB and it's not showing any music anymore, but there is still showing 7GB of memory being used, and I don't have it backed up on my itunes, since I had to put a new hard drive on my computer. Any suggestion to find out whats on that memory or to get it the music back, there is approximately over 1400 songs on it?

    What is the memory being used by, is it Other? If it is, that means the iPod can no longer read the music, so it has put it all in "Other".
    The usual fix for this is to allow the iPod to Sync with its iTunes Library. If that doesn't work, the next option is to Restore the iPod using the Restore command in iTunes, on the Device/Summary pane.
    Unless you are very (very) lucky, I suspect that you are going to have to Restore your iPod. Restoring will remove everything form the iPod and put back onto it only what it finds in your iTunes Library, which you say is currently empty.
    If you have to rebuild your Library after this issue, by adding all the music back again, this is going to be hard to hear, but for the future, you may want to consider always having a backup of your library. The easiset way to back the Library up is;
    if the Library is small enough, burn it to a DVD, as digital files, not a "music CD".
    If your Library is too large for a DVD, buy yourself an external hard drive and copy the Library onto the drive. Remember to update the backup every so often.

  • I recently broke my iPad screen and replaced the iPad.  All of my iCloud account was able to be uploaded again except for some work we did in NUMBERS.  Any suggestions to find it it out there in the cloud?

    I recently broke my iPad screen and had the iPad replaced in the Genius Bar.  We deleted everything from the old iPad then I took it home to connect to iCloud to restore all of my work.  Everything came back from iCloud except some work I had done in NUMBERS.  Any suggestions? I'd love to relocate this work.

    You cannot prevent it from being erased now. But surely you backup with iCloud or iTunes and/or sync with iTunes so when you get the iPad up and running again, just restore from your iCloud backup, or your iTunes backup and then sync with iTunes again and you will be OK.
    If you don't backup or sync .... Well then you should probably think about doing so in the future. Out of the mouth of a Apple ......
    If you erase then find your iOS device, you can restore the information on the device using iCloud Backup (if backup was turned on before you erased it) or iTunes. For more information, see iCloud storage and backup overview, or your device’s user guide in Safari bookmarks or on the Apple Support website.

  • When watching movies on my iPad with headphones (they're Bose so good quality) on an airplane I can barely hear the sound with everything turned up--any suggestions to increase sound level outside of normal volume adjustments?  thanks for the help

    When watching a movie on my iPad 2 with headphones (they're Bose so good quality) on a plane I can barely hear even with volume at highest level--any suggestions on how to increase sound level outside of normal settings-sound level even lower when using a splitter--thanks

    Same problem with all headphones and earbuds--just checked settings and Volume Limit was already off--starting to think it's a volume system flaw tied to videos and related sound.   No problem getting plenty of sound volume for music, only videos. 

  • HI my network connections is working fine but it doesnt allow me to update software or access apple store. Any suggestions?

    HI my network connections is working fine but it doesnt allow me to update software or access apple store. Any suggestions?

    Then it simply was NOT Brand New. Doesn't matter what the box looked like when you got it or if you went through the setup pages when you first turned it on. If it is registered to some other Apple ID then someone else had originally registered it and locked it to there ID.
    Type in the serial number of the system into this page.
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    And see when it was originally registered.
    Then send it back to Amazon as Used.
    LordRavenWolfe wrote:
    So I bought a brand new macbook from Amazon, and it came factory sealed (Not my first time buying a macbook, last one I bought was from Apple directly) but after I got this, I put in my apple I.D. and it told me there were updates available. I told it to go ahead and update, and it updated about half of the list, but the essential stuff (pages, notes, etc) it says "This software was installed using another Apple I.D. Please logon with that I.D. to install the software."  I'm a bit baffled by this as it is a brand new mac and so I don't know why anyone else's I.D. would be logged into this mac.  I'm not really worried about it though, as I don't really need to update my pages, etc, as I like what I have, but I'd love for this stupid "updates availble" popup to stop popping up every freaking day!!!
    Anyone have any suggestions on finding out how to either gain access to update, or get rid of that "other" i.d. that is somehow associated with my brand new macbook?
    I'm running OSX 10.9 if that is of any consequence.

  • Table in nested Iterators-Tree Level Rules for ViewInstances using same VL

    Hi All ,
    Jdev 11.1.1.6 , ADF BC , WLS 10.3.5.
    I have a use case wherein I need to show a table nested at 3rd level within 2 af:iterators like -
    <af:iterator id="i1" value="#{bindings.Location.collectionModel}"
                   var="locRow" varStatus="varStatus">
    <af:iterator id="i2" var="deptRow" value="#{locRow.children}"
    varStatus="varStat">
    <af:table value="#{deptRow.Employees}" //using child View Link accessor Attribute directly can use deptrow.children too
                          var="row">
    <af:column>
    <af:inputText value="#{row.EmployeeName}">
    </af:column>
    </af:table>
    </af:iterator>
    </af:iterator>I need to display a table of Employees for each manager ... like ManagerId=100 in one table and others in a separate one (I know weird requirement but thats how it is :( )
    So basically in my AM Data Model I have shuttled two view instances of Employee and filtered them using ViewCriterias accordingly like ->
    OrgAM
    -Location
    Department
    ---Employees //(WithManager100)
    ---EmployeesWithManageNot100
    Now since there is just one ViewLink between Department & Employees .. I am able to add "*EmployeesWithManageNot100*" as a child ViewLink accessor attribute , only Employees is available.
    Is there any way we can show separate child ViewInstances in a treeModel with only one ViewLink ?

    Thanks for your reply Frank.
    important: 11.1.1.6 , ADF BC , WLS 10.3.5. is not correct - it should be WLS 10.3.6AFAIK , 11.1.1.6 is compatible with both WLS 10.3.5 and 10.3.6 WLS and comes out of the box with WLS 10.3..5 which I am using for the Integrated Server.
    So while there is a way to have two child node collections, its not from view object instances you define and configure using view criteriaThe link you posted above is simialr to another link I bumped into yesterday -
    "How to filter tree node child data" , Pg 12 @ http://www.oracle.com/technetwork/developer-tools/adf/learnmore/feb2011-otn-harvest-328207.pdf written by you.
    But my requirement is showing instances of the same EmployeeVO as two tables inside the Department Iterator. But I am not able to do that since there is only one ViewLink accessor for the EmployeeView.
    Is that even possible without using 2 explicit physical View Links ?

  • In Final Cut Pro x, Somehow my video got muted and I can't find a way to UNMUTE it! (it won't let me manually lift up or down the waveform - nor go in and raise the level of loudness) Any suggestions? (How to unmute)

    In Final Cut Pro x, Somehow my video got muted and I can't find a way to UNMUTE it!
    (it won't let me manually lift up or down the waveform - nor go in and raise the level of loudness)
    Any suggestions? (How to unmute)

    Do you know how to use the volume adjustment line?
    If so, is it not working?
    Can you post a screenshot of your audio?

  • I prepare chronologies in word, and i am trying to do the same in pages using tables and cells. But somtimes i need a cell to wrap onto the next page but I can't work out how to do it - any suggestions would be greatly appreciated

    I prepare chronologies in word, and I am trying to do the same in pages using tables and cells. But sometimes I need a cell to wrap onto the next page because the contents are bigger than the page or the space left on the page,  but I can't work out how to do it - any suggestions would be greatly appreciated

    brendanfromsydney wrote:
    What are the different opinions on why pages should not achieve this?
    As far as I know, Apple is free to choose to offer this or that feature.
    They never said that they want to clone Word or even compete with it.
    Differences between tables in both worlds are numerous.
    In Pages (or Numbers)
    - we can't sort a single column
    - we can't sort by row
    - we can't insert or remove a single cell
    - a cell can't cross pages boundaries
    If I understand well these design choices match :
    ++-+-+-+-+-+-+-+-++
    Apple Human Interface Guidelines:
    Apply the 80 Percent Solution
    During the design process, if you discover problems with your product design, you might consider applying the 80 percent solution‚ that is, designing your software to meet the needs of at least 80 percent of your users. This type of design typically favors simpler, more elegant approaches to problems.
    If you try to design for the 20 percent of your target audience who are power users, your design may not be usable by the other 80 percent of users. Even though that smaller group of power users is likely to have good ideas for features, the majority of your user base may not think in the same way. Involving a broad range of users in your design process can help you find the 80 percent solution.
    +-+-+-+-+-+-+-+-+-++
    Yvan KOENIG (VALLAURIS, France) jeudi 9 juin 2011 16:03:52
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Create xml file with nested internla table or with header & item tables

    Hi I have a requirement like, I need to create an xml file for header and item details. For 1 header there may be multiple line items.
    I did search in forums some where I came to know that we can use XSL:IF to achieve this. but I could not able to do this.
    I tried with using nested internal tables also but now luck.
    can anybody please suggest how can we create xml for header and item detials.
    <xsl:transform version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:sap="http://www.sap.com/sapxsl"
      xmlns:asx="http://www.sap.com/abapxml"
      exclude-result-prefixes="asx"
    >
    <xsl:template match="/">
      <OrbisomRequest>
        <xsl:attribute name="Version">
          <xsl:value-of select="11.1"/>
        </xsl:attribute>
        <xsl:attribute name="IssuerID">
          <xsl:value-of select="1"/>
        </xsl:attribute>
        <xsl:for-each select="asx:abap[1]/asx:values[1]/T_FINAL[1]/*">
    <CreateApprovedPurchaseRequest
           RerquestID="{VBLNR}"
           CommonName="User1"
           Amount="{WRBTR}"
           Comment="TestComment"
           CurrencyCode="978"
           PurchaseType="All"
           SupplierName="All"
           VCardAlias="PurchaseCard"
           ValidFrom="1M"
           CurrencyType="B">
                    <CDFs>
                      <Invoice> <xsl:value-of select="BELNR"/> </Invoice>
                      <Amount> <xsl:value-of select="WRBTR"/> </Amount>
                    </CDFs>
          </CreateApprovedPurchaseRequest>
        </xsl:for-each>
      </OrbisomRequest>
    </xsl:template>
    </xsl:transform>
    here belnr and wrbtr will be my item details. for each payment document I can have multiple invoices. in CDF I need to display the invoices for that particular payment document.
    what conditions can I put there before CDFs to make the item internal table to loop based on header internal table.
    Regards,
    Ranganadh.

    Looks like you have already created the transformation "Z_ID"
    Take a look at the following thread, it answers many of the questions you have asked:
    [ABAP data to XML conv with UTF-8 encoding and custom namespace|Re: ABAP data to XML conv with UTF-8 encoding and custom namespace;
    Che

  • Passing Nested internal table to GUI_DOWNLOAD

    Hi All
    I have got a nested internal table, I want this whole report in excel format, I tried using GUI_DOWNLOAD , it gives error. Does any body have any idea how can I solve this.
    regards
    AJ

    Hi,
    I think nested and deep structure internal tables will not work with gui_download.
    you need to convert before giving it to gui_download
    aRs

  • Problem reading data from nested internal table.

    Hi,
    Below is my code;
    *********SAP Code********
    TYPES: BEGIN OF v54a0_scdd,
             fknum  LIKE vfkk-fknum,
             change LIKE vfkkd-updkz,
             x      TYPE v54a0_scd,
             y      TYPE v54a0_scd,
             tvtf   LIKE tvtf,
           END OF v54a0_scdd.
    SCD table for dialog
    TYPES: v54a0_scdd_tab TYPE v54a0_scdd OCCURS 1.
    *********SAP Code********
    *Custom declaration*****
    data: wa_freight_costs type v54a0_scdd_tab.
    data: it_freight_costs type v54a0_scdd_tab occurs 0.
    *****Here data is getting appended to it_freight_costs. P_frieght_costs is coming from standard program.
         move p_freight_costs TO wa_FREIGHT_COSTS.
         append wa_freight_costs to it_freight_costs.
         clear wa_freight_costs.
    ***Now the problem is here. I am not able to read the data from the nested internal table x-item.
    if i use <fs_f_costs> to move data from it_freight_costs in the outer loop, i get a syntax error; <i> "the line type of the table it_freight_costs is not compatible with field symbol type <fs_f_costs>" </i>
         FIELD-SYMBOLS: <fs_f_costs> type line of v54a0_scdd_tab.
          LOOP AT it_freight_costs assigning <fs_f_costs>.
              LOOP AT <fs_f_costs>-x-item ASSIGNING <fs_freight_item>.        
                  <b> I want to read <fs_freight_item>-vfkp-netwr.</b> 
             ENDLOOP.
    Can anyone guide me?

    A quick look at how I would do this. Note I haven't checked if this compiles just done a quick brain-dump.
      DATA: lr_f_costs TYPE REF TO v54a0_scdd_tab,
            lr_f_cost TYPE REF TO v54a0_scdd.
      LOOP AT it_freight_costs REFERENCE INTO lr_f_costs.
        LOOP AT lr_f_costs->* REFERENCE INTO lr_f_cost.
        ENDLOOP.
      ENDLOOP.
    As you can see I personally prefer pointers to field symbols - I don't believe there is any performance differences and because of my background in other languages pointers make more sense to me.
    Cheers
    Graham Robbo

  • Nesting Data table Components

    Hi ,
    I am having a problem using the new data table component in SJSC 2 EA2. I need to have data table nested inside the colum of a outer datatable. I assign the sourcedata propertiy of the first table to a ObjectArrayData Provider. Then i set one of the columns in the table to group panel and add another data table(Nested ) into it. It shows up fine inthe designer. The Object in the parent tables row has a getter for an array of another classes objects. The problem is if i set the source data property of the nested table using #{currentRow.value['']} to the name of the array object return by the parent object we get a property not found exception when running. Is there any referances as to how to nest data table compoenents in Java Studio Creator 2 EA2
    Thanks
    kusan

    Hi,
    Please post queries related to SJSC 2 EA2 at:
    https://feedbackprograms.sun.com/login.html
    Cheers
    Giri

  • HT1695 I have the 1st generation iPad.  All of a sudden it will not connect to my wi-fi.  It finds my wi-fi, but will not totally connect.  I have done everything...reset network, rebooted router etc and it still will not connect.  Any suggestions?

    I have the 1st generation iPad.  All of a sudden it will not connect to my wi-fi.  It finds my wi-fi, but will not totally connect.  I have done everything...reset network, rebooted router etc and it still will not connect.  My other divices are connected....iPhone and 3 Macs.  Any suggestions?

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • How to create dynamic nested internal table

    Hi Experts,
    Pleae tell me or give sample code, how to create dynamic nested internal table ?
    I have seen threads saying creation of dynamic internal tables using some table structure only. But now the requirement is to create dynamic nested internal table.
    For example the internal table contains two fields viz., one is field1 of dynamic internal table and other is normal field2 and values as shown below:
    Nested internal table:
    field1                     |     field2 ...
    <table content1>     |     value2..
    <table content1>     |     value2..
    Here the [table content] should also a dynamic internal table.
    Let me know if you need any other info.
    regards
    Saravanan R

    see the complete code..i am currently working in ECC6.0 EHP4. just check which version you are using..
    REPORT  yst_test_000.
    DATA:
          lt_comptab         TYPE cl_abap_structdescr=>component_table,
          ls_comp            LIKE LINE OF lt_comptab,
          lref_newstr        TYPE REF TO cl_abap_structdescr,
          lref_tab_type      TYPE REF TO cl_abap_tabledescr,
          lt_fcat            TYPE lvc_t_fcat,
          ls_fcat            TYPE lvc_s_fcat,
          ls_dd03p           TYPE dd03p,
          lt_data            type ref to data.
    field-symbols: <fs_table> type standard table.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
      EXPORTING
        i_structure_name       = 'SCARR'
      CHANGING
        ct_fieldcat            = lt_fcat
      EXCEPTIONS
        inconsistent_interface = 1
        program_error          = 2
        OTHERS                 = 3.
    IF sy-subrc NE 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    LOOP AT lt_fcat INTO ls_fcat.
      IF ls_fcat-ref_table IS NOT INITIAL.
        CLEAR ls_dd03p.
        CALL FUNCTION 'BUS_DDFIELD_GET'
          EXPORTING
            i_tabnm         = ls_fcat-ref_table
            i_fldnm         = ls_fcat-fieldname
          IMPORTING
            e_dd03p         = ls_dd03p
          EXCEPTIONS
            field_not_found = 1
            OTHERS          = 2.
        IF sy-subrc EQ 0.
          ls_comp-name = ls_fcat-fieldname.
          ls_comp-type ?= cl_abap_datadescr=>describe_by_name( ls_dd03p-rollname ).
          APPEND ls_comp TO lt_comptab.
          CLEAR ls_comp.
        ENDIF.
      ELSE.
        ls_comp-name = ls_fcat-fieldname.
        ls_comp-type ?= cl_abap_datadescr=>describe_by_name( ls_fcat-rollname ).
        APPEND ls_comp TO lt_comptab.
        CLEAR ls_comp.
      ENDIF.
    ENDLOOP.
    *Now for the Field which you want deep table then you can do like this
    ls_fcat-fieldname  = 'NESTED_TABLE'.
    ls_fcat-inttype    = 'C'.
    ls_fcat-intlen     = '000006'.
    ls_fcat-rollname   = 'SFLIGHT_TAB1'. "For SFLIGHT
    APPEND ls_fcat TO lt_fcat.
    ls_comp-name = ls_fcat-fieldname.
    ls_comp-type ?= cl_abap_datadescr=>describe_by_name( ls_fcat-rollname ).
    APPEND ls_comp TO lt_comptab.
    CLEAR ls_comp.
    lref_newstr = cl_abap_structdescr=>create( lt_comptab ).
    lref_tab_type = cl_abap_tabledescr=>create( lref_newstr ).
    create data lt_data type handle lref_tab_type.
    assign lt_data->* to <fs_table>.
    break-point.
    Edited by: Vijay Babu Dudla on Apr 28, 2009 8:05 AM

  • Just downloaded the latest version of iTunes.  Can't find "Power Search" anymore to locate specific songs or artists?  Using "Browse" takes waaay too long.  Any suggestions?

    Just downloaded the latest version of iTunes, but can't find "Power Search" anymore to locate specific songs or artists quickly?  "Browse" takes waaay too long.  Any suggestions?

    http://www.apple.com/feedback/kaywerty wrote:
    A rather long winded way of asking if anybody knows if it's possible to have multi-windows open
    It's not possible.
    Suggestions here -> Apple Product feedback

Maybe you are looking for

  • In which part of the page i can write java script

    Hi I'm new with ADF and web development I have a java script function that show a tooltip. This is the function: *function positionTip(evt) {* *     if (!tipFollowMouse) {* *          standardbody=(document.compatMode=="CSS1Compat")? document.documen

  • Account issues - at the end of my tether with BT

    I've been a customer of BT for 16 years (that's loyalty!) but over the last 3 months I'm now at the end of my tether. I upgraded my broadband & phone package in October 2013. BT closed my old account and set up a new one. First of all the new broadba

  • Can someone help comment on my workflow?

    I'm looking for advice on my workflow.   I'm a dad taking pics of nature, kids, parties etc.    I need to get the gazillion of raw pics off my drive before it overflows. Also, I've been using one collection per year but realize I need to combine all

  • Client Certificate authentication doesn't work

    Hi there, I want to use client authentication to log on to a SAP WebAS ABAP. I did everything as described in Gregor Wolfs Blog: Setup Authentication with Client Certificates for the Sneak Preview SAP NetWeaver 04 ABAP Edition on Windows (my system i

  • Satellite A500 - How to switch from Vista 64bit to 32bit?

    Hei guys, I recently purchased my new A500-14c Series and installed the Vista 64bit version. What happens is that later I found out that a USB sound card that I use doesnt have vista64 drivers yet, so I wanted to re-install the SO and choose Vista 32