The SapFunction is used to call a remote capable module function in SAP (e.g.: BAPIs). Since a function call can return not only one data record, but several tables, there is the…