Hello.
I need to create a follow up activity when saving a Z activity, and changing its status. The new activity must be created with a certain status. And be included in DOCFLOW.
Data:
Activity ZDOCA, When status changes to ZCLO, create activity ZDOCB with status ZOPE.
I found badi EXEC_METHODCALL_PPF and a standard implementation COPY_DOCUMENT.
But i can't understand the code. And where to put the status of creation of the new activity and its name.
My doubts are:
1) Where to put the status of creation of new activity(ZOPE) and its code (ZDOCB)?
2) How is the badi called when i create an implementation? Should i do something on the ON_SAVE method of activity ZDOCA when it changes to ZCLO?? I read something about an ACTION profile, but i don't know if its needed.
3) Is the activity automatically included in docflow by following the example in implementation COPY_DOCUMENT?
If you could provide some example code, it would be wonderful!!
Maybe its an easy question. But i'm new with abap CRM.
Thank you.
Regards,
Ez