cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How come the signature for "stringpart" has been changed in 12.1.6

Former Member
0 Likes
648

In earlier version the signature is :

stringpart(string, startposition, length)

now the same function has been changed to:

stringpart(stringValue, searchString, replacement)

Do anything know is there a single replacement for the old stringpart fundtion?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

We are actually on sp6 pacth 2.

Former Member
0 Likes

Hi Robert,

We are on SP6 patch 2 with Netweaver SP05 and I don't get your error. I get both options below from the expression editor. They are right next to each other in the functions drop down.

stringpart(stringValue, startIndex, length)

stringreplace(stringValue, searchString, replacement)

Thanks,

Kerby

jcgood25
Active Contributor
0 Likes

Check the Help...Settings dialog in the Workbench.

Consider clearing your Java Web Start Cache to make sure you get the fresh jar files from the server (especially if the numbers don't match).

Answers (5)

Answers (5)

Former Member
0 Likes

It is a caching issue. It works fine after I cleared my java web start cache.

Thanks, Jeremy.

Former Member
0 Likes

I think the Basis team has installed SP3 but I will double check with them.

The code appears to be still working, just the expression editor is compaining.

jcgood25
Active Contributor
0 Likes

Are you comparing an early 12.1 with a recent 12.1?

https://service.sap.com/sap/support/notes/1380081

agentry_src
Active Contributor
0 Likes

Have you tested the stringpart using the same structure as before?

Former Member
0 Likes

Hi Manoj,

That is what I was expecting. However, in 12.1.6, both springpart and stringreplace have the same signature while the old stringpart is gone.

Former Member
0 Likes

Hi,

I dont have MII 12.1.6 but I have checked in help of both SAP MII 12.1 and MII 12.2.

I have 12.1.5 so it may be different in MII 12.1.6

Regards,

Manoj Bilthare

Former Member
0 Likes

Hi ,

As per my knowledge there are two different functions available in expression editor functions.

stringpart(stringValue, startIndex, length)

Returns the substring of length length from stringValue, starting after the startIndex character.

String

stringpart("Football", 3, 2) returns tb.

The input stringValue cannot be converted to a valid string value or the parameters startIndex and length cannot be converted to valid positive numerical values.

stringreplace(stringValue, searchString, replacement)

Tests the string value against the searchString. If the string matches, the function replaces the pattern with the replacementstring.

String

stringreplace("Football", o, u) returns fuutball.

The input parameters cannot be converted to valid string values.

Hope this help

Regards,

Manoj Bilthare