cancel
Showing results for 
Search instead for 
Did you mean: 

How to identify the last datapackid in the DSO start routine

Former Member
0 Kudos

Hi,

How can I to identify the last data package ine the start routine of the DSO?

I would like to execute an ABAP program only during the last data package (to add some new data that are not sent by my PSA).

I tried using RSBKDATAPAKID table with filter ISLAST (NOT INITIAL), but it seems that this doesn't work for DSO.

Could you please give me a solution to determine a last datapackid (in the start routine) when loading DSO?

For your information, we are in BI 7 (Infopackage to load PSA, and DTP to load DSO).

The DTP parameter is : 1 batch loading.

Thx.

Radj.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Can you not do that in every data package in start routine? I mean generate same records in every package. Since they are same they will anyways Overwrite. (assuming std DSO in overwrite mode)

Former Member
0 Kudos

Hi,

Thx for the answer,

Bay the way, I can't doing this because I could overwrite another records from another sales organisations (I have a several sales org by datapack).

I have to do my treatment in the last datapackid.

Do you know how Can I have the last data package in the start routine?

Thx in advance.

Radj.

Former Member
0 Kudos

Hi,

No Sorry.

You can select Number of Records in a Data Package in DTP, say 50000. You can Select and count number of records in the PSA table in the Start Routine.

Then, you may get Number of Data Packages = Number of Records in PSA / 50000.

For that you will have to delete PSA after each load for Delta.