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

data type xsd:decimal

Hi,

If you declare a field type as "xsd:decimal" and activate proxy, it makes the ABAP technical type as "String" of type xsd:decimal.

similarly if u make that variable with a entry in total no of digits then it gets activated with xsd:decimal and ABAP type DECIMAL.

I tested on 7.1 and 7.0 SP13. same problem.

I dont see this problem with integer. has any one noticed this?

is this a bug or has SAP has some reason before making this functionality?

Has any one faced the similar problem earlier?

Venkat.

Edited by: Venkat A on Jul 8, 2009 12:54 AM.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 08, 2009 at 06:37 AM

    Hello Venkat,

    While converting xsd:decimal to ABAP's DECIMAL type, the source decimal has condition like Decimal with fractionDigits<=14, totalDigits<=31, It has specified in sap help. If the source xsd:decimal is with in this limits then only it'll convert into ABAP's DECIMAL type. For xsd:int there is so such conditions or limits to convert, that is the reason why xsd:int to ABAP INT conversion works fine in your case. For xsd:decimal other than the specifid range it might convert into String, perhaps that was what hapnning in your case,it's not bug.

    Regards,

    Prasanna

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Ravikanth Talagana

      MONI, RWB Mesg monitor - shows succesful.

      The CC shows :

      Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException

      Scenario 1:

      with XI - Decimal ABAP - String - Error message as above

      Scenario 2:

      with XI - Decimal ABAP - String - on PI for decimal fields I did a UDF with parseFloat.

      Result : working

      Scenario 3:

      With PI- Decimal ( with total digits and fractions ) , ABAP - DEC .

      without above UDF in PI

      Result : Same error message

      Scenario 4:

      With PI- Decimal ( with total digits and fractions ) , ABAP - DEC .

      with above UDF in PI

      Result : Same error message

      Only scenario 2 is working now.

      I am confused to trade the exact problem.

  • Posted on Jan 27, 2010 at 02:31 PM

    Standard definition of xs:decimal is unlimited number of digits. So to properly convert xs:decimal type for all cases, you would need to use String type, because ABAP decimal type has limitations.

    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.