The Application Interface Framework (AIF) Monitoring tools enable you to monitor and troubleshoot communication between BTP ABAP Environment and SAP Build Process Automation.
-
Enable your User for monitoring. (Administrator User required for this enablement).
-
Click on the BTP ABAP environment instance in your BTP sub account to navigate to the Fiori launchpad using Administrator User.
-
Go to Maintain Business Roles App. Choose New > Enter Name & Description > Choose Create.
-
Navigate to Business Catalogs > Choose Add.
Add the below 3 Communication Management Business Catalogs.
- SAP_CA_BC_COM_CONF_PC
- SAP_CA_BC_COM_ERR_PC
- SAP_CA_BC_COM_OP_ERR_PC
-
Navigate to Users > Choose Add to select add your User > Choose Save.
-
Go to Assign Recipients to User App > Choose your User > Select Assign.
Assign Recipients (Processes) to your User. This is to make sure that the user can monitor only the processes assigned.
Depending upon users roles and responsibilities, Recipients (processes) can be assigned.
For monitoring workflow communication with SAP Build Process Automation Assign the below Recipients:
| Name Space | Recipient |
|---|
| /SWFCP (for workflow capability) | REC_PROC_BGRFC (process bgRFC) |
| | REC_RAISE_EVT (Recipient for raise of event) |
Repeat the process and assign each Recipient.
Your User is now Enabled for Workflow Communication Monitoring with SAP Build Process Automation via. AIF Communication Management Applications.
-
Open Message Monitoring Overview app or Message Dashboard app to monitor processes and check messages in case of failures/errors for troubleshooting.
Navigate Message Monitoring Overview > Choose /SWFCP – PROC_BGRFC – 1 > Choose the process you triggered > Check the message log and other details.
Select > on the line item to display further details.
Below error usually comes when the interface fields do not match.
-
Debugging your code.
In case you are not able to figure out why the call is failing using the monitoring tools you might want to troubleshoot by debugging the code. Note the below users you are debugging.
| Process | Debugger User |
|---|
| Workflow Trigger (Outgoing Call) | User Performing the action Create Travel |
| Process Completion Notification Method if_swf_cpwf_callback~workflow_instance_completed (Inbound call) | Activate the breakpoint for SAP_WFRT user |
In case the call is successful in BTP ABAP Environment but fail in SAP Build Process Automation causing the below issues. You would have to check if the process on the SAP Build Process Automation side is successful or not. The same have been explained in the next step.
a. You still do not see your approval form in SAP Build Process Automation.
b. You can see the Approval form but post actioning the form (Reject/Approve), you do not see a status update to (A) in BTP ABAP Environment