‎2008 Nov 18 8:41 AM
dear all, i am new in using bapi.
i hv tested inputting the parameter on se37 and it returning asset number, same thing i did on abap code. i have called BAPI_TRANSACTION_COMMIT and it returning message "Creation of the asset was tested successfully". But i can not find the asset either in AS03 or table ANLA. hv i missed any bapi to commit this work?
<<text removed by moderator>>
thanks
-tiara-
Edited by: Matt on Nov 18, 2008 10:44 AM
‎2008 Nov 18 8:57 AM
if your BAPI is excuted successfully its say the messange is "Asset master record was created"
your message is saying "tested successfully"
in the BAPI the filed "Test Run " = ' ' . pass this value and test it....
‎2008 Nov 18 9:19 AM
thanks for your quick reply.
i have passed the value and the return message now is: Asset 200810000007, subnumber 0000 was created.
but when i checked to AS03, the fields not completely filled like parameters i have inputted. what did i go wrong? i thought it is oke since it was tested successfully?
many thanks for helping.
-tiara-
‎2008 Nov 18 9:35 AM
Here you have a exemple of BAPI BAPI_FIXEDASSET_CREATE1 use:
[http://www.sapnet.ru/viewtopic.php?p=712|http://www.sapnet.ru/viewtopic.php?p=712]
‎2008 Nov 18 9:54 AM
Hi,
Use Below BAPI to create Asset
CALL FUNCTION 'BAPI_FIXEDASSET_OVRTAKE_CREATE'
EXPORTING
key = st_key
testrun = c_x
generaldata = st_gendata
generaldatax = st_gendatax
inventory = st_invent
inventoryx = st_inventx
postinginformation = st_postinf
postinginformationx = st_postinfx
timedependentdata = st_depdata
timedependentdatax = st_depdatax
allocations = st_allot
allocationsx = st_allotx
origin = st_origin
originx = st_originx
investacctassignmnt = st_invest
investacctassignmntx = st_investx
networthvaluation = st_networt
networthvaluationx = st_networtx
realestate = st_realest
realestatex = st_realestx
insurance = st_insure
insurancex = st_insurex
leasing = st_leas
leasingx = st_leasx
TABLES
depreciationareas = it_deparea
depreciationareasx = it_depareax
cumulatedvalues = it_cumval
return = it_return.
Regards,
Prashant
‎2008 Nov 18 9:59 AM
why do i have to use 'BAPI_FIXEDASSET_OVRTAKE_CREATE' instead of BAPI_FIXEDASSET_CREATE1?
in case of new asset, should we use 'BAPI_FIXEDASSET_OVRTAKE_CREATE' ?
in my case, anything wrong with my parameter or the function itself?
thanks.