on 10-09-2014 6:43 AM
Hi All,
Steps involved in calling an external written Java program into UDF :
Step 1: Save .java and .class file into folder according to package name assigned in JAVA Program.
Step 2: Covert it into compressed zipped folder.
Step 3: Create imported archives Object in SAP PI.
Step 4: Import zip file with import archive option.
Step 5: Now go to message mapping, open Functions tab.
Step 6: Now on down left hand side, you will find archives Used, open this tab.
Step 7: Add the above created imported archive into this.
Step 8: And in import instructions add the package name, you have given in above used JAVA program.
I did all these steps successfully, but after I entered package name in import instructions(Step 8), when I activate the mapping, I got the below error.
has syntax errors: Java Area import, Line 7: package firstpackage does not exist
import firstpackage.*;
^
1 error
Please help me in this regard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
Thank you for the reply.
I tried with different namespace for Imported Archive and Message Mapping under same SWCV. But still getting same error.
Error :
|
Hi Mark,
This is the package.
I created in notepad and compile in command prompt. Then the java file and class files are zipped and included in Imported Archived.
I tried this 3 times, but still getting the same error.
Note : I have tested this package by creating a main class program and importing that package. It executed successfully in command prompt.
Hi Sathish,
This would be easier if you would be using an IDE such as Eclipse. You can include the classpath in javac by using the -cp option see this link for more information
http://www.ntu.edu.sg/home/ehchua/programming/java/j9c_packageclasspath.html
Hope this helps,
Mark
Hi all,
use static method in the class and try, it worked for me like this
Thanks and Regards
Deviprasad.
http://pdpsappireference.blogspot.in/2015/10/facing-problem-while-importing-external.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.