Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos
938

 

Introduction:

After coming back from my last project (CRM 5.0 Implementation) at one of our client, I was sharing my experience with one of my colleague and a good friend on Google Talk. And, all of a sudden a thought came in my mind “Can we create CHAT application using BSP?” and I have started working on this. In result, I got the answer of my question – “Yes! It is possible!!!

 

I was glad to see the result. And, thought to share this with BSP Developers.

 

It is not a new technology. However, many BSP developers might have used this tool for some other function. It’s a combination of BSP and AJAX.

 

Prerequisite:
Developer should have little knowledge on BSP and AJAX.

 

Overview:
This example I have designed and developed using page with flow logic. It has 3 htm pages, 2 xml pages and one Z table.

 

Note: We will not discuss “active_user_list.htm” in this example. To avoid error in the right frame, create one blank page for active_user_list.htm.

 

 

 

 

 

 

 

Example: ·        

Create transparent Z table : ZCHAT_TABLE 

Field

KeyInitData ElementData TypeLengthDecimal PlacesShort Description
MANDTXXMANDTCLNT30Client
CHATUSERXXXUBNAMECHAR120User Name in User Master Record
CHATDATEXXDATUMDATS80Date
CHATTIMEXXUZEITTIMS60Time
CHATTEXT  CHAR255CHAR2550Char255
NICKNAME  CHAR20CHAR200Char 20
ACTIVE  CHAR1CHAR10Single-Character Indicator
SESSIONID  CHAR255CHAR2550Char255

 

1st Page: chat_window.htm 

It should be pure html page with frame:

 

 

Layout:



   



12 Comments
Former Member
0 Kudos
Correct me if I'm wrong: This has absolutely nothing to do with WD?
Former Member
0 Kudos
Hey Salilbhai...
Thanks and really good work..
Former Member
0 Kudos
I have corrected selection of categories.
Thank you for pointing...

~Salil
Former Member
0 Kudos
'Enterprise Portal' next ...
Former Member
0 Kudos
I think we can use BSPs in Enterprise Portal. And so, I have not removed this category.
former_member200874
Participant
0 Kudos
Hi Salil,

That's a good idea and a new way to use BSPs and AJAX. Good it seems you put your time to best use trying out innovative work. Though we are all used to chat applications developed on other platforms like Java, it's good to see BSP,part of SAP WAS architecture working for our chats which brings people around the globe closer.

Former Member
0 Kudos
HI i tried this  but tell me i created pages and written code in sap ..its for sap of jst in other..tell me if its for sap then can u guide me to make it..me getting some error...

Thanks
Former Member
0 Kudos
Thanks Jawahar.
Former Member
0 Kudos
Nainesh,

Please let me know, what error are you getting and where have you written this code in SAP?
Former Member
0 Kudos
hi.
that's good idea. using table able to chat each other instead of TCP/IP protocol.
but in your program has critical problem that is security and privacy.

if someone knows chat table he or she can read whole chat contents.
I think every single of chat record are deleted or overwrite as soon as used.

and since DB control is made by AJAX base on javascript which can manipulated by hacker easily.
should be think more security issue too.

of cause that would be the program which only can using small restrict group.
but if someone using this as broad that will be problem.

anyway the idea is cool besides these problem.
Former Member
0 Kudos
As you mentioned correctly, that, this application I have design for small restricted group. So, my purpose was to get the functionality.

However, I will consider your point in my next enhancement of this application.

Thank you,
~Salil
Former Member
0 Kudos
Can you please give active users.htm page code