Skip to Content
0
Former Member
Jun 10, 2009 at 09:00 AM

FM to delete all characters of a string after character X?

3131 Views

Hi,

Is there any standard function module that inputs a string and a single character and outputs a string with the single character and everyting afterwards removed?

I need it in LDAPMAP when mapping an LDAP field to the SAP BAPINAME. E.g. the LDAP value "myname @ mycompany.com" should fill BAPINAME with "myname" when giving "@" as function module parameter.

Thanks, Oscar