Hi
You will have to write a validation step for the same as below:
Prerequisite
SYST-TCODE = 'CJ88' AND PRPS-PBUKR = 'XXXX'
Check:
Here you will need to call up an user exit and check the table JEST by Object No, with the logic as JEST-OBJNR=PRPS-OBJNR. Check for the status of WBS Element as technically completed.
If the check fails, system would give an error message.
Now assign the validation step to a validation rule which is in turn assigned to the project profile of your WBS Element. Now you will have a check that WBS Element with Technically Completed status only can have a settlement executed.
Thanks & Regards
Sanil Bhandari