Executing ABAP Task Lists for Automated Configuration

Objectives

After completing this lesson, you will be able to:
  • Describe ABAP task manager for lifecycle management automation
  • Explain ABAP task lists
  • Apply ABAP task lists

ABAP Task Manager for Lifecycle Management Automation

In SAP systems, you can automate many configuration tasks using predefined task lists. You can automate many configuration tasks using the ABAP task manager for lifecycle management automation (ABAP task manager). The ABAP task manager guides you through extensive configuration processes with predefined task lists, which you can customize as needed. You can also create your own task lists.

SAP offers predefined task lists for the following use cases:

ABAP Initial Setup
After installing a new SAP system, you can use task list to set up and configure the system to be able to use it. For example, you can create logon groups, configure the transport management system, configure security settings, or install an SAP license.
Security Checks

With task list for security checks, you can perform security system smoke tests, such as checking the Secure Sockets Layer (SSL) configuration or the basis system configuration.

SAP Fiori Setup

In order to enable SAP Fiori, you can perform system configuration tasks for SAP Gateway or SAP Fiori launchpad. For example, you perform basic configuration steps for SAP Gateway or activate launchpad OData and HTTP services on a Gateway system.

Embedded Search

You can run task lists to automate enterprise search configuration and administration.

ABAP Post-Copy Automation

There are also predefined task lists for ABAP post-copy automation. However, they are only available if you own an SAP Landscape Management (SAP LaMa) respectively SAP Landscape Virtualization Management (SAP LVM) enterprise edition license. Contact your SAP representative to obtain a license to make this function available.

For more information, check the SAP Help documentation: https://help.sap.com/docs/ABAP_PLATFORM_NEW/b5670aaaa2364a29935f40b16499972d/1c8a2c5084505f03e10000000a44176f.html

Note

The ABAP task manager is available as of SAP_BASIS 7.00 SP 14. For detailed system requirements, see SAP Note 1589145.

Configuration Using ABAP Task Lists

SAP is delivering a lot of automation content for ABAP systems in the form of task lists that you can adapt and execute in the ABAP task manager. The figure ABAP Task List - Step Examples only lists some of the examples for possible task list steps, such as create transport requests or check profile parameters. In up-to-date AS ABAP-based SAP systems, there are more than 900 task list steps available.

The ABAP Task manager comprise two transaction in an SAP system:

  • STC01 - ABAP task manager for lifecycle management automation where you can create and execute task lists
  • STC02 - Task list run monitor to display the log of executed task lists

In transaction STC01 you can do the following:

  • Display task lists and included tasks.

  • Add, remove, or change tasks in an existing task list.

  • Delete task lists which are no longer needed.

  • Copy task lists.

  • Run a task list (in dialog or as background job).

  • Create a variant of a task list (in case of tasks with parameters).

  • Run a task list variant.

The figure Creating Task Lists illustrates the process of creating a task list. To create a task list, you need to perform the following steps in a development system:

  1. On the initial screen of STC01, enter a name for the new task list.

    Note

    When you create your own task lists, you create new development objects in the repository of the SAP system. Thus, the object must be created in the customer namespace.
  2. Choose Create New Task List.
  3. Provide a task list documentation by adding a related document class and documentation object if available.
  4. Add tasks from the predefined tasks in the system.

    The tasks belong to different automation phases. Not every task is a configuration task. Also other phases are possible, such as preparation, cleanup, post-processing or others.

  5. Reorder tasks if needed and add the parameter settings according to your needs.
  6. Save the new task list.
  7. Since a task list is considered as a development object, you have to provide a package from the object repository or save it as a local object.
  8. Provide a transport request to be able to transport the task list in your system landscape.

Hint

You can provide variants for the task lists and create a list with a variant. In transaction STC01 you can create new variants.

If you want to execute an ABAP task list, whether it is your own created one or an SAP predefined task list, you have to generate a task list run. The ABAP task manager assigns a name to the task list run automatically. The list displays the tasks in the order of their execution that is defined for a successful configuration.

Some tasks may require an input. You can provide it as parameter in the Parameter column of each task. For some tasks input is mandatory. If you don't provide it, either a default setting applies or the task list will stop and prompt you for input.

After all information has been maintained, you can run or resume the task list in dialog mode. You can also schedule a background job that will execute the task list at a certain point in time.

If the task list run has any errors, it will stop. Choose the Status column of the failed task to see the log in the lower screen area. It provides detailed information and further instructions. You should resolve the problem and resume the task list run.

If you can not resolve the problem, deselect the task in the task list run to skip it. The configuration step is then not included in the process.

You can monitor executed task list runs in transaction STC02. There, you can display log information for task list runs.

  1. Call transaction STC02.
  2. Search for the task list run you want to view. You can also search for the task list to display all related task list runs.
  3. Choose Task List RunDisplay Log .

For more information about working with task lists in general and the required authorizations, see the official documentation: https://help.sap.com/docs/ABAP_PLATFORM_NEW/b5670aaaa2364a29935f40b16499972d/1c8a2c5084505f03e10000000a44176f.html.

For more information about task lists in the area of SAP Fiori, check the online documentation: https://help.sap.com/docs/SAP_FIORI_OVERVIEW/9b4ee51ce91e4a9cadd5e6d43c2992ba/bfd1b053a647e842e10000000a4450e5.html.

Create and Execute an ABAP Task List

Business Example

As an SAP system administrator, you create and run task lists to standardize the way you make changes to the system.

Note

In this exercise, when an object name or value contains ##, replace ## by the number your trainer assigned to you.

Task 1: Execute an SAP Predefined Task List

SAP delivers predefined task lists that you can use out of the box to automate configuration tasks. You want to use one of those task lists to run basic configuration checks.

Steps

  1. Open task list SAP_BASIS_SYSTEM_CONFIG_CHECK in ABAP task manager (transaction STC01 and display the documentation of some tasks.

    1. In your training SAP system, start transaction STC01.

    2. Enter SAP_BASIS_SYSTEM_CONFIG_CHECK in the Task List input field. You can also use the F4 value help.

    3. Choose Display Task List.

    4. For some tasks of your choice, choose Show Task Documentation from the Help column.

  2. Generate a task list run for SAP_BASIS_SYSTEM_CONFIG_CHECK.

    1. In the application panel, choose Generate Task List Run.

  3. Provide the profile parameter login/system_client as an input for the Check Profile Parameter (RZ10) task and ensure that the parameter value is set to 100.

    1. For the Check Profile Parameter (RZ10) task, select Fill Parameters in the Parameter column. This must be the very last task in the task list.

    2. Select Insert Row (a plus button at the top of the (empty) table of profile parameters).

    3. In the Parameter Name field, enter login/system_client (all lower case).

    4. In the Operand field, select =.

    5. In the Target Value field, enter 100.

    6. Choose Save in the bottom right-hand corner.

    7. Choose Exit in the upper right-hand corner.

      Result

      The input is provided and the parameter icon is now filled.
  4. Execute that task list SAP_BASIS_SYSTEM_CONFIG_CHECK.

    1. Back on the Maintain Task List Run screen, choose Start/Resume Task List Run in Dialog.

      Result

      The system displays the result of the task list run. You can check the status of the individual tasks in the Status column. Some of the tasks must have been executed successfully and some ended with a warning.
  5. Analyze the logs of individual tasks of the task list run and display the extended log.

    1. In Log column, check the log for the individual tasks.

    2. Choose the icon Show Task Log.

    3. In the bottom area of the screen, check the details of the log.

    4. Display the extended log by choosing MoreDisplay Full Log from the application panel.

    5. In the Task Overview section, you can select any of the links in column Task Description to open the details.

      Note

      In the training system, you may observe warnings or even errors. In the context of this training, it is no big deal so you can ignore them.

Task 2: Optional: Create and Execute Your Own Task List

SAP delivers predefined task lists that you can use out of the box to automate configuration tasks. However, you realize that the SAP predefined task lists do not reflect your needs. That is why you want to create your own task list that satisfies your demand.

Steps

  1. In ABAP task manager (transaction STC01), create your own task list Z_CHECK_## and add the following tasks to it:

    • Consistency Check (SICK): technical name CL_STCT_CHECK_SICK

    • Secure Store Check (SECSTORE): technical name CL_STCT_CHECK_SECSTORE

    1. In your training SAP system, start transaction STC01.

    2. In the Task List input filed, enter Z_CHECK_##.

      Note

      When you create your own task lists, you create new development objects in the repository of the SAP system. Thus, the object must be created in the customer namespace.
    3. Choose Create New Task List.

    4. The task list does not exist yet, so confirm the dialog box with Yes to create a new object.

    5. In the application panel, choose Add new tasks.

      In case, you do not see the option, choose Display/Change to get into the edit mode.

    6. On the Restrict Value Range, do not restrict the values and select Start Search.

    7. Choose the search function to search for the tasks:

      • SICK - Consistency Check (SICK)
      • SECSTORE - Secure Store Check (SECSTORE)
    8. Select the tasks and add them by choosing Copy.

    9. Change the sequence of the tasks by selecting the task and choosing MoreMove selected tasks one task up or MoreMove selected tasks one task down so that the consistency check is at the beginning and the secure store check is at the end of the task list.

    10. Choose Save in the bottom right-hand corner.

    11. Save the new task list as a local object by choosing the Local Object button in the dialog box.

  2. Run your newly created task list Z_CHECK_## in dialog.

    1. Prepare your task list run by choosing Generate Task List Run.

    2. Choose Start/Resume Task List Run in Dialog.

    3. The task list run should end with the status Finished successfully.

      Result

      The task, Consistency Check (SICK) should not report any errors. The execution of task Secure Store Check (SECSTORE) should be successful.
    4. Check the logs for the tasks by choosing Show Task Log in the Log column.

  3. Check the logs of your task list run in the Task List Run Monitor (transaction STC02).

    1. Start transaction STC02.

    2. Without changing the selection screen, choose Start Search.

    3. Select your last task list run and choose Details for Task List Run. Recheck the logs from your task list run.

    4. Display the extended log by choosing MoreDisplay Full Log.

Log in to track your progress & complete quizzes