cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Mapping : RFC Lookup using java helper class

Former Member
0 Kudos

Hi All,

I am doing RFC Lookup in xslt mapping using java helper class. I have found blog for the same (http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14) However this blog is very advanced.

Can anybody help me with step by step approach for the same?

My basic questions are not answered in the blog as:

1) where to add the jar file of the java class used in xslt mapping.

I have added zip file of XSLT mapping in imported archived and using that in mapping.

Thanks in advace.

Regards,

Rohan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

1) where to add the jar file of the java class used in xslt mapping.

U need to create a java class file and keep in ur namespace.

the same namespace u also give in XSLT mapping also....

He has used his own namespace...

I have added zip file of XSLT mapping in imported archived and using that in mapping.

Yes u r correct....

Babu

Former Member
0 Kudos

Hi Babu,

Thanks for your reply.

I have class file but can you please explain how do we keep it in namespace? are you refering to PI namespace? I have used stylus studio for the xslt mapping generation. do i need to do anything there.

I am new to this xslt mapping so detailed reply will be helpful.

Thanks and Regards,

Rohan

Former Member
0 Kudos

Hi,

are you refering to PI namespace? Yes.

U place the Java class in ur PI Namespace(Java code also shld have first line as this...) and also specify the same in XSLT mapping also.

Now test the mapping

Babu

Former Member
0 Kudos

Shall I zip the class file and import in archives?

Former Member
0 Kudos

Hi,

Exactly u r correct. Import the java class and XSLT mapping archives and test the mapping

Babu

Former Member
0 Kudos

Hi ,

1)I have given the package name in Java code as my PI namespace.

2)Same name(PI Namespace) is given while calling execute method of the class in xslt mapping

3)and in the top of xslt also PI namespace given.

4)Uploaded zipped xsl file in archive of pi namespace

5)uploaded zipped .class file in archive of pi namespace

When i test my mapping in PI I get error saying " Unable to find resource' -pi namespaceRfcLookup.class' in the following software component versions..."

And I making any mistake here?

Regards,

Former Member
0 Kudos

Hi,

Can u please have look at this in detail , u can easily point out yourself the problem...

http://help.sap.com/saphelp_nw04/helpdata/en/55/7ef3003fc411d6b1f700508b5d5211/content.htm

Please observe the line,

xmlns:javamap="java:com.company.group.MappingClass

in XSLT mapping..

The packagename of class and class name and XSLT namespace should be matching...

Babu

Edited by: hlbabu123 on Sep 29, 2010 6:04 PM