Skip to Content
Author's profile photo Former Member

“If you fell down yesterday, stand up today.”

The title of this blog is actually a quote from H.G. Wells. He was a great writer and amongst others he wrote several science fiction novels. The main theme in his books was always about humans and their society. We all organize ourselves into various kinds of social groupings and one my groupings is the community of SAP Process Integration.

Today I was working on a PI mapping and could not understand why it was failing at first. Finally I figured it out, the standard PI mapping functions were giving me results which I did not expect. When I looked at it closer I thought: “if I would have done it, I would have implemented this functionality differently”. Then again, it works as designed.

Still I could not let it go and opened Eclipse and started to code a function which did the job better (better in a sense of getting the expected result that I needed). I compiled the class and added the jar file to the mapping. (As there was already a JAVA class attached to the mapping with other functions.)

Then I came across a blog post from Daniel Graversen about isNill and isNull. ( See blog http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/02/05/null-in-the-sap-pi-mapping-context-queue) He had done the same thing; he fell down and stood up!

To get back to the main theme of H.G. Wells where people tend to organize themselves in social groupings, I thought why not ask my grouping/community if they experience the same thing and want to stand up today. I send some tweets out  towards fellow developers and an exciting idea cam up: why not start a PI codeXchange?

In this PI codeXchange we bundle our own functions into several classes and together with the community we build our own classes. Think of functions regarding dates, string and queue handling amongst others. An example of a date function could be to ad or subtract days from  a starting date and so on. We think this could really serve the community.

Most people are wondering, nice idea and what’s in it for me? Besides the intellectual challenge, we help the community. You will again knowledge on how fellow developers are solving their problems and you will expose yourself to the community, which is good for you network.

So now I am asking to everyone who fell down and wants to stand up today, please participate. Let us hear your voice and tell us what you think of this idea to start our own community library for SAP PI functions.

Again, please share your thoughts and ideas about this.

Assigned Tags

      21 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Daniel Graversen
      Daniel Graversen

      Love the idea.

      I'll try to share my RFC lookup function, which is solving some issues.

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi Daniel,

      Thank you for your reply, I will submit some of my functions too ofcourse.

      Author's profile photo Gagandeep Batra
      Gagandeep Batra

      Idea is great...........:)

      Author's profile photo Former Member
      Former Member

      Guido,

      An excellent idea and let's get started with it! Keep me posted on next steps!

      Best regards,

      Fons van Nuland

      Author's profile photo Former Member
      Former Member

      Great idea! Please keep me informed about the next steps.

      Author's profile photo Former Member
      Former Member

      Sharing code and make it reusable is always a good idea! The PI community however is relatively small. So it might be difficult to gather enough people to keep it alive. Do you know the open PI initiative? http://opi2.sourceforge.net/ That one contains only some open EDI adapters at the moment and since a few years. Why not teaming up and extend it to UDFs, Java mappings and such?

      Author's profile photo Kenny Scott
      Kenny Scott

      see also the Sourceforge open source SCN XI/PI Wiki Open PI Initiative (OPI2)

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi Philippe,

      I know that the PI community is relatively small. I also believe that we have a chance to get it started, it's worth a shot. The great thing is that core JAVA developers can connect with us too, so then we have a wider range.

      Eventually we could team up with sourceforge.net and see what we can do for each other.

      Kind regards,

      Guido Koopmann

      Author's profile photo Denny Schreber
      Denny Schreber

      Being one of the OPI2 founders it’s nice to see some interest in our initiative. SourceForge was used because of all the features it offers for distributed development. However, OPI2 has more or less ready-to-use “products” and not so much libraries on which you can build your own solutions. That’s why I think this Function Library is a great thing and I think I will contribute as well. In the end, we will hopefully benefit from each other since I think one can learn a lot from reading each other’s coding and getting new ideas how to tackle our challenges.

      Cheers,

      Denny Schreber

      Author's profile photo Artem Solohin
      Artem Solohin

      Like it.

      Author's profile photo Former Member
      Former Member

      Great! Let's get this started.

      Author's profile photo Baskar Gopalakrishnan
      Baskar Gopalakrishnan

      I like this idea. This forum never sleeps... I think we can still coordinate better for the community folks. 

      Author's profile photo Joe S
      Joe S

      Good thought!!

      Author's profile photo Prateek Raj Srivastava
      Prateek Raj Srivastava

      Nice idea Guido Koopmann. There already seems to be much positive response from our community.

      Mariana Mihaylova we have some suggestions here, like bundling it up with OPI2 wiki/sourceforge. Or an option to create a new CodeShare platform. What do you suggest? Shall we put this on Idea place?

      Regards,

      Prateek Raj Srivastava

      Author's profile photo Former Member
      Former Member

      Great to see so many people taking this on!

      SAP Code Exchange: http://scn.sap.com/community/code-exchange should be used as the one platform for SAP developers to share code, ideas and get feedback. Any SCN contributor can join an existing project or create a new one and invite others.

      Legal aspects for using Code Exchange are covered here:

      http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/webcontent/uuid/2007aaa6-bdd3-2d10-b389-ee25a9e7fb74  

      We can easily feature/link to Code Exchange projects anywhere on SCN and other sites, but code can be hosted directly in a Code Exchange project only.

      We have created the SAP NetWeaver Process Orchestration Developer Center at the end of last year to facilitate sharing of development resources for the SAP NetWeaver Java stack: http://scn.sap.com/community/developer-center/netweaver-process-orchestration

      What I would like to ask the community is:

      A good way to get started is to create a new project on Code Exchange or contribute to an already existing as appropriate. Every time you share please create a document in the Process Orchestration Dev Center providing full detail on your sample and linking to Code Exchange for download. You can easily link to or share this document later on SCN or any other site. However having all samples documented on the Dev Center will help us build a library and help SCN users easily find and access them.

      Hope this will help us get organized and kick this off. Please let me know if you have any questions.

      Thanks and Regards,

      Mariana

      Author's profile photo Twan van den Broek
      Twan van den Broek

      Great idea Guido!! By sharing your own experiences we all learn and benefit!

      Twan

      Author's profile photo Former Member
      Former Member

      Hi.

      This is a great idea. 🙂 .

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      HI all,

      Glad to see that we have alot of positive reactions about this topic. At this time I have created a new project on codeXchange: PI function library plugins.

      https://cw.sdn.sap.com/cw/groups/pi-function-library-plugins

      In here we start with, putting some UDF's which we can add in the function library of PI. I hope to upload the first content next week. After time we can extend this and create new other projects.

      When someone wants to join please send me a message so that I can grant you access. Hope to see you all.

      Kind regards,

      Guido Koopmann

      Author's profile photo Former Member
      Former Member

      Hi Guido,

      As mentioned in our tweet conversation, good one.

      Will contribute some stuff if it looks suitable for it 😉

      Cheers

               Sebastian

      Author's profile photo Former Member
      Former Member

      Great Idea Guido.. when do we start implementing it ?

      Author's profile photo Former Member
      Former Member

      Great Idea. It will save a lot of effort. It would be great to have such a space here on SCN portal.