‎2008 Jul 18 8:44 PM
Hello,
I want to create asset using the BAPI BAPI_FIXEDASSET_CREATE1.
I am getting the success message as Asset no XXXX created ,sub number XXXX.
But Asset was not created if I am going to AS03 or look in Table ANLA.
Obviously, I think that problem can be of the data passed to the BAPI, mainly I have passed:
Company code
ls_key-companycode = ps_ls_asset-bukrs.
Asset class
ls_general_data-assetclass = ps_ls_asset-anlkl.
ls_general_data_x-assetclass = c_updated.
Asset Description
ls_general_data-descript = ps_ls_asset-txt50.
ls_general_data_x-descript = c_updated.
Cost center
ls_time_dependent_data-costcenter = ps_ls_asset-kostl.
ls_time_dependent_data_x-costcenter = c_updated.
*WBS Element
Plant
ls_time_dependent_data-plant = ps_ls_asset-werks.
ls_time_dependent_data_x-plant = c_updated.
Is it necesary another/s key data ?
Best Regards,
Any.
‎2008 Jul 19 10:10 PM
Hi,
I hope I am not stating the obvious, but did you do a commit?
Regards,
Nico
‎2008 Jul 19 10:10 PM
Hi,
I hope I am not stating the obvious, but did you do a commit?
Regards,
Nico
‎2008 Jul 19 11:05 PM
Hello Nico,
You´re right. I forgot do the commit.
I did test with SE37, and I forgot call BAPI_TRANSACTION_COMMIT after.
I am going to do it.
Best regards.
Jaime
‎2008 Jul 21 6:22 PM
Hello Nico,
Thank you very much,
Today, I did a new program with the 2 functions:
BAPI_FIXEDASSET_CREATE1
BAPI_TRANSACTION_COMMIT
And It works well.
Best regards.