Recognize last package in start routine
i am writing a start routine in the transformation to an DSO.
I want to built an internal table with all keys of the whole request, not only of a single package.
In the last package I want to loop through this table.
Question: Is it possible to recognize in a start-routine that this is the last package ??
Andreas Keppler replied
Your question is basically 2-folded:
1.) How can I determine the last data package of a request?
==> Starting with SPS19, you will be able to determine it via a method call. Please see SAP note #1231211, which will be released when SPS19 is released.
2.) How can I process all records (spanning multiple data packages) of a request?
==> you cannot, since the system is calling the Transformations (and thus also the ABAP routines) for every single data package with a new mode, hence your anticipated internal table would be deleted on the second, third, etc. call. The only option is to tailor the data package size for the data at hand to a single data package. You can either do so by increasing the data package size or reducing the processed number of records by applying filters in the DTP or selections in the InfoPackage.
SAP NetWeaver BI Organisation