Skip to Content

translate function in SAP BODS

Hello,

I am using translate function in my Data services as below but it doesn't work. I am actually want to replace all numerics in my string with blank. Neither it throws any error nor it updates the value.

Please help.

Translate(table.field, '1234567890', '')

Regards

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 23, 2019 at 04:57 AM

    Can't see a problem here either.

    https://help.sap.com/viewer/8092b085a68941f6aaa6708685a62b0d/4.2.12/en-US/f3fa7c7124134767b473ee5d07c89894.html

    What I would do next is creating a job, a script within and in the script use something like

    print(translate('Test4Data', '1234567890', ' '));
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 24, 2019 at 09:48 AM

    From the SAP Data Services Reference Guide:

    Returns the input string translated in the following way: The software replaces all occurrences of each character in the <from string> with the corresponding character in the <to string>.

    translate(table.field, '1234567890', '') removes all digits from the input

    translate(table.field, '1234567890', ' ') replaces all 1's by a blank and removes all other digits from the input

    translate(table.field, '1234567890', ' ') replaces all digits from the input by a blank

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.