bouml,
Once you have the IDOC string use the transformFlatToHierrachy,documentToRecord services and map the output to a recordReference(IDOC document structure created from SAP IDOC schema) and so this will hold the extracted data from the IDOC string.
So depends on the IDOC structure loop thru the record and map the individual values to the WmDB service (execSQL)inputs,this will insert to DB.
Use the Search functionality provided in this site,it will help you to resolve the problems fast,since same issue might have covered earlier.
HTH,
RMG.
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services