Sample Code Abap Change Asset BAPI_FIXEDASSET_CHANGE | ILMU PROGRAMMER
Home » Sample Code Abap Change Asset BAPI_FIXEDASSET_CHANGE

Sample Code Abap Change Asset BAPI_FIXEDASSET_CHANGE

Sebelumnya kita telah membuat create asset pada tutorial https://ilmuprogram.com/2022/03/31/sample-code-create-data-assets-bapi_fixedasset_create1/

Kali ini kita akan mencoba merubah Asset tersebut menggunakan bapi BAPI_FIXEDASSET_CHANGE. Berikut sample code programming ABAP nya:

*&---------------------------------------------------------------------*
*& Report YUPLOAD_ASSETS
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT yupload_assets.
DATA: i_bukrs  TYPE  bukrs VALUE '1000',
      i_anln1  TYPE  bf_anln1 VALUE '410000000005',
      i_anln2  TYPE  bf_anln2,
      i_werks  TYPE  werks_d VALUE '1303',
      i_kostl  TYPE  kostl VALUE '0000103200',
      e_return TYPE  bapiret2.

DATA: ls_time  TYPE bapi1022_feglg003,
      ls_timex TYPE bapi1022_feglg003x.
ls_time-costcenter = i_kostl.
ls_time-plant      = i_werks.
ls_timex-costcenter =
ls_timex-plant      = abap_true.
CALL FUNCTION 'BAPI_FIXEDASSET_CHANGE'
  EXPORTING
    companycode        = i_bukrs
    asset              = i_anln1
    subnumber          = i_anln2
*   GROUPASSET         =
*   GENERALDATA        =
*   GENERALDATAX       =
*   INVENTORY          =
*   INVENTORYX         =
*   POSTINGINFORMATION =
*   POSTINGINFORMATIONX        =
    timedependentdata  = ls_time
    timedependentdatax = ls_timex
*   ALLOCATIONS        =
*   ALLOCATIONSX       =
*   ORIGIN             =
*   ORIGINX            =
*   INVESTACCTASSIGNMNT        =
*   INVESTACCTASSIGNMNTX       =
*   NETWORTHVALUATION  =
*   NETWORTHVALUATIONX =
*   REALESTATE         =
*   REALESTATEX        =
*   INSURANCE          =
*   INSURANCEX         =
*   LEASING            =
*   LEASINGX           =
*   GLO_RUS_GEN        =
*   GLO_RUS_GENX       =
*   GLO_RUS_PTX        =
*   GLO_RUS_PTXX       =
*   GLO_RUS_TTX        =
*   GLO_RUS_TTXX       =
*   GLO_IN_GEN         =
*   GLO_IN_GENX        =
*   GLO_JP_ANN16       =
*   GLO_JP_ANN16X      =
*   GLO_JP_PTX         =
*   GLO_JP_PTXX        =
*   GLO_TIME_DEP       =
*   GLO_RUS_GENTD      =
*   GLO_RUS_GENTDX     =
*   GLO_RUS_PTXTD      =
*   GLO_RUS_PTXTDX     =
*   GLO_RUS_TTXTD      =
*   GLO_RUS_TTXTDX     =
*   GLO_JP_IMPTD       =
*   GLO_JP_IMPTDX      =
  IMPORTING
    return             = e_return
* TABLES
*   DEPRECIATIONAREAS  =
*   DEPRECIATIONAREASX =
*   INVESTMENT_SUPPORT =
*   EXTENSIONIN        =
  .

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
*   EXPORTING
*     WAIT          =
*   IMPORTING
*     RETURN        =
  .

Semoga Membantu

Leave a Comment

 
Open chat
Perlu Bantuan Konsultasi ?
Hallo Pembaca.
Telp (021) 55670115 untuk terhubung langsung dengan kami.

Apakah ada yang bisa kami bantu?