Dear Experts,
I was trying to use BAPI_FIXEDASSET_CHANGE to update one of the user defined fields in the AS02 transaction. For this purpose I have used the EXTENSION IN table and I passed it in th following way.
ls_BAPI_TE_ANLU-COMP_CODE = gs_final-bukrs.
ls_BAPI_TE_ANLU-ASSETMAINO = gs_final-anln1.
ls_BAPI_TE_ANLU-ASSETSUBNO = gs_final-ANLN2.
ls_BAPI_TE_ANLU-ZZSERIAL_EXT = gs_final-sernr.
ls_BAPI_TE_ANLU-ZZROOM_EXT = gs_final-raumn.
MOVE 'BAPI_TE_ANLU' TO l_extensionin-structure.
MOVE ls_BAPI_TE_ANLU TO l_extensionin-valuepart1.
APPEND l_extensionin.
CALL FUNCTION 'BAPI_FIXEDASSET_CHANGE'
EXPORTING
companycode = gs_final-bukrs
asset = gs_final-anln1
subnumber = gs_final-ANLN2
IMPORTING
RETURN = RETURN
TABLES
EXTENSIONIN = l_EXTENSIONIN.
But this way it is not populating the newly added field, please let me know whether this is the right way or not.
Many Thanks,
Farook.