How do I move

I am trying to create a dynamic internal table
  <b>        call method cl_alv_table_create=>create_dynamic_table
                         exporting it_fieldcatalog = gt_fieldcat
                         importing ep_table = gp_table.
          assign gp_table->* to <gt_table>.
          assign component l_index of structure <ls_table> to <l_field>.
          if sy-subrc eq 0.
          <l_field> = value.
          endif.
  append <ls_table> to <gt_table></b>
   I now want to append this <gt_table> into another internal table ITAB1 but the problem is I dont know how to declare this ITAB1? 
   DATA : ITAB1 type table : does not work???
   Please help.
   Thanks,
   Sanjay

Check this code for creating a dynamic internal table
REPORT ztest_gopi_dynamic.
TYPE-POOLS : abap.
FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
               <dyn_wa>,
               <dyn_field>.
DATA: dy_table TYPE REF TO data,
      dy_line  TYPE REF TO data,
      xfc TYPE lvc_s_fcat,
      ifc TYPE lvc_t_fcat.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS: p_table(30) TYPE c DEFAULT 'T001'.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
  PERFORM get_structure.
  PERFORM create_dynamic_itab.
  PERFORM get_data.
  PERFORM write_out.
*       FORM get_structure                                            *
FORM get_structure.
  DATA : idetails TYPE abap_compdescr_tab,
         xdetails TYPE abap_compdescr.
  DATA : ref_table_des TYPE REF TO cl_abap_structdescr.
* Get the structure of the table.
  ref_table_des ?=
      cl_abap_typedescr=>describe_by_name( p_table ).
  idetails[] = ref_table_des->components[].
  LOOP AT idetails INTO xdetails.
    CLEAR xfc.
    xfc-fieldname = xdetails-name .
    xfc-datatype  = xdetails-type_kind.
    xfc-inttype   = xdetails-type_kind.
    xfc-intlen    = xdetails-length.
    xfc-decimals  = xdetails-decimals.
    APPEND xfc TO ifc.
  ENDLOOP.
ENDFORM.
*       FORM create_dynamic_itab                                      *
FORM create_dynamic_itab.
* Create dynamic internal table and assign to FS
  CALL METHOD cl_alv_table_create=>create_dynamic_table
               EXPORTING
                  it_fieldcatalog = ifc
               IMPORTING
                  ep_table        = dy_table.
  ASSIGN dy_table->* TO <dyn_table>.
* Create dynamic work area and assign to FS
  CREATE DATA dy_line LIKE LINE OF <dyn_table>.
  ASSIGN dy_line->* TO <dyn_wa>.
ENDFORM.
*       FORM get_data                                                 *
FORM get_data.
* Select Data from table.
  SELECT * INTO TABLE <dyn_table>
             FROM (p_table).
ENDFORM.
*       FORM write_out                                                *
FORM write_out.
* Write out data from table.
  LOOP AT <dyn_table> INTO <dyn_wa>.
    DO.
      ASSIGN COMPONENT  sy-index
         OF STRUCTURE <dyn_wa> TO <dyn_field>.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      IF sy-index = 1.
        WRITE:/ <dyn_field>.
      ELSE.
        WRITE: <dyn_field>.
      ENDIF.
    ENDDO.
  ENDLOOP.
ENDFORM.
Regards
Gopi

Similar Messages

  • How can I move music from one computer to the other?

    We have a family computer with everyones music on it but my parents just got me a new laptop for x-mas and I want my music on mine. how do I move them?

    There are a number of different ways that you can move the music. Look at this support article and see which way you think will work best for you.
    iTunes: How to move your music to a new computer

  • How can i move icons from one screen to the other?

    How do i move icons from one page to another?

    Tap and hold any icon for a couple of seconds. They'll all start to wobble. Tap and drag the one you want to move to the side of the screen and the next screen will appear; drop the icon on whatever screen you want it on.
    You can also do it quicker in iTunes - connect the phone and click the Apps tab in the main window. You'll see a picture of your phone with the apps laid out. Just click and drag

  • How can I move apps from one computer to the other?

    How can I move apps from one computer to the other?
    (preferably without iCloud)

    Backup your iTunes library to an external drive and onto the other computer
    http://support.apple.com/kb/ht1751

  • Home computer crashed.  How can I move stuff from iPod Touch to a new computer?

    Our home computer crashed.  How can I move stuff from iPod touch to a new computer?

    - Transfer iTunes purchased by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - Transfer other stuff via the third-party programs discusses in this prevous discussion:
    Best iPod to PC

  • How can I move photos from my computer to a Thumb drive?

    How can I move photos from my computer to a Thumb drive?

    https://discussions.apple.com/message/16881894#16881894
    2 way to get the icon...
    Finder>Preferences>General, check what you want to show on Desktop.
    Finder>Preferences>Sidebar, check what you want to show in the Sidebar of all windows.

  • How can I move clips from one library to another? Clips are still in original drive and not in new drive.

    I am using iMovie 10.0.7 on a 1-week old iMac 27" running Yosemite 10.10.2. I migrated from iMovie 9 on a 2008 iMac running Snow Leopard and updated the libraries and events, etc.
    I have two external drives connected via USB. I want to move / consolidate the library and clips from one of the external drives to the new iMac's 3TB fusion drive. This is to make room on the external drive to run Time Machine backups.
    Apple's instructions on managing libraries and moving/copying clips/events tell me to drag to move between libraries and to Option-drag to copy. However, simply dragging only copies. I find that if I Command-drag the events/clips, I can "move" them. But when I look outside iMovie in the Mac OS X Finder, the event folders and clip files themselves are still sitting in the original drive.
    I'm very perplexed as to how to really move the clips and event structure. Should I manually copy the clips and event folder structure outside of iMovie? I worry I will mess up iMovie's internal record keeping and folder structure information.
    Thanks in advance.

    Ahh, Ok. I actually had to go to Lynda.com to watch a training video of this highly bassackwards maneuver, but now I have it. In other words, while the intuitive thing is to make a new event to hold the clip you want and then open the old event and drag the clip into it's new event, the only way to accomplish this maneuver is to NOT create a new event, but rather, go to the clip AFTER the one you want to move, select it and then Right-Click on it and select SPLIT EVENT BEFORE SELECTED CLIP (or go to FILE>SPLIT EVENT BEFORE SELECTED CLIP). Then you wait a few seconds while the program thinks a bit (no feedback it is doing this - just a pause) and then it automatically creates a new event with the clip you wanted. Now just double-click the new event and name it something meaningful.
    Thanks for your help!

  • How can i move settings from one user to another?

    How do I move all settings and permiions from one user to another?

    http://discussions.apple.com/thread.jspa?messageID=11320719&#11320719
    http://discussions.apple.com/thread.jspa?messageID=12317222
    http://discussions.apple.com/thread.jspa?messageID=6331229

  • How can I move contact from one group to another?

    HOW CAN I MOVE A CONTACT FROM ONE GROUP TO ANOTHER GROUP?

    You usually make ​​contact groups via a computer (Mac or PC). If you use a mac and sync. via iCloud, you can go into Contacs.app and organize your contacts as you wish. Then (if) you sync with iCloud the groups you've changed or created will be displayed on your iPhone and (or) iPad.
    Hope this helped you.

  • How can I move bookmarks from one computer to another.  JUST BOOKMARKS, NOT ANYTHING ELSE

    How can I move Bookmarks from my MacBook Pro to my iMac; just Bookmarks, nothing else.

    Safari Bookmarks?
    Export bookmarks as a HTML file to a usb stick or something.
    Put the USB in your other computer and import bookmarks 

  • How can I move the ODI Work Repository from one server to another server?

    How can I move the ODI Work Repository from one server to another server?

    Hi,
    If you would like to move your source models, target models and project contents from Work repository 1 to another work repository.
    I.e. Dev. server to Prod Server.
    1. Firstly, replicate the master repository connections i.e. with same naming conventions manually
    2. Go to Dev. Server work repository -> File Tab -> Click on Export work repository (save it in a folder)
    3. After exporting, you can view the xml files in the folders.
    4. Now, Open the Prod. server and make sure you already replicated mas. rep. details.
    5. Now, right click on model and import source model in synonym mode insert_update (select source model from the folder where your xml file located)
    6. Similarily, import again target then Project.
    Now, check. It should work.
    Thank you.

  • How can I move my e mails from another provider on my I pad to icloud storage

    I Have 15,000 e mails I have that I need to keep but would like to move them to the cloud how can I move them from my e mail account to the cloud they are using up 10gig of storage on my I pad and would rather use the icloud storage rather then the hard drive. It won't let me update the operating system due to the hard drive being too full. Please help

    Use migration assistant, email it to the other computer or transfer the file using iChat.

  • How can I move an icon/file from one screen of my ipad to another?

    How can I move an icon/file from one screen on my ipad to another?

    Press and hold the icon until they start to wiggle. Then while holding it, drag it to the edge of the screen and wait for the page to switch, then let go of the app

  • How can I move an original Version from one Project to another Project?

    How can I move an original Version from one Project to another Project?

    From the Aperture User Manual:
    To move an image into a different project
    Drag the image [from the Browser] into another project in the Library inspector.

  • How do I move my itunes account from one country to another?

    How do I move my itunes account from one country to another?  I set up my itunes account in the United States and now I live in England.  I would like to transfer my purchases from my US account to my British account and then download them onto my new ipod.  I have uninstalled and reinstalled Itunes and I have updated my Windows 7 operating system.  I have tried to get in touch with apple and the advisor said he could not help me.  Ideas? 

    Before you change the country, note the following:
    - you must use any remaining store credit on your account
    - download all purchased content
    - ensure you have no current rentals(if you do, you'll have to wait for them to expire)
    - provide a new payment(such as a credit or debit card) associated with a valid billing address in the UK or an iTunes Gift Card purchased in the UK
    - content purchased from the iTunes Store is country-specific. If you wish to upgrade any of your iTunes Store content to iTunes Plus, you'll need to do this before you change countries. The content you purchased while your account was set to the previous country will not be eligible for upgrade once you've changed countries.
    - after you change countries, you will no longer receive application update notifications in iTunes for the apps you purchased in your original country. However, you'll still receive update notifications on your iOS device for any applications installed on it. In addition, you'll be able to download previously purchased applications again for free if they are available on your new country's store. You will not be charged and the download will not appear on your Purchased page. If a previously purchased application is not available in your new country, you will not be able to download it again for free.
    - If you have an iTunes Match subscription, you can't change countries until the subscription has expired.
    - If you have purchased a Season Pass, you cannot change the country associated with your account until that season is done airing and the last episode of the season has been added to the iTunes Store.
    Taking the above into consideration, here's how to change your country:
    1. Open iTunes and click Sign In.
    2. Enter your iTunes Store account name and password, then click Account Info.
    3. On the Apple Account Information page, click Change Country or Region.
    4. Enter the updated information and save your changes.

  • How do I move an email address up in the list of accounts on my iPhone?

    I have several email accounts on my iPhone, and I had to remove and reinstall one for a technical reason. Now it's at the very bottom of the list, although it's the one I use the most. How can I move it to the top of the list, without removing and reinstalling all the others? Thanks!

    bunny1 wrote:
    How can I move it to the top of the list, without removing and reinstalling all the others? Thanks!
    You can't. The order is defined by the order added.

Maybe you are looking for

  • Side, back and middle speaker on t7700 not working, please help

    I have had this speaker system for a little while, and it has worked great. Recently the side speakers stopped working, so i unplugged everything, and messed around with some settings. When i plugged it back in it worked fine for about a week or two.

  • ACR corrections not showing up in Bridge previews

    I made a lot of color and tonal corrections to CR2 files (from a Canon 5D) in Camera Raw. When I go back to the folder in Bridge the "old" previews only show up (looks like generic previews); as I scroll thru the images, each time I select an image p

  • IMac display with Dell Inspiron

    I've searched and could not locate the answer to this. My "new" wife has brought a Dell Inspiron 6000 into the family. Not being a windows user - EVER I am looking to see if I can connec the dell to my iMac duo 20" to extend the display. Any suggesti

  • Final Cut With SSDs: experiences or opinions?

    Hi all, I'm looking to get a new MacBook Pro, and I'm swithering as to whether to go trad drive or solid state. I have (of course) read any number of opinions pro and con on any number of sites, and as such I am none the wiser. Is anyone using FCS on

  • Can I use two default route in a router

    Hi I have a router which have two isp line. I want connected two differnt remote site by two isp line. now i have one default and another static. i can use two default route like this ? 0.0.0.0 0.0.0.0 201.222.103.x 0 0.0.0.0 0.0.0.0 201.221.102.y 1