This explanation describes the FAB process flow and how it interfaces with ABAP and the SAP database.
...
The code executed is on a control by control basis.
Each control can have its own front end code written in Javascript that validates or manipulates the entered data. See ‘Actions on change’.
'Actions on change' tells FAB to execute the nominated function in the Script.
For an amount field, you may want to test for it being positive or that it is a number and has no characters.
...
4. Next, you probably want to introduce a process flow to the form. This is achieved by using the Workflow Icon on the FAB Workbench.
This allows you to describe the roles, levels, tasks, and overview of the process flow.
...
The code in the onSubmitValidations() is written by the developer and available in the Script.
6. Usually for For saving a form as Draft no validations are usually defined. Therefore
Therefore in step 4, there is no function assigned in the Validation Function column next to Draft.
...
Discussed here are the ‘Form Saving’ methods. For an explanation of the ‘Form Loading’ methods go to step 13.
10. Data Submission Processing methods are before and when the user hits Draft or Submit or Approve.
...
A common scenario in the PERFORM_ACTIONS_FOR_STATUS_CHG method is to have a case statement and
depending on the value of status and action variables, execute custom methods.
For example, if the Current Action is ‘APPROVE’ then the developer can branch-off and run a custom-built
method that updates the SAP database using a BAPI.
...
Upon successful execution of the Action, a success message can be sent back to the screen. The
The contents of that message can be defined in this method.
...
14. Having described the flow taking place when the form is submitted it now necessary to go back to
to describe the methods that are executed when the form is loaded.
...
This may be used for picking up some information about the submitter that is to be shown
on the screen so that at a later point in time the approver is shown any required details.
...
DETERMINE_FIELD_VALUES_ON_LOAD is executed each time the form is loaded. This
This can be used to interrogate FAB variables and adjust visibility on the form according to the stage at which a form is at.
...
For escalation, you need a background job to check on your setting. In
In this method, you can add approvers or change approvers or do whatever is required for your escalation scenarios.
...