cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Expired BP from SRM

Former Member
0 Kudos

Hi,

How can you remove an expired BP from an SRM 5.0 system providing it has no attached business documents?

Normally, after you delete the related data records from the personnel planning database(pgm RHRHDL00) that are linked to the BP, you can delete the BP using txn BUPA_DEL.

However when the BP is expired, this transaction is not able to delete the BP.

Thanks,

Jerry

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You may have to turn on the 'Archive' flag on under Status tab in BP transaction before running BUPA_DEL.

SG

Former Member
0 Kudos

Hi SG,

Sorry but that doesn't help.

SLG1 displays the same error for an expired BP, regardless of whether the flag is set or not. The error in SLG1 is 'No valid BP roles for partner 1259 at time of 20100520 (excution date).

The actual error occurs in function BBP_HR_BUPA_EVENT_DELET2 when it doesn't get a valid return code from function BUPA_ROLES_GET_2.

Thanks,

Jerry

Former Member
0 Kudos

Hi,

The exception error/problem seems to be when function BBP_HR_BUPA_EVENT_DELE2 calls

function BUPA_ROLES_GET_2.

The iv_date in BUPA_ROLES_GET_2 defaults to sy-datum so if the BP we're trying to delete is expired, the process

terminates with an expception (No valid BP roles exist for partner 1259 at time period 2010/05/20).

When the iv_date is set to a date value that is between the BP from and

to date for an expired BP, the BP is successfully deleted.

Not sure if it was coded this way intentianaly or if it's error.

Jerry