Hi Abhishek, the rule id can be same within various Risk IDs - A001 and also B003 as in this case.
The risk analysis result as seen in the first screenshot would show the risks based on the actions assigned to the user and which Risk ID and which Rule ID further contain these actions.
So, rule id 0007 exists irrespective of the Risk IDs. It can co-exist in multiple Risk IDs and this would vary from the combination of rules generated.
Just that, the actions contained within different Functions should be different, i.e. 2 different functions should not contain same actions, but the Action Rules generated from these functions can have the same Rule ID.
Overall, you should validate the results of risk analysis based on the transactions contained with a user and the actions maintained within the functions (contained within Risks) OR the violating Risk ID which can further on drill down show the actions contained within functions.
Also, to explain the logic of Rule ID: 0001 would be generated for a combination of Tcode 1 & Tcode 2 coming from different functions assigned in the Risk.
Rule ID 0007 would ideally be generated based on 7th such combination of Tcode 1 with Tcode 7 for example.
Hope this is useful.