Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Asset BAPI

Former Member
0 Likes
525

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

1 REPLY 1
Read only

Former Member
0 Likes
421

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