How to get message in realtime sent by another user using FM TH_POPUP?

I want to program a chat function between two SAP users by using ABAP.
1.User A send a message to user B by using TH_POPUP,
  At the same time, the message is showed in screen as 
  'Send message'
2.User B get the message
->My problem is how to get the message in realtime which I want to show it in screen as 'Received message'.
Can anybody tell me how to get the message sent by using FM TH_POPUP in realtime?
Edited by: Jing Yu Huang on Feb 6, 2008 2:11 AM

Hi there
This really isn't a "conversation" type program
1) What does the original user do after sending the message -- I'm not sure if there's a WAIT_FOR_REPLY and even if there were I'm not sure  you'd want the original user to have a suspended session waiting for a reply.
2) What does the 2nd user do after receiving the message --if it's just thrown up on his screen  then there isn't any mechanism to return a reply from USER A'S SESSION.
You need somehow to have a continually running process which will send a message for example to user B and create an event or do somethimg so that User B is bound to the same session that sends the original message.
2 different users running the same abap don't actually have any common link between them even on remote function calls.
You need to have a central process here that shares a message space between the users (i.e a kernel type module).
Classical Abap won't do (nor is it designed for) these types of processes.
You might be able to find something in some of the  'C' coded kernel calls but as I previously posted before you are far better off using Windows for this type of stuff. (Windows Messenger for example).
ABAP unfortunately is not designed as a multi user  "re-entrant"  programming language - nor was it intended to be.
Another possible get around is to use the workflow system. User A sends a message which raises an event. This then starts a workflow which transmits say message to user B and notifies him of a message waiting for him. User B can reply which again raises an event and triggers workflow routing the message / reply back to user A.
The response time won't be very good but at least it will work without tying up 2 user dialog sessions - but seriously guys I'd give up on this and just use Windows Messenger or equivalent system.
These type of programs depend on a central server for the message handling - you'd have to replicate this in ABAP -- and Im 120% sure it can't be done.
Cheers
Cheers

Similar Messages

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • How to get the currency of the logged in user using an el expression

    I want to get the currency of the logged in user using an el expression. I can get the same using ApplSessionUtil.getCurrency(). But can i get the same using an el exprssion?. I want to use this el expression for setting the default value of a VO attriubte
    Thanks in advance

    Hi
    If you are getting the currency value from ApplSessionUtil.getCurrency() set the result of the value to one of your VO on Bean and use it in your el expression .
    Thanks
    Raghav

  • How to get the list of communities of a user using EDK

    Hello,
    I am developing a portlet which needs to get the list of communities in which the logged-in user is a member. I am using EDK 5.0.1.
    I can't find a way to retrieve this information using the EDK I am using.... Would you please help?
    Thank you in advance.

    Hey Ramy,
    A bit off the top of my head, but try this:
    IPortletContext PortletContext;
    IRemoteSession PTSession;
    PortletContext = PortletContextFactory.CreatePortletContext(Request, Response);
    PTSession = PortletContext.GetRemotePortalSession();
    privatevoidgetCommunities()
    IObjectManager Manager = PTSession.GetObjectManager(ObjectClass.Community);
    IObjectQuery Query;
    Query = Manager.QueryObjects(-1, 0, -1, ObjectProperty.Name, true);
    for(inti = 0; i <= Query.GetRowCount() - 1; i++) {
    string sCommunityName = Query.GetRow(i).GetName();
    string sCommunityID = Query.GetRow(i).GetID().ToString();
    Cheers!John

  • How to get messages from IBM MQ in Oracle.

    Hi ,
    Can you please help me how to get messages from one IBM MQ to another IBM MQ in Oracle.
    My requirement is Our upstream is putting messages from their IBM MQ to our IBM MQ
    then we have to extract data from the message and load into Oracle database tables
    how to implement this  in oracle.
    Is there any other way to implement this without writing any ORACLE PL/SQL programming.
    Please help me.
    Thanks.

    You might want to use Oracle AQ: Integrating Oracle database applications with WebSphere MQ applications You will need to write some PL/SQL to Dequeue from Oracle AQ and convert the queue payload into insert statements.
    If you need help wityh AQ, there is a separate forum: Advanced Queueing

  • Problem downloaden ebooks. i get the message: 'Elic already fullfilled by another user'  ( i had to authorize adobe digital editions on my comp to be able to share a certain book, but now doesnt download books anymore from shop) How can i solve this?

    Problem downloaden ebooks. i get the message: 'Elic already fullfilled by another user'  ( i had to authorize adobe digital editions on my comp to be able to share a certain book, but now doesnt download books anymore from shop) How can i solve this?

    You has a other Adobe ID in Adobe Digital Edition by the First open of the eBook....or you have open the eBook with empty authorization. When has used a other adobe id should change the adobe id, if not the eBook are looked with the empty authorization. In this case need a new Download of the eBook of his reseller.

  • How to get message which don't contain specified header?

    Hello
    I have a question:
    how to get messages which don't contain specified header?
    At this moment I have something like this, but it works to long (2 seconds for 15 messages, 2 minutes for 800 messages:/ )
    StringTerm st = new StringTerm("Header name") {
        public boolean match(Message arg0) {
            try {
               return arg0.getHeader(pattern) == null;
            } catch (MessagingException ex) {
               return false;
    Message[] m = f.search(st);where f is folder
    Does exist way easier and more "time-efficient"
    regards
    Edited by: moj_ekranik on Dec 4, 2009 1:28 AM
    Edited by: moj_ekranik on Dec 4, 2009 1:29 AM

    Assuming you're using IMAP...
    Try this:
    folder.search(new NotTerm(new HeaderTerm("header-name", "")));

  • How to get the intersection of two arraylist containing user defined obj??

    How to get the intersection of two arraylist containing user defined obj??
    I can easily get the intersection of two array list which containing some simple class(Integer, String). But how to get the intersection of two arrayList which contain user defined object?
    Here is the sample code..I can not run this out...anybody can help me? thank you very much..
    The correct result should be like this:
    2
    2
    but I can only get this:
    2
    0
    import java.util.*;
    public class testRetain{
         public static void main(String[] args){
              ArrayList a = new ArrayList();
              ArrayList b = new ArrayList();
              a.add( new dog(1,2,2) );
              a.add( new dog(1,2,1) );
    System.out.println(a.size() );
              b.add( new dog(1,2,2) );
              a.retainAll(b);
    System.out.println(a.size() );
    class dog implements Comparable{     
         int head;
         int arms;
         int legs;
         dog(int head, int arms, int legs){
              this.head = head;
              this.arms = arms;
              this.legs = legs;
         public int compareTo(Object o){
              if ( ((dog)o).head > this.head )
                   return -1;
              else if ( ((dog)o).head < this.head )
                   return 1;
              else
                   return 0;
    }

    @Op. Your classes should override equals and hashCode
    Kaj

  • How to get rid of ask toolbar on a mac using chrome browser

    how to get rid of ask toolbar on a mac using chrome browser

    How to remove Ask toolbar?
    You may find this helpful.
    http://support.mindspark.com/link/portal/30028/30031/Article/1543/Toolbar-Remova l-Instructions-for-Mac-OSx-Users

  • Why does message show as sent when the user is off...

    Why does message show as sent when the user is offline??
    After merging my Facebook and msn, I've been told by my Skype contacts, that whenever I'm offline, and they message me, it shows that I got the message. Just like I'm online.
    This is also happening to my other friends who have merged their accounts ;(....!!!!
    Please help, please! ;(...!!! I'm not hacked, I know, but it's happening even with other people who have merged the ACC....

    Hello Colin,
    The issue that you are describing is in fact a feature. You can learn more about the benefits of this feature by viewing the following  article: http://support.apple.com/kb/HT3679
    Spencer R
    AppleCare

  • How can I share my iTunes library with another user on my laptop?

    How can I share my itunes library with another user on my laptop?

    If you type "Shore itunes library" into the search bar at the top of this page by "Support" you will find:
    iTunes: How to share music between different accounts on a single computer

  • How to transfer songs from one iPad to another iPad using iTunes?

    How to transfer songs from one iPad to another iPad using iTunes?

    You can't without a third party app. If you didn't purchase the Music with your Apple ID or if the music was imported from CD's on your friends iTunes library, syncing will not work ....nor will transferring purchases.
    Look at this app .... TouchCopy
    http://www.wideanglesoftware.com/touchcopy/index.php

  • How to copy and paste a photo in another folder using Aperture?

    How to copy and paste a photo in another folder using Aperture?

    What do you want to achieve? Do you really want to create a copy of an image, and thus create a second copy of the master image file? You will waste disk space this way.
    Usually you would create new versions of an image, if you want versions with different adjustments. Versions do not require much additional disk space. But all versions of an  image have to be in the same project. To create a new version: Main menu bar -> Photos -> Duplicate Version
    To create a copy of an image in another project (and to waste the space ) drag the image to another project while holding down the option key. This will create a copy in the other project.
    Sofar nobody here could come up with a good reason why one would want to create a copy. I am curious what in your workflow requires you to do that. Would you mind to tell us?
    Regards
    Léonie

  • How do I share my tunes library with another user on same mac?

    how do I share my tunes library with another user on same mac?

    Click here and follow the instructions.
    (107187)

  • How do I import an address book from another user on same iMac?

    How do I import an address book from another user on same iMac?

    David...
    Try here >   Share one Address Book among multiple users

Maybe you are looking for

  • Reports are not matching

    Hi, There is a reporting problem with one of our projects. We use reports S_ALR_87013542 (Display Actual Cost Line Items for Project) and CN41(Structure Overview). The balance being displayed by these two reports are not matching. Why the different a

  • Changed id, won't update on icloud.

    I changed my apple id, but it won't change on icloud on my ipod touch.  I can log into icloud on the computer w/ the new id, but the ipod has the old id on icloud and won't allow me to change it.  W/o it I can't get my calendar to sync w/ my son's ba

  • BUCKET LIST FOR VERIZON....

    HEY VERIZON.. Here is  BUCKET LIST... 1. Fix the Server Bugs... always getting server busy 2 Allow you to delete all your recordings at once.. not 10 at a time.. it takes forever 3 Be able to time activate and unactivate  your Modes for Camera Record

  • IPod playlist on home computer to work computer

    Hi, I have plugged my iPod into my work computer and it connects fine, no problem there. But how do I listen to songs stored on my iPod via iTunes on my work computer?

  • App Store Application Deleted

    The App Store Application disappeared (was probably deleted) from my iPad.  How do I get it back? Thanks