Thanks for your reply, arulchristhuraj!
I just found the problem. As I told I created a SAP document type from an idoc (f.e. ZPENV_DATA). The SAP document type looks like this:
ZPENV_DATA
IDOC (list)
@BEGIN
EDI_DC40
…
Z1PENV_PROD_IN
…
In the service pub.sap.idoc:documentToIdoc the input is a document. So I mapped ZPENV_DATA to document. But this wasn’t working (for both services pub.sap.idoc:documentToIdoc and pub.sap.idoc:transformHierarchyToFlat).
Mapping looked like this:
ZPENV_DATA ---------- document
But then I created under the input document a new document (f.e. doc) and I mapped ZPENV_DATA to that one. And both service work. So the mapping looks like this:
ZPENV_DATA -----_____ document
------doc
And doing it by this solves my problem. DocList is not empty anymore.
Thx
#Integration-Server-and-ESB#Adapters-and-E-Standards#webMethods