Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A custom SAP Non- Workflow adapter can be used to facilitate the approval process in SAP that does not utilize for 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. 

The SAP Package /IQX/ONELIST_ADAPTER contains the relevant development objects that will be used to set up the custom adapter.

Prerequisites:

  • OneList v6 adapter is installed on your SAP Backend system 
  • SAP Workflow already configured

Configuration steps:


Info
titleNote

This example is based on a standard SAP Purchase Order workflow

  1. Create a custom implementation class based on the IQX base class:
    1. Use the Class Builder in SAP (t-code SE24) to open the class /IQX/CL_SAP_WL_ADPT.
    2. From the menu bar, select Edit → Create Subclass.
    3. Enter the name of the subclass in the Class field.
      • e.g. ZCL_OL_PO_ADAPTER
    4. Enter a short description in the Description field.
      • e.g. Purchase Order adapter for OneList
    5. Choose Save.
    6. Enter the Package and choose Save again.
  2. Redefine the following inherited methods (click on the method for the implementation example):
    1. EXECUTE_ACTION
    2. GET_ATTCHMENT_CONTENT
    3. GET_OBJECT_DETAILS
  3. Check, Save and Activate the implementation class.
  4. Maintain the following OneList configuration tables via SM30 (Note: Use the unit test client
    1. /IQX/OL_TASK_DEF - Task Definition
      1. Create a new 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
    2. /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)
      1. Create a new entry for each of the following values:
        • SYNC USER
          • Job Type - Use the job type defined in the previous step e.g. SYNC_USER
          • Class - /IQX/CL_OL_SYNC_USERS
          • Subcomponent - SYNC_USER_REQUEST
          • Short Description - Synchronize SAP users to OneList
          • Freq in mins - 5
        • SYNC ACTIONS
          • Job Type - Use the job type defined in the previous step e.g. PO_APPROVAL
          • Class - Name of the implementation class created in step 1.c. e.g. ZCL_OL_PO_ADAPTER
          • Subcomponent - SYNC_ACTIONS
          • Short Description - Synchronize adapter task actions to OneList
          • Freq in mins - 2
        • SYNC ATTACHMENTS
          • Job Type - Use the job type defined in the previous step e.g. PO_APPROVAL
          • Class - Name of the implementation class created in step 1.c. e.g. ZCL_OL_PO_ADAPTER
          • Subcomponent - SYNC_ATTACHMENTS
          • Short Description - Synchronize attachments to OneList
          • Freq in mins - 2
        • SYNC CHANGED TASK
          • Job Type - Use the job type defined in the previous step e.g. PO_APPROVAL
          • Class - Name of the implementation class created in step 1.c. e.g. ZCL_OL_PO_ADAPTER
          • Subcomponent - SYNC_CHANGED_TASK
          • Short Description - Synchronize the changed task list to OneList
          • Freq in mins - 2
        • SYNC DELTA TASK LIST
          • Job Type - Use the job type defined in the previous step e.g. PO_APPROVAL
          • Class - Name of the implementation class created in step 1.c. e.g. ZCL_OL_PO_ADAPTER
          • Subcomponent - SYNC_DELTA_TASK_LIST
          • Short Description - Synchronize detailed task list to OneList (delta tasks)
          • Freq in mins - 2
    3. /IQX/OL_ENDPOINT - OneList Service Endpoint
      1. Create a new entry with the following values: 
        • OneList URL - Specify the URL endpoint configured for OneList 
        • OneList Server App Path: /onelistserver/api/DataSync
        • SSL Client Identity: e.g. ANONYM
        • API Key: The unique API key used by the endpoint
        • Active: Checked
  5. Define a Scheduler background job via SM36 with the following values: (Note: Use the data client)
    1. Enter the Job Name - ONELIST_SCHEDULER
    2. Enter the Job Class - B
    3. Press the Step button
    4. Enter the User - e.g. OL_ADMIN (Note: This should be a service user account created for background jobs)
    5. Enter the ABAP Program Name - /IQX/ONELIST_JOBS
    6. Press the Save button
    7. Press the Start conditions button
    8. Press the Date/Time button and enter the scheduled start date and time
    9. Press the Period Values button and choose Other period from the options
    10. Enter 1 in the Minute(s) field
    11. Press the Save button to complete the setup

      Info
      titleNote

      Background jobs are usually created by the Basis resource and should be set up to use the existing service user account

      Once the OneList Scheduler background job has been created, it will automatically schedule the OneList Adapter jobs defined in the /IQX/OL_JOB_DEF maintenance table (as per entries created in step 4 above).

...