Get ENH Xrefs
This workflow provides an example of using the Generic RFC Call action to call a remote function named /ICORP/RFC_GET_ENH_XREFS, which is provided with LiveCompare. Given a set of objects and a list of enhancement naming patterns, the workflow creates the selection criteria for the call, then calls the RFC. The RFC reads the SAP table ENHINCINX and returns a cross-reference table that links the input objects to any enhancements that match the naming patterns.
The results are stored in the Enhancements Found Table dataset, which stores enhancement data from SAP table ENHINCINX that matches the input selection criteria. The table has the following columns:
| Column | Description | 
|---|---|
| ENHNAME | Enhancement name. | 
| PROGRAMNAME | Program name. | 
| METHODNAME | Method name. | 
| ENHINCLUDE | Include name. | 
Create RFC Destinations
Before you begin, you will need to create an RFC Destination for the SAP system from which to extract enhancement data.
Prepare the workflow
To prepare the Get ENH Xrefs workflow, sign in as a LiveCompare Editor and drag its workflow template from the Templates > Tools folder into your own workspace. Then modify the workflow as follows:
To specify the system from which to extract enhancement data:
- 
                                                        Select the SAP System parameter and choose Edit RFC Destination from its context menu to display the RFC Destination dialog. 
- 
                                                        Select the appropriate RFC Destination, then click Save. 
To specify the objects for which to retrieve enhancement cross reference details:
- 
                                                        Select the Objects parameter and choose Edit Table from its context menu to display the Table Editor dialog. 
- 
                                                        Specify a set of objects by entering values in table’s the TYPE and NAME columns, then click Save. 
To specify a set of naming patterns for enhancement objects:
- 
                                                        Select the ENH patterns parameter and choose Edit Table from its context menu to display the Table Editor dialog. 
- 
                                                        Specify a set of enhancement naming patterns. The wildcard character * matches against one or more characters. 
Click  to save the workflow.
 to save the workflow.
Run the workflow
To run the Get ENH Xrefs workflow, click the  toolbar button, choose Run Now from the workflow’s context menu or select F5. The currently running workflow action is marked with an animated display. When the workflow execution has completed, select the Enhancements Found dataset and choose View Details from the context menu to view the details for enhancements whose names match the specified patterns.
 toolbar button, choose Run Now from the workflow’s context menu or select F5. The currently running workflow action is marked with an animated display. When the workflow execution has completed, select the Enhancements Found dataset and choose View Details from the context menu to view the details for enhancements whose names match the specified patterns.