Skip to Content
Author's profile photo Alvaro Tejada Galindo

Blag’s experiments with SMP – Volume 2

As promised…here’s another of my experiments with SMP…this time, I wanted to something more interesting and more complex…something that really gave me an SMP experience…so I took something that I build a long time ago by using PHP and SAP…I’m talking about an SBWP aka. SAP Mail emulation.

Of course, I needed to go back to my ABAP roots and build some RFC enabled function modules.

(The code is a little bit long, so I will upload it along with the SMP code to Code Exchange 😈 )

With that ready…we can start doing some SMP business…first, let me show the Model.

SBWP_Model.png

It’s really easier than it looks 😛

As we have 4 function modules, we create 4 MBO’s (Business Model Objects) and we link two of them…the Titles with the Details…

SBWP_Diagram.png

We need to establish a relation between Titles and Details, because we’re going to have a screen with the Titles and for each one, we’re going to show it’s detail.

SBWP_Relationship.png

SBWP_Relationship_Graph.png

It’s very important to define the Personalization keys, as they are going to pass as parameters for the MBO’s.

SBWP_Tree.png

This is the Personalization for the Send Mail MBO.

Send_Mail_Personalization.png

With all that explanation, we can take a look at the demo, which is running on a BlackBerry emulator.

SBW_Demo_001.png

SBW_Demo_002.png

SBW_Demo_003.png

SBW_Demo_004.png

SBW_Demo_005.png

SBW_Demo_006.png

As we can see, we can do everything that we could do on the SBWP transaction…but as always 🙁 I have a little bug…when the Reply window comes out, the “To:” should be filled, however, I haven’t been able to do it yet…after all…SMP is a new technology, and we’re all learning how to use it 😎

Assigned Tags

      18 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Alvaro Tejada Galindo
      Alvaro Tejada Galindo
      Blog Post Author

      The source code for SUP and RFC FM's is available on Code Exchange 🙂

      https://cw.sdn.sap.com/cw/groups/blag-stuff?view=documents

      Greetings,

      Blag.

      Author's profile photo Former Member
      Former Member

      How can I download this source code ?

      Author's profile photo Alvaro Tejada Galindo
      Alvaro Tejada Galindo
      Blog Post Author

      Rana:

      You need to join the group on CodeExchange https://cw.sdn.sap.com/cw/groups/blag-stuff?view=documents and you will be able to download the .zip file and import it to SUP 🙂

      Greetings,

      Blag.

      Author's profile photo Former Member
      Former Member

      Thank you very much Alvaro,

      I had a problem with joining the group but i was able to solve it now 🙂

      Regards,

      Rana.

      Author's profile photo Former Member
      Former Member

      I have a question Regarding the SAP server used in this application "I830502_ERP" what is the application server or how can I connect on the server you used ?

      Author's profile photo Alvaro Tejada Galindo
      Alvaro Tejada Galindo
      Blog Post Author

      Rana:

      I830502_ERP is just the name I gave to the connection to the ERP included in the SMP Environment on CloudShare.com...just create a new profile on the "SAP Server" folder and pass the needed information. But...the ABAP could code should in the old ERP...for the new one I will try to replicate the code later today 🙂

      Greetings,

      Blag.

      Author's profile photo Christopher Solomon
      Christopher Solomon

      Very cool!!! Thanks, Blag! Now I want to go "play" with this!

      Author's profile photo Alvaro Tejada Galindo
      Alvaro Tejada Galindo
      Blog Post Author

      Chris!

      So long my friend 🙂 I'm glad you like it...and sure, SUP is pretty awesome... 😉

      Greetings,

      Blag.

      Author's profile photo Former Member
      Former Member

      Hi Blag,

      Nice blog. Glad to see your exepriments with SUP are going well. 🙂

      Cheers,

      Pierre

      Author's profile photo Alvaro Tejada Galindo
      Alvaro Tejada Galindo
      Blog Post Author

      Thanks Pierre! Actually your blogs were very helpful 🙂

      Greetings,

      Blag.

      Author's profile photo Former Member
      Former Member

      Hi Alvaro,

      Nice Blog. . Very helpful...........

      Author's profile photo Former Member
      Former Member

      Hello Alvaro!

      Great blog! I am working with SMP too and developing offline application..but I am not sure how does it work...offline apps, before submit I change the method to set the info in a database..but in which moment do i create the database in my cell phone ?

      Author's profile photo Alvaro Tejada Galindo
      Alvaro Tejada Galindo
      Blog Post Author

      Luis:

      I haven't work with offline applications yet...however, I have this thread that might give you a good direction:

      http://scn.sap.com/thread/3205932

      Greetings,

      Blag.

      Author's profile photo Former Member
      Former Member

      Hey Alvaro, how are you?

      Thanks for showing that..i looked at this.. but at the end is go to SUPStorage.js

      I cant find any examples, do you have an idea how to create a db using this js ?

      Regards,

      Luis

      Author's profile photo Alvaro Tejada Galindo
      Alvaro Tejada Galindo
      Blog Post Author

      Luis:

      Sorry...but I have no idea 🙁 Not an SMP expert myself...I will try to find out as soon as I have some time...then, I could post a blog and share it with the community 🙂

      Greetings,

      Blag.

      Author's profile photo Former Member
      Former Member

      Hey Alvaro,

      Thanks so much!

      I'll check it out over here...if I find something useful and interesting, I'd post too 😉

      Regards,

      Luis

      Author's profile photo Alvaro Tejada Galindo
      Alvaro Tejada Galindo
      Blog Post Author

      Luis! That would be awesome! 😀 Thanks!

      Blag.

      Author's profile photo Former Member
      Former Member

      Hi Alvaro

      Thanks a lot . for sharing this doc with the community. This is very Nice blog. Glad to see your experiment with SUP are going well.