04-24-2011 9:13 AM
Hi,
I am new to ISU.
As per the requirement I am going for Re-connection when system receives payments from customer.
I need to do certain validation and actions before actually going for Re-connections such as
if current status is - Disconnection Document open -No Service Order
system status - 1 (New, release unnecessary)
Action - Cancel the Disconnection Documentmet
My Query is : How do I cancel the Disconnection Document ?
Is these any function module / BAPI for this.
Could you provide me the Function module and its required parameters for the same.
Thanks
SKM
04-26-2011 7:43 PM
Use this code to complete the disconnection document number. For disconnection document status 1, complete and cancel are the same thing.
DATA: AUTO TYPE ISU05_DISCDOC_AUTO.
* disconnection order-action
AUTO-CONTR-USE-OKCODE = 'X'.
AUTO-CONTR-OKCODE = 'DARKCOMPL'.
CALL FUNCTION 'ISU_S_DISCDOC_CHANGE'
EXPORTING
X_DISCNO = Disconnection Document No
X_UPD_ONLINE = 'X'
X_NO_DIALOG = 'X'
X_AUTO = AUTO
* X_OBJ =
* X_NO_OTHER =
* X_DISCACT =
* IMPORTING
* Y_DB_UPDATE =
* Y_EXIT_TYPE =
* Y_NEW_EDISCDOC =
* Y_INTERFACE =
EXCEPTIONS
NOT_FOUND = 1
FOREIGN_LOCK = 2
NOT_AUTHORIZED = 3
INPUT_ERROR = 4
GENERAL_FAULT = 5
OTHERS = 6.
Chaiphon