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

Problem with archiving using FI_DOCUMNT

Former Member
1,424

Hi,

While archiving the accounting documents, the requirement is as follows.

The accounting document needs to be retained in the system for 548 days i.e. 1 1/2 years and the clearing document for the accounting document needs to be there in R/3 system for 6 months.

If an accounting document has completed its retension period of 1 1/2 years and if its clearing document has not completed its retension period the accounting document should not be archived.

Currently the system is not taking care of the clearing document of the accounting document, so if an accounting document completes its retension period its getting archived irrespective of the clearing documents date.

Can anybody please let me know how this problem can be handled.

thanks in advance for your reply.

4 REPLIES 4
Read only

christian_wohlfahrt
Active Contributor
0 Likes
1,073

Hi,

from your description: this is not a standard functionality. If you want to have an additional check: use a user exit to extend the standard.

Have a look into the help to get a description of the different possibilities to extend the archiving.

Regards,

Christian

Read only

Former Member
0 Likes
1,073

I think you may have to set them both to the same period (i.e. 18 months).

Rob

Read only

Sathish
Product and Topic Expert
Product and Topic Expert
0 Likes
1,073

Hi POREDDY,

Say document A has a retention period 6months. How FI Archiving currently works is when you use the object FI_DOCUMNT for archiving the retention period for document A is checked. If this criteria is satisfied and can be archived, the next check is made whether the document is cleared or not.

If the document A is cleared then archiving is proceeded further with.

To check for the retention period of clearing document is not part of standard. If this requriement is required, either you can write a user-exit or raise a CSN message.

Do reward points if this is useful.

Regards

Sathish

PS: Are you working in hydrebad.. your name sounds familiar, have we met in Bangalore??

Read only

Former Member
1,073

Hi Everybody,

Thanks for the reply.

I have got the solution for this problem. For FI_DOCUMNT archiving object, there are two transactions OBR7 and OBR8, that are used to set the retension periods one is for document life and one is account life. I have set Document life as 1 1/2 years and the account life as 6 months. So the SAP system will check whether the FI accounting document has completed its retension period of 548 days and then check whether the clearing document has completed its retension period of 182 days. If these two checks are successful, then the document will be archived, otherwise not.

PS: Satish, My name siva nagarjuna reddy and currently working with xansa chennai. May I know your full name