cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Proxy generation

Former Member
0 Kudos

Hi,

I have a external definition (.xsd) which contains imports which are loaded seperately into ESR. In PI I have no problem using them. But in the SAP ERP system - SPROXY, I cant generate the proxy. It gives the error: "Proxy generation terminated: mixed conent not supported".

How can I solve this problem?

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>How can I solve this problem?

create the message on your own with data type/message type

which contains the same structure as the one from XSD

add 1-1 mapping

generate the proxy on the new service interface/message interface

Regards,

Michal Krawczyk

Former Member
0 Kudos

Yes I thought about that but the xsd contains over 100 fields and a lot of attributes Is there no workaround?

Former Member
0 Kudos

Hi,

I think you have to do as suggested by Abhishek in this thread..

Regards,

Sarvesh

Former Member
0 Kudos

I will give it a try. By the way, are attributes accessible in proxy?

Former Member
0 Kudos

> I will give it a try. By the way, are attributes accessible in proxy?

Yes, you can access the attributes in proxy.

Update:-

Example: Let's say you have a field Kunnr and it's attribute "value", so you can access the attribute inside proxy by using below code..

MOVE input-mt_test-kunnr-value TO lv_kunnr.

Answers (2)

Answers (2)

GabrielSagaya
Active Contributor
0 Kudos

Please go through this article and you can identify some of the data type not supported in PI.

As mike' reply Build your data type manually instead of having external definition.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2089f29b-b10a-2a10-5297-e258df0c1...

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

The problem in your case is external definition has some mixed type of xsd structure.

so it is not supporting to know more about mixed content refer below link

http://www.w3schools.com/schema/schema_complex_mixed.asp

We can genarate proxy class for external definition, i had done that it is working..

Regards,

Raj