on 2009 Feb 04 10:59 AM
hi guys,
I was wondering how one can create a chat program in abap. As its possible in Java & .Net why an abaper under estimate himself. Now here imagine a simple chat program where one can send some text from his SAP GUI which will appear on others SAP GUI and viceversa. Dont think about some messangers like yahoo or gtalk.(dont over estimate being an abaper)
So i developed two programs one to send text & other to receive text. Send prg. is module pool and receive prg. is a simple report which has timer class which gets data from table every second so user dont have to press any button to receive the message.
To start chat you have to run both programs in your GUI where from send program you enter your name in one text field and your message in other text field by pressing enter it gets update in table field(not every time it insert new record, it simply update previous so table size would not increase). As the person with whoem you are chatting is also running both programs, your message appears in 2nd program on his GUI & yours also. followed by your name.
Both chat programs works fine with more then two users also. i tried to combine both program in one screen so user can send & receive chat from one screen. but due to timer class used, its not possible as receive program keeps refreshing for every 1 second.
so i am wondering is thier any way to run one modulepool program & one report in a single screen. some thing like screen splitting or docking???
you are welcome to share your ideas regarding chat in ABAP/4(release 4.7)
Regards,
SUDHIR MANJAREKAR
Request clarification before answering.
Hello ,
I have created Simple Chat Application in ABAP...
Where you can see Online User List.... and Chat with them using Long Text....
I have used ALV OOPS, Gui Timer Class, & Custom Long Text etc.
You can see screen shot at my blog...
http://www.sapabapcodes.com/2012/05/chat-box-chat-application-in-sap-abap.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From the image I feel that multiple chat box is not possible . Is it ? It would e better if the text edit control is displayed as popup. . I am anxious to know how the message is captured into the edit control at the target ( Let me guess for a while until you update it )
You will have high visibility in SCN blog spaces. Don't forget to post it here.
Problem is number of Sessions in SAP are limited.
I can open chat area in pop up but... it will be very limited.
So, better you select your chat buddy in ALV and it will activate your chat...
So, with 1 session only you can chat with mulitple people and with saving history, Chat text wont lost.
Thank you Thomas for your guidance. I have created blog article with proper screen shot and description and shared on ABAP Community.
http://scn.sap.com/community/abap/blog/2012/06/02/sap-abap-chat-box-v-10-chat-application-in-sap
answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A friend of mine is doing exactly that...A Chat system in ABAP...Can't give details because it's his secret project...He he show me a demo at Las Vegas TechEd 08...Pretty nice stuff...
Greetings,
Blag.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudhir,
Best chat in SAP would be the one right here.
Bullzeye "Coffee Corner".
--
Ameet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
using the editor object would be the way to do it, the problem would be putting the chat up on another
users session. Not sure we have the ability to start a session on another users system. Once you
had the session connected, you could use cluster file to send the messages back and forth with each
side on a timer that would refresh the dialog.
Crude but could work.
Well Suhir,
Idea is great!! Why dont you try to work out same chat functionality in our sdn ?
regards
sas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
mhh, interesting idea. why not use the message (email) funtionality in ABAP?
No auto refresh, but that's against ABAP religion anyway
But you get a popup when it arrives.
Ta,
Andi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, thats right. There are few ABAP codes which you can find in the net and can improvise on that.
The program displays list of all users who are currently active on a list.
You can select user and select press button on the application tool bar to send a message.
Concerns here are: 1. The receiver cannot reply from the same popup. He has to run the program, select the user who has send message and reply. 2. You will not be able to see the entire message log.
For logging messages you can try creating standard text for tracking dialog between any two user and something of that sort.
regards,
S. Chandramouli.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.