cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

chat program in release 4.7c

Sidh_M
Participant
0 Kudos
819

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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

kesavadas_thekkillath
Active Contributor
0 Kudos

Brilliant effort.

Former Member
0 Kudos

Thank you so much..

I am going to release source code after few fix and with new functionality ...

So, keep watching my blog..

kesavadas_thekkillath
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

kesavadas_thekkillath
Active Contributor
0 Kudos

Correct..Session limitations

1 session with multiple people - Good Idea. In this case , is the conversation private to the selected user ?

Hmmm...Please go a head. My questions will come later

ThomasZloch
Active Contributor
0 Kudos

What Keshav said, feel free to post this as a blog or document in the space, more people will see it and can appreciate and/or comment.

Thomas

Former Member
0 Kudos

thank you ...When ever I will get time. I will do best to share on it.

Former Member
0 Kudos

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

ThomasZloch
Active Contributor
0 Kudos

Well, I was hoping you post actual code, and not only screen shots, sending people to your external site. Do you have any commercial interest in this? If yes, then please remove the blog again.

I will have to check with SCN admins if the blog in the current form is OK.

Thomas

Former Member
0 Kudos

No. I dont have any commercial interest out of it. Its just I dont share code unless I get response from other people and understand their requirement and purpose. My blog is not for commercial puropose, I like to share my R&D in SAP ABAP and knowledge.  

Former Member
0 Kudos

Grt idea and i like the snap shoot it sounds good am waiting for the source code to apply on my PC!

Sidh_M
Participant
0 Kudos

answered

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Sudhir,

Best chat in SAP would be the one right here.

Bullzeye "Coffee Corner".

--

Ameet

Sidh_M
Participant
0 Kudos

ofcourse amit

its the best caffe

ss

ss

c(__) ever...

Regards,

Sudhir

Former Member
0 Kudos

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.

Former Member
0 Kudos

Well Suhir,

Idea is great!! Why dont you try to work out same chat functionality in our sdn ?

regards

sas

Sidh_M
Participant
0 Kudos

hey that would be gr8 opportunity sas....

Former Member
0 Kudos

Hi Sudhir!! then y dont pick the net weaver application and try to work on the same...

regards

sas

Sidh_M
Participant
0 Kudos

we have 4.7c and chances are very less to shift on netweaver platform...

most probebly i will have to look for another employer with ECC 6 platform, in fact thts wat i started looking for.

Former Member
0 Kudos

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

Sidh_M
Participant
0 Kudos

well sending mail from an abap program is no big deal, jst use one function module.

but for a simple hi,how r u, bye etc. why one should overload his inbox...

former_member784222
Active Participant
0 Kudos

For simple messaging you have FM 'TH_POPUP'. Did you try that ?

regards,

S. Chandramouli.

Sidh_M
Participant
0 Kudos

hi Chandramouli,

i never know such function module before. I jst tried it & its cool. But message appears as popup.

i guess atleast user messages between their interaction should be track and thts not possible with this function module.

former_member784222
Active Participant
0 Kudos

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.