cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Data Type By Importing XSD structure

Former Member
0 Kudos

Hi Folks,

I want to create a data type whose structure is exactly similar to the BAPI BAPI_MATERIAL_SAVEDATA. So I exported the whole BAPI structure into XSD. Now I want to make use of the same XSD by importig it to create my data type. But while importing it I'm getting error saying " Schema to be handled does not contain a definition of type DT_REQUEST".

Regards,

Santosh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Santosh,

I think you are trying to import the XSD directly into datatype which you have created as 'DT_REQUEST'. Dont do that.. If you are sure that you re XSD is well formed. First import it into 'External Definition' using this create your message interface directly. Thers is no need to create data type and message type if you are using XSD as external definition.

Or if you really want to create datatype then modify your XSD as suggested by abhishek.

Hope this will help!!

Amol

Answers (3)

Answers (3)

former_member200962
Active Contributor
0 Kudos

Create a Data Type in IR/ ESR with the name DT_Request.

Now import the XSD (BAPI) into your local machine and give it the name DT_Request.....give this name to the highest node (root node)

Then import this XSD (BAPI) into IR....as of now you dont have the name of the root node of your XSD as DT_Request and hence the error.

UPdate:

Even the namespace in the XSD should refer to the namespace of the DT that you have created in IR/ ESR i.e. DT_Request.

Regards,

Abhishek.

Edited by: abhishek salvi on Apr 6, 2010 1:00 PM

Former Member
0 Kudos

Hi Abhishek,

I have done the same I have attached the below structure of the XSD edited by me,

<?xml version="1.0" encoding="UTF-8" ?>

- <xsd:schema targetNamespace="http://www.ReplicateMaterial.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.ReplicateMaterial.com">

- <xsd:element name="DT_REQUEST">

- <xsd:complexType>

- <xsd:all>

kindly let me know if I'm going wrong somewhere.

Regards,

Santosh

0 Kudos

Try deleting the target name space and give a try.

Thanks

Prasanna

Former Member
0 Kudos

HI Folks,

Thanks For all your suggestions. I achieved the target by using the External Definitions.

Regards,

Santosh

Former Member
0 Kudos

Hi,

Just Import that using external definetions and call that in message Interface.

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

Try to edit the BAPI name(Header node name)as oer your given name,or you can use the name with BAPI_....IT IS YOUR WISH,

if you have XML spy you can easily change the name.

Regards,

Raj