EXPORT / IMPORT  TO/FROM SHARED BUFFER

Hello all,
I am facing a problem with the EXPORT/IMPORT to SHARED BUFFER statements.
In my report program , I export data to the shared memory.
I then call a transaction to park an accouting document.
The BTE 2218 gets triggered in the process. Here the IMPORT works fine.
Later, there is a standard function module which is called IN UPDATE TASK.
Within this, the IMPORT statement fails.
It works on one server but not on another.
Notes :
The IMPORT works in debugging mode but fails if I simply run.
Another point is that the ID used for identifying the shared memory uses sy-uname.
Can the visiblity of sy-uname in UPDATE TASK be controlled by settings ?
Any ideas on this ?
Please don't copy paste the help on SHARED BUFFER etc.
Thanks in advance.

Hi Mariano,
the issue is to due to multiple servers present where SHARED MEMORY is specific for each application server.
So we export data into shared memory in program A, we have to be sure, that program B or FM which is called in background or update task by program A runs on the same application server
Here, the problem is when program A calls the program B or FM in background or update it’s a dynamic scheduling to all application server with have batch work processes and not the same application server that of calling program A always, so program B runs on another application server which has different shared  memory.
Solution will be:-
To Force program B to run on same application server as of calling program A by
passing sy-host of calling program A to Function module “JOB_CLOSE” parameter
name “TARGETSERVER”. OR
Instead of using SHARED MEMORY we will use DATABASE.
        EXPORT itab FROM itab  TO DATABASE indx(ar) CLIENT sy-mandt ID job_number in programA where job number is unique.
        Then IMPORT itab TO itab FROM database indx(ar) CLIENT sy-mandt ID job_number  in program B Where job number is passed from program A to B.
        Then DELETE FROM DATABASE indx(ar) CLIENT sy-mandt ID job_number.
Regards,
Vignesh Yeram

Similar Messages

  • Issues with Export/Import using Database & Shared buffer

    Hi All,
    I have a method that calls a program via a job and I am having issues passing data between the two.
    Note that two different users process the method and program (via job) resp. This is how I am calling the second prog-
    SUBMIT ZPROGRAM
                 VIA JOB     l_jobname
                     NUMBER  l_jobcount
                     USER    i_user
                 AND RETURN.
    I need to pass data from method to  the second program and vice versa and then the method continues its processing with the data acquired from the second program.
    I have tried using Import/Export using database and also shared buffer. What I have found is that most of the times I am able to pass data from method to program. However the job takes a couple of min to execute and I think that the data is not making back to the method in time.
    I have looked at some useful forum links-
    Problem with export/import in back ground
    Re: EXPORT/IMPORT  to MEMORY
    but havent been able to find an answer yet. Any solution? Thanks in advance for your help!
    Liz

    Hi Suhas, Subhankar
    I have tested the scenario without the job previously itself and it works. Thats the reason, i am trying with the job now as my requirement is that I need to change the user while executing the second report.
    Here is an example of my import/export - I am passing the return value from the second report to the first.
    Code in second report-
    DATA: INDXKEY LIKE INDX-SRTFD VALUE 'RET1'.
    INDX-AEDAT = SY-DATUM.
    INDX-USERA = SY-UNAME.
    EXPORT RETURN1 TO SHARED BUFFER INDX(ST) ID INDXKEY.
    Code in first report -
    SUBMIT ZPROGRAM
                     VIA JOB     l_jobname
                         NUMBER  l_jobcount
                         USER    i_user
                     AND RETURN.
    Once Job close FM is executed successfully, I import the values as follows
    IMPORT RETURN1 TO RETURN1 FROM SHARED BUFFER INDX(ST) ID INDXKEY3.
    INDXKEY is having value RET1.
    However Return1 is not having any values in first report. It has some value in executed without the job
    Please note that I have tried Export/import with Database too and I am getting the same results.
    Thanks for your suggestions.
    Regards, Liz

  • Export/import to/from database

    hi,
    i do not know what is this for. i read the help but still no idea.
    i know to use export/import to/from memory id and also set/get but not export/import to/from database.
    1) what help says it stores data cluster? what is data cluster
    2) can have example of export/import to/from database?
    3) what is the different for export/import to/from memory id and database?
    thanks

    Hi,
    1) A data cluster is a set of data objects grouped together for the purpose of storage in a storage medium(Like database, local memory or shared meomory etc), which can only be edited using ABAP statements like EXPORT, IMPORT and DELETE.
    2) Suppose you want to export the data in a internal table to database.
    Here TABLE_ID is the identifer of your data cluster. You are exporting your data to a SAP table INDX and giving it an ID (TABLE_ID in this case and this ID you are giving it an area by name XY where your data will be stored). EXPORT tab = itab
      TO DATABASE indx(XY)
      CLIENT '000'
      ID 'TABLE_ID'.   
    You can get this data as follows.
    IMPORT tab = itab
      FROM DATABASE indx(xy)
      CLIENT '000'
      ID 'TABLE_ID'.
    3) The difference is simple when you use MEMORY ID the data you export is stored in the application server MEMORY where as in the case of DATABASE it is stored in the database.
    Regards,
    Sesh

  • Export INTERNAL TABLE to shared buffer

    Hi all,
    My requirement:
    Export INTERNAL TABLE to shared buffer or SAP Memory.
    Any help will be appreciated.
    Can SET/GET parameter be adopted for internal tables?
    Thanks,
    Tabraiz

    EXPORT (OBJ_TAB) TO MEMORY ID 'ABCD'
    also refer to
    http://help.sap.com/saphelp_45b/helpdata/en/34/8e73a36df74873e10000009b38f9b8/content.htm

  • How can I import comments from shared reviewer who doesn't have acrobat pro?

    How can I import comments from shared reviewer who doesn't have acrobat pro? I sent out a shared review, but not all of the reviewers have acrobat pro, they do have acrobat reader 9 and have made comments on the document, but they do not appear when I open the shared review from the workspace. Can I import his comments so that they are apart of the shared review?

    I figured it out, so I will share just in case anyone else has this issue...
    The reviewer emailed me his comments on the document. I opened it and made a comment. When I went to publish my comment a dialogue box opended asking if I wanted to publish his comments to the shared review for him. Says yes and the reviewers comments are now published and a part of the shared review.

  • Export/Import groups from address book?

    How do I export group lists from address book and import them to another MAC?

    I can import individual contacts but when I export and then import a group list it imports as single contacts that go into the general contact folder.  I cannot seem to import them as groups.

  • How to export/import database from tools menu in sql developer.

    Hi,
    I need to export database from a server and import it on another db server using the export database function under tools menu in SQL developer. How do I import it? This is for Oracle 10g database.
    Thanks

    Depends what are you trying to do? Are you making a database copy or just creating an empty schemea or creating schema with the data?
    With 10g, you have also options of using datapump (expdp/impdp) and conventional export/import which is very usefule and easy to use when it comes to create a clone (duplicate schema) or an export/import of some objects.
    If you right click on table object, you have options of export ddl/export data and import data but thats different thant what expdp/impdp or conventional export/import provides. For very small database you can use sqldeveloper but consider
    using other above mentioned options. Hope this helps
    Regards

  • Export/Import xml from dynamic pdf form using java

    Hi,
    I have been searching for the last 2-3 days on the internet for this. Some posts do talk about it, but none have provided the answer I was looking for. Hopefully this is the correct forum to post the question in.
    I am working on a desktop swing application that works on extracting and changing data in a XFA form, I would like to export the form's content modify it and import it back using java. This is so easy with the Adobe Reader, where it nicley exports the form content as an XML document, you can change it manually and the import the data back. I am searching for a way of doing this in java. I found XPAAJ.jar mentioned in some forums, that may make this easy. I havent been able to use it, since I cant find it anywhere.
    I found a blog from Mike Potter
    http://blogs.adobe.com/mikepotter/2006/07/download_xpaaj.html
    This says that XPAAJ is free as long as I use it on forms developed using livecycle. I dont own livecycle, but the forms that I am working has been built using livecycle.  So my questions are:
    1. Is XPAAJ the correct library to use, to export and import XML data from a dynamic pdf form?
    2. Is XPAAJ free to use and distribute as long as it works on pdf forms developed by livecycle?
    3. Where can I download XPAAJ from?
    4. If XPAAj is no longer available, is there any other free library that does this?
    5. If there isn't any free library, how much would cost me to use and distribute the library along with my desktop application?
    Thanks
    Sethu

    Hi Sethu;
    First, its important to know that xpaaj never was a supported piece of software.  It was supplied "as is" with no support from Adobe.  It has been pulled and is no longer available from the Adobe web site.  Mike's blog is from 2006, so its really old information.
    1. Is XPAAJ the correct library to use, to export and import XML data from a dynamic pdf form?
    While the xpaaj library will import and export data to/from a form on the client, Adobe now recommends using the LiveCycle ES Forms server.
    2. Is XPAAJ free to use and distribute as long as it works on pdf forms developed by livecycle?
    The license stated that you need to own one of Adobe's server side products (not LiveCycle Designer, but one of the server side LiveCycle products).
    3. Where can I download XPAAJ from?
    XPAAJ was pulled by Adobe.  They found a few bugs and since it was unsupported software they just pulled it from the web site.
    4. If XPAAj is no longer available, is there any other free library that does this?
    Not from Adobe.  Adobe recommends using the LiveCycle ES Forms software for merging data and forms.
    5. If there isn't any free library, how much would cost me to use and distribute the library along with my desktop application?
    As far as I know there Adobe doesn't have a client side library available for this (merging dynamic XDP based forms with data).

  • Export/import utility from within apex

    Hi Friends,
    With my knowledge in oracle forms the export/import utility can be called from within a form in runtime
    using a push button.But how can i achieve this using a similar button in the oracle apex.
    Pls give me a helping hand.Thanks.
    regards,
    kehinde

    Hello:
    The Oracle Data Pump utility is now the preferred tool to use to import and export data and metadata from an Oracle database. Oracle Data Pump provides capabilities that far exceed those provided by the older imp/exp programs. Further, in addition to command line invocation of the tool, Oracle Data Pump has a set of pl/sql APIs (DBMS_DATAPUMP) that will let you do import and exports from pl/sql. You can therefore easily set up an APEX page that will accept a bunch of parameters and execute the appropriate procedures within DBMS_DATAPUMP to do the export/import.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_api.htm#i1008009
    Varad

  • How to Export/Import Datas from BEA content Repository

    Hi,
    I want to Export the datas from BEA content repository and import into the ORacle Repository. Can anybody please let me know how to do that . Thanks in advance.
    Best regards,
    Venkat.S

    copy the files from
    (username)/library/preferences/AICS3settings/en_us/workspaces
    to
    (username)/library/preferences/AICS5settings/en_us/workspaces

  • How to export / import tables from UAT Environment to Devlopment  in oracle

    i wanted to share some points about export/import tables in oracle.
    we have two environments one is development and integrated user acceptance test (UAT).
    we have finalized table structures with data in UAT. i wanted to move from UAT to Development.
    i found some commends in google. I tried but I am not able to export and then its throwing some errors.
    i am explaining below what i want to do and what i want did.
    Please provide solution what i need to do.
    admin credentials in UAT
    username :venkat_admin
    password :venkat_admin
    UAT user/schema
    username : ods_inb_stg
    password : ods_inb_stg
    development environment credentials
    admin user name : dev_admin
    password : dev_admin
    Development user/schema
    username :ods_inb_dev
    password :ods_inb_dev
    Above mentioned schema names i want move data from UAT (ods_inb_stg) to development (ods_inb_dev)
    I logged in uat ods_inb_stg user and then
    I used this command
    Exp ods_inb_stg/ods_inb_stg file=party_pt_address.expdat tables=(party,party_address)
    log=party_pt_address.log;
    getting error
    Unknown command beginning "exp ods_inb_stg/..." - rest of line ignored.
    What should I do any one help.
    One more thing i have more than 100 tables how to export all tables and which is the easiest way and how to do it.
    Thanks in Advance
    Venkat

    Hi,
    based import and export we need to do.
    suppose we think we have created tables in production and data also populated. we need to export the tables with data. i am able to export the tables with data some tables or full database.
    suppose we have development environment. in development environment there is no tables. we can treat nothing in development. we have only username,password and hostname.
    when you import the tables production to development automatically create the table structures with data.
    where ever we wanted to import the tables no need to create table structures. thats why no need to think about table structures.

  • How to export / import workspaces from CS3 to CS5

    How to export / import workspaces and other preference settings from CS3 to CS5.

    copy the files from
    (username)/library/preferences/AICS3settings/en_us/workspaces
    to
    (username)/library/preferences/AICS5settings/en_us/workspaces

  • Exporting/Importing Layers from and to InDesign (CC 2014)

    I would love to see a feature where i can export a layer from one InDesign file to another InDesign file, like in Photoshop and Illustrator.
    I often am working with translated files, where i need to update the / for example / French text to Dutch text from another file. Now i manually copy and paste every layer one by one. This is such a waste of time, there must be an easier way to do this, using a copy and paste layers function.
    Thanks!

    Hi all,
    The solution for the moment is to use the cc extension Illustrator Layer Exporter http://dehats.com/illustrator-layer-exporter/
    Thanks to Franck for his help ;-)

  • Importing photos from shared iPhoto library

    I have all my photos on my Macbook and have home sharing set up to share that iPhoto library with my iMac (within iPhoto…easy enough). Does anyone know if it's possible, from iMovie on my iMac, to access that shared iPhoto library on my Macbook to select photos to add to an iMovie project on my iMac?
    I hope that's not confusing. And you might ask why I don't just do the project on my Macbook. I could, it's just a little more user friendly to work on my iMac.
    Thanks!

    Two ways to do this:
    1. Export from the other library to the finder using the File -> Export command. In the dialogue be sure to tick the box at 'Titles and Descriptions., then import to your Library
    2. Use iPhoto Library Manager to move the files plus all associated versions and metadata between libraries.
    Regards
    TD

  • Export import issue from higher version to lower version

    Hi,
    I have an export dump file which was taken from 11g database(11.2.0.2.0) and trying to import into lower version of the database 9i(9.2.0.6.0), unable to complete the process.
    Two ways i have found and tested in my test db
    1)TNS entry of 9i database has been put into 11g database
    a)Export dump was successfuly taken from 11g db
    b)Getting below error,while import into 9i database
    IMP-00058: ORACLE error 6550 encountered
    ORA-06550: line 1, column 33:
    PLS-00302: component 'SET_NO_OUTLINES' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignoredIMP-00000: Import terminated unsuccessfully
    2)TNS entry of 11g database put into 9i database version.
    a)During export (trying to take exp dump from 11g db in 9i exp utility),getting below error
    EXP-00008: ORACLE error 1455 encountered
    ORA-01455: converting column overflows integer datatype
    EXP-00000: Export terminated unsuccessfully
    Kindly advice me to overcome from this issue.
    Regards,
    Faiz

    mafaiz wrote:
    Hi,
    I have an export dump file which was taken from 11g database(11.2.0.2.0) and trying to import into lower version of the database 9i(9.2.0.6.0), unable to complete the process.
    Two ways i have found and tested in my test db
    1)TNS entry of 9i database has been put into 11g database
    a)Export dump was successfuly taken from 11g db
    b)Getting below error,while import into 9i database
    IMP-00058: ORACLE error 6550 encountered
    ORA-06550: line 1, column 33:
    PLS-00302: component 'SET_NO_OUTLINES' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignoredIMP-00000: Import terminated unsuccessfully
    2)TNS entry of 11g database put into 9i database version.
    a)During export (trying to take exp dump from 11g db in 9i exp utility),getting below error
    EXP-00008: ORACLE error 1455 encountered
    ORA-01455: converting column overflows integer datatype
    EXP-00000: Export terminated unsuccessfully
    Kindly advice me to overcome from this issue.This has nothing to do with APEX. Post on the {forum:id=61} forum.

Maybe you are looking for