cancel
Showing results for 
Search instead for 
Did you mean: 

import com.sap.aii.mappingtool.* show error in PI 7.1 adapter module

Former Member
0 Kudos

Hi

Experts,

i have an adapter module for 7.0 and i am trying to replicate the same for PI 7.1 in 7.1 NWDS.

i have made the required changes as mentioned in stefan's blog :/people/stefan.grube/blog/2008/12/11/adjust-your-pi-70-adapter-modules-for-pi-71-in-15-minutes

but import com.sap.aii.mappingtool.tf7.rt.Container; shows error , do we need to inlcude any jar file for this :

i am using this module to rename file name (in case of pick and place scenario forwithot IR configuration)

getMessageProperty and setmessageProperty is getting deprecated.(striked off)

strFileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File","FileName");

Regards,

Srinivas

Accepted Solutions (0)

Answers (3)

Answers (3)

stefan_grube
Active Contributor
0 Kudos

> strFileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File","FileName");

in PI 7.1 you can use:

strFileName = msg.getMessageProperty(new MessagePropertyKey("FileName","http://sap.com/xi/XI/System/File"));

Note that property name and namspace come in different order. I almost got mad until I noticed

http://help.sap.com/javadocs/pi/SP3/xpi/index.html

Former Member
0 Kudos

Thank you Stefan! I also thought I was going mad until I found this thread. It never even occured to me that the order may be reversed....

stefan_grube
Active Contributor
0 Kudos

> getMessageProperty and setmessageProperty is getting deprecated.(striked off)

It is depricated but will work anyway.

stefan_grube
Active Contributor
0 Kudos

> but import com.sap.aii.mappingtool.tf7.rt.Container; shows error , do we need to inlcude any jar file for this :

This include is for the graphical mapping tool and has no use in adapter module.

Did I write in the blog to inport this? That is wrong.