cancel
Showing results for 
Search instead for 
Did you mean: 

Webi Variable Help: Extract string

03-21-2019 9:23 PM
3172 views 2 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hello,

I have a webi column (INFO) in a report as follows:

xdfgg,sdfgh,Mr Smith, John,

Always 4 "," total.

I need to extract everything between comma 2 and comma 3.

So Result should be : Mr Smith

Any ideas?

Thanks

Chuck

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

amitrathi239
Active Contributor
0 Likes

follow below steps.

Create Variable V1=Substr([String];Pos([String];",")+1;Length([String]))

Next Variable V2=Substr([V1];Pos([V1];",")+1;Length([V1]))

Final Variable=Substr([V2];1;Pos([V2];",")-1)

Former Member
0 Likes

Thank you Sir

Answers (0)