10-17-2007 5:54 AM
I am using ISU_S_PREMISE_PROVIDE and ISU_S_PREMISE_CHANGE FMs to update the Premise new location(EVBS-LGZUSATZ).
my code is like below.
CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
EXPORTING
x_vstelle = lv_premise
x_wmode = '1'
X_TEILOBJ =
IMPORTING
Y_OBJ = ls_obj
Y_AUTO = ls_premise_auto.
EXCEPTIONS
NOT_FOUND = 1
FOREIGN_LOCK = 2
GENERAL_FAULT = 3
NOT_AUTHORIZED = 4
INVALID_WMODE = 5
OTHERS = 6
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ls_premise_auto-evbsd-lgzusatz = 'HIRA'.
ls_obj-evbs-lgzusatz = 'HIRA'.
CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
EXPORTING
x_vstelle = lv_premise
X_UPD_ONLINE = lv_updonline
X_NO_DIALOG = lv_nodialog
X_AUTO = ls_premise_auto
x_obj = ls_obj
EXCEPTIONS
NOT_FOUND = 1
FOREIGN_LOCK = 2
INPUT_ERROR = 3
GENERAL_FAULT = 4
NOT_AUTHORIZED = 5
OTHERS = 6.
It is not updating anything in the database.
Can anyone tell me is there any other way to update premice details.
10-17-2007 5:59 AM
10-17-2007 7:11 AM
Yes I used commit work.
Then it is giving msg like "Updation terminated by user 'XXXX' ".
That xxx is my name only.
Is there any other method of updating the premise.
Message was edited by:
reonred red