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

Bapi

former_member386202
Active Contributor
0 Likes
764

Hi,

Could you please tell me how to use BAPI "BAPI_FIXEDASSET_OVRTAKE_CREATE" for Asset COnversion??

Please give me code.

Thanks,

Prashant

3 REPLIES 3
Read only

Former Member
0 Likes
495

Hi Prashanti

Hope this code will help you.

Reward if help.

CALL FUNCTION 'BAPI_FIXEDASSET_OVRTAKE_CREATE'

EXPORTING

key =

  • REFERENCE =

  • CREATESUBNUMBER =

  • CREATEGROUPASSET =

  • TESTRUN = ' '

  • GENERALDATA =

  • GENERALDATAX =

  • INVENTORY =

  • INVENTORYX =

  • POSTINGINFORMATION =

  • POSTINGINFORMATIONX =

  • TIMEDEPENDENTDATA =

  • TIMEDEPENDENTDATAX =

  • ALLOCATIONS =

  • ALLOCATIONSX =

  • ORIGIN =

  • ORIGINX =

  • INVESTACCTASSIGNMNT =

  • INVESTACCTASSIGNMNTX =

  • NETWORTHVALUATION =

  • NETWORTHVALUATIONX =

  • REALESTATE =

  • REALESTATEX =

  • INSURANCE =

  • INSURANCEX =

  • LEASING =

  • LEASINGX =

  • IMPORTING

  • COMPANYCODE =

  • ASSET =

  • SUBNUMBER =

  • ASSETCREATED =

  • TABLES

  • DEPRECIATIONAREAS =

  • DEPRECIATIONAREASX =

  • INVESTMENT_SUPPORT =

  • EXTENSIONIN =

  • CUMULATEDVALUES =

  • POSTEDVALUES =

  • TRANSACTIONS =

  • PROPORTIONALVALUES =

  • RETURN =

.

Reward if help,

Read only

Sougata
Active Contributor
0 Likes
495

If you are required to do the intial legacy data transfer of the fixed assets, I'm afraid your approach is incorrect.

Instead of calling BAPI_FIXEDASSET_OVRTAKE_CREATE in a Z program to create legacy assets you should use LSMW radiobutton option Business Object Method (BAPI). The Business Object to use is BUS1022, Method to use is CREATEINCLVALUES and Message Type/Basic Type will default automatically. Then you just map your source data to the structures provided in the Message Type FIXEDASSET_CREATEINCLVALUES. This will be much faster, error free and best of all you don't have to code an entire ABAP report then test it etc.

Hope this helps.

Cheers,

Sougata.

Read only

Former Member
0 Likes
495

Check this link. U can get some idea.

http://www.sapfans.com/forums/viewtopic.php?t=246354

Regards,

Maha