Hi Folks,
We have a requirement where in we want to fetch previous years data(2014) and current Years last 42 days data from sysdate. I have altered the filter condition but the table from which I am fetching is an SAP ECC Table called MSEG. Whenever I put the below condition it just gives me RFC Timed out error i.e Error calling RFC function to get table data: <RFC_ABAP_RUNTIME_FAILURE-(Exception_Key: TIME_OUT)- Time limit exceeded.
When I remove the 2014 from the where clause it works fine and returns me data for a specific condition applied. It seems that 2014 data is huge and thus causing the RFC to time out.
I confirmed with our SAP Basis admin and he said that the issue might be due to huge data volume.
MSEG.MJAHR = year($Current_Year) - 1
OR
(MSEG.MJAHR =$Current_Year
and MSEG.WERKS ='ABC'
and MSEG.CPUDT_MKPF >=to_date($Back_Date,'yyyy.mm.dd' )
and MSEG.CPUDT_MKPF <=to_date($Current_Date,'yyyy.mm.dd' )
)
Any performance tuning suggested here as source is SAP ECC Table.
Regards
Arun Sasi