I have developed a new ABAP program that is going to perform the mass transference of old assets to new assets, based on an input file.
I have applied the BAPI_ACC_ASS_TRANSFER_POST function module instead of using a call transaction in ABT1N transaction as per SAP recommendation. It works perfectly for most of the cases.
But there is a case that is not working for the following scenario:
- First of all, make a posting with no new acquisition (filling up the table TRANSRETIREMENTDATA with the field NEW_ACQ_IN = u2018u2019 - blank);
- and after with a new acquisition (filling up the table TRANSRETIREMENTDATA with the field NEW_ACQ_IN = u2018Xu2019).
u2022 First movement: Posting from asset 612/0, company code 5837, as a u201CPartial transferu201D u2013 Prior-year acquis. See ABT1N transaction for further details.
u2022 Second movement: Posting from asset 612/0, company code 5837, as a u201CPartial transferu201D u2013 From curr.-yr acquis. See ABT1N transaction for further details.
If you perform both situations in the same execution, with the normal transaction you will get the documents correctly. But if you perform the same cases with the BAPIs, you will get a strange line in the second movement (that can be seen at AW01N transaction - Asset Explorer). The second movement gets the line posted in the first and duplicate the amounts for the asset.
Has anyone seen something like this before?