2009 Jul 16 4:12 PM
Hi,
I have an requirement to remove the Meter. I tried using the Function Module 'ISU_S_WORKLIST_INSTALL_PROVIDE'. But I could not succeed to remove the meter. Could you please let me know what are all the input parameters I have to pass to remove the meter (tried using the below input parameters, but it did not work).
CALL FUNCTION 'ISU_S_WORKLIST_INSTALL_PROVIDE'
EXPORTING
X_HAUS =
X_DEVLOC =
X_KUNDE =
X_ANLAGE =
x_eadat = sy-datum
X_GERAETNEU =
X_EQUNRNEU =
x_geraetalt = serialno
x_equnralt = equnr
x_matnr = matnr
X_MATNRALT =
x_action = '07'
X_SPARTEE =
X_SPARTEA =
x_upd_online = 'X'
x_no_dialog = 'X'
X_NO_EVENT = ' '
X_NO_STATISTIC = ' '
X_NO_CHANGE_DOC = ' '
X_WMODE =
X_CALLED_BY_IDOC = ' '
X_NO_MR_REQUIRED = ' '
IMPORTING
Y_OBJ =
Y_AUTO =
CHANGING
XY_EXT_CONT =
X_GMVT_N =
X_GMVT_O =
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
.
Thanks in Advance.
2009 Jul 16 4:20 PM
Hi
Please go to swo1 and refer DEVLOC method DeviceRemove or INSTLN objects to see the use of this FM
Regards,
Prajakta
2009 Jul 16 5:40 PM
Hi Prajakta,
Thanks for your reply.
But still I could not remove the meter.
As per the Business object DEVLOC I have passed all the parameters as below.
In the FM (ISU_S_WORKLIST_INSTALL), If I do not pass the value for the field X_NO_DIALOG it opens the Technical Removal work list screen with the remove device check box checked for the device which I want to remove, i tried saving that in the screen even then it did not remove the meter.
-
CALL FUNCTION 'ISU_S_WORKLIST_INSTALL_PROVIDE'
EXPORTING
X_HAUS =
x_devloc = devloc
X_KUNDE =
X_ANLAGE =
x_eadat = sy-datum
X_GERAETNEU =
X_EQUNRNEU = equnr
x_geraetalt = serialno
x_equnralt = equnr
x_matnr = matnr
X_MATNRALT =
x_action = '07'
X_SPARTEE =
X_SPARTEA =
x_upd_online = 'X'
x_no_dialog = 'X'
X_NO_EVENT = ' '
X_NO_STATISTIC = ' '
X_NO_CHANGE_DOC = ' '
X_WMODE =
X_CALLED_BY_IDOC = ' '
X_NO_MR_REQUIRED = ' '
IMPORTING
y_obj = lwa_obj
y_auto = lwa_auto
CHANGING
XY_EXT_CONT =
X_GMVT_N =
X_GMVT_O =
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
.
-
CALL FUNCTION 'ISU_S_WORKLIST_INSTALL'
EXPORTING
X_HAUS =
x_devloc =
X_KUNDE =
X_ANLAGE =
x_eadat =
X_GERAETNEU =
X_EQUNRNEU =
x_geraetalt =
x_equnralt =
x_matnr =
X_MATNRALT =
x_action = '07'
X_SPARTEE =
X_SPARTEA =
x_upd_online = 'X'
x_no_dialog = 'X'
X_NO_EVENT = ' '
X_NO_STATISTIC = ' '
X_NO_CHANGE_DOC = ' '
X_CALLED_BY_IDOC = ' '
X_NO_MR_REQUIRED = ' '
IMPORTING
y_db_update = lwa_db_update
y_exit_type = lwa_exit_type
Y_RESULT_TAB =
CHANGING
xy_obj = lwa_obj
xy_auto = lwa_auto
XY_EXT_CONT =
X_GMVT_N =
X_GMVT_O =
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.
if sy-subrc = 0.
commit work and wait.
endif.
Edited by: Saba ri on Jul 16, 2009 6:41 PM
Edited by: Saba ri on Jul 16, 2009 6:46 PM
Edited by: Saba ri on Jul 16, 2009 6:48 PM
2009 Jul 16 6:15 PM
Please use the code block when posting the code.
Call your ISU_S_WORKLIST_INSTALL_PROVIDE with ACTION 02, X_UPD_ONLINE = 'X', X_NO_DIALOG = 'X' and get both Y_OBJ and Y_AUTO.
Modify the Y_AUTO as follow
Y_AUTO-OKCODE = 'SAVE'.
Y_AUTO-ZWSTAND = 'X'.
Y_AUTO-INTERFACE-ACTION = '02'.
Y_AUTO-INTERFACE-EADAT = sy-datum.
Y_AUTO-INTERFACE-UPD_ONLINE = 'X'.
Y_AUTO-INTERFACE-NO_DIALOG = 'X'.
Call ISU_S_WORKLIST_INSTALL with ACTION, X_UPD_ONLINE, X_NO_DIALOG and Y_AUTO same as above.
2009 Jul 17 10:27 AM
Hi,
I have passed the values as per your suggestion. But it gives me the exception in the FM 'ISU_S_WORKLIST_INSTALL' as an Input Error. If I do not pass the values for the fields Y_AUTO-OKCODE and Y_AUTO-ZWSTAND it did not give any exception. But it did not remove the Meter.
In the FM 'ISU_S_WORKLIST_INSTALL_PROVIDE' I have passed the following values ' X_DEVLOC = DEVLOC' , X_EADAT = SY-DATUM, X_GERAETALT = SERIALNO, X_EQUNRALT = EQUNR, X_MATNR = MATNR X_ACTION = '02', X_UPD_ONLINE = 'X' and X_NO_DIALOG = 'X'
Please let me know, should I need to pass any other values?
Thanks in Advance.
2009 Jul 17 11:21 AM
2009 Jul 17 12:04 PM
Hi,
We are not using the Insallation number (ANLAGE) in our project. So I cannot pass that value.
2009 Jul 17 12:35 PM
Hi,
For removing the meter, you are passing the below values -
In the FM 'ISU_S_WORKLIST_INSTALL_PROVIDE' I have passed the following values ' X_DEVLOC = DEVLOC' , X_EADAT = SY-DATUM, X_GERAETALT = SERIALNO, X_EQUNRALT = EQUNR, X_MATNR = MATNR X_ACTION = '02', X_UPD_ONLINE = 'X' and X_NO_DIALOG = 'X'
For FM, please do not pass the value for old device as serial no. (X_GERAETALT = SERIALNO). This is passed when the requirement is to replace the old device with the new one.
Try passing only the below values, it should solve your query.
X_DEVLOC
X_EADAT
X_EQUNRALT
X_MATNR
X_ACTION 02
X_UPD_ONLINE X
X_NO_DIALOG X
Hope this helps!!
Regards,
Rajesh Popat
2009 Jul 17 1:57 PM
Hi Rajesh,
Even it did not remove the meter, I tried with out passing the Serial Number value. Is there any other Function Module there for removing a meter?
2009 Jul 20 6:31 AM
can you try calling method of the object directly rather than calling FM
or try 'ISU_S_WORKLIST_INSTALL' instead.
Hope this will solve your query!
Regards,
Prajakta
2010 Aug 10 1:05 PM
Hi Prajakta,
Can you provide me any clue on how to use BOR methods in my custom program?
Regards,
Namita.
2010 Aug 10 4:48 PM
Hello,
The following link should be of help:
http://help.sap.com/saphelp_utilities472/helpdata/EN/a5/3ec8534ac011d1894e0000e829fbbd/frameset.htm
SEE->
BOR/BAPI Wizard
Regards
Olivia
2009 Jul 31 11:45 AM
Thank you all for your replies, However could not reslove this issue, now I went with BDC for this.