How to mask SSN field?

Hi,
Currently, the SSN field on the contract management screens (FPP1, FPP2 and FPP3) are displayed as 123456789. But, once the user saves the contract details and again views it using FPP2 or FPP3, our client wants the SSN field to appear as XXX-XX-6789. I understand that the traditional SAP HR transactions (PA30) do format the SSN and display it as 123-45-6789. However, is there a way to tackle my requirement(masking the first 5 numbers with X)? Did somebody face a similar hurdle in any of your IS-U implementation(s)? How did you tackle?
Your comments would be highly appreciated.
- Mrk

Hi,
You can create one conversion exit function module on that field data element and attach it.
Cheers
Prasad

Similar Messages

  • Masking SSN field

    Hi,
    I have a requirement to mask SSN field on PA20 and PA30 transactions. I am aware of making changes in V_T588M to mask fields at the infotype level. I have got it done. However I do not know how to replicate the same at PA20 and PA30 transaction levels.
    Any thoughts as how to about it shall be helpful.
    Thanks in advance,
    VG

    Hi ,
    SSN field will be there for some specifc countries . Ex india dosent have a SSN field in IT0002.
    Your requirement will be for some specific countries where SSN is present and u need to mask it like USA ..
    // have a requirement to mask SSN field on PA20 and PA30 transactions.
    PA20 is display mode then i dont suppose u need to code for this . Just check if thisis on PA40 tcode.
    For PA30 if this is for set of countries then include ZXPADU02 is ok for PBO . If this is for a specific country like USA then you will have to handle the code for that particulare country in that screen no  like 2010 of MP000200.
    Loop at screen .
    if condition.
    screen-input =  '0'.
    modify screen.
    endif.
    endloop
    br,
    Vijay.

  • How to mask SSN number in Identification Number field in BP?

    Hello Gurus,
    We have a requirement to mask the initial 5 digits of SSN number when displayed in the Identification Number field in the Identification tab of BP transaction. What is the best way to go ahead with this enhancement?
    We do not want to encrypt the data at the database level. Just encrypt at while displaying SSN Number on BP transaction.
    If anyone has carried out such enhancement, would appreciate if you can share how you did it?
    Thanks to all in advance,
    Shyamak

    Shyamak,
    This is for CRM -
    Go the PBO of the screen that has identification details. In a suitable PBO module, you can implement and implicit enhancement point and change the data in internal table.
    In my system it is function group BUD0. It would be same in yours as well. Screen is 1520 for me, it may be something else for you. I would have done in module - 'pbo_1520'. Do it at the end of this module. Internal table name GT_BUT0ID
    You need to so something similar in ECC
    Cheers
    Niraj

  • How to mask SSN?

    I want to be able to mask a SSN that is displayed on a Form. For example, the user would enter nine digits for the SSN, but when displaying on the form and for printing purposes the field gets masked as ***-**-9999 for security purposes. When saving the SSN to the database the entire nine digits are captured.
    I tried to manipulate the Validation Pattern in the Display tab for that object to something like text{***-**-9999}, but nothing seems to work there. Has anyone else tried to do something similar? Any help is appreciated.
    Thanks,
    Mike

    Hi Mike,
    Patterns aren't intended to perform this kind of character replacement. Here is some code that will do the trick - the only catch is you will have to add a hidden field to hold the SSN for binding.
    I created 2 fields, form1.page1.subform1.ssnMasked and form1.page1.subform1.ssn. The exit script on ssnMasked is as follows:
    // form1.page1.subform1.ssnMasked::exit - (JavaScript, client)
    if (form1.page1.subform1.ssnMasked.rawValue != null) {
      var ssn = form1.page1.subform1.ssnMasked.rawValue;
      var regExp = /^(\d{9}|\d{3}-\d{2}-\d{4})$/;
      if (regExp.test(ssn)) {
        regExp = /^\d{9}/;
        if (regExp.test(ssn)) {
          this.rawValue = "***-**-" + ssn.substring(5,9);
          form1.page1.subform1.ssn.rawValue = ssn;
        else {
            this.rawValue = "***-**-" + ssn.substring(7,11);
            ssn = ssn.substring(0,3) + ssn.substring(4,6) + ssn.substring(7,11);
            form1.page1.subform1.ssn.rawValue = ssn;
    else {
      xfa.host.messageBox("SSN must be in the form 123-45-6789 or 123456789.","SSN Error",0,0);
      xfa.host.setFocus("form1.page1.subform1.ssnMasked");
    You can enter the SSN in form1.page1.subform1.ssnMasked as 123-45-6789 and 123456789, otherwise validation fails. If validation passes, both fields are re-constructed accordingly. The field for binding, form1.page1.subform1.ssn, will be in the format 123456789.
    Steve

  • I am trying to masked an SSN field depending on if yes is choosen or not

    Hi All, Good morning. I am working on a form that should display a masked SSN field in the format of XXX-X9-9999. I did come across the following script on the Adobe Designer forum, and apply it to my form creating two fields, and put the code on the exit event, but it is not working. Please what is wrong with the code, and is there any other way it could be done?
    if(form1.page1.subform1.Maskedfld1.rawValue != null) {  
    var ssn = form1.page1.subform1.Maskedfld1.rawValue;  
    var regExp = /^(\d{9}|\d{3}-\d{2}-\d{4})$/;  
    if (regExp.test(ssn)) {    
    regExp = /^\d{9}/;
          if (regExp.test(ssn)) {
          this.rawValue = "***-**-" + ssn.substring(5,9);
         form1.page1.subform1.Maskedfld2.rawValue = ssn;     }
          else {
              this.rawValue = "***-**-" + ssn.substring(7,11);
              ssn = ssn.substring(0,3) + ssn.substring(4,6) + ssn.substring(7,11);
              form1.page1.subform1.Maskedfld1.rawValue = ssn;
    } else {
       xfa.host.messageBox("SSN must be in the form 123-45-6789 or 123456789.","SSN Error",0,0);
        xfa.host.setFocus("form1.page1.subform1.Maskedfld1");
    Thanks
    v/r
    Tammy

    I tried the same code on a single field on exit event, with just one modification: Maskedfld2 replaced with Maskedfld1
    It does mask the value.
    Can you please be more specific as to what is the expected behaviour.
    Thanks

  • How to mask important data which will be exported?

    Hi experts,
    I have a request from a customer on how to  mask important data, when the data are exported. and how to mask important field according to the predefined conditions?
    Could you please give me some ideas how to implement them? or give me some documents?
    Thank you very much.
    Quentin

    Hi Rossi,
    Actually, these questions come from one client, and we do response offshore. I dont know what transactions are related for them. They just give me the questions like that. So Could you please help me ?
    Quentin

  • How to set Character field's Format Mask?

    dear all,
    how to set Character field's Format Mask?
    i searched the forum and found the following, where can i use this code and how to change and set its format mask.
    SRW.SET_FORMAT_MASK('mask');
    Thanks
    Muhammad Nadeem

    Nadeem,
    If you have database 10g, look into function REGEXP_REPLACE. Otherwise you can also try this (you might already know).
    SELECT SUBSTR('CHHOCMIPO07020001', 1,2)||'-'||SUBSTR('CHHOCMIPO07020001' ,3,2)||'-'||
    SUBSTR('CHHOCMIPO07020001' , 5,2)||'-'||SUBSTR('CHHOCMIPO07020001' , 7,3)||'-'||
    SUBSTR('CHHOCMIPO07020001' , 10,2)||'-'||SUBSTR('CHHOCMIPO07020001' , 12,2)||'-'||
    SUBSTR('CHHOCMIPO07020001' , 14,4)
    FROM dual
    CH-HO-CM-IPO-07-02-0001
    If you have to use this at many places, create a function, pass the raw value, manipulate the string and return.
    FS

  • Masking the SSN field in ESS.

    Hello Everyone,
    Can somebody help me in masking the SSN field in ESS.
    In ESS when we go to personal information Iview and click on Personal data and click on change; users are able to change the SSN field. and save the changes. Is there any table where I can disable this SSN field from changes and make it read only like Date of birth.
    We are using ESS Business package for 4.6c.
    Any help will be greatly appriciated.
    Thank you in advance!
    Sasi.

    Try once at this place.
    go to View V_T588M_ESS
    Enter The Function group.
    (To get the Function group go to view T77WWW_SC.
    Check the Function module for ticked for PZ13.
    Then go to se37 and put the FM name and then click GOTO->MAIN PROGRAM
    Now if ur program name is SAPLEHF5 then EHF5 is Ur function group.)
    and then U will find a screen after entering FUnction group where U can change the field attributes accordingly (Display, Edit, Hidden etc).
    What is the country for which U are displaying the personal data screen.
    ~ BiSu
    Message was edited by:
            Biswajit Das

  • How to mask Fields on CC&B Maintainance Pages

    Hi,
    I need to mask the fields in the Maintainance pages in Oracle CC&B.
    For Example: I don't want to use the Management Group field on Order and Account pages. Please suggest how can I make the field invisible.
    Thanks in advance.
    Akriti

    Hi,
    Create a jsp user exit for the Account main Page/Order Page.
    in the jsp user exit page, override the extPostOnWindowLoad function and include the code like below
    var mgntFld = document.getElementById("ACCT_MGMT_GRP_CD");
    mgntFld.style.display='none';
    the same way u can hide the "Management Group" label and Search option as well.....

  • How to pull stars for SSN field in PA30 screen

    Hi all,
    When user display the Employee Personal Details (0002) using PA30.
    I have to display the SSN field with stars.
    ex: If original SSN is        123 45 6789
         I have to display it as  ***   **  6789
    Thanks in advance

    The only thing I can think of is finding a BAdI or user exit (screen exit) in which this field can be accessed / changed. Otherwise you might be looking at a modification of standard SAP.
    Do you try and find some display options in customizing?

  • ESS webdynpro personal information iView SSN field

    Dear Support,
    I am working with Personal Data WebDynpro iView (sap.com/essuspdata/Per_Personal_US) in EP 6.0 SP18 and ECC 5.0.  Currently, the SSN field is editable.  How can I disable this feature. Please advise.
    Thanks,
    -Bharath

    Did you check this Masking the SSN Field in ESS Personal data iview. ?
    ~Suresh

  • How to mask data in oracle 11g database release 1

    how to mask data in oracle 11g database release 1
    my environment is
    Database: 11g release 1
    os: AIX 6 (64 bit)
    GC:10g release 1

    DBA-009 wrote:
    thx but how i can mask data with above give environment?What does "mask data" mean to you and what is the environment you are referring to?
    Telling us that you are using 11.1 helps. But it is far from a complete description of the environment. What edition of the database are you using? What options are installed? What Enterprise Manager packs are licensed? Is any of this changable? Could you license another option for the database or another pack for Enterprise Manager if that was necessary?
    What does it mean to you to "mask data"? Do you want to store the data on disk and then mask the data in the presentation layer when certain people query it (i.e. store the patient's social security number in the database but only present ***-**- and the last 4 digits to certain sets of employees)? Do you want to hide entire fields from certain people? Do you want to change the data stored in the database when you are refreshing a lower environment with production data? If so, do you need and/or want this process to be either determinisitic or reversable or both?
    Justin

  • Hide SSN Field

    HI Folks,
    How do we lock/hide SSN field to a ceratin user group in the PA30 and PA40 screens with out doing config chnages. Is there anything a security consultant can do? Please advise.

    One option is to use screen variants.
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/7d/f63a0d015111d396480000e82de14a/frameset.htm">Look at the SAP Help pages</a>
    Good luck
    //freppe

  • U.S.  SSN field validation

    I am using the trial version, turnkey install of LCES2.5.  Just encountered something strange.
    On my form, I use a standard U.S. Social Security Number field that comes with the product.
    When I save the form as a dynamic PDF, a stand-alone file, Reader-Extended it, everything worked fine.
    However, when I save the form as an XDP, and use it in a Process, and run it in the WorkSpace, it keeps popping up a message box, saying something like an operation has failed the validation of that field, and asked me if I want to ignore the error. 
    The only "operation" that I can see is that I have a line of javascript like this:
      ssnField.rawValue = "";
    and I checked the Validation tab of the SSN field, it has this:  text{999999999}
    So I took out the validation (the text{999999999}), then the popup went away.
    Why the different behavior?  why the script didn't cause the popup when it's a stand-alone PDF?
    what's the right way to initialize (make it empty) that field?   ssnField.rawValue = null; ?
    I am pretty sure that I have used the same script on the SSN field before (on some other forms in WorkSpace), and it didn't cause the popup warning before. So I am a little puzzled.  Why all of a sudden I get this popup warning?
    thanks.

    try67,
    Thanks for your reply. When you say to "remove the Submit action, and submit the form yourself inside your code" are you refering to the
    distributed forms "Submit Form" button displayed on the purple tool bar of the distributed form? And if so, could you please let me know how I can do that? I've
    looked into that and haven't found an answer. Doing that would solve my problem of having my own submit code acting correctly and the
    distributed forms "Submit form" code not having any idea about my forms desired field value.
    Thanks again,
    Tom

  • CRM 5.2 webclient -masking input field

    Hi all,
    i want to know how to mask a input field in Interaction center webclient in crm 5.2.
    ex: we have a input field for "telephone" which is 10 digits long, i want to mask it so that it accepts only 7 digits.....
    Regards,
    chandan
    Edited by: chandan rajgopal on Feb 6, 2008 6:00 AM

    HI Chandan,
    As per my understanding, the field is already available in UI. So the field must be available in the context node. To check it, you use F2 key to find the technical details of that from UI.
    So once you know the attribute and context name. Copy the   GETM_XYZ under that context node and rename it to GET_M_<Attribute name> .
    Sample code for get_m method is
    DATA: attr    TYPE BU_PARTNER.
      DATA: dref    TYPE REF TO data.
      GET REFERENCE OF attr INTO dref.
      metadata ?= if_bsp_model_binding~get_attribute_metadata(
           attribute_ref  = dref
           attribute_path = attribute_path
           name           = 'BP_NUMBER'  "#EC NOTEXT
         COMPONENT      =
           no_getter      = 1 ).
    Instead of BU_PARTNER, create another date element which matches with your requirement and use it.
    Regards,
    Manas.

Maybe you are looking for