SAP Adapter Sending an IDOC from WM 61 to SAP

Hi everybody,

I’m trying to send an IDOC to SAP and I already have configured:
1- Routing the message type is enabled
2 - A service was created in my package called sendSAPMessage.

Now the service sendMessage is prepared to connect through pub.sap.transport.ALEutboundProcess and the server is preconfigured to an existing one.
My question is related to the java service invoked in this flow: pub.sap.transport.ALEutboundProcess
This java service requires as parameter:
IDOC_CONTROL
IDOC_DATA
IDOC_CONTROL_REC_40
IDOC_DATA_40

How can I provide this parameter if I just have the document that should converted in IDOC?

Regards,

Kleber Ferreira

Request you to search through the forums.

pub.sap.idoc:transformHierarchyToFlat is the service that converts document to flat format of the IDOC.

HTH
Bhavani Shankar.