cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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