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

Problem In Web Service Provider(Web Service) XML transformation to ABAP Structure

Dear Friends,

Requirement: Creating Service provider and it is consumed by legacy system.

What I did: Depends on legacy system XSD file created ABAP structure and created RFC function module with import parameter as ABAP structure created.

Issue:The complete XML file data not converting into ABAP structure format.I am getting some of the XML data, but wherever XML file has the attributes, then those attribute values are not converting into ABAP structure.

Example XML file:

<NADA DOMAIN="00D15000000EKDTEA4" ID="a150000" RELEASE="1" TYPE="C">

<MODELPK ID="S4S_FORCE" RELEASE="2"/>

<CREATEINFO DATE="20160701 015719" GROUPID="Sales" USERID="00515000005j1XaAAI" USERNAME="ett"/>

<UPDATEINFO DATE="20160701 020848" GROUPID="Sales" USERID="005150" USERNAME="lett"/>

<OWNERINFO DATE="20160701 015719" GROUPID="Sales" USERID="005150" USERNAME="tt"/>

<ACTIVEINFO ACTIVE="on" DATE="20160701 015719"/>

<STATUSINFO DATE="20160701 015719" STATUS="Draft"/>

<DDST>

<PARTAB_DOMAINID>000EKDTEA4</PARTAB_DOMAINID>

<PARTAB_RELEASENUMBER>1</PARTAB_RELEASENUMBER>

<PARTAB_QUOTEID>abBaZdAAK</PARTAB_QUOTEID>

<PARTAB_CUSTOMERID/>

<PARTAB_LANGUAGE>US</PARTAB_LANGUAGE>

<PARTAB_CURRENCY>USD</PARTAB_CURRENCY>

<DDST>

</NADA>

The highlighted fields values are not converting into ABAP structure.

structure would be looking like for MODELPK(attached)

Please help me on this

Regards

Nani

Untitled.png (24.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2016 at 03:45 PM

    Just to make sure ..

    1. You created the corresponding Z structures

    2. You mapped it to the transformation using XLST_TOOL.

    3. Now you are in debug mode and you see that the data is not crossing over.

    What does it show you when you debug the application ?

    Any hint why it is not passing the data?

    Also remember for attribute values you need to have additional fields in the structure to hold these values.

    Check this link .. here you might get a hint on how to read attribute values of an XML tag

    http://scn.sap.com/docs/DOC-43794

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Linkin,

      Thanks for your reply..

      1. Yes I crested Corresponding structure.

      2. Actually I am not using or created any XSLT_TOOL object.

      3. its is web service call so standard SAP objects only taking care about transformation, hear I dont know which code actually doing this transformation.

      For the attribute values also I created corresponding structure elements.

      Regards

      Nani

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.