Skip to Content
0

required .jar file for mapping

Dec 29, 2016 at 09:10 AM

65

avatar image

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());
        }
    }

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Nikhil Bose Dec 29, 2016 at 09:31 AM
0
Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Nikhil,

can you please guide me on this, i am completely new to this.

Regards,

Janardhan

0

These files are available in the PI application server. BASIS can get you these files.

0
janardhan reddy Dec 29, 2016 at 11:50 AM
0

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded
0

Hi Raghu,

Could you please explain step by step procedure, i have to use that code in mapping conversion.. so after getting required jar files what could be the next step?

Regards,

Janardhan

0

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/

0