Application Development 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: 

Simple Transformation "call-method"

remo_bettin
Explorer
0 Kudos

Hello,

I`ve got a question. I`m using a ST to convert a XML Document into an ABAP structure. Now I have the probem, one of the importing values looks like "1.856E7" but my DDIC field is an integer.

So I want to convert this value in my ST. I tried a static and also an instance method, but I always get a "sytax error". Has anyone an idea?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Remo

What does the Integer look like in the XML Document?

If it's "1.856E7", I'm not convinced it will translate successfully whatever mechanism you try.

Firstly, Integers can not have decimal values.

Hope this helps.

Regards

Arden

4 REPLIES 4

Former Member
0 Kudos

Hi Remo

What does the Integer look like in the XML Document?

If it's "1.856E7", I'm not convinced it will translate successfully whatever mechanism you try.

Firstly, Integers can not have decimal values.

Hope this helps.

Regards

Arden

0 Kudos

Hello Arden,

my field has the following type "WERTV9D5". A little mistake in my description.

In my XML document I only got a string.

Thanks.

Remo

0 Kudos

Hi Remo

I maybe getting more confused than before now but Data Type WERTV9D5 is Signed Numeric with 5 Decimals, so if you're supplied a string for this field it will not transform.

Regards

Arden

0 Kudos

Hi Arden,

I have changed the data type to a string. After the transformation is complete I convert it into the right format.

Thanks a lot.

Remo