07-17-2007 4:06 AM
Hi Experts,
Does any1 have any ideas about how to update additional data (Such as number of premises, flat area) for a premise? I mean not use ISU_DB_EWA_VBS_UPDATE directly. I tried to use ISU_S_PREMISE_CHANGE to update the data, but I do not konw how to use the parameters, can any1 help?
Thx in advance, points will be rewarded.
Vincent.
07-18-2007 10:43 AM
Hi Vincent,
Here is an example coded by me. Hope this is useful to you. If so, please reward points.
l_premise = '0000004454'.
CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
EXPORTING
x_vstelle = l_premise
x_wmode = '1'
X_TEILOBJ =
IMPORTING
Y_OBJ =
y_auto = x_auto
EXCEPTIONS
not_found = 1
foreign_lock = 2
general_fault = 3
not_authorized = 4
invalid_wmode = 5
OTHERS = 6.
IF sy-subrc <> 0.
ENDIF.
x_auto-evbsd-haus_num2 = '99999'.
CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
EXPORTING
x_vstelle = l_premise
x_upd_online = 'X'
x_no_dialog = 'X'
x_auto = x_auto
X_OBJ =
X_NO_OTHER =
IMPORTING
Y_DB_UPDATE =
Y_EXIT_TYPE =
Y_NEW_EVBS =
EXCEPTIONS
not_found = 1
foreign_lock = 2
input_error = 3
general_fault = 4
not_authorized = 5
OTHERS = 6.
IF sy-subrc <> 0.
ELSE.
COMMIT WORK.
ENDIF.
Thanks,
Pranjal.
07-18-2007 10:43 AM
Hi Vincent,
Here is an example coded by me. Hope this is useful to you. If so, please reward points.
l_premise = '0000004454'.
CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
EXPORTING
x_vstelle = l_premise
x_wmode = '1'
X_TEILOBJ =
IMPORTING
Y_OBJ =
y_auto = x_auto
EXCEPTIONS
not_found = 1
foreign_lock = 2
general_fault = 3
not_authorized = 4
invalid_wmode = 5
OTHERS = 6.
IF sy-subrc <> 0.
ENDIF.
x_auto-evbsd-haus_num2 = '99999'.
CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
EXPORTING
x_vstelle = l_premise
x_upd_online = 'X'
x_no_dialog = 'X'
x_auto = x_auto
X_OBJ =
X_NO_OTHER =
IMPORTING
Y_DB_UPDATE =
Y_EXIT_TYPE =
Y_NEW_EVBS =
EXCEPTIONS
not_found = 1
foreign_lock = 2
input_error = 3
general_fault = 4
not_authorized = 5
OTHERS = 6.
IF sy-subrc <> 0.
ELSE.
COMMIT WORK.
ENDIF.
Thanks,
Pranjal.
01-21-2008 2:18 AM
hi Pranjal,
i used your example but found a error message as: error inserting into table EVBS.
what shall i do?
best regards.