Ansicht
Dokumentation

SOLMAN_CM_APPR_CDOC - Approval Settings Overview for Change Documents

SOLMAN_CM_APPR_CDOC - Approval Settings Overview for Change Documents

BAL_S_LOG - Application Log: Log header data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

The following activities describe how to make the settings for approval procedures and approval options in change documents (urgent change, normal change, general change, defect correction, and administrative change).

Example: You can set a general change to status "Testing" and approve the successful test. After approval, the system sets the status "To be Documented". If the test is rejected, the approval procedure sets the status back to "In Process" and the approval procedure is initialized so it can start again

Notes:

This is an optional scenario in Change Request Management.

Do not change the standard settings for approval procedures delivered by SAP.

SAP does not deliver any standard Customizing settings for this feature. You must make the settings in order to be able to use it.

Adjust status profile

  1. Go to Define Status Profile for User Status.
  2. In the Trans. column, assign the C4AP(Process RFC Approval) transaction to the status in which the approval procedure is carried out, for example, "Testing", and the CAAP transaction (Approve Request for Change) to the status that documents the actual approval of the change document, for example, "To be Documented".
  3. Assign the allowed transactions to the relevant user statuses by double-clicking on them.
  4. Choose Create.
  5. Enter the allowed business transactions, "Approve Request for Change" and "Process RFC Approval", and make the following settings for the statuses:
  • Status before approval procedure is carried out, for example, "In Process"

Approve Request for Change: Allowed, No action
Process RFC Approval: Allowed, No action
  • Status during which the approval procedure is carried out, for example, "Testing"

Approve Request for Change: Allowed, No action
  • Status that documents the actual approval of the change document, for example, "To be Documented"

Approve Request for Change: Allowed, No action
Process RFC Approval: Allowed, No action

Create Test-Approval Status Profile

  1. Go to Define Approval Settings.
  2. Create an example approval procedure which can be used by the change document for which you set up the approval procedure. For example, create an approval procedure with one step for the tester to approve the successful test. For more information, see the Customizing documentation for the activity.
  3. Go to Assign Approval Determination Procedures to Transaction Types.
  4. Assign the newly created approval procedure to the transaction type, for example, to the general change.

Enhance Action Profile

  1. In transaction SPPFCADM, select the CRM_ORDER line, and choose Define Action Profile and Actions.
  2. Select the action profile of your change document, for example, general change, and choose Action Definition.
  3. Adapt the action profile. Deactivate all PPF action definitions that can change the user status during an active approval procedure. Deactivate the existing PPF action definition which sets the status which documents the approval of the change document. Deactivate the action definition that sets a change document back to "In Process". Only the approval procedure can then set the status, not the user via an action.
For the above example, set the action definitions _BACK_TO_IN_PROCESS and _CHANGE_DOCUMENTATION to inactive, for the general change.
  1. Create the action _APPROVAL_PROCEDURE_STATUS by copying the action _BUILDING.
  2. On the Detail screen for the action definition, set the following flags:
  • Schedule automatically

  • Changeable in Dialog

  • Executable in Dialog

Set the rule type to "Conditions Using Business Add-In (BAdI)".
  1. For the RESET_TO_DEVELOPMENT action, remove the Defaultflag.
  2. Maintain the PPF conditions for the newly created PPF action (_APPROVAL_PROCEDURE_STATUS), by choosing Condition Configurationin transaction SPPFCADM. Select your action profile and assign the schedule condition AIC_APPR_MEM_ID to it.

Assign Change Request Management Action

  1. Go to Make Settings for Change Transaction Types.
  2. Choose the change transaction type, and Assign Actions.
  3. Assign the APP_PROC_INI action to your change transaction, to the relevant last user status before the approval procedure is active (status equivalent to "To be approved"). In the above example, it is the status "In Process".

Adjust WebClient UI Configuration

To be able to display the Approvalsassignment block in your change document, adjust the configuration for the WebClient UI component AIC_CMCD_H.

  1. Go to transaction BSP_WD_CMPWB.
  2. Enter component AIC_CMCD_H, and choose Display.
  3. Under Views, select AIC_CMCD_H/AICCMCDOverview, and choose the Configurationtab page.
  4. Choose Copy Configuration, and enter the following data:
  • Role Config. Key: SOLMANPRO

  • Component Usage:

  • Object Type: AIC_OB_CMCD

  • Object Subtype:

  1. ,,Mark the component BT_APPROVAL under Available Assignment Blocks and choose Move to Right.

Result: The Approvals assignment block is available in the Displayed Assignment Blockslist.

  1. Under Views, select AIC_CMCD_H/AICCMCD_H/AICCMCDHeaderEF, and choose the Configurationtab page.
  2. Choose Copy Configuration, and enter the following data:
  • Role Config. Key: SOLMANPRO

  • Component Usage:

  • Object Type: AIC_OB_CMCD

  • Object Subtype:

  1. Choose Show Available Fields, and select the Tree View search for the //BTAPPROVALSET/STRUCT.APRV_PROCEDURE field.
  2. Drag and drop the field to the already displayed fields on the right-hand side of the UI.
  3. To include the Approval Procedurefield in the Detailsassignment block, choose the BT_APPROVAL component.
  4. Save your changes.
  5. Activate the new UI configuration by going to transaction SM30. Display table AGS_WORK_CUSTOM, and enter the following parameters:
UIC_PROC_TYPE_SPECIFIC_01,,AIC_CMCD_H/AICCMCDOverview_
UIC_PROC_TYPE_SPECIFIC_02 ,,AIC_CMCD_H/AICCMCDHeaderEF_

Define Status Change Depending on Approval Result

  1. Go to Define Status Change Depending on Approval Result.
In this activity, you define to which status the change document is set if the approval procedure is rejected.
  1. As the change documents do not contain the Scopeassignment block which creates follow-on documents, maintain only one entry for your transaction type. Define in which user status your change document is set if the change document is rejected in the approval procedure. This is defined by "Document without existing follow-on document is rejected in approval procedure".






Vendor Master (General Section)   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 9554 Date: 20240523 Time: 162118     sap01-206 ( 112 ms )