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

Problem with BAPI_FIXEDASSET_CREATE1. Doesn't work.

Former Member
0 Likes
931

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
709

Hi,

I hope I am not stating the obvious, but did you do a commit?

Regards,

Nico

3 REPLIES 3
Read only

Former Member
0 Likes
710

Hi,

I hope I am not stating the obvious, but did you do a commit?

Regards,

Nico

Read only

0 Likes
709

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

Read only

0 Likes
709

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.