cancel
Showing results for 
Search instead for 
Did you mean: 

Hot to divide string into parts?

0 Kudos

I am working on SAP MII 14.0.

I have to take variable from SAP Response. Variable will contain the value "XXXX_YYYY_ZZZZ".

Now i have to divide that string into 3 parts(XXXX, YYYY, ZZZZ) and i have to map those 3 parts to local variables.

Also i don't know the length the variable.

Please help me on this.

Accepted Solutions (1)

Accepted Solutions (1)

former_member185280
Active Contributor
0 Kudos

You can use the String List to XML Parser Action:

String List to XML Parser - Content Development - SAP Library

0 Kudos

Hi Christian,

Yes i have done that already, but the thing is how can i map that 3 parts to some others vaiables.

Output XML is coming like below. So how can i map those 3 parts to other variables.

former_member185280
Active Contributor
0 Kudos

You can put the row index in your expression xpath ,something like {Rowsets/Rowset/Row[1]/item},{Rowsets/Rowset/Row[2]/item} etc ...

0 Kudos

Yeah it is working now thank you very much Christian....

Answers (0)