ABAP RAP

Determinations

Scope

This slide deck covers the standard features of the managed scenario. The focus of this section is:

  • Determinations

Depending on user input the system can automatically derive other values — for example: calculate the gross price after changing the net price or the tax rate.

Determinations

Determinations calculate field values.

When they run:

  • ON MODIFY — after a change
  • ON SAVE — at save time

Behavior definition

Declare determinations in the behavior. Example:

  determination fillChangeFields on modify { create; }

Implementation in ABAP

Implement the determination in the handler class. Example EML/ABAP snippet:

METHOD fillChangeFields.

    MODIFY ENTITIES OF zi_##_tasks  IN LOCAL MODE
      ENTITY Task
        EXECUTE doSomething
        FROM CORRESPONDING #( keys ).

ENDMETHOD.