We had a requirement to convert IDOC’s in web service without PI (PO). We tried to find out whether SAP provides such solutions. SAP replied to our OSS message saying NO. So we developed our own solution that can convert any IDOC into a web service within minutes. Here I will explain the steps.
Once you set up the system then all programs are reusable to convert any IDOC into web service.
Step 1. Create WSDL for the IDOC basic type or extension type
Step 2. Create server proxy for the WSDL to host the IDOC
Step 3. Convert the Incoming IDOC and post it
TID 0A6A381E48FE541C4FFF0304 create with IDOC 881704
IDOC posted in SAP
Similarly you can convert any IDOC into web service. With ABAP 7.40, SP05 you can further fine tune the code.