Indrani,
As Rob said it is mentioned in SAPAdapter userguide,please check it.
Basically you have to explicitly map your XML to IDOC document structure(eg:ORDERS05 or INVOIC01 etc…) and call this service to convert it to IDOC pub.sap.idoc: transformHierarchyToFlat (see the userguide for more info how to use this service).Once you are OK with IDOC format then process it to SAP via OutboundProcess.
HTH,
RMG
#Adapters-and-E-Standards#webMethods#Integration-Server-and-ESB