Skip to Content

 

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.

image

 

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.

 

 

image

 

 

 

image

 

 

Example: ·        

Create transparent Z table : ZCHAT_TABLE 

Field

Key Init Data Element Data Type Length Decimal Places Short Description
MANDT X X MANDT CLNT 3 0 Client
CHATUSER X X XUBNAME CHAR 12 0 User Name in User Master Record
CHATDATE X X DATUM DATS 8 0 Date
CHATTIME X X UZEIT TIMS 6 0 Time
CHATTEXT     CHAR255 CHAR 255 0 Char255
NICKNAME     CHAR20 CHAR 20 0 Char 20
ACTIVE     CHAR1 CHAR 1 0 Single-Character Indicator
SESSIONID     CHAR255 CHAR 255 0 Char255

 

1st Page: chat_window.htm 

It should be pure html page with frame:

 

 

Layout:

   

To report this post you need to login first.

12 Comments

You must be Logged on to comment or reply to a post.

  1. jawahar terala
    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.

    (0) 
  2. nainesh patadia
    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

    (0) 
  3. Community User
    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.

    (0) 
    1. Salil Patel Post author
      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

      (0) 

Leave a Reply