cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc to synchronous webservice

Former Member
0 Kudos

Hi All,

We have scenario where we are getting IDOC from SAP and passing the same to Webservice.

And webservice is giving reponse back if the data is correctly processed.

Since teh IDOC is asynchronous and webservice is synchronous we are using BPM in this case.

Problem:

Now the issue is when the SAP sends the IDOC,the IDOC shows green status in SAP.
And if webservice replies with erroneous reply.
How to inform SAP that error has occured so that they can resend the IDOC.

Your help is much appreciated.

Thanks
Naveen

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>>And if webservice replies with erroneous reply. How to inform SAP that error has occured so that they can resend the IDOC.

just put the response into a file and from the file you can update the status of the IDOC

using the SYSTAT IDOC

but the process itself can also be changed to sync proxy even with IDOC adapter (ABAP port)

and from there you can also set the IDOC status correctly - much better approach than with a BPM

(described in my IDOC book)

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

Please can you let me know if for this scenario BPM is required or not.

Because I think from SAP we can get IDOC asynly.

Than can pass it to webservice synly.

And when the response is received from webservice,we can map that to  IDOC SYSTAT and update the original IDOC with it.

What you suggest?

Naveen

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Michal,

Please can you let me know if for this scenario BPM is required or not.

Because I think from SAP we can get IDOC asynly.

Than can pass it to webservice synly.

And when the response is received from webservice,we can map that to  IDOC SYSTAT and update the original IDOC with it.

What you suggest?

Naveen

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>Please can you let me know if for this scenario BPM is required or not.

>>>Because I think from SAP we can get IDOC asynly.

it's not - you can use IDOC and call ABAP port from which you can call proxy in a sync way

and update the IDOC status correctly - I've done that and it works,

Regards,

Michal Krawczyk

Former Member
0 Kudos

Thanks Michal,

I think we can scenario like

1.SAP->PI (asyn)

2.PI->Webservice (Syn)

And using IDOC SYSTAT i can update the original IDOC.

I think BPM is also not required now?

Naveen

rajasekhar_reddy14
Active Contributor
0 Kudos

Handling Sync scenarios using IDoc not a right idea, always better approach would be Proxy or RFC.

In your case maintaining sender idoc and web service response not possible,if this interface is new development then change design to abap proxy and try.