2018 Dec 20 3:33 AM
HI All,
My requirement is to cancel the edocument. Is there any way to do it?
Here is my detailed requirement:
Basically while MIRO is done at backend one EDocument will generate in system. Now My client has done lot of MIRO postings with wrong input values. So they need to cancel the MIRO. I got bapi to reverse the MIRO but while trying to cancel the MIRO it is throwing an error like EDocument should be cancel at first. So please help me to how to cancel the EDocument.
Note: Tcode for EDocument: EDOC_COCKPIT.
2018 Dec 21 6:44 AM
Dear Kishore
If you look at the code of the tcode it is internally using CL_EDOC_ACTION method EXECUTE. Inside it CL_EDOCUMENT class is called which has method CANCEL_INTERFACE. I believe it shall cancel it. So please put relevant breakpoints and check in your system
Nabheet
2018 Dec 20 3:39 AM
Basically i know how to do with the Tcode which i mentioned above. I want to do from abap program.So please suggest me with any class or bapi or function module or any other way is available.
2018 Dec 20 3:39 AM
Basically i know how to do with the Tcode which i mentioned above. I want to do from abap program.So please suggest me with any class or bapi or function module or any other way is available.
2018 Dec 21 6:44 AM
Dear Kishore
If you look at the code of the tcode it is internally using CL_EDOC_ACTION method EXECUTE. Inside it CL_EDOCUMENT class is called which has method CANCEL_INTERFACE. I believe it shall cancel it. So please put relevant breakpoints and check in your system
Nabheet