‎2005 Sep 30 7:16 AM
Hi everyone,
I faced a problem while testing 'bapi_fixedasset_create1' and 'bapi_asset_acquisition_check' <b>in sequence</b> via SE37. Once the asset created via 'bapi_fixedasset_create1' is passed to 'bapi_asset_acquisition_check' it throws the error 'Asset has no main asset number record'. However, if i do a bapi_transaction_commit immediately after calling 'bapi_fixedasset_create1' then the acquistion check bapi throws no error. Pls tell me how to solve this issue.
Thank you very much
‎2005 Sep 30 8:16 AM
Hello,
think that's the way to do it.
'bapi_fixedasset_create1' creates the master data of the asset. Without commitung, there is no asset you could book a acquisition on.
So the logic would be:
'bapi_fixedasset_create1'
commit
'bapi_asset_acquisition_check'
if ok
'bapi_asset_acquisition_post'
commit
Regards Wolfgang