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 do we cancel or reverse Disconnection Document

Former Member
0 Kudos

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

1 REPLY 1

chaiphon
Contributor
0 Kudos

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