Exporting and importing data from memory

Hi Gurus,
Written 2 programs.
1st program executes and submits 2nd program in background.
Now the output in internal table which we get in 2nd program has to be displayed in 1st program.
My taught is to use Set ID and GET ID to retrieve the data.
How can we achive this?

Hi,
You can pass the internal table by using
export to memory id
and import that internal table in the called program.
Use SUBMIT ....AND RETURN.

Similar Messages

  • Best way to export and import data from an iPhone app?

    How do people here prefer to export and import data from an iPhone app?
    For example, suppose your app creates or modifies a plist. It might be nice to provide that plist to the user for separate backup and later allow them to re-import it.
    How do people do that? Email the plist to an address? If so, how would one later get it back in?
    Is there a common way people do this kind of thing?
    Thanks,
    doug

    Or maybe the best approach for this is some sort of file synchronization feature? Is there a way of having files from the app's filesystem automatically get stored on the computer's filesystem when synchronizing and vice-versa?
    doug

  • How to Export data to memory and Import data from memory?

    hi
    I have the follwoing some code of program.
    The data is not filled from memory. I have to find what is the wrong in code.
    REPORT ZIFT_TEST1..
    SELECT-OPTIONS : so_budat FOR bkpf-budat,
                     sd_saknr FOR ska1-saknr.
      EXPORT so_budat TO MEMORY ID 'ZBUDAT'.
      EXPORT sd_saknr TO MEMORY ID 'ZSAKNR'.
      SUBMIT ZIFT_TEST2 AND RETURN.
    REPORT ZIFT_TEST2..
    SELECT-OPTIONS so_budat FOR bsis-budat NO DATABASE SELECTION.
    SELECT-OPTIONS: SD_SAKNR    FOR  SKA1-SAKNR MATCHCODE OBJECT SAKO.
      import so_budat = so_budat from memory id 'ZBUDAT'.
      import sd_saknr from memory id 'ZSAKNR'.
    Regards
    Iftikhar Ali
    Islamabad.

    Program1----
    REPORT demo_program_rep3 NO STANDARD PAGE HEADING.
    DATA: number TYPE i,
    itab TYPE TABLE OF i.
    SET PF-STATUS 'MYBACK'.
    DO 5 TIMES.
    number = sy-index.
    APPEND number TO itab.
    WRITE / number.
    ENDDO.
    TOP-OF-PAGE.
    WRITE 'Report 2'.
    ULINE.
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'MBCK'.
    EXPORT itab TO MEMORY ID 'HK'.
    LEAVE.
    ENDCASE.
    Program2----
    REPORT demo_programm_leave NO STANDARD PAGE HEADING.
    DATA: itab TYPE TABLE OF i,
    num TYPE i.
    SUBMIT demo_program_rep3 AND RETURN.
    IMPORT itab FROM MEMORY ID 'HK'.
    LOOP AT itab INTO num.
    WRITE / num.
    ENDLOOP.
    TOP-OF-PAGE.
    WRITE 'Report 1'.
    ULINE.
    end of program 2----
    Now you copy this programs with same name as i mentioned and execute demo_programm_leave Program.you will understnad clearly.
    Notes::: A logical memory model illustrates how the main memory is distributed from the view of executable programs. A distinction is made here between external sessions and internal sessions .
    An external session is usually linked to an R/3 window. You can create an external session by choosing System/Create session, or by entering /o in the command field. An external session is broken down further into internal sessions. Program data is only visible within an internal session. Each external session can include up to 20 internal sessions (stacks).
    Every program you start runs in an internal session.
    To copy a set of ABAP variables and their current values (data cluster) to the ABAP memory, use the EXPORT TO MEMORY ID statement. The (up to 32 characters) is used to identify the different data clusters.
    If you repeat an EXPORT TO MEMORY ID statement to an existing data cluster, the new data overwrites the old.
    To copy data from ABAP memory to the corresponding fields of an ABAP program, use the IMPORT FROM MEMORY ID statement.

  • Guide me for exporting and importing data from oracle 10g to oracle 9i

    I have been trying export and import options in oracle but m not very clear about the procedure..
    Also when i am logging in as Scott/tiger i am facing an error
    ORA 1542 - tablespace 'USER' is offline and cannot allocate space in it.how to resolve it

    Hello,
    I see two questions.
    ORA 1542 - tablespace 'USER' is offline and cannot allocate space in it.how to resolve it About the error ORA-01542 you have to bring the Tablespace USERS online:
    http://www.error-code.org.uk/view.asp?e=ORACLE-ORA-01542
    If you cannot bring it online you may have to Recover it first.
    I have been trying export and import options in oracle but m not very clear about the procedure..About the Export in 10g and Import in 9i (9.2 or 9.0.1 ?), you have to export with the Export utility of the Target Database (the lowest Database version here: 9.0.1 or 9.2) then, you have to Import to the Target Database using its Import utility (in 9.0.1 or 9.2).
    The following Note of MOS may guide you:
    Compatibility Matrix for Export And Import Between Different Oracle Versions [Video] [ID 132904.1]
    NB: You cannot use here the DATAPUMP.
    Hope this help.
    Best regards,
    Jean-Valentin

  • Export and import data

    hi all,
    i have a req't tht i need to update the data frm one prog periodically ,..som where,
    when data req i run anothr prog and get tht data frm memory and display it.
    how can i do this.
    two prog's run in diffrnt times.
    1st prog
    EXPORT itab to memory ID 'XX' .
    2nd prog
    ans IMPORT itab from MEMORY ID 'XX'
    these are useful whn both prog's run same time , i.e 2nd prog calld frm 1st one.
    but i wnt 2nd prog run separatly.
    how can i do this..   any other alternatives
    Thanks in Advance
    Regards,
    Chandu

    thank's for u'r replay .
    i have huge amnt of data ..
    is thr any other way thn applicationaserer write and thn read...???
    i think it's possible through SHARED Memory concept.. using this we can use globle memory
    but i don't know how to do tht...
    any help..........
    if any one knew tht plz help me ..
    Regards,
    Chandu

  • Language Problem while exporting and importing data

    hi,
    I have Oracle version 8.1.7.0.0 installed on one server and 9.2.0.1.0 installed on new server.
    I'm copying and pasting my version info from SQL*Plus:
    SQL*Plus: Release 8.1.7.0.0 - Production on Mon Aug 22 10:46:31 2005
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    SQL>
    SQL*Plus: Release 9.2.0.1.0 - Production on Mon Aug 22 12:30:06 2005
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL>
    I created new user on my new server from enterprise manager.
    Exported user from the old server and imported in the new server.
    i.e: from Oracle8i Enterprise Edition Release 8.1.7.0.0, I did
    c:\>exp system/manager file=abc.dmp owner=abc
    Then on the new server Release 9.2.0.1.0, I did
    c:\>imp system/manager file=abc.dmp fromuser=abc touser=abc
    I'm using Arabic Language on my both servers. NLS_LANG parameter on both the servers is AMERICAN_AMERICA.WE8MSWIN1252.
    On both the servers I'm able to insert and select data in arabic.
    However, after I export the data from old server to the new server, the arabic data comes in question marks.
    If I create new table and insert arabic data on new server's user abc it is displaying well. Only the data which I exported and imported is not showing arabic.
    On both old and new servers operating system is Windows XP.
    I'm stuck with this problem. Anybody having any idea about how to solve this problem please help.
    Thank you all in advance.
    Regards

    Let me be clear here. Storing Arabic data in a WE8MSWIN1252 database is not supported by Oracle and will lead to problems. You are incorrectly using the NLS_LANG to prevent proper conversion and your data appears to be okay when you use utilties like SQL*PLUS to view your data. When you write applications that don't rely on the NLS_LANG like JDBC thin driver for instance you will realize your data is in fact invalid. To learn more about the NLS_LANG you can take a look at this FAQ: http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    To migrate your database to a proper character set you can refer to this paper:
    http://www.oracle.com/technology/tech/globalization/pdf/mwp.pdf
    But please do not ask for help in supporting your current configuration in this forum.

  • How to export and import database from command line?

    I am trying to export my old database into new server.
    However, I want to export and import that database from command line.
    Is it possible?
    Thanks.
    SZ

    I used this command
    exp username/password@database full=y
    my export log file is as follwing:
    Connected to: Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
    With the Partitioning and Java options
    PL/SQL Release 8.1.5.0.0 - Production
    EXP-00037: Export views not compatible with database version
    EXP-00000: Export terminated unsuccessfully

  • How to export and import database from one laptop to another?

    hi,
    plz anyone help me to export and import one of my user in the database to another laptop.....
    i hav absoulutely no knowledge in doing this, plz some one help to do it from scrap...
    thanks in advance for ur kind help

    what's the oracle version on Source and Target Database release version? Take a look at the below links.
    [http://wiki.oracle.com/page/Oracle+export+and+import+]
    [Import_Export_FAQ|http://www.orafaq.com/wiki/Import_Export_FAQ]
    Export
    [Oracle Export Utility|http://www.psoug.org/reference/export.html]
    [Oracle Import Utility|http://www.psoug.org/reference/import.html]
    HTH
    Anantha

  • Background jobs with IMPORTING data from memory

    Hi there, I am using FM's JOB_OPEN, SUBMIT job to Background and JOB_CLOSE to create a job in Background. I am EXPORTING two transparent tables to memory before submitting the job, in the submitted job i IMPORTING the two tables, but no data comes back. The structure of the 2 transparent table is exactly the same in both programs. If i omit the 'VIA JOB' parameter and debug the submitted program it works fine...please tel me what am i doing wrong or any info will help.
    Code is as follows:
           CALL FUNCTION 'JOB_OPEN'
              EXPORTING
                jobname          = name
              IMPORTING
                jobcount         = number
              EXCEPTIONS
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 3
                OTHERS           = 4.
            IF sy-subrc = 0.
              EXPORT ipost[] TO MEMORY ID 'ZIPOST'.
              EXPORT isadr3[] TO MEMORY ID 'ZISADR3'.
              EXPORT ierrgr[] TO MEMORY ID 'ZIERRGR'.
              SUBMIT zsad_invoice_subsequent_dt_bgb
                                  TO SAP-SPOOL
                                  SPOOL PARAMETERS params
                                  WITHOUT SPOOL DYNPRO
                                  USER sy-uname
                                  VIA JOB name NUMBER number
                                  AND RETURN.
              IF sy-subrc = 0.
                CALL FUNCTION 'JOB_CLOSE'
                  EXPORTING
                    jobcount             = number
                    jobname              = name
                    strtimmed            = 'X'
                  EXCEPTIONS
                    cant_start_immediate = 1
                    invalid_startdate    = 2
                    jobname_missing      = 3
                    job_close_failed     = 4
                    job_nosteps          = 5
                    job_notex            = 6
                    lock_failed          = 7
                    OTHERS               = 8.
                IF sy-subrc <> 0.
                  WRITE / 'Job did not close properly'.
                ENDIF.

    Hi Albert John,
    I am getting same problem here. Could you please let me know hoe did you resolve this issue.
    import memory is not working in background. please help me.
    I am waiting for your reply.
    Thanks
    Raghunath

  • Export and Import data in APEX

    I would like to know how to export the data from a table (6000 rows) and then I would like to import the data to another table. So I need to know how to do that process.. it's like to take a picture of the data in the old table and put them into the new table which it has new data.... so I can't just copy and paste...
    Thanks for your help... regards

    Dates do not have formats in the database(they are NOT saved as strings in the DB), but when you display them as string or export them then it has a format(coz its just a bunch of characters).
    The problem that you are facing is that the _date string in the csv file could not be converted by the database automatically into a date with its current date format settings(of the session).
    You need to set the date format of the session before you do the csv file import to the date format of the any date column strings in the file OR better match it with the date format of the client with which you exported the data.
    Set the same Date format before exporting as well as before importing.
    If its SQL Developer, you should be able to set it in Preferences(think its shown in that demo video)
    Do the same before importing too.
    Make sure that the datafile date column strings match the format of the importing session.
    If you want to pro grammatically set the date format use something like
    ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YY HH24.MI.SS';By the way, I think you should have asked this question in the SQL PLSQL forum, since it isn't particularly related to the Apex.
    Pls update your forum handle to something more friendlier than "user13344939"

  • Export and Import data or Matadata only

    Aloha,
    I need to update an instance, update data only with a full dump. What parameter should i use on import. How can i drop the schema without touching the metadata and database objects?
    Thanks in advance.
    Hades

    TheHades0210 wrote:
    Hi,
    Yes, i will import a full dump export but data only that i need to import and existing db_objects and metadata on the instance should not be touch.
    Regards,
    Hadeseasy as pie
    [oracle@localhost ~]$ impdp help=yes
    Import: Release 11.2.0.2.0 - Production on Mon Feb 4 19:57:10 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    The Data Pump Import utility provides a mechanism for transferring data objects
    between Oracle databases. The utility is invoked with the following command:
         Example: impdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmp
    You can control how Import runs by entering the 'impdp' command followed
    by various parameters. To specify parameters, you use keywords:
         Format:  impdp KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
         Example: impdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmp
    USERID must be the first parameter on the command line.
    The available keywords and their descriptions follow. Default values are listed within square brackets.
    ATTACH
    Attach to an existing job.
    For example, ATTACH=job_name.
    CLUSTER
    Utilize cluster resources and distribute workers across the Oracle RAC.
    Valid keyword values are: [Y] and N.
    CONTENT
    Specifies data to load.
    Valid keywords are: [ALL], DATA_ONLY and METADATA_ONLY.
    DATA_OPTIONS
    Data layer option flags.
    Valid keywords are: SKIP_CONSTRAINT_ERRORS.
    DIRECTORY
    Directory object to be used for dump, log and SQL files.
    DUMPFILE
    List of dump files to import from [expdat.dmp].
    For example, DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp.
    ENCRYPTION_PASSWORD
    Password key for accessing encrypted data within a dump file.
    Not valid for network import jobs.
    ESTIMATE
    Calculate job estimates.
    Valid keywords are: [BLOCKS] and STATISTICS.
    EXCLUDE
    Exclude specific object types.
    For example, EXCLUDE=SCHEMA:"='HR'".
    FLASHBACK_SCN
    SCN used to reset session snapshot.
    FLASHBACK_TIME
    Time used to find the closest corresponding SCN value.
    FULL
    Import everything from source [Y].
    HELP
    Display help messages [N].
    INCLUDE
    Include specific object types.
    For example, INCLUDE=TABLE_DATA.
    JOB_NAME
    Name of import job to create.
    LOGFILE
    Log file name [import.log].
    NETWORK_LINK
    Name of remote database link to the source system.
    NOLOGFILE
    Do not write log file [N].
    PARALLEL
    Change the number of active workers for current job.
    PARFILE
    Specify parameter file.
    PARTITION_OPTIONS
    Specify how partitions should be transformed.
    Valid keywords are: DEPARTITION, MERGE and [NONE].
    QUERY
    Predicate clause used to import a subset of a table.
    For example, QUERY=employees:"WHERE department_id > 10".
    REMAP_DATA
    Specify a data conversion function.
    For example, REMAP_DATA=EMP.EMPNO:REMAPPKG.EMPNO.
    REMAP_DATAFILE
    Redefine data file references in all DDL statements.
    REMAP_SCHEMA
    Objects from one schema are loaded into another schema.
    REMAP_TABLE
    Table names are remapped to another table.
    For example, REMAP_TABLE=HR.EMPLOYEES:EMPS.
    REMAP_TABLESPACE
    Tablespace objects are remapped to another tablespace.
    REUSE_DATAFILES
    Tablespace will be initialized if it already exists [N].
    SCHEMAS
    List of schemas to import.
    SERVICE_NAME
    Name of an active Service and associated resource group to constrain Oracle RAC resources.
    SKIP_UNUSABLE_INDEXES
    Skip indexes that were set to the Index Unusable state.
    SOURCE_EDITION
    Edition to be used for extracting metadata.
    SQLFILE
    Write all the SQL DDL to a specified file.
    STATUS
    Frequency (secs) job status is to be monitored where
    the default [0] will show new status when available.
    STREAMS_CONFIGURATION
    Enable the loading of Streams metadata
    TABLE_EXISTS_ACTION
    Action to take if imported object already exists.
    Valid keywords are: APPEND, REPLACE, [SKIP] and TRUNCATE.
    TABLES
    Identifies a list of tables to import.
    For example, TABLES=HR.EMPLOYEES,SH.SALES:SALES_1995.
    TABLESPACES
    Identifies a list of tablespaces to import.
    TARGET_EDITION
    Edition to be used for loading metadata.
    TRANSFORM
    Metadata transform to apply to applicable objects.
    Valid keywords are: OID, PCTSPACE, SEGMENT_ATTRIBUTES and STORAGE.
    TRANSPORTABLE
    Options for choosing transportable data movement.
    Valid keywords are: ALWAYS and [NEVER].
    Only valid in NETWORK_LINK mode import operations.
    TRANSPORT_DATAFILES
    List of data files to be imported by transportable mode.
    TRANSPORT_FULL_CHECK
    Verify storage segments of all tables [N].
    TRANSPORT_TABLESPACES
    List of tablespaces from which metadata will be loaded.
    Only valid in NETWORK_LINK mode import operations.
    VERSION
    Version of objects to import.
    Valid keywords are: [COMPATIBLE], LATEST or any valid database version.
    Only valid for NETWORK_LINK and SQLFILE.
    The following commands are valid while in interactive mode.
    Note: abbreviations are allowed.
    CONTINUE_CLIENT
    Return to logging mode. Job will be restarted if idle.
    EXIT_CLIENT
    Quit client session and leave job running.
    HELP
    Summarize interactive commands.
    KILL_JOB
    Detach and delete job.
    PARALLEL
    Change the number of active workers for current job.
    START_JOB
    Start or resume current job.
    Valid keywords are: SKIP_CURRENT.
    STATUS
    Frequency (secs) job status is to be monitored where
    the default [0] will show new status when available.
    STOP_JOB
    Orderly shutdown of job execution and exits the client.
    Valid keywords are: IMMEDIATE.

  • Export and import data to an external accounting software

    I have to make a link between SAGE accounting and B1 for a frnch customer.
    I want to export sales and prurchase invoices to SAGE
    and import customer and supplier payments.
    I would like to know what would be the consequence in B1.
    Ould it be "transparent" for the users ?
    For example do I have to make the Year End Closing ?
    Is there other things that I have to do except make the setiings as if I use the B1 accounting
    Thanks for your help
    Christophe FLAMENT

    Hi,
    What happens if we don't use accounting functionalities ?
    Every sales, purchase and inventory transactions that are executed in Business One automatically generate an accounting document. So, there is will be no impact as such on the system.
    Is there any probleme acting like this ? And what kind of problem ?
    In the very first place, i would never suggest using of any other ERP when SAP B1 is implemented. As SAP B1 itself is very robost and can handle almost all the requirements of SMB.
    Also, I am really not sure about the functionality of SAGE accounting software.
    In general, we dont suggest any customer using multiple systems, as it not only causes dulipcation of work, sometime it may also result in not recording of some of the data. As a result there is every chance that neither systems will have complete set of information.
    Do we have to do something in the accounting ?
    Depends on what kind of transactions you want process thru B1.
    In case if you're processing Sales, Purchase and inventory related transaction, you have to process payments and receipts related to the same. also, ensure proper monthly (if necessary) & yearly closing.
    Assign points if useful
    Thanks,
    Srikanth

  • How do i export and import Contacts from and to to Iphone4 and Windows PC

    How do I export Contacts from Iphone to windows XP pc
    and import already exported contacts to Iphone 4

    doesn;t it work what i wrote in above comment?
    if you just want to backup your iphone cantacts in windows ( and not vice vera)...then
    1- delete all contacts from windows ( i used win7 so ther's a "contacts" system folder....but in iwnXP , i guess it is called Address Book)
    2- Connect iphone to PC
    3- in iTunes, select your device, go to "Info" tab.
    4- mark checked -- >Sync Contacts with
    5- From the dropdown options, select "Windows Contact"
    6- click "SYNC: button.
    that's it...you should see your iPhone contacts in windows.

  • Function module to import data from memory

    Hi,
    I am using the function module 'LIST_FROM_MEMORY' to import data and the LISTOBJECT contains values in raw format.How to convert this to char format?I dont want to use 'DISPLAY_LIST' as I want the values of the parameter 'LISTOBJECT' to be passed to block alv in the calling program.
    Please suggest me as to how to do the conversion?
    Thanks in advance
    Vasudha

    Use Function Module: LIST_TO_ASCI
    Converts the specified list (LIST_INDEX) or the provided list
    (LISTOBJECT) to ASCI.
    Here, the purely text part of the list is copied line by line to the
    prepared internal table (LISTASCI) without any attributes (color, icon,
    symbol, ...). There is no line break in this case, i.e. if the internal
    table line is not long enough, the list line is truncated.
    DATA  LISTTAB LIKE ABAPLIST OCCURS 1.
    DATA: BEGIN OF ASCITAB OCCURS 1,
           LINE(256),
           END OF ASCITAB.
    CALL FUNCTION 'LIST_TO_ASCI'
          TABLES LISTOBJECT = LISTTAB
                 LISTASCI   = ASCITAB.
    The provided list (LISTOBJECT) is taken into account only if the
    parameter LIST_INDEX = -1 (default). Otherwise, it is ignored.
    Hope this helps.
    Regards
    Vinayak

  • Exporting and Importing mail from older system

    I just upgraded my Hard Drive and OS. Was using Tiger and now Leopard. I can still access my old hard drive. How do I export my mailbox files and import them into my new sys?
    thx

    first of all, you can use Migration Assistant (it's in /Applications/Utilities) to migrate your whole old setup, not just Mail. if you only want Mail, quit Mail and copy the entire directory homedirectory/Library/Mail and the file homedirectory/Library/Preferences/com.apple.mail.plist to the corresponding locations on the new computer. Delete homedirectory/Library/Mail if it already exists on the new computer before doing this. when you start Mail it will be exactly as it was on the old computer.

Maybe you are looking for

  • Photoshop CS4 type tool and paint bucket

    I am teaching Photoshop CS4 to my students and have started having problems I've never encountered. Problem #1 - Type tool won't work. We can create a text box and type in it. Text does not show on the document but does show in the layers palette. I'

  • How do I uninstall Photoshop 7 from Snow Leapard

    Silly me.  Running Mac OS X version 10.6.3 on my MacBook Pro and tried to save some money by installing Photoshop 7.   An old Adobe Illustrator 10 works just fine, but Photoshop 7 complains when I try to open it. Error message: "An unexpected and unr

  • Variable Field Divider in a VARCHAR2 column

    I need to extract part of a value in a VARCHAR2(50 BYTE). The data layout is like this FIELD1/FIELD2. The position of the field divider is not always the same on all records, but the divider character is always the same. How would you suggest I can a

  • HT204088 how to refund a purchase?

    Dear All, I don't know why a magazine subscription has been purchased. I want to refund my money back. Could anyone please help me? Regards, M.

  • How to update HTML template manually

    Hi, I have added a custom field in SHip-To address screen in Shopping cart in BBPSC01 and added a functionality. Found it is working fine in SAP GUI side. It is not reflecting in URL. But to reflect the same in URL, can anyone let me know what HTML c