Skip to Content
avatar image
Former Member

use of interfaces in class for workflow

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.

Regards

Vishal

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    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.

    Add comment
    10|10000 characters needed characters exceeded