Skip to Content
author's profile photo Former Member
Former Member

'/' is treated as '-' in SAP BODS

Hi Experts,

We are loading data from SAP BW system to Oracle Table.

In SAP BW system we have data as /1,30000 while to loading or preview data in SAP BODS it displaying it as -1,30000.

We are using this values for further calculations, so it is treating it as negative value .

Kindly please help.

Thanks in advance !!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Apr 20, 2016 at 09:20 AM

    You might need to do a conversion of this type of data form Character to Number and store it in BW tables

    OR

    You can use word_ext() function in BODS to separate the string / from /1,30000 and then use to_decimal() to convert the string to a decimal number.

    Source Table Value:

    Mapping for Column:

    Target Table Value:

    Hope this helps!!

    Regards

    Arun Sasi


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 19, 2016 at 03:37 PM

    What is the data type of /1,30000 in BW?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 21, 2016 at 01:11 PM

    Hi Pradheep,

    I am not aware of BW system, but one thing that I suppose happens is that when you extract the data from BW to BODS, at the first level, the implicit datatype conversion converts the field to a number and thus assumes the number as negative.

    Could you try to explicitly change the datatype in the first OUT schema to VARCHAR, for the particular field and then remove all the extra characters apart from just the number and converting back to NUMBER again.

    For removing any extra characters, you can use match functions to extract only the number and exclude rest or implement the solution provided by Arun in the above.

    Thanks

    AJ

    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.