Export .. to shared buffer ...

I try to use this command but I don't understand something in the example of the Help. (F1 on shared buffer). (the bold)
TABLES INDX.
TYPES: BEGIN OF ITAB3_TYPE,
          CONT(4),
       END OF ITAB3_TYPE.
DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',
      F1(4), F2 TYPE P,
      ITAB3 TYPE STANDARD TABLE OF ITAB3_TYPE WITH
                 NON-UNIQUE DEFAULT KEY INITIAL SIZE 2,
      WA_INDX TYPE INDX.
Fill data fields before CLUSTR
before the actual export
INDX-AEDAT = SY-DATUM.
INDX-USERA = SY-UNAME. Export data.
EXPORT F1    FROM F1
       F2    FROM F2
       ITAB3 FROM ITAB3
       TO SHARED BUFFER INDX(ST) FROM WA_INDX ID INDXKEY.
Frédéric
(SAP 4.6C)

Because when everybody works on the same table, you cannot guarantee data consistency. Furthermore, the "free components" of INDX are just an example. You might want to define your own fields with your own specific information. Here comes the full description how such at table must be created. Note the second to the last entry. You are totally free to add components as you like and you are not bound to SAP's INDX-example!
<b>INDX-type structure:</b>
The first field must be a key field named MANDT of type CLNT for the client, if you want to store the data objects client-specifically. For a cross-client storage, this component does not apply.
The second field must be a key field named RELID of type CHAR and length 2. It stores the area ar specification.
The third field must be a key field of type CHAR named SRTFD with a maximum length of 55 characters. It stores the identifier specified in id.
The fourth field must be a key field named SRTF2 of type INT4. It contains the row numbers of a stored data cluster that can extend over several rows and is filled automatically by the system.
Then any number of components with freely selectable names and types may follow. They are provided with values by the specification of FROM wa. Addition TO wa of the IMPORT statement exports these fields again.
The last two components must be named CLUSTR and CLUSTD and be of types INT2 and LRAW of any length. In CLUSTR, the current length of field CLUSTD of each row is stored, while CLUSTD contains the actual data cluster.

Similar Messages

  • Export to shared buffer performance Implications

    All,
    I am using the following statement in one of the programs to export an internal table
    EXPORT it_dtab TO SHARED BUFFER indx(st) ID 'ZMME'.
    I like to know what the performance implications by using this ?

    Helo,
    You could check the current memory limit set for SAP shared space @ transaction RZ11 .
    Pass the profile parameter as rsdb/obj/buffersize and check the field 'Current Value' .
    You could discuss with your Basis counterpart if there's a need to increase the shared memory space which
    is generally not favourable as performance of other sap applns can come down on doing so.
    Regards
    Dedeepya C

  • 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

  • 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

  • Export memory using shared buffer

    Hi
    Lets say a user opens the PO screen ME22N in 2 separate windows accessing 2 separate PO numbers. If  i use the export memory using shared buffer , how can i ensure that the data will not get mixed up ?
    Any ideas?

    YOu would have to get the session id to distinguish between the two.  You can then use this id as part of your key to pass to the export statement.
    Check this thread.
    Quickest way to retrieve modeinfo[n],context_id_uuid from an ABAP pgm
    Regards,
    RIch Heilman

  • 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

  • Rich/Narendran - uh oh!! Does the shared buffer require unique key per id??

    Rich/Narendran -
    Something just occurred to me:
    Does "shared buffer" mean that more than one user can be sharing the same buffer, or is the buffer unique to each user session and is merely "shared" between work processes?
    If multiple users are sharing the same "shared buffer", then I can assign a unique key when I export the data in the first exit.
    But short of using a custom z table, how can I figure out what this key is in the second exit?  I can't "save" the key anywhere, because that's the problem in the first place ...
    I'm hoping that you'll tell me that the "shared buffer" is shared between different work processes for the same user, and not among different users as well !!
    Thanks for whatever you can tell me about this.
    djh

    Hi Naren -
    I've worked on DBMS's in the past where you could pick up a user's thread # in addition to his or her ID - if SAP had anything like that then that would do the job.  Maybe there's a "hidden" sy-something that actually gives you the unique thread ID ... ????
    djh

  • Shared Buffer (Synchronizing)

    Hi,
    I have some data that i export to a shared buffer using:
      EXPORT ...
             .. some data ...
      TO SHARED BUFFER ... ID ...
    I know that is data is accessible by all users on an application server, but my question is
    whether or not this data is synchronized with other application servers as covered by the buffer
    synchronization process:
    http://help.sap.com/saphelp_webas630/helpdata/en/c4/3a6dbb505211d189550000e829fbbd/frameset.htm
    I have read many articles and postings but couldn't find a definite answer. Could any one with
    knowledge in this area help me with an answer?
    Thanks,

    a@S -
    I've taken your answer as "final" for the following reason.
    At this site, ECC>APO CIF will run in batch only (via RIMODACT/2) and the schedulers can tie the batch job to one serverr even if our prod APO instance is multi-WAS.
    So this means we can use shared memory objects OR shared buffer, and the question is which the site wants to do.
    Sometimes, as you know, it's better to stay on the rusty edge and forget about the cutting/bleeding edges.
    Best as always
    djh

  • Chose 'Export to Shared Services' on a calc script....where did it go?

    I accidentally right-click and choose 'Export to Shared Services' on a Calc script in EAS.
    the help file is not much...I am curious...where did this export to in Shared Services? What is the point of this feature?
    Thanks
    JTS

    Hi,
    I think it was Hyperion's original idea to share objects between applications which were known as models, so you could export outlines and calc scripts to shared services and then shared them across applications or to synchronize different applications.
    It is something that I have never seen really used and I am sure it was dropped after 9.2, though the option still existed to export in EAS but you couldn't manage models in 9.3
    I think it has all be superseeded with concepts like EPMA and LCM.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Yosemite installation stuck - Installer Log Shared Buffer Full

    Hi there,
    I am just doing an installation of Yosemite on my MacBookPro and had let it run for over 4 hours now, looking once in a while at the installer log (Command-L). I have just realized that
    1) the installer log produced a shared buffer full statement! and
    2) the installer seems to be copying files from their place to the exact same place!
    Now two questions:
    1) is the installer still running?
    2) why the "file touching"?
    Thanks!

    As for question 1) I can aster that myself: yes, the installer is still running.
    My installation just finished now and seems to be fine. However, if someone has a clue about question 2) it would be great to hear the answer.

  • How to recover from 'INSTALLER LOG SHARED BUFFER IS FUL' during Yosemite install/upgrade?

    My MacBook Pro is currently out of commission as it will only boot into the Yosemite Install process which currently cannot be completed successfully.
    I learned (after the fact) of the install issues related to homebrew but from that helpful article I found out about Cmd-L to open the Log Viewer.
    I've had two unsuccessful installs now. The first took 5+ hours. Since it was taking so long, I left it running over night with the Log Viewer running. I awoke to a failed install with 'Line 128,493 - INSTALLER LOG SHARED BUFFER IS FUL' as the last output in the log viewer. I figured that maybe it was the actual Log Viewer that was causing the issue, but alas my second attempt failed and I only had the log viewer open briefly part way through the process. Even without the Log Viewer running, it hit the same errror.
    Is there a way I can reenable Mavericks to move some files around in preparation for the install?  I don't have the hardware to mount the laptop as a target disk - if I brought the machine to the Apple Store would they let me mount my MBP and move stuff around so I could minimize the install process? Anyone else have any suggestions?

    As for question 1) I can aster that myself: yes, the installer is still running.
    My installation just finished now and seems to be fine. However, if someone has a clue about question 2) it would be great to hear the answer.

  • Please help, i movie is not exporting or sharing movies, it will closed unexpectedly please help?

    Please help, i movie is not exporting or sharing movies, it will closed unexpectedly please help?

    Hi Videoframe
    This was emailed to Apple Support on 23 DEc 2012 at 09:50 Eastern Australia time.
    "I continued to talk to other Apple Mac users on iMovie….Interesting to have found out that their movies were made using iDVD without any known issues as yet…Looking at the results from Apple Support Forum and Youtube, problems appears to be when NOT using iDVD. I and many others can't understand how these many technical problems were overlooked by the programmers of iMovie. One would have thought iMovie problems have been iron out prior to getting rid of iDVD. By the way when I first contacted Apple Support back on 16th Nov, I was told I need to RE-INSTALL my computer…..that I did and in the process my iDVD was removed and never was re-installed.
    May I suggest you delegate a junior person or someone string together a project consisting over near 1700 images, approx. 25mins of video footage, titles and including with and without transitions then export the project.
    I am still in the dark as to what is being done about this extended non result. I am not sure if is known by the people who is in charge of this iMovie programme. it would be nice to get some sort of feedback. Not sure if I should refer this to a third party to do the testing?? I am sure Apple's competitors would love to make a mockery of this.
    There has to be a time frame for this to end, as I and many others can't simply sit here in the dark and wait for someone to come back for a solution, this could be months or years who knows.  As you can appreciate I am not the only user anxiously waiting for a solution.
    I guess I am in a way representing other worldwide users in pursuing a solution on this matter ASAP. I therefore ask you to please make this a priority if this is at all possible.
    Many thanks."
    I've been corresponding to them since Fri 16th Nov on and off without a solution.

  • Problem with EXPORT TO SHARED MEMORY statement.

    Hi I am using the syntax
          EXPORT w_netwr FROM w_netwr
                 w_name FROM w_name
            TO SHARED MEMORY indx(xy)
            FROM wa
            CLIENT sy-mandt
            ID 'Z_MID'.  
    and later importing them in a method but I am getting wrong values in import. Can u please help do we need any
    other addition to make this work correctly.

    delete the memory before exporting and after importing. like a clear statement we use in code.

  • IMPORT/EXPORT FROM DATA BUFFER

    Hi,
    I have some code like this:
    DATA: b type xstring.
    DATA: a type xstirng.
    EXPORT '1234' TO DATA BUFFER b.
    IMPORT a FROM DATA BUFFER b.
    for some reason a does not get set to the value that I assigned to b.
    However, this code works:
    DATA: b type xstring.
    DATA: a type xstirng.
    EXPORT some_internal_table TO DATA BUFFER b.
    IMPORT a FROM DATA BUFFER b.
    Does anybody know why internal tables work but other data types do not?
    Thank you.

    EXPORT '1234' TO DATA BUFFER b, not working because, you did not assign a variable name to '1234' to be stored as in data buffer B.
    Change the code to:
    DATA: b type xstring.
    DATA: a(4) type c.
    EXPORT a = '1234' TO DATA BUFFER b.
    IMPORT a FROM DATA BUFFER b.
    It's working in the second case because, some_internal_table  is the name of the variable in databuffer B and you are importing into the same variable in IMPORT
    Regards
    Sridhar

  • Cannot Export any Video - BUFFER OVERRUN ERROR MESSAGE

    Hi everyone,
    I just purchased a new Ipod video and QTPro. After instaling it for the first time and when trying to export any video i got the message from Microsoft Visual C++ Runtime Library ("Buffer Overrun detected!").
    "A buffer overrun has been detected which has corrupted the program's internal state. The program cannot safely continue execution and must now be terminated."
    I don't know how to fix this problem. Can someone help ? Tkx

    I get the same message when play or exporting any of my Mpeg files, after a few seconds.
    I got the plugin and pro for this specific purpose, but when I try to export them after a few % i get the same message: Visual C++ Buffer Overun. This also occurs when I've been watching the video for a minute or so.
    Like Alex i would love some help to fix this problem. Thnx

Maybe you are looking for

  • How to configure CISCO ASA 5510 for internal remote desktop ?

    Helo,I have a client that want to install new ASA (5510) in their network. and then I did some experiment to implement it. the topology is like this : --------configuration--------- 2800 router : interface FastEthernet0/0 ip address 172.16.1.1 255.25

  • Firefox on MacBook Pro Slowed To A Crawl - Anyone Else Had This Problem???

    Hey Folks, I have Mac Book Pro with 2gigs of ram. Firefox has run great on it, until the other day. I had systems crash while using firefox. After that firefox runs very slow. I tried uninstalling then re-installing firefox. Still the same problem. I

  • Lightroom or Photoshop Elements for administrating huge number of photos?

    Dear photo experts, at home, we have a huge number of photos we took over years. We are looking for a software able to organize all of them. We currently have: Adobe Photoshop Elements 10 (Mac) Adobe Lightroom 3 (Mac) However, for organizing photos w

  • REQUIREMENT TO POPULATE PLANNER GROUP in REPAIR SERVICE ORDER

         Hi Gurus,     We are using Standard repair process, These are the Following Steps 1.Service Notification Creation. 2.Sale order Creation (RAS order type) 3.Returns Delivary 4.Posts Goods Receipt 5.Repair Service Order created in the Backend.    

  • Why is file size of exported clip so large?

    I have a movie clip in MPEG-4 format, 3 minutes in duration, 720x400. I ripped it (using Handbrake) from a DVD I own. Let's call this clip Clip A. I wanted it to be smaller, so I used Quicktime Pro 6.5.2 to export it. Let's call the exported clip Cli