Skip to Content
author's profile photo
Former Member

Asset BAPI

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Sep 30, 2005 at 07: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

    Add comment
    10|10000 characters needed characters exceeded