cancel
Showing results for 
Search instead for 
Did you mean: 

Help required regarding : Replace string in incoming XML File

Former Member
0 Kudos

Hi All,

   I have a file to Idoc scenario. I need help regarding Java class to replace/append string in the incoming file.

e.g. : Free text in the file - /kunal/pi

New string : http://www.sap.com/kunal/pi

Need help regarding the same. As the conversion is happening in the free text field cant use concat function in the graphical mapping.

We are using XSLT mapping for the interface flow. As there is no specific tags for the field value the value to replaced is coming in a free text field.

So we have decided/zeroed upon having a java class to do the same before actual mapping takes place.

If it can be achieved via other ways please provide steps for doing the same.

If java class is required requesting your help in providing the code fpr the same as I am beginner in Java modules.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Muniyappan
Active Contributor
0 Kudos

Hi,

you can achieve this using cancat function.

http://msdn.microsoft.com/en-us/library/aa987057(v=vs.80).aspx

if you want to append follow this.

http://www.tutorialspoint.com/java/stringbuffer_append.htm

if you have ESR objects mapping then you can achieve this using cancat function  in graphical mapping also.

Regards,

Muniyappan.