03-05-2015 7:52 AM
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?
03-05-2015 8:01 AM
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
03-05-2015 8:01 AM
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
03-05-2015 8:06 AM
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
03-05-2015 10:48 AM
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
03-16-2015 10:36 AM
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