SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

Archiving ISU_BILL - bypassing configured retention period (for Bill Simulation Types)

ivor_martin
Active Contributor
0 Kudos
634

Hello Colleagues,

In standard archiving configuration billing Document headers, the retention cannot be less than 366 days (the config will not save). This is understandably very important.

We need to archive our Unbilled Simulation docs (simulation type 2) earlier than 366 days. The only Archiving FICA Event I can find is R493. Looks like this Event is triggered only in the "Write" to archive program.

Is there any way to alter the behaviour of the Pre-selection program so as to have a lower retention period for Simulation type "2"?

Your feedback would be really appreciated.

Thanks and regards,

Ivor

2 REPLIES 2

AmlanBanerjee
Active Contributor
0 Kudos
286

Hi Ivor,

For ISU_BILL, there is a pre-processing program, REAARCH_ANALYSE_HEAD, which marks those items which can be archived.

This program is submitted in Event R493. Based on the output of this program, the write program is triggered.

Now you have two options-

(a) Implement the business logic in R493 with the output from the program,REAARCH_ANALYSE_HEAD and then pass that to the write program

(b) There is an SAP exit available for the program, REAARCH_ANALYSE_HEAD called, EXIT_REAARCH_ANALYSE_HEAD_001 (user exit for analysis of billing document headers) and EXIT_REAARCH_ANALYSE_LINE_001 (user exit for analysis of billing document line items) for implementing customer specific checks. You can put your check here as well.

Hope it helps.

Thanks,

Amlan

0 Kudos
286

Thanks Amlan.

I already looked at the documentation for the function module EXIT_REAARCH_ANALYSE_HEAD_001.

It looks like we can only influence what bill headers have already been selected by REAARCH_ANALYSE_HEAD (based on the ISU_BILL configured retention period of min 366 days).

Please let me know if you think we can still influence the retention days programmatically.

Heres the documentation:

This user-exit allows you to define your own checks to determine whether
a billing document header is archivable.

The billing document headers that have been determined as archivable by
report REAARCH_ANALYSE_HEAD (retention period exceeded, billing document
lines already archived, ...) are contained in the table parameter
XYT_ERCH.

If you wish to prevent billing document headers from being archived (due
to your own archiving checks), insert the corresponding entries in table
YT_ERCH_NO.

Thanks and regards,

Ivor