Symptom
Upon trying to block the Business Partner XYZ in the Block Master Data - Business Partner App, the system raises the error:
Business partner XYZ is not blocked; is used in system , application WFA
(where XYZ represents the Business Partner ID
WFA represents the Workforce Assignment)
Output for Blocking Business Partner
1 Business Partners selected for processing
Execution in 'Test' mode
Execution in 'Overall Check' mode
Consider Next Check Date:Yes
Business partner XYZ is not blocked; is used in system , application WFA0
0 Business Partner can be blocked
Environment
SAP S/4HANA Cloud
Reproducing the Issue
- Go to Block Master Data – Business Partner app
- In the Business Partner Details section, provide the Partner ID XYZ
- End of Purpose Check Execution Mode: Overall
- Options: Consider Next Check Date
- Processing Options: Test Mode
- Detail Log: Complete
- Log Output: List and Application Log
- Select Execute button
- System throws the error
Cause
Business Partner XYZ cannot be blocked because it still has the active Workforce Assignment PQR. This workforce assignment would need to be deleted/terminated before you can block the Business Partner XYZ.
(where PQR represents the Workforce Assignment ID)
Resolution
To delete employee data, schedule an Information Lifecycle Management (ILM) job which deletes inactive employees periodically. Below are the steps to schedule the ILM job:
1. ILM Audit Area
a. i. Select policy category as Residence Rules
ii. Audit area as Archiving
iii. ILM Object as WFD_ASSIGNMENT
iv. Select New
v. In the next screen select the check box adjacent to WFD_ASSIGNMENT ILM object
b. i. Select policy category as Retention Rules
ii. Audit area as BUPA_DP
iii. ILM Object as WFD_ASSIGNMENT
iv. Select New
v. In the next screen select the check box adjacent to WFD_ASSIGNMENT ILM object
2. ILM Policy
Here the period for which employee data must be there in the system has to be mentioned. For example, you are setting the End date of Employee to 30.04.2021 and you set the Retention Period as 1 month. Then the job that runs after 31.05.2021 will delete employee data from the system whose end date is greater than or equal to 1 month on the date of job run.
a. i. Select policy category as Residence Rules
ii. Audit area as Archiving
iii. ILM Object as WFD_ASSIGNMENT
iv. Select New
v. Enter Policy name
vi. In the next screen Available condition fields, move the country to right side panel
vii. Select Save and Edit Rules
b. i. Select the country for which the policy must be maintained in ISO code
ii. Select minimum Retention period and maximum Retention period and Retention period unit accordingly
iii. Select WFD_ASSGMT_END_DATE as Time reference
c. i. Select policy category as Retention rules
ii. Audit area as BUPA_DP
iii. ILM Object as WFD_ASSIGNMENT
iv. Select New
v. Enter the Policy name
vi. In the next screen Available condition fields move the country to right side panel
vii. Select Save and Edit Rules
d. i. Select the country for which the policy must be maintained in ISO code
ii. Select Minimum Retention Period and Maximum Retention Period and Retention Period Unit accordingly.
iii. Select WFD_ASSGMT_END_DATE as Time reference
3. ILM Data Destruction
i. Select the Data Destruction Objects
ii. Toggle to Not Scheduled
iii. In the search box type WFD_ASSIGNMENT
iv. Select the check box
v. Select the Schedule button
Note:
Job run happens once in a week to archive or delete the employees matching the policy.
See Also
ILM Audit Areas - SAP Help Portal
ILM Policies - SAP Help Portal
How to Schedule Destruction Runs Using Data Destruction Objects - SAP Help Portal
Keywords
Business activity not ended for business partner, Business partner is not blocked; is used in system , application WFA0, Blocking Business Partner, WFA, Block Business Partner, Workforce Assignment, Employee, WFA , KBA , AP-MD-BP-BP , Data , Problem