Giving Read access to key fields explicitly

Hi sap gurus,
How to give read access to key fields explicitly

Hi and thanks for the response.
The user has 2 security groups.
The first allows them "All" access to their entity, default and the RD security class for R&D accounts.
This group means they have read/write access to all accounts, which for their own entity is acceptable.
If in the second group I give them read access to all entities then they can read all accounts for all entities.
I need to stop them from seeing all accounts except the RD accounts for the other entities.
Is this possible?

Similar Messages

  • Read Table with key field - question

    Hi,
    Can you use the same key field more than once?
    For example:
      READ TABLE I_TVKWZ INTO I_TVKWZ_2 WITH KEY WERKS = '1004'
                                                                                    Werks = '1002'.
    I get an error when trying this.
    Is there an alternative?
    Thanks,
    John

    Hi John,
    try this:
    DATA: begin of itab occurs 0,
            werks like mseg-werks,
            i     type i,
          end   of itab.
    itab-werks = '1000'. itab-i = itab-i + 1. append itab.
    itab-werks = '1000'. itab-i = itab-i + 1. append itab.
    itab-werks = '2000'. itab-i = itab-i + 1. append itab.
    itab-werks = '3000'. itab-i = itab-i + 1. append itab.
    itab-werks = '5000'. itab-i = itab-i + 1. append itab.
    itab-werks = '5000'. itab-i = itab-i + 1. append itab.
    itab-werks = '7000'. itab-i = itab-i + 1. append itab.
    itab-werks = '7000'. itab-i = itab-i + 1. append itab.
    itab-werks = '9000'. itab-i = itab-i + 1. append itab.
    itab-werks = '9000'. itab-i = itab-i + 1. append itab.
    itab-werks = '9000'. itab-i = itab-i + 1. append itab.
    loop at itab where werks = '1000' or werks = '9000'.
    write: / itab-werks, itab-i.
    endloop.
    Regards, Dieter

  • Read statement with repeated key field

    Hi Experts ,
    We  are in the process of UCCHECK in an upgrade program and come across an issue with read statement using repeated key fields which is not allowed in a unicode compatable environment.
                READ TABLE it_vbpa WITH KEY
                                          vbeln = l_vbeln
                                          parvw = '0'
                                          parvw = 'ZN'.
    I checked this in 4.6c environment and observed that the Read statement uses the last key value for reading and doesnt consider other values even if the last value is not present in the table  .
    I want to know if I can use only that last value for read statement ? If so, what was the use of the repeated key fields in a read statement?
    Thanks and Regards
    Sanu

    Hi,
    Your main aim in a upgrade would be to successfully replicate the 4.6x functionalities in the ECC 6 version with the unicode checks. So it would be a safe option to only consider the last key condition. I dont have access to a 4.6C environment. May be it was a mistake corrected by SAP in the new version.
    Vikranth

  • No read access to field string MKPF in SLIN

    Hi Friends,
    while checking my program through extended program check it is giving warning message as "No read access to field string MKPF" in the TABLES statement. How to correct this?

    Hi
    The system is just only giving warning as if said to you:
    - Hey Abaper! You have declared to use the headerline of MKPF, but perhaps you aren't using it. Check your code and if you don't use you delete that declaretion.
    So if you don't use MKPF in your program, you can delete the declaretion, if you use it you can do nothing or you put the string "#EC NEEDED at the end of declaretion. If you do it, while checking program through extend program check, the system skips that message and doesn't show you.
    We often use header line of dictionary table only to do an existence query, in this case the system can give that warning message.
    For example:
    TABLES: BKPF.
    SELECT SINGLE * FROM BKPF WHERE BUKRS = P_BUKRS
                                AND BELNR = P_BELNR
                                AND GJAHR = P_GJAHR.
    IF SY-SUBRC = 0.
      WRITE: 'Hello'.
    ENDIF.
    So I made a query on bkpf, but after I haven't read or used its headerline, so the system give me that message.
    If I write:
    SELECT SINGLE BUKRS FROM BKPF INTO P_BUKRS
                              WHERE BUKRS = P_BUKRS
                                AND BELNR = P_BELNR
                                AND GJAHR = P_GJAHR.
    IF SY-SUBRC = 0.
      WRITE: 'Hello'.
    ENDIF.
    I've done the same thing but now I haven't declared to use the headerline BKPF and so the system won't give me that warning message.
    Max
    Message was edited by: max bianchi
    Message was edited by: max bianchi

  • Warning: No read access to field XYZ

    Hello Experts.
    How can I  eliminate such a warning message ?
    No read access to field XYZ
    Regards
    sas

    hi
    good
    you have not mentioned where exactly you r getting this error,if you r getting as a message end of the screen than yo u have to debug the report and see where it is actually giving the message or wheather they have create da test it,
    thanks
    mrutyun^

  • We have adobe acrobat pro installed on our computer  - we have changed the password - but it is still not giving us access to update our adobe reader. The name is showing as Marriner. Is this linked to our account?

    We have adobe acrobat pro installed on our computer  - we have changed the password - but it is still not giving us access to update our adobe reader. The name is showing as Marriner. Is this linked to our account?

    What is your operating system?
    To install/update Adobe Reader or Acrobat you need to supply your computer's Administrator password.

  • How to read an internal table with more than  one (2 or 3) key field(s).

    how to read an internal table with more than  one (2 or 3) key field(s). in ecc 6.0 version

    hi ,
    check this..
    report.
    tables: marc,mard.
    data: begin of itab occurs 0,
          matnr like marc-matnr,
          werks like marc-werks,
          pstat like marc-pstat,
          end of itab.
    data: begin of itab1 occurs 0,
          matnr like mard-matnr,
          werks like mard-werks,
          lgort like mard-lgort,
          end of itab1.
    parameters:p_matnr like marc-matnr.
    select matnr
           werks
           pstat
           from marc
           into table itab
           where matnr = p_matnr.
    sort itab by matnr werks.
    select matnr
           werks
           lgort
           from mard
           into table itab1
           for all entries in itab
           where matnr = itab-matnr
           and werks = itab-werks.
    sort itab1 by matnr werks.
    loop at itab.
    read table itab1 with key matnr = itab-matnr
                              werks = itab-werks.
    endloop.
    regards,
    venkat.

  • How to read from an internal table with multiple key fields.

    Hi All!!
    I want to read from an internal table having keys as k1,k2,k3.
    How can I use read statement to read an entry having this as the key fields.
    Thanks in adavance..
    Prabhas Jha

    hi there
    use:
    sort itab by K1 K2 K3.
    read table itab into wa with key K1 = value 1
                                                  K2 = value2
                                                  K3 = value 3
                                                   BINARY SEARCH.
    where:
    itab is ur internal table
    wa is the work area with the same line type as the itab
    cheers
    shivika

  • How to read an internal table by comparing the values of key fields

    hi ,
      i want to read internal table with multiple  values for the key field . can anyone suggest the syntax or method for doing this,
    thanks in advance.
    regards,
    manoj

    Hi,
    Read statement will read only one value at a time..
    You can only compare with different values.
    example :
    read table it_mara into wa_mara with key matnr = '1000'
                                                                        matnr = '2000'
                                                                        matnr = '3000'.
    if all the 3 records are found in the internal table then it will read the 1 record.
    Regards
    Satish Boguda

  • Reading data from BSEG table with Non-key fields in where clause

    Hi All,
        I have to read data from BSEG table based on WBS element field (PROJK). As I'm not passing key fields to WHERE clause system couldnt run the select statement. Since BSEG is a cluster table I cant even create secondary index on PROJK field.
       Could you please tell me, how to improve its performance.
    Regards
    Jaker.

    SELECT bukrs
                 belnr
                 gjahr
                 shkzg
                 dmbtr
                 hkont
                 lifnr
                 matnr
                 werks
                 menge
                 meins
                 ebeln
            FROM bseg
            INTO TABLE it_bseg
            PACKAGE SIZE 10
            FOR ALL ENTRIES IN it_final
            WHERE  bukrs EQ it_final-bukrs
               AND belnr EQ it_final-belnr
               AND gjahr EQ it_final-gjahr
               AND buzei EQ it_final-buzei
               AND hkont EQ it_final-hkont
               AND werks IN s_werks.
    By using package and fetch from BSEG table. gathering all other information to a final internal table.This will reduce the hit to database.And also try to put that data in hashed internal table which is it_bseg....then definetly improve the performance.
    <REMOVED BY MODERATOR>
    Dara.
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 12:47 PM

  • No read access to field string

    TYPES:  BEGIN OF addr,
            adrnr TYPE adrc-addrnumber,
            END OF addr.
            i_addr               TYPE TABLE OF addr,
            wa_i_addr               TYPE addr,
    After executing extended program check I get the following. What does it mean and how do I fix this.
    <b>No read access to field string WA_I_ADDR
    (The message can be hidden with "#EC NEEDED)</b>

    Hi,
    Please try this.
    TYPES: BEGIN OF addr,
             adrnr TYPE adrc-addrnumber,
           END OF addr.
    DATA:  i_addr    TYPE addr,
           wa_i_addr TYPE addr.
    Regards,
    Ferry Lianto

  • No read access to field L_C_ATINN

    Hi
    I have the following error
    No read access to field L_C_ATINN
    for the code
    data: l_c_atinn TYPE cabn-atinn.
    in SLIN check please advice how to avoid this

    Kittu,
    We can use comment #EC NEEDED  to make the message ignore as the variable is used.
    Declare as below.
    data: l_c_atinn TYPE cabn-atinn.    "#EC NEEDED
    Kind Regards
    Eswar

  • Exception: non-read-only mapping defined for the primary key field

    Hello.
    I'm new to Oracle and I created Java EE Web Project.
    And I created entities from tableA, tableB, tableC from my database.
    tableA has foreign key to tableB and has unidirectional Many-to-One relationship. tableC has two primary keys and one of these is foreign key to primary key in tableA. tableC also has unidirection Many-to-One relationship to tableA.
    Then I created session bean and data control from it, in design window, created read-only table from tableA.
    And I selected columns in tableA and also in tableB.
    I ran the application and saw the following exception in log window.
    Local Exception Stack:
    Exception [EclipseLink-46] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: There should be one non-read-only mapping defined for the primary key field [tableC.tableA_ID].
    Descriptor: RelationalDescriptor(mypack.tableC --> [DatabaseTable(tableC)])
    tableA_ID is a primary key in tableA.
    How can I solve this error?
    Please help me.
    Edited by: 900471 on 2011. 12. 3 오전 5:32
    Edited by: 900471 on 2011. 12. 3 오전 5:33
    Edited by: 900471 on 2011. 12. 3 오전 5:33
    Edited by: 900471 on 2011. 12. 3 오전 5:34

    There are not enough details to be sure since you have not provided the mappings. From just the error, it looks like you are using the tableC.tableA_ID field as the foreign key in the ManyToOne relationship to A, but have marked it as insertable=false, writeable=false, meaning that it cannot be updated or used for inserts.
    Either make it writable (set the settings to true), or add another basic mapping/attribute in the entity for TableC that maps to the field which you can use to set when you insert a new tableC entity. A simple example is available at
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/2.0/DerivedIdentifiers
    Best Regards,
    Chris

  • How to use Read table with out key fields

    Hi Experts,
    I need to retrieve the 2 internal tables data into single table.
    I have 3 common fields between the 2 tables but I don't have the Key fields. Then how to use the read table in this.
    Thanks in Advance.
    Edited by: satish4abap on Mar 10, 2010 9:39 AM

    Hi Satish,
    Key fields are nothing but the common fields with which you can pick the data from the second internal table.
    If you can paste your Internal table fields then we will be able to assit you better.
    However, in genral scenarios you can use it as below :
    In this scenario, we are putting data from 3 internal table to another single internal table.
    LOOP AT T_PRGEN INTO WA_PRGEN.
           WA_FINAL-GUID_PR       = WA_PRGEN-GUID_PR.
           WA_FINAL-ATTR20A       = WA_PRGEN-ATTR20A.
           WA_FINAL-ATTR05A       = WA_PRGEN-ATTR05A.
           WA_FINAL-ATTR05B       = WA_PRGEN-ATTR05B.
           WA_FINAL-ATTR05C       = WA_PRGEN-ATTR05C. " + DG1K902190
           WA_FINAL-ATTR10A       = WA_PRGEN-ATTR10A.
        READ TABLE T_V_TCAV201 INTO WA_V_TCAV201 WITH KEY ATTRV20 = WA_PRGEN-ATTR20A BINARY SEARCH.
        IF SY-SUBRC = 0.
          WA_FINAL-TEXT1   = WA_V_TCAV201-TEXT1.    "SUBID-TEXT1
        ENDIF.
        READ TABLE T_PNTPR INTO WA_PNTPR WITH KEY GUID_PR = WA_PRGEN-GUID_PR BINARY SEARCH.
        IF SY-SUBRC = 0.
           WA_FINAL-PRVSY  = WA_PNTPR-PRVSY.   "PROD NO
           WA_FINAL-GRVSY  = WA_PNTPR-GRVSY.   "LOGICAL SYS GROUP
        ENDIF.
      append wa_final to t_final.
    endloop.

  • Giving a user read access to an account for all entities

    Dear All,
    We have a series of R&D accounts that a user with limited entity security needs to review for all entities.
    We have security switched on for Accounts and Entities only.
    All entites have security classes defined, only the R&D accounts have a security cless defined (all other accounts ahve a balnk security class).
    The user is not allowed to see any other accounts for the entities which they have no access to.
    is it possible in HSS to create an access path which allows a single user to view/read an account for entities which they have no other access rights to?
    Thanks.

    Hi and thanks for the response.
    The user has 2 security groups.
    The first allows them "All" access to their entity, default and the RD security class for R&D accounts.
    This group means they have read/write access to all accounts, which for their own entity is acceptable.
    If in the second group I give them read access to all entities then they can read all accounts for all entities.
    I need to stop them from seeing all accounts except the RD accounts for the other entities.
    Is this possible?

Maybe you are looking for

  • Constant problems and no luck getting BT to take r...

    I can't describe just how fed up I am of BT, our phone/broadband service and their customer service. We have never, ever had this kind of trouble with any other supplier. You see, at the start of July our internet was all but down for a whole week (f

  • Unit of measurement problem while converting SC to PO - Classic

    Hi We are using Classic scenario and on SRM 3.0 with SAP 4.70 The problem: User created shopping cart with qty of 3.24 EA, when we convert this Shopping cart as PO in backend SAP system is removing decimal places in PO and making as 3 EA.  Like wise

  • RFFOEDI1

    Hi all, Can any one please explain the use of RFFOEDI1 program. Is this program used just to generate I-Doc? Scenario: For Check payment method(C)        Once F110 run is successful, then we have to run RFFOUS_C program to generate checks. Once this

  • How to include in table of contents the list of figures and list of tables?

    How to include in table of content the "Table of contents", "List of figures" and "List of tables"? All are generated with function Table of contents, but they will not appear in generated table of contents even if they have proper style of headings

  • One to Many table level replication

    Hi All, I was configuring Streams replication between one table to many(3) tables in the same database(10.2.0.4) Below figure states my requirement.                                     |--------->TEST2.TAB2(Destination)