Introduction and Use Case description
With SAP Solution Manger and the optional adapter it is possible to synchronize content like processes, process steps as well as related Requirements with SAP Quality Center by HP (also known as HP ALM or HP Quality Center). This activity can be automated so the transfer is performed in background e.g. on a daily base. Details of this solution are described in SAP Help Portal: Test Organization with the SAP Quality Center by HP and the How-to-Guide available in the Service Marketplace; How-to Guide of Adapter.
The standard behavior of the adapter was designed in away that only processes and steps that have been selected manually in the last transfer are transferred in background. Some customers have asked for a solution that transfers all processes and process steps as well as the related requirements that have assignments in the transfer tab. To allow this, a small modification is required which is described in this Blog Post.
Please note that this is not a SAP standard solution but a modification of SAP standard code and not part of any SAP Maintenance contract to be implemented at your own risk. Customers with SAP One Service, MaxAttention or Active Embedded contract can request 'Expert on Demand' Support for further assistance.
Adjustments of SAP Standard code to get required functionality
Although we tested the coding in our envireonment we strongly recommend to perform the following changes in a non-productive Solution Manager first and record the changes to a transport to be imported to productive Solution Manager only after your own tests.
Copy report ‘RS_SM_QC_REQUIREMENT_SYNC’ to customer namespace:
To keep the extend of modification as low as low as possible and to keep the exiting behavior for manual transfer in SOLARnn we recommend to copy the report ‘RS_SM_QC_REQUIREMENT_SYNC’ to customer namespace e.g. ZRS_SM_QC_REQUIREMENT_SYNC.
- In transaction SE38 enter report name and click on copy button:
- Enter new name for target program:
- Select sub objects to be copied:
- Activate program:
Modification of method ‘CL_AGS_HP_READ_BP / READ_PRJ_STRUC:
- In transaction SE80 select ‘Repository Browser’ Class / Interface and enter ‘CL_AGS_HP_READ_BP’ and press ‘Enter’:
- Expand the Methods tree and double-click on method ‘READ_PRJ_STRUC’
- Switch to Change mode via change button and register the object via Service Market Place http://service.sap.com/sscr to get the Access key.
- Insert the following coding as shown in the screen shots bellow:
Section 1 in line 19:
IF sy-cprog = 'ZRS_SM_QC_REQUIREMENT_SYNC'.
CLEAR: a_select_nodes.
ELSE.
Section 2 line 51:
ENDIF. - Save and activate the coding.
Impact of coding changes:
The changes will check if the currently executed report is ‘ZRS_SM_QC_REQUIREMENT_SYNC’. If yes it skips the check regarding batch mode and existing filter (existing node selection from last manual transfer) and ensures that all nodes with assignments on transfer-tab are selected to be transferred.
There is no impact for the manual transfer via SOLAR01 or SOLAR02 as well with the use of the standard report 'RS_SM_QC_REQUIREMENT_SYNC’.
Scheduling of automated Blueprint Transfer:
If the job already has been scheduled use transaction SM37 to adjust the job step entry ABAP program to ‘ZRS_SM_QC_REQUIREMENT_SYNC’.
For scheduling a new job you can use transaction SM36 and enter ABAP program ‘ZRS_SM_QC_REQUIREMENT_SYNC’ as job step.