Closing incidents after providing a solution is necessary in projects that no changes can be made afterwards. Specially some project member may forget to close these incidents manually.
The following technical article describes how to close several incidents automatically after the status did not change after a specific period of time.
Creation of variant
In transaction SE38 the program AI_SDK_SP_AUTO_CLOSE needs to be open.
Transaction SE38 or SA38
In following fields needs to be maintained:
Document Name: e.g. Name of the program
Transaction Type: the customer transaction type you configured in the system like ZMIN
Priority (very high, high, medium, low): number of days after the incidents will be closed automatically while no changes where made with a specific priority. Incidents with high priority could be closed earlier for example like incidents with low priority
Change by Checking SAP Status
Check User Status: the current status of the incident (e.g. proposed solution)
Set User Status: the status you want to reach while using this report (e.g. closed)
This new variant needs to be saved.
Choose a name of the Variant.
Scheduling the job
The next step is to schedule a job with the new created variant to close the defined incidents.
This is done in transaction SM36. You have to choose a job name, e.g. ZMIN_CLOSE_INCIDENTS and create a step with the variant.
Step Creation Part #1
Step Creation Part #2
After the creation of the step a start condition needs to be defined. This means, on which time the job should be running. You can choose a periodic job like daily 1am for example.
After saving the job is released and will run at the defined time.
Closing incidents automatically are useful and does not take additional time with a created variant and scheduled job. It is also possible to create a second variant to close incidents in other status values like customer action. If this is needed by the customer an additional job needs to be scheduled as well. With this provided steps on how to create such report you are able to perform all the mandatory settings.
If you have any questions or input, please feel free to comment and share!
You are also encouraged to follow SAP Solution Manager tag here and the Application Lifecycle Management tag here.