We have a case where we have to automate ABAV transaction for Asset Partial Retirement.
We have a custom transaction type - Y31(Partial Retirement of PY Asset Installation Cost) which we are using in t-code ABAV.
The retirement is successfully done through ABAV.
Now at backend we need to use some Function module/BAPI which can perform retirement of the asset for us.
We have tried using “BAPI_ASSET_RETIREMENT_POST” but it is giving an error that “Posting with transaction type Y31 is not possible here”.
Any pointers on the same will be much appreciated.