on 05-24-2016 12:33 AM
Hi All,
I am trying to convert the google api (http://maps.googleapis.com/maps/api/geocode/xml?address=5105 Issaquah Pine Lake RD SE, Issaquah, WA, 98029&sensor=false) XML response to ABAP, but it is failing to convert.
Please find the attached screen shots for reference. Please let me know how to proceed?
Thanks a lot.
Best Regards,
Vij
XML Transformation
ABAP Code :-
Google API XML Response :-
ABAP Structures
Hi All,
Initially there is a problem with decimal field in XML to ABAP, so now I make them of type string in ABAP to avoid conversion errors.
As of now I am able to convert Google API XML response or any XML response to ABAP compatible internal table using below Function modules.
Here there is no need to deal with XML to ABAP vice versa transformations.
Code :-
Internal table populated data :-
Here we need to do coding for populating target structure by playing with fields
HIER -> Hierarchy or field position in XML
CNAME -> XML field name
CVALUE -> XML field value
TYPE -> 'A' - Header node, 'V' - Value node, space - others
I am still trying on transformation and will let you know once got successful.
thanks,
Vij
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.