A custom SAP Non-Workflow adapter can be used to facilitate the approval process in SAP that does not utilize an existing SAP Workflow.
This section will detail the steps you need to follow for setting up such a custom SAP Non-Workflow adapter that can connect to OneList V6.
Prerequisites:
- OneList v6 adapter is installed on your SAP Backend system
Configuration steps:
Note
This example is based on a Purchase Order workflow
- Create a custom implementation class based on the IQX base class:
- Use the Class Builder in SAP (t-code SE24) to open the class /IQX/CL_SAP_WL_ADPT.
- From the menu bar, select Edit → Create Subclass.
- Enter the name of the subclass in the Class field.
- e.g. ZCL_OL_PO_ADAPTER
- Enter a short description in the Description field.
- e.g. Purchase Order adapter for OneList
- Choose Save.
- Enter the Package and choose Save again.
- Redefine the following inherited methods and leave the implementation blank for now:
- EXECUTE_ACTION
- GET_ATTCHMENT_CONTENT
- GET_OBJECT_DETAILS
- Check, Save and Activate the class
- Maintain the following OneList configuration tables via SM30 (Note: Use the unit test client)
- /IQX/OL_TASK_DEF - Task Definition
- Create an entry with the following values:
- Job Type - The description of the type of task e.g. PO_APPROVAL
- O.L.Task ID - The workflow task ID for the object you would like to retrieve the worklist items. e.g. TS20000166
- Project Name - optional
- Number - The number of workflow tasks that should be fetched ???? not sure
- Create an entry with the following values:
- /IQX/OL_JOB_DEF - Background Job Definition (more info on this - the entries in this table will be used to automatically create background jobs that will run to execute functionality)
- Create an entry with the following values:
- /IQX/OL_TASK_DEF - Task Definition