Setting a structure to read only with PCUI lists

Hi all,
I  have to set the complete list of pricing conditions  to read-only for certain order types. Only quantity on item level should be allowed to change and invoke price changes.
I thought it would be pretty straight forward by using the field group variants functionality but I am starting to wonder if I am on the right track here.
This is what I've done so far
- copied the SAP field group PRC_CONDITIONS_IT to a ZPRC_CONDITIONS_IT
     -included FG PRC_CONDITIONS_IT in ZPRC_CONDITIONS_IT
     -created a new variant ZREADONLY for ZPRC_CONDITIONS_IT with read only set
- set the flag on the Field group ZPRC_CONDITIONS_IT that the variant exist
- generated the layouts correctly
- created class ZCL_CRM_BSP_AM_ITEMPRC_1O with the class CL_CRM_BSP_AM_ITEMPRC_1O as super
     -implemented my own method GET_FIELDGROUP_VARIANT and set 'ZREADONLY ' where appropriate
- changed the MAC for CRMT_BSP_PRC_UI into ZCL_CRM_BSP_AM_ITEMPRC_1O
- changed the application layout  and replaced the FG PRC_CONDITIONS_IT with ZPRC_CONDITIONS_IT .
All data is still displaying correctly but....
according to the debugger, the ZPRC10  method is implemented but the method GET_FIELDGROUP_VARIANT is never called neither from the super nor from my ZPRC10.
as a test I've set my default  FG ZPRC_CONDITIONS_IT also to read only but that didn't work . Fields are still open for change.
Can we actually set a complete structure to read only / inherited field group or does this have to be done at field level?
Cheers  & thanks for your time
Eelco

Hi Felco,
  In the method IF_CRM_BSP_MODEL_ACCESS_IL~READ of the class associated with your structure(MAC) you have a parameter ET_FIELD_ATTRIBUTE in this you can mark the fields with this properties:
A     Not Changeable
B     Not Relevant
C     Mandatory Field
Regards.
Manuel

Similar Messages

  • Setting my fone to read only nokia 6111

    iv transferred a song via bluetooth 2 my nokia 6111 n now i want 2 delete it as its taking up alot of memory, however my fone wont let me delete it. Iv got in contact wit the maker of my bluetooth device n they said i need 2 get in contact wit nokia as my fone isnt set 2 read only, which means i cant delete or modify things i put on my fone. Ne ideas how to set my fone 2 read only??!!! x x

    Each class normally does have a method "FREE" named "Destroy"
    Normally it should be enough to clear the object reference.
    if it's still not working, try to copy your report and eliminate all stuff that has nothing to do with this problem. if you do not find the error then, pls post this coding.

  • How can i set a form to read only when a checkbox it checked?

    How can i set a form to read only when a checkbox it checked?

    Hi,
    If you search the forums for Paul's example LockAllFields. This contains a function in a script object that you can call from the click event of the checkbox.
    Re: Saving Fillable Form as non-fillable PDF
    Good luck,
    Niall
    Assure Dynamics

  • Setting Default permission to Read Only

    Hi,
    When sharing access to a User, when clicking on the "Share" option, by default the page shows the group which has "Contribute" access. Is it possible to set the default to "Read Only" or the Visitors group.
    Thanks

    Try:
    Site Actions > Site Permissions > click the Visitors group link > Settings < Make Default Group
    Click OK
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • SQL Query (Updateable Report) conditionally set a column read-only with lov

    Hi
    I'm attempting to set a column that has a select list lov read-only if there is existing data in the column otherwise permit the end-user to enter a value using the select list.
    I've looked at Re: A better method of handling tabular forms with variable column type? and using this code as an example it almost works, except the select list lov button is still active and therefore the data can be changed. How does one conditionally disable the select list lov button in Javascript?
    TIA

    In the JS code where you make the field readonly, add another line to hide the lov opener link ( in jQuery it would be *$('<selector>').hide()* ).
    If you can provide the HTML code from your page for such a column (the JS code would depend on the template/theme), I can try helping.

  • Oracle 9.2.0.2 fails open read only with java exception

    Hi folks!
    I hope you can help me to narrow down this issue.
    I've a database running on windows 2003 64 bits. Oracle version is 9.2.0.2.
    I'm experiencing the following issue:
    When I try to open my database in read only mode, it crashes with ORA-604 and ORA-16000.
    The trace is pointing me to some kind of connection to an SQL Server...., but, to tell truth, I'm not understandig the problem, can anyone help me?
    The error itself is:
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]No ResultSet set was produced.
    Thanks!

    I know this is not an tail -f 50 ...., but the last 100 lines are equals to the following:
    "starting up 1 shared server(s) ...
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    ARCH: STARTING ARCH PROCESSES
    ARC0 started with pid=12
    ARC0: Archival started
    ARC1 started with pid=13
    ARC1: Archival started
    Sun Aug 22 21:36:12 2010
    ARCH: STARTING ARCH PROCESSES COMPLETE
    Sun Aug 22 21:36:12 2010
    ARC0: Thread not mounted
    Sun Aug 22 21:36:12 2010
    ARC1: Thread not mounted
    Sun Aug 22 21:36:13 2010
    ALTER DATABASE MOUNT
    Sun Aug 22 21:36:17 2010
    Successful mount of redo thread 1, with mount id 1255534413.
    Sun Aug 22 21:36:17 2010
    Database mounted in Exclusive Mode.
    Completed: ALTER DATABASE MOUNT
    Sun Aug 22 21:36:32 2010
    alter database open read only
    Sun Aug 22 21:36:34 2010
    SMON: enabling cache recovery
    Sun Aug 22 21:36:34 2010
    Database Characterset is WE8ISO8859P1
    Sun Aug 22 21:36:37 2010
    Errors in file c:\oracle\admin\orcl\udump\orcl_ora_32704.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-16000: database open for read-only access"
    Obviously, with the details of the startup.
    One additional detail:
    After that errors, I started the database on restrict mode, and it opens (I fact, this is not surprising, I was expecting that result)
    I'll keep working on this....

  • How can I interchange a Toshiba external drive with my Mac and Windows? It only works read only with the Mac.

    I bought a Toshiba external drive IT and I can copy files to it from my Macbook Pro 5,3. I would like to know how canI interchange files with Windows and the Mac.

    If the disk is read only, it is formatted for Windows and the Mac can't write to it
    Reformat to FAT32
    This will of course wipe all data so move it first
    Allan

  • External drive goes read only with error -50 after time

    Running the special release of 10.8.2 for Mac Mini (2012) that was recently released.  I have two external USB drives.  The first contains my iTunes collection and the second is my time machine backup disk.  The iTunes drive seems to go read only after it's been mounted awhile.  I can read files off the drive, but I can't make any changes.  I can't delete files nor edit them. 
    If I try to do anything with the disk including a repair permissions or disk on it, I get an error -50.   The only way to get out of this state is to unmount the drive and remount it forcibly or reboot. 
    Anyone have ideas on what is going on or experienced a similar issue?  

    I did a little more research and there are quite a few people who've seen this error.  I don't think it's the drive. 
    I suspect the controller in the enclosure, a jmicron 0x2336, is responsible for my problems.  It looks like Linux and FreeBSD both had software updates to work around bugs in the controller.  If OS X did not get updated, it would explain everything. The drive sleeps and then won't wake up fully and OS X marks it as in error and goes read only. 
    The enclosure is a Thermaltake Silver II USB + esata.  It looks like a lot of people have had similar problems with them.  I saw posts on macrumors, adobe's support forums, etc.

  • 10.5.5 sets external volume to read-only

    Bizarre.
    I have 4 external volumes (2 FW800, 2 USB 2.0) and one of the volumes suddenly shifted to read-only status after updating to 10.5.5 this afternoon. At least, that's the error message I get when I try to touch a file anywhere on the volume.
    Problem started when I tried to open iTunes and got the error message "The folder 'Music' is on a locked disk or you do not have write permissions for this folder." Get Info indicates that this user account does, in fact, have Read & Write permissions. Group and Other permissions are set to Read Only. Get Info does not allow me to select the lock to make changes, however, but nor is the "Locked" checkbox selected.
    In Terminal, permissions for Volume "Little Brother" are indicated as:
    drwxrwxr-x 11 <adminuser> staff 442 Aug 13 13:11 Little Brother
    The Music folder in question appears to have the appropriate permissions as well:
    drwxr-xr-x 14 <adminuser> staff 476 Sep 18 11:17 Music
    Aside from the 10.5.5 update there have been no changes to the filesystem, and no files written to this drive.
    I can touch files on each volume except for "Little Brother". Aside from chmodding the **** thing, does anyone have any recommendations for what I can do?
    Thanks.

    I think Ill just keep responding to this, every time Apple issues an update (patch) that causes the problem to resurface. I have contacted tech support. And they tell me they no nothing about this and have never heard about it. Then I tell them to check my support records. The issue is well documented there and goes back for many, many months.
    So, today I came home to find that apparently my software update utility (which is set to NOT update the software) has updated my software. My brand new Western Digital external 2TB disk is off line and my Time Machine drive (1.5TB Maxtor) now appears to be completely after being kicked from the USB ever friggin time there is a software patch.
    I'm trying one last time to recover following the procedure above - but once again I am running the procedure above against my 2TB user disk - so hopefully in 8 or 12 hours Ill know something. Thanks again to all the Windows developers who are now obviously working at Apple.

  • Make flash drive read only with no copying

    Here is the Situation. I have a 2h video of a high school play that i am editing and selling but with final cut you can only export 480 p video on dvd so i am going to sell hd digital copies on flash drives my question is can i make it so that the flash drive are read only and copy protected so it can't be distributed can i format  the flahs drive insuch a way  a way that prevents copying?

    jfoppes wrote:
    …  can i format  the flahs drive insuch a way  a way that prevents copying?
    technicallly, to playback you have to 'copy' content (from stick/disk/whatever to device) ....
    So, the harder you make it to 'copy protect' your content, the more inconvenient it gets for your paying customers!
    for example, on commercial DVDs I'm 'forced' to watch minutes of promos and 'legal advice', talking to me like I'm a 1st degree suspect No fun! And: When I like to watch/listen on diff. devices. again trouble to 'rip' it (anyone remembering the first slogan for iTunes? "Rip.Mix.Burn." Holy innocence ........... LOL
    Forget the few copy-cats. Convince by quality (e.g. spelling ) .
    Deliver an excellent product, perhaps bundled with some 'extras' (a nice designed box, with pics/t-shirt/memorabilia/…)  And, hey - who copies a school-play????

  • Time Machine sets Lacie as a Read Only Device

    I found the threads that suggest the verify / repair permissions and that cleared the "Read Only" problem. However, I am getting often errors just launching the "Disk Utility" from the main hard disk (not the Time Machine Lacie) with this crash dump.
    It appears that Disk Utility getting device info prior to launch about all available hard disks in the Imac and Lacie is giving problems. as listed at the
    bottom of the crash dump.
    Any thoughts?. Bad disk?
    Thanks
    Francis.
    Process: Disk Utility [397]
    Path: /Volumes/LaCie/Applications/Utilities/Disk
    Utility.app/Contents/MacOS/Disk Utility
    Identifier: com.apple.DiskUtility
    Version: 10.5.8 (198.16)
    Build Info: DiskUtility-1981600~17
    Code Type: X86 (Native)
    Parent Process: launchd [119]
    Interval Since Last Report: 3301 sec
    Crashes Since Last Report: 5
    Per-App Interval Since Last Report: 6 sec
    Per-App Crashes Since Last Report: 2
    Date/Time: 2010-07-27 20:02:07.370 -0400
    OS Version: Mac OS X 10.5.8 (9L31a)
    Report Version: 6
    Anonymous UUID: DAFF5E43-50F7-4359-9DA0-5F1411373288
    Exception Type: EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread: 0
    Dyld Error Message:
    Symbol not found: __commpagedsmos
    Referenced from: /Volumes/LaCie/Applications/Utilities/Disk
    Utility.app/Contents/MacOS/Disk Utility
    Expected in: /usr/lib/libSystem.B.dylib

    Kinda obvious, but have you tried unplugging the LaCie first, loading DU, and then plugging it back in?

  • How to share a usb connected drive as read only with smb

    I have OS X 10.10 installed and want to share a folder on a USB connected hard drive (HFS+ formatted) via SMB as read only.
    (The client computers should not be able to change nor delete files from the share.)
    I created a share in system preferences->file sharing and configured only myself as user to have read/write access.
    Still another user is able to connect to the share from another Mac running OS X 10.6.8 and can delete files from it!
    I have disabled AFP sharing. Only SMB sharing is enabled.
    Is there a major bug in SMB sharing in Yosemite or am I missing something.
    Gerd.

    Hey there Max,
    If you can’t find the printer in the network browser, it may be easier to add the printer manually using the URL field, as shown in the article below.
    Mac OS X: How to manually add a Windows shared printer - Apple Support
    Ciao,
    -Jason

  • Making Read Only A select List Item

    Hi,
    I am using Application Express 3.1.1.00.09 version.
    If the date field is future date then the Select List field should become Read only.
    I tried to make "read only".
    When I made it "read only" '>[] is displayed???
    Does some one have a solution?
    Thanks,
    Priyanka.

    Hi Leckraj,
    I assume that
    the select list is not displayed at all.means that your page item is not rendered as a select list input control, but it's rendered as text only, right? That's the nature of the read only condition, it will render almost all controls as text only.
    About the dynamic action solution. That can be simplified and doesn't require a hidden item or JavaScript.
    1) Create a dynamic action which fires for the "Page Load" event
    2) As (Server Side) Condition Type set "exists (SQL quer returns...)" and specify your SQL statement
    3) Use a "Disable" action to disable your select list page item
    The above dynamic action will only be included and executed on the page, if the SQL statement returns a value.
    Note: Please keep in mind that dynamic actions are browser based operations, for a skilled user it's no problem to enable the select list and modify the value. To secure it you should add a server side validation to verify if the user is really allowed to modify the value. That's the difference to the "Read Only Condition", because in that case the APEX engine guarantee that the value can't be modified.
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Set the value and read Only attributes just before PageLoad

    HI All,
    I am using JDev ver 11.1.1.4.0.
    Is there any event in ADF equivalent to PageLoad event of ASP.NET where we can set the components property on page load.
    When I try to access components in the beforePhase of any any Phase I get NullPointerException.
    Thanks,
    Rohit

    Hi,
    You can use dummy component with binding value attribute to bean with setter and getter in get method you can access components.
    private String dummyText;
        public void setDummyText(String dummyText) {
            this.dummyText= dummyText;
        public String getDummyText() {
    Implement your components access here..
            return dummyText;
        }

  • How to set a shared calendar 'read only' for SOME users in ML server

    I am setting up Mountain Lion Server and wish to set up a series of calendars to be used by a studio of approx 20 people - two calendars will show the kind of thing I'm trying to achieve.
    Calendar A shows appointments and meetings - it can be viewd and edited by all
    Calendar B shows who is taking leave and when - it can be viewed by all, but edited by only a small group of people
    What is the best way to set this up? On The earlier version of the server we had set up calendars on the server and delegated - this is not possible on Mountain Lion Server.

    I don't think you can do this strictly by personalization since you need to use SPEL, unless the attribute you will be using for the display to control readonly is already present in the VO. Basically you need to check a value, say Supplier, and have another attribute say readOnly, tthat is set to TRUE if the supplier equals your desired supplier and FALSE for all other suppliers.
    Regards,
    LC

Maybe you are looking for

  • Plug-in development standard or professional?

    Hi all, Our company develops plugins for Acrobat X professional. We are planning to upgrade multiple machines to Acrobat XI. The SDK documentation states  "Plug-ins for Acrobat Standard do not have access to some APIs". But we are unable to find out

  • Photosmart C6180 Print Quality Problem

    For some reason I am getting mottled output when printing photos.  I'm using HP Premium photo paper, settings are on automatic, and I've tried printing from HP Photosmart Essential and directly from the printer with the photos on an SD card. The resu

  • Configuring SQL

    Hi, I had posted this in general may have been the wrong forum but I need someone to at least tell me something on this even if its impossible to move from one enviroment to another. Can anyone help me switch an already set up SQL Server Database int

  • Launching a Excel file

    I have a excel file (data.xls). On the click of a button, I need to display this file to the user. How do I launch (open) the excel file from a Java application ?

  • You can take a coldbackup from solaris and use it on windows NT?

    hi all, You can take a coldbackup from solaris and use it on windows NT? can we? regards girish