02-21-2018 10:49 AM
Hi all,
I´ve generated an abap proxy, using the wizard, from a wsdl file.
Can´t activate it because several tables/structures have more than 9 nested includes...
Message AD226 - Too many nested includes
Since these are generated, how can i solve this issue?
Best regards,
Teresa Gonçalves
02-21-2018 12:57 PM
Refactor you data structure so it doesn't have so many nested includes?
02-21-2018 2:24 PM
02-22-2018 6:51 AM
02-22-2018 7:45 AM
(People often think that their context is obvious to any one and just keep repeating the same words as in the question...)
DDIC structures and table types are generated by proxy activation, i.e. to consume a web service from abap ("abap proxy")
I'm curious to know how it can be solved. I didn't even know there was a limit of 9 levels.
02-22-2018 12:52 PM
Yes, I know this. I was suggesting refactoring the structure of the data in the web service.
02-22-2018 7:52 AM
You may adapt the WSDL to remove the definitions above the 9th level and define the type as xsd:anyType (mapped to an xstring type), create the proxy, and transform the remaining XML "manually" in your ABAP program.
If you have many levels after the ninth or if the XML is complex, instead of transforming "manually", you could also copy the generated transformations and DDIC objects after the 9th level.
Lot of stuff but I don't see any other solution.
02-22-2018 3:31 PM
My first option was to create new structures, with less nested includes.
Gives error in activation:
Message no. DT185
All the fields i´m using are from the generated proxy type. If i can´t use them, might as well create all structures manually.
The objective was using the wsdl to generate the data structures in abap. Around 915 data dictionary objects.
My other option is avoid the error of the nested includes (using debug).
Anyone know the consequences? Performance, others...
Thank you for your time.
02-22-2018 8:42 PM
Your option 1: it's what proposed Matthew and I : edit the WSDL etc. (see above), not the generated DDIC structures.
Your option 2: I see the field ADMINFIELD in table DD03L, which contains the nested level, unfortunately it's of length 1.
02-22-2018 12:53 PM
For the service you're consuming, are there any other options? Can it be redeveloped? Does it offer a RESTful web service option?
02-23-2018 11:48 AM
Answering your questions:
1. and 2. i don´t think so.
3. i´m not familiar with REST methodology
In fact, i´m not familiar with proxy client creation.
Next step, edit the xsd files...