You are on page 1of 2

16/07/2017 Document 578422.

PowerView is Off Switch to Cloud Support Srinivasan (Available) (0) Contact Us Help

Dashboard Knowledge Service Requests Patches & Updates Community

Give Feedback...

How To Run Depreciation Rollback API In Release 12? (Doc ID 578422.1) To Bottom

In this Document Was this document helpful?

Goal Yes
No
Solution
Still Have Questions?
Document Details
References

Type:
HOWTO
APPLIES TO: Status:
PUBLISHED
Last Major
Update: 27-Jan-2015
Oracle Assets - Version 12.0.0 and later Last 18-Jul-2016
Information in this document applies to any platform. Update: English
Language:
GOAL
Related Products
How does the Rollback Depreciation API FA_DEPRN_ROLLBACK_PUB.DO_ROLLBACK work ?
Oracle Assets

Information Centers
SOLUTION Information Center: Overview
for Oracle Fixed Assets (FA)
R11i and R12 [1308325.2]
The Rollback Depreciation API FA_DEPRN_ROLLBACK_PUB.DO_ROLLBACK was introduced with Release 12.

In prior releases, FADRB - Rollback Depreciation program was available in order to rollback depreciation calculation after it was
Document References
run for a Book without closing the period.
In Release 12, this program is no more available because new feature was introduced : Automatic depreciation rollback. Release 12: Where is the
Option for Rolling Back
Depreciation? [421352.1]
With this new feature, after running Depreciation for a Book without closing the period, if it is needed to perform additional
transactions on particular assets (adjustment, retirement etc.), the user can update those assets with whatever transaction is Why Depreciation Gets Rolled
needed. Back If Description Of An
Asset Is Changed/Updated?
For those particular assets the depreciation data is automatically rolled back and the transactions can be performed on them. [1463816.1]
After this the user can run Depreciation again to depreciate again these particular assets.

*Note the rollback is also completed for Asset Description changes per Note 1463816.1
Recently Viewed

Instead of entering additional transaction, in case it is not needed, you can manually rollback depreciation for an asset by R12 Rollback Depreciation Is
running the Rollback Depreciation API which restores the asset to its state prior to running depreciation. Getting ORA-01722 Error
This may be useful for the purpose of testing some setup behavior. [1950061.1]
How To Run Depreciation
You can find details about this API in Oracle Assets user Guide Release 12 available from Metalink for downloads . Rollback API In Release 12?
[578422.1]
Sample script is provided hereafter.
R12 FAXWHTIF:
Depreciation What-If
The ASSET_HDR_REC_TYPE asset structure contains unique identification information for a given Analysis Calculates Wrong
asset, such as the asset ID and book type code. Both variables are Required when running the API. Depreciation Amount with
Divide Depreciation By Days
Steps [1671589.1]
Why Depreciation Gets
1) Run depreciation without closing closing the period Rolled Back If Description Of
An Asset Is
Changed/Updated?
2) Run The Rollback Depreciation API procedure FA_DEPRN_ROLLBACK_PUB.DO_ROLLBACK for an asset/book [1463816.1]
APP-OFA-48735 Error in
Depreciation Override When
Depreciation Run Without
set serveroutput on Close Period [1379229.1]
declare Show More
l_asset_hdr_rec fa_api_types.asset_hdr_rec_type;
l_return_status VARCHAR2(1);
l_mesg_count number;
l_mesg varchar2(4000);
begin
dbms_output.enable(1000000);
FA_SRVR_MSG.Init_Server_Message;
-- asset header info
l_asset_hdr_rec.asset_id := &asset_id;
l_asset_hdr_rec.book_type_code := '&book';
--call the api
FA_DEPRN_ROLLBACK_PUB.do_rollback
(p_api_version => 1.0,
p_init_msg_list => FND_API.G_FALSE,
p_commit => FND_API.G_FALSE,
p_validation_level => FND_API.G_VALID_LEVEL_FULL,
p_calling_fn => null,
x_return_status => l_return_status,
x_msg_count => l_mesg_count,
x_msg_data => l_mesg,
px_asset_hdr_rec => l_asset_hdr_rec);
--dump messages
l_mesg_count := fnd_msg_pub.count_msg;
if l_mesg_count > 0 then

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=130970838612911&id=578422.1&_afrWindowMode=0&_adf.ctrl-state=9l88o 1/2
16/07/2017 Document 578422.1
l_mesg := chr(10) || substr(fnd_msg_pub.get
(fnd_msg_pub.G_FIRST,
fnd_api.G_FALSE),
1, 250);
dbms_output.put_line(l_mesg);
for i in 1..(l_mesg_count - 1) loop
l_mesg :=
substr(fnd_msg_pub.get
(fnd_msg_pub.G_NEXT,
fnd_api.G_FALSE), 1, 250);
dbms_output.put_line(l_mesg);
end loop;
fnd_msg_pub.delete_msg();
end if;
if (l_return_status <> FND_API.G_RET_STS_SUCCESS) then
dbms_output.put_line('FAILURE');
else
dbms_output.put_line('SUCCESS');
end if;
end;
/

3)If the script returns SUCCESS , issue a commit.

COMMIT;

The asset is restored to its state prior to running depreciation.


Depending on the status before the rollback, The API takes appropriate actions :

Rows are deleted from FA_DEPRN_SUMMARY and FA_DEPRN_DETAIL for this Asset /Book and period_counter.
If Create Accounting program was not run yet or only in Draft mode, hence Depreciation event was not processed, the
event is simply deleted.

If Create Accounting was run in Final mode, then the Depreciation event was Processed
(XLA_EVENTS.EVENT_STATUS_CODE=P ) and Rollback generates a ROLLBACK_DEPRECIATION event in order to reverse
the prior Depreciation event. When Transfer to GL will be run, as a result a Depreciation Journal entry will be sent to GL
to reverse the prior entry.

Still Have Questions?

To discuss this information further with Oracle experts and industry peers, we encourage you to review, join or start a
discussion in the My Oracle Support Fixed Assets Community.

To provide feedback on this note, click on the Rate this document link.

REFERENCES

NOTE:1308325.1 - Information Center: Overview for Oracle Fixed Assets (FA) R11i and R12
NOTE:421352.1 - Release 12: Where is the Option for Rolling Back Depreciation?
NOTE:1463816.1 - Why Depreciation Gets Rolled Back If Description Of An Asset Is Changed/Updated?
Didn't find what you are looking for? Ask in Community...

Related
Products
Oracle E-Business Suite > Financial Management > Assets & Real Estate > Oracle Assets > Misc Issues > Miscellaneous

Keywords
API; DEPRECIATION; ROLLBACK DEPRECIATION
Translations
English Source Japanese

Back to Top
Copyright (c) 2017, Oracle. All rights reserved. Legal Notices and Terms of Use Privacy Statement

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=130970838612911&id=578422.1&_afrWindowMode=0&_adf.ctrl-state=9l88o 2/2

You might also like