Skip to Content

CDN Social Insurance Number - enforce unqiue number

Hello,

For our US Employees we can enforce SAP S/4 so all employees must have a unique Social Security Number. We do this by using the PE03 feature SSNCK (Social Security Number Audit). We are looking for a way to enforce unique Social Insurance Numbers for our Canadian Employees. We want it to be a hard error like the US one.

Does anyone know how this can be done?

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jul 14, 2020 at 07:04 PM

    it is done here

    CL_HRPA_INFOTYPE_0002_CA, With the new infotype framework, the SIN validation is performed on METHOD AUDIT_SIN

    did you maintain the feature for canada as well?

    https://launchpad.support.sap.com/#/notes/2332745 IT0002: Incorrect error message for duplicated SIN when using new infotype framework

    CLASS: CL_HRPA_INFOTYPE_0002_CA

    METHOD: AUDIT_SIN

    TRY.

    HAS_EXCEPTION = FALSE.

    CALL METHOD cl_hrpa_feature=>get_value

    EXPORTING

    feature = 'SSNCK'

    struc_content = pme04

    IMPORTING

    return_value = SSNCK.

    CATCH CX_HRPA_VIOLATED_ASSERTION.

    HAS_EXCEPTION = TRUE.

    ENDTRY.

    IF SSNCK = 'N' AND HAS_EXCEPTION = FALSE. EXIT. ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2020 at 02:16 PM

    Thank-you everyone for your help. As it turns out the feature SSNCK does work for Canada as well -- it was my mistake for not having the feature set up properly. Once I set a breakpoint in the class CL_HRPA_INFOTYPE_0002_CA that Siddharth mentioned I was able to see this.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 14, 2020 at 06:50 PM

    Thx Paulina, I had actually looked at that function and it only validates the format - not if there are duplicates (i.e., it already exists in another employees record). Unless I am missing something in looking at it?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.