Skip to Content

use of interfaces in class for workflow

Nov 01, 2016 at 07:58 PM


avatar image
Former Member

As ,we know interface just contain the definition and not the implementation, then what powers its gives to class when we implement the interface.

Eg, to use a class in workflow , we need to add interface If_Workflow , otherwise

system throws error.

So, query is even we include the interfcae in class , it has no implementation, then how it helps in coding.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Mike Pokraka Nov 02, 2016 at 07:28 PM

IF_WORKFLOW has several purposes:

  1. It includes BI_OBJECT and BI_PERSISTENT, so it's a way of ensuring that both of these are implemented
  2. It enables the system to recognise which classes can be used in WF - such as the F4 search help
  3. It acts as a marker for specific functions. E.g. it enables the SE24's 'KEY' column in the attributes tab

There are a couple of other interfaces which have special meanings. e.g. IF_SERIALIZABLE_OBJECT has no implementable functions at all, it just tells SAP whether an object instance can be serialised.

10 |10000 characters needed characters left characters exceeded