Show TOC

Background documentationApplet String Methods Locate this document in the navigation structure

 

The following table lists utility methods that are used for encoding and string manipulation in SAP Manufacturing Integration and Intelligence:

Name

Use

String getUserName()

Returns the name of the user that is logged in.

String xmlEncode(String strIn)

Encodes a string such as

<Test>Hello World</Test>

to

&lt;Test&gt;Hello World&lt;/Test&gt;

String xmlDecode(String strIn)

Decodes a string such as

&lt;Test&gt;Hello World&lt;/Test&gt;

to

<Test>Hello World</Test>

String xmlEncodeName(String strIn)

Encodes a string such as

1Hello W@r!d

to

_1Hello_W_r!d

String stringReplace(String sSource, String sFind, String sReplace)

Performs a string search and replace and returns the updated string.