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

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

Similar Messages

  • How to find asset codes of machine related idocs

    can anyone explain me how to find the idocs related to these asset codes of machines
    regards
    sheker

    go to BAPI explorer.. and look for the particular application like in your case " Asset Accounting" -> Create Assets.. When You select the create Asset BAPI you can view if any messaget type is attached to this BAPI..
    But this only one way and you can find only those message type wchich are processed thru .. BAPI's as the FM in Process code..
    Some More Options;
    If U cannot find then a F4 Search in WE30 Transaction..
    Also, U can go to SE37 and look for IDOC* Search..
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/step%2bby%2bstep%2bprocedure%2bfor%2bcreation%2bof%2bidoc

  • LSMW for uploading assets using BAPI

    Hi.
    I am trying to upload assets from a flat file into the standard table using LSMW with BAPI.
    I could upload the assets by calling the BAPI from an ABAP report. But when I use the same BAPI in LSMW it gives an error while maintaining structure relationships.
    I created different source structures for header segment, general data and for depreciation areas on same level. While assigning these structures to target structures it asked for maintaining hierarchy between them. After I created that hierarchy I could maintain the relationships properly. But the read program was not generated.
    Please help me in this.
    Thank you.

    Hi Savitha.
    Thanks for the reply.
    The identification field need to be defined in case of data maintained for several source structures in one file. I am maintaining the data for each source structure in a separate file.
    Still it is giving me the same problem that is not generating the read program.
    If I dont maintain the hierarchy in source structures then it is generating the read program but then gives error while converting the data.
    Don't know how to proceed.

  • Error while creating the ASSET using LSMW BAPI method ( BUS1022 )

    Hello,
    Im creating assets using the below LSMW BAPI method
    Business Object      BUS1022     
    Method                     CREATEINCLVALUES
    Message Type         FIXEDASSET_CREATEINCLVALU
    Basic Type              FIXEDASSET_CREATEINCLVALU
    the following errors were triggered while populating the values to ACQ_VALUE and ORD_DEP value.
    Correction to ordinary dep. greater than acc. dep. in area 01
    Correction to ordinary dep. greater than acc. dep. in area 30
    Correction to ordinary dep. greater than acc. dep. in area 31
    Correction to ordinary dep. greater than acc. dep. in area 32
    if i pass only ACQ_VALUE, I am able to create the asset with out any issues.
    Can you guys plz guide me to fix this issue to create the asset with both ACQ_VALUE and ORD_DEP values??
    Cheers,
    Sriram.

    Hello,
    Review AO21.
    Regards
    Waza

  • Error while creating fixed asset using BAPI BAPI_FIXEDASSET_OVRTAKE_CREATE

    Hi
    I am getting an error stating "O DEP START field is not ready for input, while trying to create asset using the BAPI BAPI_FIXEDASSET_OVRTAKE_CREATE.How to make the field input enabled in BAPI .Kindly suggest.
    Thanks

    Hello,
    Review AO21.
    Regards
    Waza

  • Problem while Posting Assets through BAPI

    Hi,
    I am using BAPI_ACC_DOCUMENT_POST to handle assets postings in SAP.Here whenever i am running BAPI from SE37 using asset_no with regular length which is 6digits[730011] bapi is giving me correct results and documents gets posted successfully with assets.
    The same thing when I do it from my program by populating values and filling the asset_no correctly in BAPI Structure I am getting error as below
    "Asset 730011 not found in Company 1001".
    but the same assets works fine through SE37.
    Could anyone let me know why is this happening?
    Thanks

    Try adding leading zeros.
    ( When you test via SE37 you come across conv_exit_module / kind of screen exit )
    Hope this helps,
    Erwan

  • BAPI Write-up of an Asset (ABZU)

    In asset write-ups Tcode ABZU. i want to change ordinary depreciation for area 50.
    Is there any BAPI available for my thing.

    Hi Priyanka,
    Use transaction OAXE.
    Limit transactions type for depreciation area.
    Give the transaction type which you are using there.
    <b>Rewards point for useful answer.....</b>
    Regards...
    Abhay SIngh

  • BAPI for ABZU - Asset Write UP

    Hi
    I need to post asset write up documents through ABZU tcode. Can any one help me out with the appropriate BAPI for the same.
    BDC will not solve my problem as the set of screen changes as per the 'Transaction Type'.
    Regards,
    Sudip Kumar Das.

    Write up is allowed only to the extent of accumulated depreciation from previous years.  You can do write up "ABZU". however the accumulated depriciation balance has to carry forward from last fiscal year to current fiscal year and you can do writeup only upto the accumulated depr from the previous yr

  • Date error during creation of asset master using bapi

    Hi All,
    Am creating asset master using BAPI_FIXEDASSET_OVRTAKE_CREATE ,,
    but am getting date problem while passing value  '21022005'  ( or any date )  in the format  'ddmmyyyy' 
    the error says 'the capitalization date is invalid' ....
    the capitalization date is under  the structure BAPI1022_FEGLG002 of the above mentioned bapi....
    even i have tried using '21.02.2005' its still not working as the capitalization date is 8 char...
    kindly help me out with the possibilities
    thanks
    john

    Hi John,
    Some of the structures you have to fill for the IDOC belongs to a  referencing ...X structure. For example structure BAPI1022_FEGLG002 and BAPI1022_FEGLG002X.                                                                               
    When you fill the capitalization dat (BAPI1022_FEGLG002-CAP_DATE = '19981231') it's necessary to fill the corresponding field (BAPI1022_FEGLG002X-CAP_DATE = 'X') to  specify that the content of the field should be transferred to the fixed asset. Otherwise it'll be not transferred and you'll get an error message instead.                                                 
    Regards Bernhard

  • Need FM/BAPI for asset acquisitions, disposals and balances...

    Hello Experts,
    I need to create a report wherein it shows the asset acquisitions(S_ALR_87012050),
    disposals/retirements(S_ALR_87012052) and balances(S_ALR_87011964).
    Anybody has done this requirement? Please let me know what are the tables and BAPIS that
    I need to use.
    Hoe you can help me guys. Thank you and take care!

    Hi,
    Pls check this link for Asset balances-
    Asset balances
    Regards
    Lekha

  • Interface   BAPI  can not post to asset

    Dear all
            i met a weird problem.
            we use a interface( bapi)  to make the SAP document, but when  we post document  for the asset ,
    only FI document generated.  the Asset document not generated ,  the value was not posted to the asset.
            if anybody has met this kind of problem?   help .......help.......Thanks a lot !

    Dear
          yes ,we have fill in the transaction type (100 - acquisiton) , and the FI document has been generated
    all the fields are right ! the only problem is  the asset value not updated ,it's that the asset document not generated!
    and it 's not for a particular company code ,for all the company code!
    Best Regards!:)
    Sara xie

  • BAPI for Asset scrapping

    Hello,
    I have implemented the BAPI BAPI_ASSET_RETIREMENT_POST for background scrapping. Everithin OK for an asset with a subnumber. The problem is that I have to scrap an asset with multiple subnumbers. initially, I was running the BAPI for each subnumber, but I realised that I am creating an FI document for each posting, which is not good.
    Can I scrap multiple subnumbers with this BAPI?
    Thank you !

    BAPI_ASSET_ACQUISITION_POST
    BAPI_ASSET_ACQUISITION_CHECK
    BAPI_CMS_AST_GETDETAIL_MULTI
    BAPI_ASSET_POSTCAP_POST
    BAPI_ASSET_POSTCAP_CHECK
    BAPI_ASSET_RETIREMENT_CHECK
    BAPI_ASSET_RETIREMENT_POST
    BAPI_ASSET_REVERSAL_CHECK
    BAPI_ASSET_REVERSAL_POST
    for Fixed assets
    BAPI_FIXEDASSET_OVRTAKE_CREATE
    BAPI_FIXEDASSET_CREATE1
    BAPI_FIXEDASSET_CREATE
    BAPI_FIXEDASSET_CHANGE
    BAPI_FIXEDASSET_GETLIST
    BAPI_FIXEDASSET_GETDETAIL

  • Bapi for asset deletion (Tcode AS06)

    Hi Guys,
    Do we have any BAPIs for asset deletion (Tcode: AS06) ? Pls. let me know .
    Thanks and Regards,
    Sumit

    There is no BAPI for it: just for creation, change, get list and detail.
    I had the same doubt and then I tried FM AM_ASSET_DELETE_FROM_AI but it asks for a "AI_ID" which I don't have during execution time.
    If possible, do a Batch Input to AS06 as it is very simple.

  • BAPI for External Acqisition of Asset through vendor

    Hi All,
    Are their any standard BAPI / FM's to CHECK asset before saving and PARK the document.
    Regards,
    Gautham Paspala

    Hi,
    What is the transaction code you are using and what you are typing in
    F-90.
    Have you limit ttype 100 for non G/L posting depreciation area's
    Dont know where we can limit the GL Posting.
    When you don't make postings in FI use then the a asset transaction like abzon / abso
    Able to post through  ABZON.
    But I want to  post through vendor.
    Thanks
    Ravi

  • BAPI for asset disposal through tcode F-92

    Dear all,
    Is there any BAPI to perform asset disposal that posted in tcode F-92 in foreground with asset transaction type = 210? I found this BAPI BAPI_ASSET_RETIREMENT_POST however i did not find the field to enter the posting key + gl account info for double entry.
    Thanks.
    Regards,
    CNHO

    Are you trying to give two cost objects simultaneously? Can you elaborate on the account assignments you are giving?

Maybe you are looking for