Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3530

Re: SuccessFactors configuration using SFSF Adapter

$
0
0

Gaurav,

 

According to XML standards, XML element name can not have $.

XML Elements

 

Solution 1: - Request SuccessFactors team to rename JobApplication$301 to JobApplication_301 in SuccessFactors.

 

Solution 2: - After Message Mapping add Java Mapping to replace JobApplication$301 with JobApplication_301 in XML.

How to create Java Mapping in SAP PI / PO

package com.map;
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 String.              byte[] b = new byte[inputstream.available()];            inputstream.read(b);            String input = new String(b);                        input = input.replace("JobApplication$301", "JobApplication_301");            outputstream.write(input.getBytes());        } catch (Exception exception) {            getTrace().addDebugMessage(exception.getMessage());            throw new StreamTransformationException(exception.toString());        }    }
}

Viewing all articles
Browse latest Browse all 3530

Trending Articles