Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reg: Replacement of second occurance of character in string

Hi,

Consider one string1 = 'ABCDAE' OR string2 = 'SHEETAL'.

I want to replace the second occurance of A in above string1.and second occurance of E in above string2 with any differnt character.

I tried with offset calculation , length , replace , split stmts.

but always first occurance is getting replace.

Please provide your ideas.

Regards,

Shital

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question