Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Looking for Function module used to get substring

Former Member
0 Likes
594

Can anyone tell how to fetch a substring using function module or any other method. Please do the needful

2 REPLIES 2
Read only

Former Member
0 Likes
454

Hi,

You can use the SPLIT command instead of a function module, with the following syntax:

SPLIT v_str AT v_separator INTO v_str1 v_str2 ...

You must indicate the character used as separator.

Regards,

Ivson

Read only

Former Member
0 Likes
454

Hi,

If you know the offset <offset> and length <length> of the substring you need to get then use function module

v_string+<offset>(<length>).

Cheers,

Aditya