Quantcast
Channel: SCN: Message List - SAP Advanced Planning & Optimization (SAP APO)
Viewing all articles
Browse latest Browse all 2032

Re: Not able to read large amount of data from InfoCube present in APO system

$
0
0

Hi All,

 

Adding my findings:

 

We can use I_S_RFCMODE parameter provided in RFC RSDRI_INFOPROV_READ_RFC. I_S_RFCMODE expects us to provide the below details:

  • ID - Random value
  • RFC_RECEIVER - We need to create a new RFC in our ECC system to be able to get the data package wise. You can debug the RFC and see the structure. This new RFC created in ECC system will be invoked inside RFC RSDRI_INFOPROV_READ_RFC using destination 'BACK'.
  • PACKAGESIZE - Number of records that you are expecting in each package

 

How RFC RSDRI_INFOPROV_READ_RFC is executed:


This RFC executes the local function module RSDRI_INFOPROV_READ (FM to read data from InfoCube locally) till END_OF_DATA is reached. And every time local FM is executed and new data is fetched, it invokes the new RFC created in ECC system and transfers the data.

 

I am facing a new problem now:

 

Inside RFC RSDRI_INFOPROV_READ_RFC, local FM RSDRI_INFOPROV_RFC returns sy-subrc 9 when executed the second time. i.e. if package size is specified as 1000 in RFC call, local FM fetches 1000 records first time and sends it to ECC system and it tries to fetch the next set of 1000 records and subrc is 9. I could debug the code and the actual function raising subrc 9 is given below:

 

Class  - CL_SQL_RESULT_SET => method - NEXT_PACKAGE

 

Can you please help me here.

 

Thanks,

Pavan


Viewing all articles
Browse latest Browse all 2032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>