cancel
Showing results for 
Search instead for 
Did you mean: 

PI to ERP (different behaviour between runtime and unit test from SPROXY)

ama_touzani13
Participant
0 Kudos
185

Hello ,

We have this strange behaviour between PI and ERP :

PI pushes a notification to ERP =>the message is executed , no error but we dont have the expected result.It seems that our change is skipped

When we test from SPROXY with the payload xml, we have the expected result and our change is executed.

Any idea please how we can find the issue ? , how we can debug before the call to abap class in ERP ?.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

ama_touzani13
Participant
0 Kudos

Hello ,

It was finally an authorization issue.

Thanks .

Answers (2)

Answers (2)

0 Kudos

Hi ama_touzani13,

My query was to check if the message that is sent from PI is as expected.

Please find below blog which gives detailed explanation regarding logging for reference.

https://blogs.sap.com/2012/11/06/message-staging-and-logging-options-in-advanced-adapter-engine-of-p...

Some times even after the change is activated the cache is not refreshed. So if you enable logging and check what is the message AM step as mentioned in the blog.

In addtion you could check Cache overview status in ESR as well to check if the cache is refreshed.

Hope this helps !

thanks and regards,

Praveen T

0 Kudos

Hi ama_touzani13,

I am not sure if I understood your question clearly.

Please confirm if its as mentioned below.

third Party --> SAP PI --> ERP

Now you have updated the proxy WSDL in PI and regenerated the proxies.

When you use the payload to test it from SPROXY its working fine but when you send the same data from PI you are not receiving the data as expected.

If this is the case could you enable log and check what is the message after mapping and if you have updated the Message mapping as well after you updated the PI Structure.

Please explain if the understanding of the issue is incorrect.

thanks and regards,

Praveen T

ama_touzani13
Participant
0 Kudos

Hi tirumareddy.praveen ,

The WSDL is updated and the proxy is updated and regenerated.

When I use the payload from SPROXY it is working as expected but when the same data is sent from third party --> SAP PI --> ERP , we dont have the same result.

Sorry i dont underdstad what you mean here :

<<If this is the case could you enable log and check what is the message after mapping and if you have updated the Message mapping as well after you updated the PI Structure >>

Is this on PI side or ABAP side ? . All the new fields were mapped correctly on abap and PI.

Regards.