SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to update additional data for Premise in ISU?

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

View solution in original post

2 REPLIES 2

Former Member
0 Kudos

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.

0 Kudos

hi Pranjal,

i used your example but found a error message as: error inserting into table EVBS.

what shall i do?

best regards.