2013 Jun 27 2:29 PM
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.
2013 Jun 27 3:17 PM
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
2013 Jun 27 3:17 PM
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
2013 Jun 28 8:30 AM
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.
2013 Jun 28 8:30 PM
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.
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:
Hope this will help. All the best!
Regards,
Avinash
2013 Aug 16 4:36 AM
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.