MNR,
Basically you have to first define EDI 940 to IDOC DELVRY functional mapping spec based on your 940 trading partner guideline document(if possible get few samples from TP) and IDOC schema/field definitions(you can take help from your SAP team) and create a mapping spreadsheet etc…Once you done this task in webMethods Integration Server/Developer create EDI document types(based on EDI version 4010 templates) and use IDOC schemas (ifr.sap.com site) to create IDOC doc types.Finally start your source EDI 940 to target IDOC mapping and invoke SAP routing rules to send IDOC into SAP system via OutboundProcess.
Please look in the WmEDISamples,WmSAP package and corresponding webMethods EDI,SAP codeuserguides for more information on developing flows,routing IDOC’s.
HTH,
RMG
#Integration-Server-and-ESB#edi#webMethods