cancel
Showing results for 
Search instead for 
Did you mean: 

Explain replaceString Functions

Former Member
0 Kudos

Hi Experts,

Can you please explain me with an example of replaceString functions in strings.

I am getting confussed here with this.

Thanks,

Ravi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Ravi,

Understand replaceString in this way.

Suppose Input is coming as RaviBoppanna and you want only Boppanna should come out as Output.

Replace string will take 3 input values.

X : String in which something is to be replaced :-Your Input String here is RaviBoppanna.

Y: String to be replaced in X:-

Z: String to replace Y:-

Now see the mapping:-

OutPut:-


Regards,

Abhi

Answers (5)

Answers (5)

Former Member
0 Kudos

Thanks Abhi for explaining this..

Bhavani_Baisani
Participant
0 Kudos

please find the below screenshot example for replacestring.sometimes amount field will use like below

Former Member
0 Kudos

Thanks Bhavani for explaiming this.

Former Member
0 Kudos

Hi Ravi,

Replace string will have 3 input values.

X : String in which something is to be replaced

Y: String to be replaced in X

Z: String to replace Y


For example take requirement to check if the first two characters of the input are equal to "XM" then remove the first two characters from the input string and only map the rest of the string to a target field.You can achieve this requirement by using replace string functionality.


FYR check below links, first one is about functionality, second link is for example.


http://wiki.scn.sap.com/wiki/display/HOME/Message+Mapping++Replace+String

http://scn.sap.com/thread/3473505

Regards,

Neelima.

Former Member
0 Kudos

Hi Neelima,

I have alreday checked this blog but it was confusing so thought to discuss this.

Thanks,

Ravi

monikandan_p
Active Participant
0 Kudos


Hi Ravi,

     Kindly go through this below blog you will understand the function of replace string.

http://wiki.scn.sap.com/wiki/display/HOME/Message+Mapping++Replace+String

Best Regards,

Monikandan

iaki_vila
Active Contributor
0 Kudos

Hi Ravi,

Check this wiki Message Mapping Replace String - Wiki - SCN Wiki

, if there is something that you dont understand right, let us to know.

Regards.

Former Member
0 Kudos

Hi Inaki,

I have alreday checked this blog but I was nott very clear,how it works.

Thnks,

Ravi