cancel
Showing results for 
Search instead for 
Did you mean: 

RFC (type H) Destination works sometimes

former_member195202
Participant
0 Kudos

Hi All,

I am working on a scenario, where I am making an HTTP call to PI system via SAP ECC system.

The code I have is as mentioned below:

CALL METHOD cl_http_client=>create_by_destination

.......................................................

call method client->send

   EXPORTING

     timeout                    = 200

   EXCEPTIONS

     http_communication_failure = 1

     http_invalid_state         = 2

     http_processing_failed     = 3

     others          

I am using a RFC destination (type = H) to make a connection call. The issue is that this call is sometimes successful and sometimes not. So when the call is successful, I can see the message in PI, else not.

Any help would be appreciated.

Thanks,

Ravi.

Accepted Solutions (0)

Answers (2)

Answers (2)

gagandeep_batra
Active Contributor
0 Kudos

Hi Ravi,

What error you seen when call is not successful

there might be network issue check with basis team

Regards

GB

former_member195202
Participant
0 Kudos

Hi Gagandeep,

I do not see any error in the code. The call finishes as it does in case of a successful scenario does.

Former Member
0 Kudos

Looks issue with network . Can you ask your network team to verify.

Also any issue reported with other connections from PI.

Rgds,

Prabhat

former_member195202
Participant
0 Kudos

Hi Prabhat,

The issue is with this connection only, Rest connection seem fine.

Former Member
0 Kudos

Include Basis team and check sm21 while error occurred.

Also check  dev_rfc* log file for any detail

former_member184720
Active Contributor
0 Kudos

Hi Ravi - Did you try increasing the timeout in RFC destination?

Also when the call fails are there any dumps getting created?

former_member195202
Participant
0 Kudos

Hi Hareesh,

I have already tried with the time out options, but this does not help. Interface behavior remains same. Also when call fails there is no dump or error message.

Thanks,

Ravi.

former_member184720
Active Contributor
0 Kudos

Just to be clear which timeout did you increase?

call method client->send

   EXPORTING

     timeout                    = 200 here or in the RFC destination or both