The below shown screenshot shows the point at which the dump occurs:
Earlier I assumed that when the control is coming in , at that point itself it was failing. But it is not the case. The data is retrieved successfully from the R/3 system. But I am not sure why it is pointing to the start of the RFC.