Hiding a confidential field

Hello friends at www.oracle.com ,
is there a way for me to hide a field from other users when these users do a SELECT statement?
For example, let's suppose I have an USERS table with NAME and PASSWORD field, and one user type a SELECT * FROM USERS, obtaining the result below:
USER | PASSWORD
-----+---------
ABCD | LIFE2002
EFGH | OTHERPSW
Is there a way for me to hide PASSWORD field? For example, showing asterisks (*) instead the letters? I know this can be done by creating a VIEW, but I need to know if there are other ways to hide this field.
Best regards,
Franklin Gongalves Jr.

You might be able to do something with Fine Grained Access Control or Trusted Oracle, but it is likely to be a bit of overkill to hide one field.
A view is probably your best option. Unless you are able to make changes to the table structure and the way the application accesses the database. I would not store something like a password in clear text. The best way to store a password is to use a hash, which is a non-reversible encryption algorithm.
To implement this
Define your password field as a number.
To insert a new record into the table, you would use something like:
INSERT INTO USERS (id,password)
VALUES (123,DBMS_UTILITY.Get_Hash_Value('mypassword',10000,1000000));This will store 123, 367925 in the database. There is no way to turn 367925 back into mypassword.
To validate your user you would do something like:
SELECT 1
FROM users
WHERE id = 123 and
password = DBMS_UTILITY.Get_Hash_Value('mypassword',10000,1000000);If this returns no records, then either the id or password is incorrect so don't let the user in.
So, if someone sees the table users, they may try 367925 as a password. This will hash to 177428 which is obviously not the same.

Similar Messages

  • Hiding the some fields in print PDF adobe form

    Hi all
    Im working on travel expense form in webdynpro ABAP.I have a requirement of hiding some field in the  adobe form.Can anyone tell me how to proceed ?
    Thanks and Regards
    Reeha

    Hi Reeha,
    In case you need to use any script you may prefer formCalc script, which is very easy to use. You can use any script out of the two as per your understanding and comfort level.
    If you require more technical information about FormCalc, refer to the Adobe XML Forms Architecture (XFA) Specification, version 2.4, available from:
    [http://partners.adobe.com/public/developer/xml/index_arch.html.]
    and
    [http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf]
    Hope this helps you
    Regards,
    Gaurav Bhardwaj

  • Hiding cost? Field level security

    I am working for a client that wants to hide cost from the eyes of sales people. I am using the traditional method of analyzing each transaction that shows cost and determing if it can or can't be restricted with standard security. I am finding out that most of the time, you can't "hide" it with security. There are many transactions (ie: IW3*, DP80, DP90, MB03, etc) that is "all or nothing". Some transactions check objects (ie: MM03) that will allow you to do this. I am now tasked with researching other ways to do this. Is there any way to do this with security other than yanking every transaction away? Any third party products/services that do this? Any way to block the data off behind the scenes to everyone while allowing access for others? I thought about the possibility of creating an authorization object for this but I imagine that requires changing the code of many SAP programs.
    Any thoughts and suggestions are greatly appreciated.
    Thanks

    Hi Joe,
    I have a similar situation at one of my clients.
    We have used the following, depending on the transaction
    1. Transaction Variants (SHD0) - Hiding fields etc
    2. Enhancement Points - basically like user exits, you can put custom validations in standard code.  We have a good number of these where there are additional auth checks in place which toggle cost & price display in a wide range of transactions
    3. Copy standard transactions - there are a few situations where we have needed to create a copy of a standard transactions and change the code.
    4. Last but not least, standard authorisation concept.  Some tx let you hide prices via condition types, Purchasing can control price in the M_BEST* objects with activity 09 etc.
    For 2 & 3 we have used a single authorisation object which is referenced and allows display or no display of prices - quite easy to monitor.
    Cheers
    Alex

  • Confidential fields not hidden/encrypted

    DEAR SAP GURUS ,
    With SAP PPS we can unable users to access certain data before an RFx
    opening (e.g: supplier quote, field price of RFx response).
    Despite this, the user admin can use a standard transaction to access
    this confidential information before the RFx opening (e.g transaction
    BBP_PD for object type BUS2202)
    Anyone knows a solution that hides this data on SRM for any user before the RFx
    opening?
    Thank you very much on advance,
    Ricardo Pacheco

    Transaction BBP_PD reads from DB tables and presents the result to the user. The original purpose of this transaction was to support the SRM system by technical personnels. There is no built in data encyption capability offered by SRM, so as long as someone is able to access the Database, he/she could see the data. One workaround I could think of is to restrict the user access to the DB related transactions, e.g. BBP_PD, SE16, etc. through user profile/authorization/role establishment.

  • Hiding a data field in SAP Crystal Reports 2011

    Hello,
    I am new to SAP Crystal Reports 2011 (Crystal Reports).
    Does any one know how to hide a Special Field in a Crystal Report?
    Specifically, I am trying to hide the Special Field, 'Record Number'  from displaying on my report.
    I need the Special Field, 'Record Number' to know how many records was printed on my report
    in order to limit the amount of records printed while I am testing this new report.
    Thanks for the help!
    Tony

    Hi Tony,
    Yes to hide specific field, follow abhilash suggestion..
    1. Limit the number of records displayed on your report like that:
    section expert -> particular your report section -> click on suppress -> write below formula
    RecordNumber > Limited number of records count..
    2. limit the number of records  per page on your report follow below link:
    How to limit the no of records per page in crystal reports 2008
    Thanks,
    DJ

  • Hiding std infotype fields in coding.

    HI all,
    I have enhanced a standard infotype. I want to hide all the std fields when a particular subtype is selected. Instead, a new set of fields (fields added in the customer include structure) need to be shown.
    I have added logic to hide the standard fields in the module pool pgm ZP000600. But the std fields are still displayed when i view the infotype in PA30.
    loop at screen.
      if screen-name = 'P0006-ZLOCAT1'.
         screen-active = 0.
         modify scren.
      endif.
    endloop.
    But the same coding is working for custom fields..I.e. Custom fields are hidden. 
    Pls tell me how to hide the std fields through coding?.

    HI,
    If i write the coding in user exit, then the std fields are hidden only while i click 'CREATE' button and while clicking 'Change' or 'Display' button, again the standard fields are displayed again.
    So i tried writing the coding in the PBO of BADI (HRPAD00INFTY) implementation and the standard fields are hidden even in display and change more. But still i have some problem.
    That is, while i click create and enter the infotype start date, its ginving me some warning messages like 'This entry delimits the record'. 'This entry deletes a record'.. When i press enter after all these warning,  again the standard fields are getting displayed in the screen. At this time, none of the coding in exit and badi is called.
    Pls advice me how to solve this issue?

  • Hiding a table field

    I have a maintenance view for my custom table. I have a key field which i want to hide .
    In the layout,  the property is disabled,, i mean i cannot make it display->invisible ON.
    How to do this?
    do we have something like LOOP AT SCREEN here also .
    Reply at soonest.
    Regards
    Alok Pathak

    hii
    give a group G1 in the options field for the column field..
    then
    [1. define group name(s) for the columns to be hidden
    2. Add the following code...
    (define)
    controls tbl_ctrl type tableview ...
    wa like tbl_ctrl-cols.
    <b>loop at tbl_ctrl-cols into wa.
         if wa-screen-group1 = <group defined for the column>
            wa-invisible = 1.
            modify tbl_ctrl-cols from wa
        endif
    endloop</b>
    Regards
    Naresh

  • Hiding a input field in the F4 help...?

    hi,
    How can we hide a input field(selection criteria) in the F4 help.
    Eg- if we use standard serch help KRED_C for the field lifnr. i want to hide 'Name' from the filter criteria??
    Thanks

    Hi Pavan,
    It's a reccurring question in BSP forum that cannot be solved that easily...
    You will find some examples of how it can be handled in demo BSP :
    <b>bsp_valuehelp</b>
    <b>bsp_vhelp</b>     (this one is MVC-oriented)
    To go further, you should have a look at the following blog :
    /people/thomas.jung3/blog/2004/09/17/bsp-150-a-developer146s-journal-part-xii-150-value-input-help-popups
    /people/thomas.jung3/blog/2004/11/01/bsp-value-input-help-popups-version-20-part-1
    Hope it helps.
    Best regards,
    Guillaume

  • Hiding a Particular Field in Report Builder 6.0

    Hi Folks,
    In one of my reports which consists of several linked tables, I want a particular field to be omitted in the report output when there are no values for a record. Even the heading/prompt for that field/column should not be printed. I tried using the conditional formatting option but it does not work for the column heading and gives the following error:
    REP-1314: Format Trigger M_1 refernces column 'COMM' at wrong frequency.
    It only helps if we have the trigger at the field not at the heading.
    Any ideas???
    TIA
    Hassan

    One of the solutions is:
    make a summurized field (that will count the numbers of records - you'ld use a COUNT function) in the group above the target item and then in formating trigger of the frame you will test the number of the newest field (0 means zero records fetched).

  • Hiding and Unhiding Fields On The Selection Screen

    Hi Guys/Dolls
    I've managed to grey out and hide some fields on a selection screen within the AT SELECTION-SCREEN OUTPUT section but don't know how to re-instate them.
    basically on initial entry of the screen some fields are hidden but once I enter some pre-requisite data I need to display them but in a greyed out manner.
    I've done the first bit but don't know how to do the 2nd bit i.e re-display the fields.
    Any help would be appreciated.
    Many thanks in advance.
    Raj
    My code is as follows:-
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION POS_LOW.
    PARAMETERS: begcalsh LIKE t549q-begda MODIF ID pe4.
    SELECTION-SCREEN COMMENT (1) text-199 FOR FIELD endcalsh
    MODIF ID pe4.
    PARAMETERS: endcalsh LIKE t549q-endda MODIF ID pe4.
    SELECTION-SCREEN POSITION POS_HIGH.
    PARAMETERS: begrefsh LIKE t549q-begda MODIF ID pe5.
    SELECTION-SCREEN COMMENT (1) text-199 FOR FIELD endrefsh
    MODIF ID pe5.
    PARAMETERS: endrefsh LIKE t549q-endda MODIF ID pe5.
    SELECTION-SCREEN END OF LINE.
    AT SELECTION-SCREEN OUTPUT.
    * Grey out the parameters.
      PERFORM params_grey_in_out USING 'false' 'PE4'.
      PERFORM params_grey_in_out USING 'false' 'PE5'.
    * Hide the parameters.
      PERFORM params_show_hide USING 'false' 'PE4'.
      PERFORM params_show_hide USING 'false' 'PE5'.
    AT SELECTION-SCREEN.
      PERFORM params_show_hide USING 'true' 'PE4'.
      PERFORM params_show_hide USING 'true' 'PE5'.
    *&      Form  params_grey_in_out
    FORM params_grey_in_out USING value(iv_triggering_param)
                                     value(iv_screen_group).
    *this form activates fields with MODIF ID = IV_SCREEN_GROUP
    *if IV_TRIGGERING_PARAM eq TRUE and greys them out otherwise.
      DATA lx_input LIKE screen-input.
      IF iv_triggering_param EQ 'true'.
        lx_input = 1.
      ELSE.
        lx_input = 0.
      ENDIF.
      LOOP AT SCREEN.
        IF screen-group1 EQ iv_screen_group.
          screen-input = lx_input.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " params_grey_in_out
    *&      Form  params_show_hide
    FORM params_show_hide USING value(iv_triggering_param)
                                     value(iv_screen_group).
    *this form displays fields with MODIF ID = IV_SCREEN_GROUP
    *if IV_TRIGGERING_PARAM eq TRUE and hides them otherwise.
      DATA lx_active LIKE screen-active. "(1) type n.
      DATA lx_invisible LIKE screen-active. "(1) type n.
      IF iv_triggering_param EQ 'true'.
        lx_active = 1.
        lx_invisible = 0.
      ELSE.
        lx_active = 0.
        lx_invisible = 1.
      ENDIF.
      LOOP AT SCREEN.
        IF screen-group1 EQ iv_screen_group.
          screen-invisible = lx_invisible.
          screen-active = lx_active.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " params_show_hide

    hi u use this logic
       LOOP AT SCREEN.
          IF screen-group1 = 'GR3'.
            screen-active = 1.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = 'GR2'.
            screen-invisible = 0.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.

  • Hiding selection screen fields upon clicking a button

    Hi .
    I have a requirement like we need to hide and bring back the selection screen fields upon clicking a button( Expand and collapse in the same button) .
    in ABAP Query,we can maintain this,  for the variant we created.
    We need this functionality on the selection-screen presently.
    How to achieve this in the selection -screen?
    Valuale pointers are desparately needful.
    Regards,
    SSR.

    Hi,
    SELECTION SECREEN (P_) Parameter
    (S_) Select Options
    SELECTION-SCREEN : BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001,
    BEGIN OF LINE,
    COMMENT (26) C1 MODIF ID XYZ.
    SELECT-OPTIONS : S_MATNR FOR MARA-MATNR MODIF ID XYZ NO-EXTENSION .
    SELECTION-SCREEN : END OF LINE,
    BEGIN OF LINE,
    COMMENT (26) C2 MODIF ID XYZ.
    SELECT-OPTIONS : S_MATKL FOR MARA-MATKL MODIF ID XYZ NO-EXTENSION .
    SELECTION-SCREEN : END OF LINE.
    PARAMETERS : R_MATNR RADIOBUTTON GROUP RAD1 DEFAULT 'X'
    MODIF ID ABC USER-COMMAND MAT,
    R_MATKL RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN END OF BLOCK blk1.
    INITIALIZATION.
    C1 = 'Product Code'.
    c2 = 'Product Group'.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-NAME0(7) = 'S_MATNR' OR SCREEN-NAME0(7) = 'S_MATKL'.
    SCREEN-INPUT = '0'.
    SCREEN-INVISIBLE = '1'.
    ENDIF.
    CASE SCREEN-NAME+0(7).
    WHEN 'S_MATNR'.
    IF R_MATNR = 'X'.
    SCREEN-INPUT = '1'.
    SCREEN-INVISIBLE = '0'.
    ENDIF.
    WHEN 'S_MATKL'.
    IF R_MATKL = 'X'..
    SCREEN-INPUT = '1'.
    SCREEN-INVISIBLE = '0'.
    ENDIF.
    ENDCASE.
    IF R_MATNR = 'X'.
    IF SCREEN-NAME = 'C1'.
    C1 = 'Product code'.
    C2 = SPACE.
    ENDIF.
    ENDIF.
    IF R_MATKL = 'X'.
    IF SCREEN-NAME = 'C2'.
    C2 = 'Product Group'.
    C1 = SPACE.
    ENDIF.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    Hope it helps.
    best regards,
    Nagaraj Kalbavi

  • ESS Personal Information Address- hiding of custom fields not working

    In the personal address of ESS we had added four extra fields for communication.
    We need to hide the fields when value is zero.
    The coding is written in wdDoModifyView of Reviewview in VcPerAddressUSReview
    we will get the value of Communication fields like below.Com01 is the context name for communication
    String com1 = wdThis.wdGetContext().currentSelectedInfotypeElement().getCom01();
    After that if com1 is zero we are trying to hide the fields in that line
    by  creating a Context node Fcom01 of type com.sap.ide.webdynpro.uielementdefinitions.Visibility and setting Fcom01 to NONE as below.
    WDVisibility  vsble = wdContext.currentFlagsElement().getFcom01() ;
    wdContext.currentFlagsElement().setFcom01(vsble.NONE);
    and Fcom01 is linked in the prpoerty of visible condition of comm fields
    No error is showing but when we run  it is showing a Null pointer exception
    in portal for the Review page.
    Thanks and regards,
    Safeer.I

    Hello,
    are you checking that com1 is actually populated
    do a check like:
    if (com1 == null || com1.equalsString("0") )
    blah
    Sorry - syntax is unlikely to be correct - but hopefully you get the idea - just because you retrieve a value from the context does not mean that it is non-null.
    Cheers,
    Chris

  • Problem hiding a text field

    Hi,
    For some reason I am unable to hide a text field by clicking on a button. This is what I'm doing:
    txtField.presence = "hidden";
    I'm using javascript and I can hide other buttons if I set their presence to "invisible", but I cannot hide a text field at all. Am I missing something here?
    Thanks,
    Chad

    Make sure the reference path to your text field is relative to the button's location on the hierrachy tree. The way you have it, I assume the button and the text field is under the same parent container or level.

  • Hiding the Selected field in the Crystal reports 2011

    Hi Experts,
              I am new to the Crystal reports. How to hide the Selected Field in the Crystal report 2011.
    Thanks,
    Kavya.C

    Hi Kavya,
    You can right click on the field, go to Format Field -> Common Tab. Select/Check the option "Suppress". Or if you want to hide/ Suppress the entire section in a Crystal Report, for e.g. Detail section, right click on Details Section and select Section expert. You can select Hide/Supress accordinly.
    That should hide the filed/Section when you run the report.
    - Kuldeep

  • Hiding and Protecting Fields for Input in SRM 4.0 (BSP) Shopping Cart

    On the Shopping Cart transaction(s) BBPSSC01 to BBPSSC03, the HTML templates are under ITS SERVICE BBPACCOUNT, and the main HTML template is called saplbbp_pdh_acc_2000_1. We want to grey out the G/L Account field and hide the business area field.Is there any other way to satisfy this requirement besides making an actual change to the HTML/BSP page and publishing. After researching this for quite a while I could not find another mechanism to grey out or hide fields. If the page has to be changed it looks like they have a code check if the field is disabled, can we simply set that field to true and the field will be Greyed Out and protected from input?
    SAP ECC 5.0 WAS 6.40
    Thanks

    Rb,
    Did you come up with a solution to your problem? I am wanting to do exactly what you have described in your message. The only way that i can think of is:
    To create a Screen Variant using transaction code SHD0 for those transaction codes i.e. BBPSC01 etc.
    SAP ECC 5, WAS 6.4, SRM server 5 / EBP 5

Maybe you are looking for

  • Problems with root_archive unpack / pack

    Hi folks, I am trying to build a bootable CD ROM based on the 10/08 release of Solaris 10. Having mounted the Solaris DVD as an hsfs filesystem I have cpio'ed the files I think I need to a writable directory on my hard disk (directory -- /export/home

  • Changing settings for users

    I have locked down some (most of the users and do not allow them to set 'General Settings' for instance. I now want to set some settings for them like 'Screen Locking' .... and there is no GUI in SAP where I can set this for other users (as manager).

  • Best Option for Creating a Development Database

    hi experts, This is 10.2.0.4 on Windows. My test server already has a database used for testing purposes. I want to "clone" that database and create a separate database on the same server to be used by the developers. After I make a consistent/whole

  • Can't find any of my contacts

    I have just restored my iphone 3GS and upgraded to ios 5.1 but all my contacts have gone missing. Every other thing is there including call history and messages (just the numbers, no names). I have snyched my phone numerous times but the contacts sti

  • Scanning Chinese Text with Snow Leopard

    Has anyone had a good experience with a Snow Leopard-compatible OCR program that they have used to scan Chinese (simplified) text? I have used ReadIris with previous Mac systems, and have found it to be a highly unstable program that crashed frequent