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_FIXEDASSET_CHANGE

Former Member
0 Likes
653

I am using the FM bapi_fixedasset_change.

The bapi executes and returns 'Asset successfuuly changed'.

Problem arises when i go to ANLA, one of the fields invent-no (INVNR) has been replaced with a blank.

This is not even one of the fields i intended to change.

Has anyone experienced the same behaviour before? If so could you tell me what i am doing wrong?

3 REPLIES 3
Read only

Former Member
0 Likes
564

Hello,

you could check the 'GENERALDATAX'-structure in your program. May be there at the time of the BAPI-Call an 'X' at INVENT_NO ?

Regards Wolfgang

Read only

0 Likes
564

Thanks Wolfgang.

I thought of that as well ......but it's not the case (Code excerpt below)

generaldata-serial_no = upd_table-zz_intern_sernr.

generaldatax-serial_no = 'X'.

TimeDep-Person_No = upd_table-ZZ_EMPLOYEE_ID.

TimeDepX-Person_No = 'X'.

TimeDep-From_date = sy-datum.

TimeDepX-From_date = 'X'.

TimeDep-to_date = '99991231'.

TimeDepX-to_date = 'X'.

TimeDep-Location = upd_table-zz_location.

TimeDepX-Location = 'X'.

TimeDep-Room = upd_table-zz_room.

TimeDepX-Room = 'X'.

CALL FUNCTION 'BAPI_FIXEDASSET_CHANGE'

EXPORTING

COMPANYCODE = upd_table-bukrs

ASSET = upd_table-anln1

SUBNUMBER = upd_table-anln2

GENERALDATA = generaldata

GENERALDATAX = generaldataX

TIMEDEPENDENTDATA = TimeDep

TIMEDEPENDENTDATAX = TimeDepX

IMPORTING

RETURN = returnTab.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = ls_return.

Read only

0 Likes
564

After further investigation..............

1.SAP enhancement AISA0001 (Automatic assignment of the inventory number) was active.

2.De-activated this enhancement

3.Problem solved.