IDOC error

Hi,
I’m sending a custom IDOC to SAP. I’m using following steps:-
transformHeirarchyToFlat
encodeSDATA
ale.inboundProcess

I am able to create the IDOC in SAP but the Header Record & detail name changes at SAP.
The record name is appended with space and first field.
For example the webMethods document is
Header
-ordernum
-deliveryType
But in SAP the value goes as
Header ordernum
-ordernum
-deliveryType
I have checked all services, the documents are absolutely perfect but when they reach SAP its distorted. I’m not losing any data in any of the records but the record names change.
How to solve this . I’m not even able to debug since all are adapter services.
Do I need to make any setting to resolve this.

Rgds
mike

Try submitting IDOC in XML format. Here are the steps…

IDOC Structure –> recordToDocument –> xmldata
–> decode –>
–> call ALE InboundProcess–>

I believe you should pass message type, may be extension of message type

Regards
Rao

Hi,
I am passing the message type in the IDOC . Even the document structure is perfect at before calling inboundprocess . But in SAP Z_HDR become Z_HDR UK where UK is value of first field.

This probably is becoz of the length definition of the fields in IDOC. Just have a check there.

HTH
BS