SAP for Mobile: Blag's experiments with SMP - Volume 2

Posted by Alvaro Tejada Galindo Mar 28, 2012 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.

Generated by Jive on 2013-02-02+01:00 1

SAP for Mobile: Blag's experiments with SMP - Volume 2

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...

Generated by Jive on 2013-02-02+01:00 2

SAP for Mobile: Blag's experiments with SMP - Volume 2

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.

Generated by Jive on 2013-02-02+01:00 3

SAP for Mobile: Blag's experiments with SMP - Volume 2

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

This is the Personalization for the Send Mail MBO.

Generated by Jive on 2013-02-02+01:00 4

SAP for Mobile: Blag's experiments with SMP - Volume 2

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

Generated by Jive on 2013-02-02+01:00 5

SAP for Mobile: Blag's experiments with SMP - Volume 2

Generated by Jive on 2013-02-02+01:00 6

SAP for Mobile: Blag's experiments with SMP - Volume 2

Generated by Jive on 2013-02-02+01:00 7

SAP for Mobile: Blag's experiments with SMP - Volume 2

Generated by Jive on 2013-02-02+01:00 8

SAP for Mobile: Blag's experiments with SMP - Volume 2

Generated by Jive on 2013-02-02+01:00 9

SAP for Mobile: Blag's experiments with SMP - Volume 2

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
2693 Views Tags: emerging_technologies, sap_mobility, smp, sap_mobile_platform Mar 28, 2012 1:23 PM Alvaro Tejada Galindo

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,

Generated by Jive on 2013-02-02+01:00 10

SAP for Mobile: Blag's experiments with SMP - Volume 2

Blag.

Mar 28, 2012 1:57 PM Christopher Solomon

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

Mar 28, 2012 2:00 PM Alvaro Tejada Galindo Christopher Solomon in response to

Chris! So long my friend Greetings, Blag. I'm glad you like it...and sure, SUP is pretty awesome...

Apr 5, 2012 5:50 PM Pierre Dominique

Hi Blag, Nice blog. Glad to see your exepriments with SUP are going well. Cheers, Pierre

Apr 5, 2012 10:39 PM Alvaro Tejada Galindo Pierre Dominique in response to

Thanks Pierre! Actually your blogs were very helpful

Greetings,

Blag.

May 25, 2012 10:57 AM Prem Chand Mourya

Generated by Jive on 2013-02-02+01:00 11

SAP for Mobile: Blag's experiments with SMP - Volume 2

Hi Alvaro,

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

Nov 27, 2012 7:22 PM Luis Vieira

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 ?

Nov 27, 2012 7:44 PM Alvaro Tejada Galindo Luis Vieira in response to

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.

Nov 27, 2012 8:27 PM Luis Vieira Alvaro Tejada Galindo in response to

Hey Alvaro, how are you?

Generated by Jive on 2013-02-02+01:00 12

SAP for Mobile: Blag's experiments with SMP - Volume 2

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

Nov 29, 2012 11:36 PM Alvaro Tejada Galindo Luis Vieira in response to

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.

Nov 30, 2012 2:49 PM Luis Vieira Alvaro Tejada Galindo in response to

Hey Alvaro,

Thanks so much! I'll check it out over here...if I find something useful and interesting, I'd post too

Regards,

Generated by Jive on 2013-02-02+01:00 13

SAP for Mobile: Blag's experiments with SMP - Volume 2

Luis

Nov 30, 2012 3:17 PM Alvaro Tejada Galindo Luis Vieira in response to

Luis! That would be awesome!

Thanks!

Blag.

Dec 16, 2012 12:58 PM Rana Osama Alvaro Tejada Galindo in response to

How can I download this source code ?

Dec 16, 2012 2:21 PM Alvaro Tejada Galindo Rana Osama in response to

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.

Dec 17, 2012 1:04 PM Rana Osama Alvaro Tejada Galindo in response to

Thank you very much Alvaro,

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

Generated by Jive on 2013-02-02+01:00 14

SAP for Mobile: Blag's experiments with SMP - Volume 2

Regards,

Rana.

Dec 17, 2012 1:53 PM Rana Osama Rana Osama in response to

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 ?

Dec 17, 2012 2:28 PM Alvaro Tejada Galindo Rana Osama in response to

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.

Generated by Jive on 2013-02-02+01:00 15

Sign up to vote on this title
UsefulNot useful