Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Archiving and deleting

Former Member
0 Likes
516

Hi,

We are in upgrade from 4.6c to ECC.

We have one program in which it will Archive data and deelete,In the sense archiving and deletion where there in the same program.When i was test the same program in ECC its not giving popup for deletion.

Below are the function modules i am using for Archiving and deletion.

ARCHIVE_OPEN_FOR_WRITE

ARCHIVE_NEW_OBJECT

ARCHIVE_PUT_RECORD

ARCHIVE_SAVE_OBJECT

ARCHIVE_WRITE_STATISTICS

ARCHIVE_CLOSE_FILE

ARCHIVE_OPEN_FOR_DELETE

ARCHIVE_GET_CUSTOMIZING_DATA

When i check in the below metioned link it was mentioned that Archiving and Deletion cant be done in the same program for security reasons.

Please help me out how this can be achived in same program.

Regards,

Sunil.K

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
465

Hi,

Keeping security as major reason Archiving data and deletion of archived data happens in 2 different program. Deletion program reads the archive file to be completed successfully & then deletes the data from the database.

1. If SAP by mistake if it has provided a functionality to archive and delete in the same program then inform to SAP with archiving object since it is out of SAP base line rules of archiving.

2. Can you please specify which is that archiving object?

If you customize Deletion job automatically then after the write job is completed successfully then deletion program will be triggered.

If your business requires to have same program to archive and delete data then you have to go with custom program otherwise your new program will be very much useful and help you to cross check at all steps.

-Thanks,

Ajay

1 REPLY 1
Read only

Former Member
0 Likes
466

Hi,

Keeping security as major reason Archiving data and deletion of archived data happens in 2 different program. Deletion program reads the archive file to be completed successfully & then deletes the data from the database.

1. If SAP by mistake if it has provided a functionality to archive and delete in the same program then inform to SAP with archiving object since it is out of SAP base line rules of archiving.

2. Can you please specify which is that archiving object?

If you customize Deletion job automatically then after the write job is completed successfully then deletion program will be triggered.

If your business requires to have same program to archive and delete data then you have to go with custom program otherwise your new program will be very much useful and help you to cross check at all steps.

-Thanks,

Ajay