Copy Z table structure and contents

Hi all,
I am looking at a quick and easy way to copy a Z Table structure and its contents from
one system to another completely different system on different servers and locations.
Is this possible?
Thanks

Yes its possible Try to transport the request
The request should contain your required objects
Contact your basis admin he will do the transport the request from OS level.
Then Go and change the SID in the table TADIR
And Give the object name and change the SID of the object then it allows you to change as per the new requirement.
Hope This will help you.
Regards,
Madan Mohan.

Similar Messages

  • Copying table structure and data.Please help

    Hi,
    I have a table called preview,with 100 million records in it.How can I copy the table structure and data into a table called temp_preview.
    Is it efficient to use
    create table temp_preview tablespace temp
    as select * from preview;Thanks

    Hi,
    If it is on the same database. That is the most efficient way.
    Regards
    Anurag Tibrewal.
    PS: You can try parallelism but this is not performance improvent as far as resource are concerned, it is just instead of one thread parallel thread would be working, so it just reduce the time the query takes to complete

  • Can we join a table structure  and a transparent table?

    Pls let me know, whether we can join a table structure  and a transparent table and how?

    Hi rich,
         Since i dont have ur id ,iam posting my issue on this ,can u please help me on the below issue.
    below i have a set of code which would sends email along with attachtment .
    iam getting the XLS attachtment perfectly ,but for TXT attachtment there was problem with formating all the records are formated in single line .
    a solution on this would be helpfull.
    Thanks,
    vinay .
    FUNCTION Z_SHANKAR_ATTACHMENT.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(EMAILID)
    *"     VALUE(SUBJECT)
    *"     VALUE(ATYPE)
    *"  TABLES
    *"      ATTACH_FILE STRUCTURE  SOLISTI1
    *"      BODY OPTIONAL
    This table requires information about how the data in the
    tables OBJECT_HEADER, CONTENTS_BIN and CONTENTS_TXT are
    to be distributed to the documents and its attachments.
      DATA OBJPACK LIKE SOPCKLSTI1 OCCURS  2 WITH HEADER LINE.
    This table must contain the summarized data dependent on each object type.
    SAPscript objects store information here about forms and styles,
    for example. Excel list viewer objects store the number of rows and columns
    amongst other things and PC objects store their original file name.
      DATA OBJHEAD LIKE SOLISTI1   OCCURS  1 WITH HEADER LINE.
    This table must contain the summarized content of the objects identified as binary objects.
      DATA   OBJBIN TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                     WITH HEADER LINE.
    This table must contain the summarized content of the objects identified as ASCII objects.
      DATA OBJTXT  LIKE SOLISTI1   OCCURS 10 WITH HEADER LINE.
    This table must contain the document recipients.
      DATA  RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE .
    This structure must contain the attributes of the document to be sent.
      DATA: DOC_CHING LIKE SODOCCHGI1.
      DATA: TAB_LINES LIKE SY-TABIX.
    Create the internal table for body , subject
      DATA: IT_BODY LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    *changes added to the code by shankar.
    constants: x(1) type X value '0A'.
    *End of changes to the code
    CONSTANTS: con_cret TYPE C VALUE cl_abap_char_utilities=>horizontal_tab,
               con_tab TYPE C VALUE  cl_abap_char_utilities=>cr_lf,
               con_new type c value  CL_ABAP_CHAR_UTILITIES=>NEWLINE.
    Move Body to Internal Table (body into it_body)
      LOOP AT BODY .
        MOVE BODY TO IT_BODY .
        APPEND IT_BODY .
      ENDLOOP.
      DOC_CHING-OBJ_DESCR = SUBJECT.   "Subject of the Email
    Move the Subject and Body to OBJTXT
      OBJTXT[] = IT_BODY[].
    DESCRIBE TABLE OBJTXT LINES TAB_LINES.
    READ TABLE OBJTXT INDEX TAB_LINES.
    DOC_CHING-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    CLEAR OBJPACK-TRANSF_BIN.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM   = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM   = TAB_LINES.
    OBJPACK-DOC_TYPE   = 'RAW'.
    APPEND OBJPACK.
    Convert IT to Excel format
    IF ATYPE = 'XLS' .
      LOOP AT ATTACH_FILE .
        REPLACE ALL OCCURRENCES OF '#' IN ATTACH_FILE WITH con_cret. "  INTO objbin.
        CONCATENATE  ATTACH_FILE con_tab INTO objbin.
        APPEND  objbin.
      ENDLOOP.
    ELSEIF ATYPE = 'TXT' .
      LOOP AT ATTACH_FILE .
        REPLACE ALL OCCURRENCES OF '#' IN ATTACH_FILE WITH con_tab. "  INTO objbin.
        CONCATENATE con_new ATTACH_FILE-line  INTO OBJBIN-line .
    *changes done by shankar
    *CONCATENATE ATTACH_FILE-line con_new INTO OBJBIN-line .
        APPEND OBJBIN .
      ENDLOOP.
    ENDIF.
    ****End-Code Excel Format .
    DESCRIBE TABLE objbin LINES tab_lines.
    objhead = subject. APPEND objhead.
    Creating the entry for the compressed attachment
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num   = 1.
    objpack-body_start = 1.
    objpack-body_num   = TAB_LINES.
    objpack-doc_type   = ATYPE.
    objpack-obj_name   = 'ATTACHMENT'.
    objpack-obj_descr = 'TEST'. "Attachment File Name
    objpack-doc_size   = TAB_LINES * 255.
    APPEND objpack..
    reclist-receiver = EMAILID.
    reclist-rec_type = 'U'.
    APPEND reclist.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
       DOCUMENT_DATA                    = DOC_CHING
       PUT_IN_OUTBOX                    = 'X'
       COMMIT_WORK                      = 'X'
    IMPORTING
      SENT_TO_ALL                     =
      NEW_OBJECT_ID                   =
      TABLES
        PACKING_LIST                    = OBJPACK
       OBJECT_HEADER                    = OBJHEAD
       CONTENTS_BIN                     = OBJBIN
       CONTENTS_TXT                     = OBJTXT
       RECEIVERS                        =  RECLIST
    EXCEPTIONS
       TOO_MANY_RECEIVERS               = 1
       DOCUMENT_NOT_SENT                = 2
       OPERATION_NO_AUTHORIZATION       = 4
       OTHERS                           = 99 .
    ENDFUNCTION.

  • ORACLE_HOME Directory Structure and Content description

    Can anyone show me the Oracle document or website which lists the
    ORACLE_HOME Directory Structure and Content description for windows platform.
    Oracle 10g R2.
    Thank you,
    Smith

    http://download.oracle.com/docs/cd/B19306_01/install.102/b14316/ofa.htm#CBBEDHEB

  • Table structure and constraints in HTML table

    This script creates a html file (Structure.html) that contains structure of a specific table.
    When the following script is executed in sql * plus, it asks for the table name for which
    structure information is needed. after entering the table name, it writes the table structure
    into structure.html file.
    SET LINESIZE 150
    SET PAGESIZE 150
    SET FEEDBACK OFF
    SET VERIFY OFF
    COLUMN "COLUMN NAME" FORMAT A50
    COLUMN "DATA TYPE" FORMAT A15
    COLUMN "IS NULL" FORMAT A15
    COLUMN CONSTRAINTS FORMAT A15
    PROMPT Enter table name:
    ACCEPT TABNAME
    SET MARK HTML ON
    SPOOL STRUCTURE.html
    PROMPT &TABNAME
    -- Query ---
    SELECT TRIM(A.COLUMN_NAME) AS "COLUMN NAME",
    TRIM(DATA_TYPE||'('||DECODE(A.DATA_LENGTH,22,A.DATA_PRECISION||','||A.DATA_SCALE,
    A.DATA_LENGTH) || ')') AS "DATA TYPE",
    TRIM(DECODE(A.NULLABLE,'Y',' ','NOT NULL')) AS "IS NULL",
    TRIM(DECODE(C.CONSTRAINT_TYPE,'P','PRIMARY KEY','R','FOREIGN KEY('||D.TABLE_NAME||')','U','UNIQUE', 'C','CHECK')) AS CONSTRAINTS,
    TRIM(C.CONSTRAINT_NAME) AS "CONSTRAINT NAME",
    C.SEARCH_CONDITION AS "CHECK CONDITION",
    A.DATA_DEFAULT AS "DEFAULT VALUE"
    FROM USER_TAB_COLS A,
    USER_CONS_COLUMNS B,
    USER_CONSTRAINTS C,
    USER_CONS_COLUMNS D
    WHERE
    A.TABLE_NAME = '&TABNAME' AND
    A.TABLE_NAME = B.TABLE_NAME(+) AND
    A.COLUMN_NAME = B.COLUMN_NAME(+) AND
    B.CONSTRAINT_NAME = C.CONSTRAINT_NAME(+) AND
    C.R_CONSTRAINT_NAME = D.CONSTRAINT_NAME(+);
    SPOOL OFF
    SET MARK HTML OFF

    Hi,
    For Head Count you can use 0HR_PA_0 datasource and the other Employee details like start date and end date you can get them from employee master data and FTE can be calculated from the Emloyee Master Data and Head count data.
    Hope this helps...
    Thanks,

  • Best approach to create Package Structure and .content.xml

    I am aware that we have a schem.xsd for generic package content.xml creation and neither do vault.xml and other associated xml files in the META-INF folder of the package.
    I want to know if there is some recommended approach to build the package and xml files, specifically content.xml programmatically on the file system. I know that we can use package manager (API not the GUI/screen) but that comes into picture when the folder structure and xmls files are created. I am interested to know a standard procedure of acceptable procedures to build the structure. I have seen folks use JDom/SAX etc to build this and even velocity to try it out using templates but that looks largely as a workaround. Can anyone help with some inputs on this?

    We've been successful at using ANT as a Build tool to run XSLT 2.0 using the Saxon XSL processor.  We have processed both CSV and XML files into packages.  This started out pretty simply, but grew more complex than initially thought.  There are a lot of subtlties that can be overlooked in the package format.  Also if your filters aren't right it will happily delete a lot of data.  Thankfully it appears uninstalling can recover these most times, but I'd recommend testing packages on a throw away instance.
    I've posted an example Ant + XSL that goes from CSV > XML > Many XML Files > CRX Package Zip: https://github.com/odu/crx-package-xsl-example.  There is also some info on some of the complexities of a package mentioned on that page that may be helpful, even if Ant / XSL isn't your route.
    Can you share more about your use for building a package, what format is the source data in, etc?  This example is really only useful for batch loading.

  • Simple question about table structure and HR in BW

    i need to following data from HR:
    current FTE, employee number, cost place
    i dont think the current FTE is stored per employee. Therefor is would need a list that contains:
    mutation start date, mutation end date, FTE, employee, cost place
    i think cost place is a custom field.
    my question : what tables names and field names do i need?
    Thanks in advanced

    Hi,
    For Head Count you can use 0HR_PA_0 datasource and the other Employee details like start date and end date you can get them from employee master data and FTE can be calculated from the Emloyee Master Data and Head count data.
    Hope this helps...
    Thanks,

  • Statistical table, pool table, structure, and ordinary table

    请教在ABAP引用表时,不同类型的表的区别:
    statistical table
    pool table
    structure,
    ordinary table
    其它 table (请列出)
    谢谢!

    >
    leopard123456 wrote:
    > 请教在ABAP引用表时,不同类型的表的区别:
    > statistical table
    > pool table
    > structure,
    > ordinary table
    > 其它 table (请列出)
    >
    > 谢谢!
    对上面提到的几个term不是很明白(尤其是statistical table和ordinary table),其中structure应该不是表的类型。
    请举例。

  • Get Idoc structure and contents from Shipment Number

    Hi all,
    We have a 3rd Party Logistics company who wants to send us back minimal shipment data to enable us to update our shipment details.  They want to send us the shipment number, and vehicle information.  My tests (and SAP's documentation) have indicated that in order to modify a shipment via the message type SHPADV, you need to have the complete Shipment Idoc structure filled in in order for the idoc to process successfully.
    My client has indicated that they want to use IDoc processing to manage the shipment updates.
    Does anyone know of a FM that can be used to fill the shipment Idoc structures if only a shipment number is filled in?  Or do the structures have to be modified manually?  For example, these is a function called 'IDOC_READ_COMPLETELY' which populates all the segment details if an Idoc number is entered.  I want something similar, but for a document number, in this instance, a shipment number. 
    Cheers,
    Steve

    Roger,
    Thanks for this suggestion.  I chose to go down another path which I put up here for those who have this problem in the future.
    I have passed the shipment number and just the fields that require modification into user exit EXIT_SAPLV55K_020, and recorded the passed in values into variables.
    I then executed the <b>idoc_output_shpmnt</b> idoc, which, when the shipment number is passed in to the nast-objky field, reads the required shipment data and populates the idoc_data table with the segment details as per sending the document out.  But the FM doesn't actually call the ALE layer, so I then loop through the idoc_data table, modifying the fields that need to change with the values I've saved in the variables, and passed the modified idoc_data tables back into the <b>idoc_input_shpmnt</b> FM.  Worked a treat.
    Cheers,
    Steve

  • Compare table structure and add the missing columns

    Hello,
    I want to compare the table schema of two tables and update with some plsql code the second one with the missing columns of the fist one :
    Example
    SQL> desc a
    Name Type Nullable Default Comments
    C1 VARCHAR2(10) Y
    C2 NUMBER(3) Y
    C3 NUMBER(10,2) Y
    SQL> desc b
    Name Type Nullable Default Comments
    C1 VARCHAR2(10) Y
    C2 NUMBER(3) Y
    I want a script that will generate the following code
    alter table b add (c3 number(10,2))
    Thanks
    Andreas

    How abt the below mentioned code
    SQL>desc a
    Name Null? Type
    C1 VARCHAR2(30)
    C2 NUMBER(3)
    C3 NUMBER(10,2)
    C4 NOT NULL DATE
    C5 VARCHAR2(30)
    SQL>desc b
    Name Null? Type
    C1 VARCHAR2(30)
    SQL>ed
    Wrote file afiedt.buf
    1 Declare
    2 Cursor c1 is select Column_name,Data_length,Data_type,DATA_PRECISION,DATA_SCALE,
    3 Nullable
    4 From User_tab_columns
    5 Where Table_name = 'A';
    6 v_length Number;
    7 v_str Varchar2(200);
    8 v_null Varchar2(10);
    9 Begin
    10 For c2 in c1 loop
    11 Select count(1) into v_length
    12 From user_tab_columns
    13 Where Table_name = 'B'
    14 And Column_name = c2.column_name;
    15 if v_length = 0 Then
    16 Select Decode(c2.Nullable,'N','NOT NULL','') into v_null From Dual;
    17 if c2.Data_type = 'NUMBER' Then
    18 v_str := 'alter table b add '||c2.column_name||
    19 ' '||c2.data_type||'('||c2.data_precision||','||c2.data_scale||') '||
    20 v_null;
    21 Elsif c2.Data_type = 'DATE' Then
    22 v_str := 'alter table b add '||c2.column_name||
    23 ' '||c2.data_type||' '||v_null;
    24 Else
    25 v_str := 'alter table b add '||c2.column_name||
    26 ' '||c2.data_type||'('||c2.data_length||') '||v_null;
    27 End if;
    28 Execute immediate v_str;
    29 End if;
    30 End loop;
    31* End;
    SQL>/
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:04.03
    SQL>desc b
    Name Null? Type
    C1 VARCHAR2(30)
    C2 NUMBER(3)
    C3 NUMBER(10,2)
    C4 NOT NULL DATE
    C5 VARCHAR2(30)

  • IPod folder structure and content doesn't match iTunes Library structure

    My iTunes Library has the following folders:
    Music
    Podcasts
    Audiobooks
    As expected, the Podcasts folder contains podcasts I have subscribed to, and the Audiobooks folder contains Audiobooks I purchased. So far, so good.
    However, in addition to CDs I imported, the Music folder also contains files originating from manual audio recordings I made via TotalRecorder.
    This is confusing enough, but in the iPod the situation is even more confusing, i.e. everything comes under Music, which has the following subfolders (among others): Albums, Songs, Podcasts, Audiobooks.
    The Podcasts and Audiobooks folders seem OK, but the Albums folder seems to contain not only the CDs, but also all the podcasts.
    And the only place I can find my manual recordings is under Songs.
    Any suggestions for bringing some order into this apparent chaos?
    Ideally I would like to be able to create a new folder called, say, Recordings, in my iTunes Library, and I would like my top level folders in my iTunes Library to match those on the iPod.
    Thank you in advance for any suggestions/comments.

    Which model of iPod do you have? I have a 160GB Classic (this forum) which _does not_ show Podcasts under the Music folder, and apparently does not have an option to do so. However, I also have a 5th generation 30GB video iPod, which does show Podcasts under the Music folder. Straight away, you'll notice that different modles behave differently, so we need to know.
    So, that's the first thing to sort out.
    Then, on your manual recordings, did you add all the relevant artist information to the file (i.e. the MP3 tags) when you created them? If not, that will be why they only show up in songs, (but there may be another cause too!). You can fill in any missing information by highlighting the song and clicking on *File/Get Info* and adding the info then.
    In the long term, the probably answer to your manual files is to give them their own genre and then search for them that way.

  • Copy table structure with default column values

    Hi....
    I created a table by copying another table structure by using below query.....
    SQL> CREATE TABLE SAMPLE_TEMP AS SELECT * FROM SAMPLE WHERE 1=2;
    But my problem is " the default column values are not copied to new table"
    Suggest a query like that it should " copy a table structure and default values on columns "
    Thanks in advance

    hi,
    One more option would be "dbms_redefinition' - it would work as per your requirement.
    refer further to documentation : http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_redefi.htm
    - Pavan Kumar N

  • How to copy paste a table structure from word document into Text Field [field format Rich Text]

    In our current implementation we have a Blank page with Text Field [field format Rich Text] on generated PDF Document.
    Once the PDF document is generated, user can copy paste content form any word/rtf document to into the Text Field.
    Pasted content retains all text formatting [Bold, Italic, Underline, Indentation] except the Table format. Text Field is removing table metadata from the content and converting it into plant text.
    Is there anyway to copy paste table structure as it is from word document into Text Field?

    Hi,
    I don't think you can! While you can paste formatted text into the rich text field, the table metadata means nothing to the textfield.
    Niall

  • How do I copy a table from a Pages 09 document to a Pages 5 document

    I am trying to copy a table from a Pages 09 document into the new version of Pages. When I select the table and copy, in the new version it turns it into text and does not copy the table structure. Any ideas?
    Thanks

    Pages ’09 v4.3 and Pages v5.2.2 are entirely different document architectures. Consequently, copying and pasting a table from Pages ’09 circumvents the customary translation process  that would occur if you opened that Pages ’09 document in Pages v5.
    Make a backup copy of the Pages ’09 document that has the table in it, and then open this document in Pages v5.2.2. The table is translated into Pages v5 document format and displayed correctly. You can even select this Pages v5.2.2 table, and then copy/paste it into another Pages v5.2.2 document with accurate results.

  • How to fill a hashed table structure

    Hi,
    In my last thread i had asked about the ways of deleting the cube contents selectively using a job/FM and i was suggested this by one of you.
    CALL FUNCTION 'RSDRD_SEL_DELETION'
    EXPORTING
    I_DATATARGET = 'YOUR_CUBE'
    I_THX_SEL = L_THX_SEL
    I_AUTHORITY_CHECK = 'X'
    I_THRESHOLD = '1.0000E-01'
    I_MODE = 'C'
    I_NO_LOGGING = ''
    I_PARALLEL_DEGREE = 1
    I_NO_COMMIT = ''
    CHANGING
    C_T_MSG = L_T_MSG.
    Although the FM is the correct one the structure L_THX_SEL is a hashed table structure and i am not aware how to fill values into it. My requirement is to give a condition for the 0CALDAY info-object i.e 0CALDAY < 30 days. Please suggest me.
    Regadrs,
    Pramod M

    Hello,
    I will recommend you to use the program 'RSDRD_DELETE_FACTS'. This is easier and is generated for individual cubes and u can specify condition for the same with help of variants.  Just follow the below steps
    Goto SA38 and execute the program RSDRD_DELETE_FACTS. Then give your cube name and select the generate selection program radiobutton and give the name for the program. Execute and the program for selective deletion will be generated for that cube.
    Now goto SE38 and select ur generated program for editing. You will see at the end that individual characteristic have a set of code as below:
    IF NOT C011[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = '0CALDAY'.
      LOOP AT C011 .
        CLEAR L_S_RANGE.
        MOVE C011-SIGN TO L_S_RANGE-SIGN.
        MOVE C011-OPTION TO L_S_RANGE-OPTION.
        MOVE C011-LOW TO L_S_RANGE-LOW.
        MOVE C011-HIGH TO L_S_RANGE-HIGH.
        MOVE RS_C_TRUE TO L_S_RANGE-KEYFL.
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
    You need to search for 0CALDAY Code. It will look like above.
    Now above all this IFs for characteristics, you can write the code for selective deletion.
    The code will be like below.
    DATA: date TYPE D,
          date1 TYPE D,
          RUN_MN1 TYPE /BI0/OICALDAY,
          LE_CO11 LIKE LINE OF C011.
    date = sy-datum.
    date1 = date - 30.
    RUN_MN1 = date1.
    LE_CO11-SIGN = 'I'.
    LE_CO11-OPTION = 'LT'.
    LE_CO11-LOW = RUN_MN1.
    CLEAR C011.
    APPEND LE_CO11 TO C011.
    Hope this helps.
    Regds,
    Shashank

Maybe you are looking for

  • Logminer problem

    Hi : why my v$logmnr_contents have NULL in Session_info and username columns. I hope this is not an error of my DB. I'm workin with 10G r2 in windows 2003 server thank Remi

  • Why is my Mac Book Pro so slow?

    Hi my Mac Book Pro is running really slow. It takes ages to perform simple tasks such as opening apps and doing basic jobs. I have run a check on the computer using Etresoft and the results are pasted below. Can anyone see anything wrong or have any

  • How to use Property nodes?

    Hi everyone,                        I am a beginner of LabVIEW. So I want to know about Property Node in detail. Please Please someone help me know the function of each property node...... Thank You in Advance, Solved! Go to Solution.

  • Problems with input for Threads

    Please help, I don't know how to do further inputs using the command line while threads are doing their work. Here's the code: import java.io.*; import javagently.*; class Museum {    Museum(int w) {        walkmen = w;        cash = 0;        people

  • Updating the Dates on an Existing Shipment

    Hi, I am trying to find a Function Module/Idoc that I can use to update the various dates (planned delivery, actual delivery dates) within a shipment. I am getting the shipment information via a ANSI 214 transaction.  I've tried the IDOC_INPUT_SHIPME