2016 Oct 31 11:43 AM
Hi,
I am using FM ISU_S_WORKLIST_INSTALL followed by ISU_S_WORKLIST_INSTALL_PROVIDE to perform device replacement with action '03'.
I can see that device is replaced.But periodic consumption for the replaced device is not populated.Can anyone let me know if i have missed anything.
CALL FUNCTION 'ISU_S_WORKLIST_INSTALL_PROVIDE'
EXPORTING
x_devloc = ' '
x_anlage = gw_euiinstln-anlage "aj
x_eadat = lst_deviceinfo_i-zinsdate
x_geraetneu = lst_deviceinfo_i-geraetneu
x_geraetalt = lst_deviceinfo_r-geraetneu
x_matnr = gw_zidmtt003-matnr
x_matnralt = ls_egerr-matnr
x_action = '03'
x_upd_online = 'X'
x_no_dialog = 'X' "aj
IMPORTING
y_obj = lst_xy_obj "26/10/2016
y_auto = lw_auto
EXCEPTIONS
not_found = 1
foreign_lock = 2
invalid = 3
internal_error = 4
not_qualified = 5
input_error = 6
system_error = 7
not_customized = 8
OTHERS = 9.
and before calling
ISU_S_WORKLIST_INSTALL
lw_auto-consumption = 'X'. "31/10/2016
lst_xy_obj-auto-consumption = 'X'. "31/10/2016
ls_mod-zwstandce = '0'.
ls_mod-perverbr = lw_auto_zw-perverbr.
ls_mod-anzerg = ls_ezwg-anzerg.
ls_mod-anzdaysofperiod = '365'. "31/10/2016
APPEND ls_mod TO lw_auto-auto_zw_mod.
LOOP AT lw_auto-auto_zw INTO lw_auto_zw.
logic to fill values
MODIFY lw_auto-auto_zw FROM lw_auto_zw TRANSPORTING zwstandce
perverbr
tarifart
kondigre
zwstandca
perverbre
anzdaysofperiod.
ENDLOOP.
LOOP AT lst_xy_obj-auto-auto_zw INTO lw_auto_zw.
MODIFY lst_xy_obj-auto-auto_zw FROM lw_auto_zw TRANSPORTING zwstandce
perverbr
tarifart
kondigre
zwstandca
perverbre
anzdaysofperiod.
ENDLOOP.
Thanks for inputs
Anjana Rao
2016 Oct 31 11:40 PM
2016 Nov 11 11:22 PM
As Daniel mentioned, the UserExit "ZXELXU19" (FM "EXIT_SAPLEL55_007") should do the trick.
Not the best approach, but if all other options fail : FM "ISU_DB_EASTE_UPDATE" is (as the name suggests) a function that can perform an update on table "EASTE" ... HANDLE WITH CAUTION, best option is to use the UserExit!