cancel
Showing results for 
Search instead for 
Did you mean: 

required .jar file for mapping

former_member232455
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member232455
Participant
0 Kudos

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

former_member186851
Active Contributor
former_member232455
Participant
0 Kudos

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

former_member186851
Active Contributor
0 Kudos

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/

nikhil_bose
Active Contributor
0 Kudos
former_member232455
Participant
0 Kudos

Hi Nikhil,

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

Regards,

Janardhan

nikhil_bose
Active Contributor
0 Kudos

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