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: 

clarification Needed Regarding Disconnect ISU

Former Member
0 Kudos
1,389

Hi Experts,

We need your help regarding an issue.

We are troubleshooting a disconnect workflow and  an exception is being thrown while creating  Create of Disconnection Order [DARK]  is being made via standard method [DARKCREATEOFDCORDER] of buisness object 'Dosconnect'  .

The following exception is being thrown

''No objects that can be disconnected in the data environment of ref. obj'   , now we  found the following details while searching deatils

reagading creation of disconnection order,

Prerequisites

If you want to generate a disconnection order, the disconnection document must have a reference object containing devices or flat-rate installations in its data environment.

In the event that open item accounting is blocked, the contract account must contain at least one current contract when the disconnection order is generated.

we really do not have any idea regarding ISU functional side and disconnection. as per we understood the above exception might have been thrown

due to the absence of reference object for the disconnect document. This reference object should have been created for the disconnect object and which

should be done manually / via transcation.linking . Its'  a maintained data issue with the disconnect document.

Technically the standard sap method [DARKCREATEOFDCORDER]use the Function module  'ISU_S_DISCDOC_CHANGE'   and it should work if the

data are maintained properly.

Please help us in providing the inputs regarding the same.

Thanks  a ton in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
900

Hi Rinki,

In order to disconnect meter from a location, you need reference object. Reference object can be - Device(Meter), Installation, Premise, Connection Object, BP/CA (You need active contract) or Contract.

Which means, you need to pass ObjectType and ObjectKey in your method DarkCreateOfRcorder. If you want to disconnect at meter level, then you need to pass ObjectType as "DEVICE" and corresponding meter value in ObjectKey. If you want to disconnect at Contract Account, then ObjectKey will be ISUACCOUNT and ObjectKey will be corresponding CA value and so on for other objects.

Please check with your functional consultant at what level you need perform disconnect and pass these values.

Regards,

Avinash

View solution in original post

4 REPLIES 4

Former Member
0 Kudos
901

Hi Rinki,

In order to disconnect meter from a location, you need reference object. Reference object can be - Device(Meter), Installation, Premise, Connection Object, BP/CA (You need active contract) or Contract.

Which means, you need to pass ObjectType and ObjectKey in your method DarkCreateOfRcorder. If you want to disconnect at meter level, then you need to pass ObjectType as "DEVICE" and corresponding meter value in ObjectKey. If you want to disconnect at Contract Account, then ObjectKey will be ISUACCOUNT and ObjectKey will be corresponding CA value and so on for other objects.

Please check with your functional consultant at what level you need perform disconnect and pass these values.

Regards,

Avinash

0 Kudos
900

Hi Avinash,

Thanks for giving me the inputs.

Actually in this scenario the task create a 'Dunning Disconnect Notification'  so it uses

the method  'DARKCREATEOFDCORDER'  (DarkCreateOfDisconnection) not the 'DarkCreateOfRcorder'  (Create reconnection order without dialog) method. The reconnection order method works succesfully with the object name and object key as advice by you, but 'create of discoonection order'  / DARKCREATEOFDCORDER'  does not work.

we have tried  by giving the 'objecttype' and 'objectkey'   and did single testing from the method 'DARKCREATEOFDCORDER' but the same exception was thrown.

Please help us with your valuable inputs.

Thanks in advance.

0 Kudos
900

Hi Rinki,

I think you need to implement BADI -  IF_EX_SERVORD_EDCN

Looks like your devices are not selected automatically, and you may need to select your disconnect objects using method SET_ORDERCODE_DISCONNECT and updating XY_DVALOBJ

I am pasting SAP documentation provided in this BADI... Please review and implement it accordingly.

A1) Procedure for defining Business Add-In when you want to change the device selection in the disconnection or reconnection order:

Table XY_DVALOBJ contains all devices and installations that are contained in the disconnection document. The field SELECTED = 'X' is set for devices that the system has already automatically selected for the order.

  • If you want the device to be selected in the disconnection or reconnection order, set the field SELECTED = 'X' for the corresponding device in table XY_DVALOBJ.
  • If you want the device to not be selected in the disconnection or reconnection order, set the field SELECTED = ' ' for the corresponding device in table XY_DVALOBJ.

  A2) Procedure for defining the Business Add-In when you wish to change the device selection in the disconnection or reconnection order, depending upon the division:

Table XY_DVALOBJ contains all devices and installations that are contained in the disconnection document. The field SELECTED = 'X' is set for devices that the system has already automatically selected for the order.

Table XT_V_EGER contains all devices that are allocated to the disconnection object.

Table XT_V_EANL contains all installations that are allocated to the disconnection object.

Program the following logic in the BAdI:

  • To first disconnect all devices from, for example, the electricity division: In table XY_DVALOBJ, select all devices from the electricity division with SELECTED = 'X', and use the field LOGIKNR to determine the corresponding entry for the device in table XT_V_EGER. This also applies for the reconnection order.
  • If the device does not have the electricity division, set SELECTED to SPACE in table XY_DVALOBJ.
  • If you do not find any devices from the electricity division, execute the selection for a different division. The order of divisions for which you make the selection is irrelevant.
  • The division is not important for the selection in the screen for disconnection or reconnection order creation. This allows you to make the selection according to other criteria.

Hope this will help. All the best!

Regards,

Avinash

0 Kudos
900

Hi Avinash,

Thanks , i am really sorry that i am really late.This was a data issue but the feedback provided by you is correct in that concern.