IN MESSAGE MAPPING in SAP PI/PO

One of the things that really can get me up the red field is when I get an <null> element when working with a SAP PI mapping. Or I would say rather debugging, because of some strange incoming data. Why not give me something that I can us in way mapping to check for. The <null> gives a lot of issues for figuring out if the values work.

I’m not sure what causes this to be like it is. It may be a null string or something like it.

The build in function “isNil” delivered this result. I guess it checks if the values is XSI:Nil. I would have guess that this delivered a false value for this input.

 

 

So I had to create my own function to check for this.

The isNull function that I created looks like this

for(int i=0;i<var1.length;i++){

if (var1[i]==null){

result.addValue(“true”);

}else{

result.addValue(“false”);

}

}

 

If I then want to do an OR function after this, where on input can be null then it does not solve my problem. false or <null> does give <null>. Dam. So I cannot use the function that I wanted.

So I just have to build in the length check into my null function, so it does support the extra function. I could also build an OR function to support this extra features, but that will not add a lot of extra value. I’m only using this

 

 

So the new function looks like this.

for(int i=0;i<var1.length;i++){

 String tmp  = var1[i]; 

if (tmp == null){

   result.addValue(“false”);

}else{

 

  result.addValue(tmp.length()>0);

 
 

}

}

 

 

I do hope that you find this helpful and it solve some of your problems. I’m working on creating a course around how to use SAP PI/PO. I have created some free videos around creating your first scenario that you can get on http://picourse.com

Related Posts:

  • No Related Posts

SAP PI 7.31 Message mapping from Development studio

Finally, I have the Developer Studio going and working for PI 7.31 and I was testing the message mapping of it. This experience had given me an edge in learning the message mapping. In the video, I look into message mapping definition. I explored the mapping as I go on. The layout of the mappings seems easy and organize with the help of Eclipse based mapping tool.


I was exploring the context of mapping but having a hard time in looking for it. I must admit that the tool you see on the video can be optimized for mapping documents. Its hard to determine and learn each functionality of a mapping especially if the context is not present. It hinders you from doing testing.

Check out the video and see how it looks like.

Related Posts:

  • No Related Posts

SAP PI Dual stack problems

As a SAP mentor for seven years, I get to learn new things and ideas with my colleagues in the SAP community. Recently, I was at the IFG for PI(International Focus Groups the old GSIG) on my way to Stockholm with Holger Himmelmann and Michal Krawcyzk. I created a video regarding IFlows which is a large part of acquiring 7.31 Dual Stack does not support BPMN and modeling framework. The BPMN modeling is very important and I realized that you can install 7.31 without any issue and start using it and also you need to take time for the migration. This can mean shutting down your Pi systems and conducting testing on your server as a result this would take a lot of your time . I think before you even download it is best to have a deep knowledge about dual stack if you want to implement this into your business.

You need to consider a lot of things. Single stack is often used by business owners which has enormous support you can acquire from asking SAP developers. Before doing any PI installation, be sure to consult your PI developer or watch this video for your guide.

Related Posts:

SAP PI How To Gather Requirements For SAP PI

There are certain situations where a client and contractor may encounter a failed work. As a SAP freelancer, thorough communication and gathering important details for a SAP Project is very crucial so that the end result would be a win-win for both parties. I just remembered a story wherein I was working a project for a client and I misunderstood the requirements that they wanted to achieved.

And so I had to go back to my work and discuss details to them and I found it is not what they are looking. I began to clarify and asked them what they really wanted for their site. It was a search functionality that they were after and the more I probe. They had additional specifications.

Now I learned that working for a SAP client, you need to ask every question you need to ask for you and the client to be on the same page. Normally, asking the nature of their business and processes what they want to implement. Like for example if they want search capability for their site. I could have easily looked on my site at piarchitecture.com for what they have needed since I created some templates and documentations.

Again it is very important to gather and understand information. Critical thinking is a must when it comes to SAP PI projects. As I go along the way of my journey, I will carry this experience and improve my approach in terms of working to client’s specification for future SAP projects.

[order_box_1 width=”85%” + border=”4px”]Post your comments, suggestions and reactions about, “SAP PI How To Gather Requirements For SAP PI” And don’t forget to subscribe to our newsletter to get the newest updates! We’ll be waiting![/order_box_1]

Related Posts: