BAPI_FIXEDASSET_CREATE1 with equipment synchronization

Hi experts,

How do I “reset” the BAPI_FIXEDASSET_CREATE1 function module between executions?

I am creating a number of assets via BAPI_FIXEDASSET_CREATE1 FM via a loop successfully, until I turn on asset synchronisation. 

To test the error handling, I have created one bad equipment category configuration (linked to an asset class) which must fail. The issue is that all subsequent BAPI_FIXEDASSET_CREATE1 executions after that first failure fail with the same error code even though the data for subsequent executions is different.

Asset Class Result Error
1 Success  
1 Success  
2 Failure A – ITOP error
1 Failure A – ITOP error
1 Failure A – ITOP error

I am clearing AND refreshing all input structures at the end of the FM execution in the loop. I am using both a BAPI_TRANSACTION_COMMIT and a COMMIT work.

How do I loop through multiple executions of BAPI_FIXEDASSET_CREATE1 (with equipment sync) and resetting the FM between executions?

Thanks

Scroll to Top