Use of SAP memory to transfer data between two different sessions.

Hello experts,
I wish to know how to use SAP memory to transfer data between two different sessions.
The scenario is that when I run a report and change a variable, the value of changed variable should be availabe to another user on another terminal.
Thanks & Regards!
Sumit

Hello,
Just to add what Max has already mentioned. IMPORT TO / EXPORT FROM DATABASE statements can be used to store data in special "cluster" tables (you can't use any DDIC table) e.g., INDX.
@OP: You can opt for Shared Memory(SHM) for this specific requirement as well. In my opinion SHM is a bit tricky to code, but it is easier to monitor. The opposite holds true for "data clusters".
You should remember SHM is app-server specific. So if you've a load balancing scenario, using SHM can cause problems.
Hope i'm clear.
BR,
Suhas
Edited by: Suhas Saha on Nov 19, 2010 4:12 PM

Similar Messages

  • How to pass data between two internal sessions using ABAP memory?

    Hi,
    How to pass data between two internal sessions using ABAP memory?
    It would be fine if you could explain with an example.
    And also let me clear about the data passing between two main sessions and two external sessions with specific examples.
    Thanks.

    Hi ,
      check the example.
    Reading Data Objects from Memory
    To read data objects from ABAP memory into an ABAP program, use the following statement:
    Syntax
    IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key>.
    This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO <g i > option, the data object <f i > in memory is assigned to the data object in the program with the same name. If you do use the option, the data object <f i > is read from memory into the field <g i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    You do not have to read all of the objects stored under a particular name <key>. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name <key>, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name <key>, SY-SUBRC is always 0, regardless of whether it contained the data object <f i >. If the cluster does not contain the data object <f i >, the target field remains unchanged.
    In this statement, the system does not check whether the structure of the object in memory is compatible with the structure into which you are reading it. The data is transported bit by bit. If the structures are incompatible, the data in the target field may be incorrect.
    PROGRAM SAPMZTS1.
    DATA TEXT1(10) VALUE 'Exporting'.
    DATA ITAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
    DO 5 TIMES.
      ITAB-BOOKID = 100 + SY-INDEX.
      APPEND ITAB.
    ENDDO.
    EXPORT TEXT1
           TEXT2 FROM 'Literal'
      TO MEMORY ID 'text'.
    EXPORT ITAB
      TO MEMORY ID 'table'.
    SUBMIT SAPMZTS2 AND RETURN.
    SUBMIT SAPMZTS3.
    The first part of this program is the same as the example in the section Saving Data Objects in Memory. In the example, the programs SAPMZTS1 and SAPMZTS2 are called using SUBMIT. You can create and maintain the programs called using the SUBMIT statement by double-clicking their names in the statement. For further information about the SUBMIT statement, refer to Calling Executable Programs (Reports)
    Example for SAPMZTS2:
    PROGRAM SAPMZTS2.
    DATA: TEXT1(10),
          TEXT3 LIKE TEXT1 VALUE 'Initial'.
    IMPORT TEXT3 FROM MEMORY ID 'text'.
    WRITE: / SY-SUBRC, TEXT3.
    IMPORT TEXT2 TO TEXT1 FROM MEMORY ID 'text'.
    WRITE: / SY-SUBRC, TEXT1.
    Example for SAPMZTS3:
    PROGRAM SAPMZTS3.
    DATA JTAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
    IMPORT ITAB TO JTAB FROM MEMORY ID 'table'.
    LOOP AT JTAB.
      WRITE / JTAB-BOOKID.
    ENDLOOP.
    The output is displayed on two successive screens. It looks like this:
    and
    The program SAPMZTS2 attempts to read a data object TEXT3 from the data cluster "text", which does not exist. TEXT3 therefore remains unchanged. The existing data object TEXT2 is placed in TEXT1. In both cases, SY-SUBRC is 0, since the cluster "text" contains data.
    The program SAPMZTS3 reads the internal table ITAB from the cluster "table" into the internal table JTAB. Both tables have the same structure, namely that of the ABAP Dictionary table SBOOK.
    Pls. reward if useful.....

  • How to transfer app data between two different game center accounts?

    Hello, I really need some help.
    I have looked all over the web for ways to transfer apps between two different game center accounts and different devices. Several weeks ago I started playing Campus Life on my relative's Ipad 2, therefore spending many long hours to get to this point in the game.
    The problem is I just got an Iphone 5 and I really would like to transfer the data onto it, so that I would not need to start all over again.
    My grandma has an account (Game Center) onto which the data has been saved and I would like to have it stored onto mine. On some forum someone said to sign into the account which has the data on both devices and to then open up the game on the new device. It worked. Then I signed out and logged in with my own account- the game started from scratch. I panicked. I went back on the other account, and the data reappeared. I have been going back and forth, the game changing as many times. I thought it would ask to back up my grandma's data on mine but I was wrong. I can not seem to save the game onto my new account, and I have even tried to back it up to Itunes and then copy it onto my phone after having signed into my own account. And I don't know how to properly use Icloud. I am a mess. I am completely lost and have found no help on the web. (All people seem to have to deal with is sharing Apple IDs with different Game Center Accounts for the kids and transferring apps from one of their devices to another.)
    I am so worried I am going to mess up and will lose the whole thing completely.
    I have just started another game with my own account but since I am using my grandma's, the data is erased. It's one or the other but I definitely prefer saving Campus Life. I do not like the idea of having to only pick one.
    I do not know any technical terms, so if you understand or even have the slightest clue about what I am talking about, I applaud you.
    This seems like mission impossible, so if anyone can help in any way, I would be really grateful. 
    Thanks in advance for your time and thoughts!

    I meant to press on "This solved my question"... Sorry if you needed the points.
    Thank-you and I will just go back and forth between the accounts.

  • How can I transfer data between two while loops in parallel

    Hello,
    I have two while loops in parallel and I want to transfer data from the first to the second loop. The problem isthat data are transfered only when the first loop ends. I tried with queue but it doesn't work. How can I do, preferentially without global variable ?
    Thanks.

    I join a very simplified VI's because the real works with PXI, RT, ...
    When you run the "secondVI.vi", no data comes in array from the "firstVI.vi".
    As I said in my first message, I tried with queue too but it doesn't work, because when the terminal go out from the while loop, while loop have to be ended to send data.
    Attachments:
    transfer_data.zip ‏20 KB

  • Share data between two different plugins

    Hi All,
    I have two different plugins - In one, I am writing the persistent data and in the other I want to read this data. By making the dependency on the first plugin, I am able to read the data from the second one. But how can we read the data from the second plugin without any dependency on the first plugin?
    Regards
    Sahil

    As I recall, there is a setting to allow SO's to work between
    apps. Also you need to be sure to flush() the so to save the data.
    Another option is LocalConnection.
    Tracy

  • Using EDI/IDOC transfer data between two systems

    Hello,
    I would like to transfer invoice data from one R/3 system to another R/3 system using XI.
    I am thinking that it should be possible using Output type determination of the TCode MIRO.
    Is it possible to achieve this by creating
       1. Output type determimation EDI
       2. Create partner profile for message code INVOIC.
    Could you share your expertise on how to achieve this?
    Thanks
    William

    Thanks Venkat,
    For some business reasons, we would be using XI to send invoice from R/3 to R/3 and Yes we need IDoc adapter.
    Let me rephrase my question.
    Can I use output determination EDI to send Invoice from R/3 to R/3 via XI? If it is possible then what are steps required.
    William

  • Using functional global variables to transfer data between touch screen device and other targets

    Hi,
    We are currently developing a control system that will operate on a cRIO with a touch screen interface. During development we have been using functional global variables (FGVs) to handle most of the settings/data etc, however we have just realised that we may have an issue updating the data on the touch screen, and vice versa.
    Previously we have implemented similar programs using shared variables, however we were wondering if there is anyway to implement FGVs in a similar manner, whether it'd be a combination of FGVs and shared variables.
    Regards,
    Mike
    Software version: Labview 8.2.1

    See this thread on LAVA about sharing FGV's across projects. THis should be extendable to cross paltforms (I believe).
    You also may want to concider an upgrade to LV 8.5.1. We have found a number of performance related issues with LV 8.2.1 and RT.
    If you decide not to upgrade, just remeber what I wrote (above) when you have reason to question the performance.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to transfer data between the different states in "state machine"?

    I want to transfer some data from one state to another. I tried the tunnel, but it can't work since it's the case structure. Does "state machince" support data transfer? Or any other methods I can do?
    Thank you.

    Yes, adding a shift register to the outer while loop should work, make sure to initialize it.  Perhaps you could attach your vi so we could have a look at it.  Be sure to give us as much info as to what your goal for the vi is.
    Cheers!
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • How to transfer data between two tables

    Hi friends i have got a new problem actually i'm a fresher in this SAP so i have a doubt in SAP Smart Forms the problem is like this
    I have a data element common in both of the tables BSEG and KNA1 and the common data element is KUNNR so i want to transfer all the data in the table BSEG to KNA1 of the same data element(KUNNR) in which there is data regarding customer information so i want to transfer the single customer data into another table KNA1 and i want to display the data in the output plz any one can help me.

    hi.
    the below metjhod u can adopt.
    1)
    select data from 1st zable to internal table.
    2)insert data from internal table to 2nd ztable simple.
    data:begin of itab occurs 0.
    include structure ztable_structure1.
    data:end of itab.
    select * from ztable into table itab.
    modify ztable1 FROM TABLE itab.
    3 ) ike that u can catch date from other table.
    4) if any condition is there u can check it in the internal table.
    Rgds
    Anver
    if hlped pls mark points

  • Finding the data between two different substrings in a string

    Hey guys-
    This is probably really easy for someone...I can't figure it out with CF.  I've searched a bunch but haven't found exactly what I'm looking for.
    I'm searching a HTML document with Coldfusion and need to pull some data from it.  Just as a quick example, somewhere in the HTML document there might be some code that looks like (this is obviously super simplified):
    <tr><td>Grand Total: </td></tr><tr><td>$1000.00</td> </tr>
    I need to do a couple of things.  1)  I need to capture the $1000.00 (this amount is dynamic, it will be different on every HTML doc) 2) I need to delete the whole row (or two rows in this example).
    I'm guessing it's something along the lines of setting " <tr><td>Grand Total:</td></tr><tr><td> " to a variable, then searching for everything after until it finds </td> and storing that as a variable.... and then for step two storing everything from the  <tr><td>Grand Total:</td></tr><tr><td> to the next </tr> as a variable, and then using Replace to take it out of the document.  I just dont know how to do the "capture everything from 1 pre-established variable to the next time the code has variable number 2 (in this case, either </td> or </tr>) part.
    Any thoughts or help would be so greatly appreciated!
    Thanks all!!
    JE

    Thanks ilssac...that's definitely helpful, as you said..mine is a little more complex as I need to find a pretty specific line of code and then find the next </td> after (actually, find all of the content between those two).
    Any other thoughts?  I KNOW someone else has done this.  Parsing out HTML documents to capture different pieces of info has to be relatively common....
    Thanks!

  • Transfering data between two different systems through dedicated port

    Hi!
    We are developing our system in java. But we need to communicate an existing Tandem COBOL System through a dedicated port to get some information. The user has already developed an interface to listen the request and send the response. What sort of interface we need to develop for requesting and receiving data? Anyone here to help me?

    Network connections are well-supported in Java by the java.io, java.net and java.nio packages.
    Read the Java networking tutorial: http://java.sun.com/docs/books/tutorial/networking/

  • How to get two hard drives to be seen on MBP desktop. I need to be able to see 2 hds both 3 tb to transfer data between them. This is easy in windows just open two instances, one for eac hard drive. TIA robbo

    am trying to back up and transfer data between two hard drives but cant get up twp Hd icons at the same time. It is so easy in windows but cant seem to do it in MBPro. Even Dick Smith couldnt help me today.
    It is probaly so easy it everyone will LOL but I cant get it happening.
    TIA Robbo

    Do the HD icons appear on your Desktop?
    If not, adjust your Finder preferences:
    Also check "Hard Disks" if you want your internal HD to appear on the Desktop.
    Open one, open the other, should be no problem.

  • IDOC Transfer data between SAP 2 System

    Hi All,
    I have SAP two systems. I want to transfer data between SAP by IDOC. please let me know about how to
    set "LOGICAL SYSTEM" for receiver for use on distribution model setting. If you have other method please recomended. 
    Regards,
    Moderator message: please search for available information before asking, do not ask basic questions.
    locked by: Thomas Zloch on Sep 2, 2010 10:54 AM

    Hi,
    The steps which u need to do for logical system setup:
    outbound configurations (Sender)
    s1) Goto BD54 - DEFINE SOURCE SYSTEM & RECEIVER SYSTEM HERE
    s2) BASIC SETTINGS --> LOGICAL SYSTEM -->Assign Logical system to client.
    s3) a) Goto TCODE u2013 WE21
              create port for sender.
    s4) a. Maintain Distribution Model in Detail.
         Execute BD64 and click on change.
         Click on Display/ Change button
    s4) b. Click on Edit menu -> Model View -> Create
    s4) c. Select your model view and click on Edit menu -> Add Message type  
    s4) d. Click on Environment Menu -> Generate Partner profile
    s4) e. Click on Edit Menu -> Model View -> Distribute.
    s5) Goto TCODE u2013 WE20
         Click on Partner Type LS (Logical System) and press Create Button
    INbound configurations (Receiver)
    S1)  Goto TCODE u2013 WE21
              create port for receiver.
    s2) Goto TCODE u2013 WE20
    Click on Partner Type LS (Logical System) and press Create Button.
    A profile is created for RECEIVER (client) so that we have  to use the same profile every time we transfer a new message 
    type to this Receiver.

  • How to transfer data between a multi-thread dll build with LV7 and MS C++, using envent programing method.

    It is easy to transfer data between a simple input/output dll build with LV and an external code like C++, but when data are available inside a loop running in the dll(in fact thread running in LV); How can I read them or receive an handle pointer to the calling C++ application when new data are ready.

    If you're using LabVIEW 7, you can use the PostLVUserEvent function to fire an event for an event structure in LV. Refer to the Using External Code in LV manual.
    Or you could use datasocket for this. The datasocket activex dll is nids.dll. You could have the class wizard generate wrappers for you or if you have Measurement Studio, you could use the custom wrappers it provides to communicate between the VI and dll.
    I hope this helps
    Bilal Durrani
    NI
    Bilal Durrani
    NI

  • Using EPMA to transfer data between HFM and Essbase on 11.1.1.3

    Can we use EPMA to transfer data between HFM application and Essbase cubes on Hyperion version 11.1.1.3?
    As far my understanding we can only link HFM and Essbase through EAL.
    I would be very keen to know from the audience if we can use EPMA to transfer data between HFM and Essbase
    Hyperion version 11.1.1.3
    Windows 2003 64-bit
    Regards
    Yogananda Bharadwaj

    Hi Yogananda,
    Check epma admin.pdf, page 439. Chapter 19 describes how to synchronize and map data between Hyperion applications, interface tables, and external files via EPMA Data Synchronization.
    Regards,
    Thanos

Maybe you are looking for

  • App cache seems to be not working in the latest firefox

    In a new app we developed which has offline support with the help of HTML5 appcache feature. We noticed that with the latest update from FF (27.0+) the appcache stopped working and it's not caching any of the resources specified in the .manifest file

  • Good photo printer???

    Does anyone have a recommendation for a good photo printer? I was using a Kodak Easyshare Printer dock plus, but since upgrading to iPhoto6, it's seems that it's no longer supported. I'm only using it for personal use, not a professional photographer

  • Have a hp deskjet all in one k209A

    the scanner appears to scan but will not save to the mac... when i try to trouble shoot  system preferences printers and scanners opens in a different desk top to the hp scan app so i cant resolve the issue ...... is my problem with the hp product or

  • Can't launch Illustrator CC 2014.1 on Mac

    I have a MacBook Pro Retina and have been unable to launch or open files in illustrator since I installed the latest version two days ago (Oct. 6). I need this program for work and really need to get it working ASAP. I have installed a previous versi

  • EP stater urgent

    Hai Gurus,           I am working in SAP  abap .Now my PM ask me to learn EP as soon as Possible. I don't have any idea  about this friends. Please give me a clear idea about this.. 1 . I dont know java programing ... ( Is this mandatory ) 2. Is it p