on 12-29-2016 9:10 AM
Hi All,
can anyone provide the .jar file for the below code, i have NWDS 6 version.. but for SAP PI 7.1 jat file should import from which is having jdk version 1.5..
below is the code
import java.io.*;
import com.sap.aii.mapping.api.*;
public class Test_JavaMapping extends AbstractTransformation {
@Override
public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException {
try {
InputStream inputstream = transformationInput.getInputPayload().getInputStream();
OutputStream outputstream = transformationOutput.getOutputPayload().getOutputStream();
// Copy Input content to Output content
byte[] b = new byte[inputstream.available()];
inputstream.read(b);
String input = new String(b);
input = input.replaceAll("__", ":");
outputstream.write(input.getBytes());
} catch (Exception exception) {
getTrace().addDebugMessage(exception.getMessage());
throw new StreamTransformationException(exception.toString());
}
}
Hi Nikhil,
what will be the procedure after getting these files and how can i insert my code into that?
could you please guide me?
Regards,
Janardhan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the below link Jana
https://wiki.scn.sap.com/wiki/display/XI/Where+to+get+the+libraries+for+XI+development
Jana you need to import them in the NWDS where you writing the Java code
https://blogs.sap.com/2015/02/08/how-to-create-java-mapping-in-sap-pi-po/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
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.