Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

EDocument Cancellation

0 Kudos
3,224

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.

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos
819

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

3 REPLIES 3

0 Kudos
819

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.

0 Kudos
819

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.

nabheetscn
Active Contributor
0 Kudos
820

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