cancel
Showing results for 
Search instead for 
Did you mean: 

How many times and when is the counter value incremented in FUNCTION RSAX_BIW_GET_DATA_SIMPLE?

c_s3
Participant
0 Kudos

During the execution of FUNCTION RSAX_BIW_GET_DATA_SIMPLE when exactly is the counter value incremented ? This article says 2 times, but could it be more than that?

Accepted Solutions (1)

Accepted Solutions (1)

sander_vanwilligen
Active Contributor
0 Kudos

Hi,

Basically there are two modes:

  • Initialization mode (IF i_initflag = sbiwa_c_flag_on. - first call by SAPI);
  • Data transfer mode (all subsequent calls by SAPI).

Only for the data transfer mode the counter is incremented with 1 for every data package. So it depends on how many data packages there are, e.g.:

Data package 1 -> counter = 1

Data package 2 -> counter = 2

Data package 3 -> counter = 3

...

Data package n -> counter = n

Best regards,

Sander

c_s3
Participant
0 Kudos

Heres what I fail to understand, when you say datapackage 1, is this the one we see in PSA ? or are these calls made to the Function module ? I am trying to understand exactly what happens when the function module is invoked, lets say I have my PACKAGE SIZE  set to 10,000 and I have a total of 100,000 records will I get them in 10 packages ?

former_member185132
Active Contributor
0 Kudos

Hi,


when you say datapackage 1, is this the one we see in PSA ? or are these calls made to the Function module

They are all the same. Each individual datapacket is the result of a single call of the FM. So if you have N data packets in the PSA, that means the FM was called N+2 times. The first call sets up some variables and does a validation of whether the DS and FM match each other. Then you have N calls that produce the N data packets. Then finally you have the call that results in the NO_MORE_DATA exception: this is basically the FM telling the DS that there is no more data and the extraction can end. This is what happens under the hood when you see N DPs in the PSA/Infopackage monitor.

And yes, if the package size = 10K and there are totally 100K records then definitely there will be 10 packages.

Regards,

Suhas

Message was edited by: Suhas Karnik

sander_vanwilligen
Active Contributor
0 Kudos

Hi,

In this case you will have 10 data packages which are processed in 10 calls. These data packages correspond to the data packages you will see in the PSA in BW.

Including the first call (initialization) and the last call (raising NO_MORE_DATA) the Extractor is called 12 times in total. You can easily verify it by putting a break-point in the upper part of the Function Module and run the extraction checker using t/code RSA3.

Best regards,

Sander

Answers (0)