How to force Display mode for screen

I am pretty new to enhancements and this is probably an easy question:
I have implemented an enhancement that does a security check for a specific business area.
If the user is of a specific business area i want them to be able to edit the screen. (done)
but if they are of another area i only want them to be able to view the screen.
I am just not sure how to lock them to display only mode.
thoughts?
-Jason
code right now:
DATA: LS_ASTNR LIKE PRPS-PGSBR.
IF NOT SAP_PRPS-PGSBR IS INITIAL.
  AUTHORITY-CHECK OBJECT 'Z_PS_PROJ'
           ID 'PS_ACTVT' FIELD '02'
           ID 'GSBER' FIELD SAP_PRPS-PGSBR.
    LS_ASTNR = SAP_PRPS-ASTNR+4(4).
    AUTHORITY-CHECK OBJECT 'Z_PS_PROJ'
             ID 'PS_ACTVT' FIELD '02'
             ID 'GSBER' FIELD ls_astnr.
  IF SY-SUBRC <> 0 .
    SAP_X_ACTVT = ' '.
  else.
    if SAP_PRPS-PGSBR <> LS_ASTNR.
** Need to go to display only mode; but still authorized to view.
    endif.
    SAP_X_ACTVT = 'X'.
  ENDIF.
ENDIF.

Hi Jason,
in the PBO of the screen you can set all INPUT = 1 field to to INPUT = 0 using LOOP AT SCREEN.
But be careful, you will also disable all active buttons in the screen.
Regards,
Clemens

Similar Messages

  • Display mode for Material Description in MM02 for Partucular User/UsrGroup

    Dear friends,
    I required to set: Display mode for Material Description in MM02. (Configured thruu2019 Maintain field selection to data screen)
    For Particular User / User group, it should be Change mode. How to achive this. Please advice.
    Thanks and regards,
    RAMAN

    Hi,
    I don't think you can realize it, because in SAP system there are 6 influncing factors:
    Material Type
    Plant
    Industry sector
    Transaction
    Procurement indicator
    SAP Delivery
    Field selection is controlled by field references. You can assign field references to the influencing factors material type, plant, and industry sector in Customizing. SAP maintains the assignment of the field reference to the transaction codes, to the procurement types, and for the SAP delivery. You cannot change this assignment of these field references in Customizing.
    So from my point of view, you can't use the factors of material type, plant and industry sector to distinguish different users' authorization.
    Good day
    Tao

  • How can I display modes in connection create window

    Hi Pro,
         I create a environment/model, then I get into EPM excel addin, try to create a connection, but eventhough I choose my environment created, but I get blank list for model drop down list. how can I display modes in connection create window?

    Hi Yi Fei,
    Add user to your environment, check their security profiles, also check roles in BW.
    Andy

  • How to create value request for screen field text box tt1

    How to create value request for screen field text box tt1
    i have a text box name tt1,
    i want f4 help for that .
    remember i am asking for screen i.e done from screen layout not selectio-screen.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla,

    Hi,
    Create one Search Help in the SE11 for the particular Field that u want to display. In the Screen(Transaction SE51),For that Text Box in the Attributes,in Dict Tab ->Search Help Field give that Search Help Name.
    For Eg,
    If u want Purchase Order Numbers in that F4 Help.Create one <b>Search Help</b> by giving Table Name as <b>EKKO</b> & <b>Search Help Parameter</b> as <b>EBELN</b> with Lpos & Rpos as 0 & 1.Save & Activate it.
    Give this Search Help Name in Dict Tab ->Search Help Field of that Screen Attributes.
    Regards,
    Padmam.

  • How to set Compatibility Mode for a single site in ie10

    This question was originally posted on the Answers forum -
    http://answers.microsoft.com/en-us/ie/forum/ie10-windows_7/how-to-set-compatibility-mode-for-a-single-site-in/187152e3-142a-4d96-8d1b-af82ef571eec
    I am having problem with getting ie10 to set ie9 compatibility for a single site (sharepoint.contoso.com).
    When I add this website in Compatibility View Settings (Alt > Tools > Compatibility View Settings > 'Add this Website') it adds the domain 'contoso.com' and not the individual website (sharepoint.contoso.com).
    This cause other sites (www.contoso.com) to be configured to use compatibility mode. Because this is a separate site (different web server) to the site sharepoint.contoso.com (sharepoint 2010 server) we need different compatibility settings.
    Using a different example to explain the issue -
    Microsoft has three websites that are different websites created by different developers written in different programming languages and they only work with certain browsers.
    microsoft.com (Website1 created by Developer1) - compatible with ie8/ie9/ie10
    msdn.microsoft.com (Website2 created by Developer2) - compatible with ie8/ie9
    technet.microsoft.com (Website3 website created by Developer3) - compatible only with ie10
    The only thing the three website share is the URL contains 'microsoft.com'.
    Marking 'msdn.microsoft.com' to run in compatibility mode affects the other 2 websites - mainly technet.microsoft.com which will not work now since it only runs in pure ie10 mode. 
    Should you be able to add an individual site to the compatibility list instead of all sites that have  .microsoft.com in the URL? Am I missing a simple setting in the ie10?
    As a workaround I am using the F12 Developer Tools to set the Browser Mode which temporary sets the compatibility mode. However this is not a nice solution to the end users at our organisation. 

    problem is not solved for non corporate environments...
    You could start your own thread.  Then if you got that answer and it was marked Answered you would have the ability to unmark it.  The OP of this one seems satisfied.  Also note that this is TechNet.  Consumers can get help on Answers
    forums.
    Robert Aldwinckle
    Oh! I wrote it wrong: I should have said: This is not solved for NON-AD environments. No demands what so ever to use Window 7/8 professional in a small corporation or on a big corporation with Island of smaller departments for example offshore.
    The problem is that the thread is not "Answered" by the OP, its is marked answered by a moderator (and same moderator that did the answer) so no way of telling if the OP is satisfied.
    But you are right in the fact that I am almost kidnapping the thread. But a complete answer would benefit all in this case I would presume.
    Regards
    /Aldus

  • How to force english language for VC BI Iview

    Hi,
    All developments in BI system are english so when users launch VC BI Iview from the portal what ever the logon language in the portal we would like that users get results in english.
    In the VC iview, for parameter Forced Request Language we select value English but it doesn't work.
    We don't find other iview parameter which allows to do that.
    With BEX WEB template iview, we can do that by setting LANGUAGE=EN for parameter Application Parameters in the
    iview.
    Do you know how to force English language for VCBI Iview ?
    Thanks in advance for your help.
    Mai

    Hello,
    If you use Delta Links between your portal objects (role, workset, page, iview), make sure that the Forced Request Language is set to "English" on the linked iView (which is only accessible from the page, from the workset, from the role...)
    Regards
    Arnaud

  • How to set Update Mode for DSO in BI7.0?

    Hi,
    As you know in bw3.5, in update rules we can set  the update mode for ods as Additive or overwrite functionality.
    But can anybody tell me where are these settings in bi7.0? or
    How to set Update Mode for DSO in BI7.0?
    Thanks and Regrards,
    Harshal

    Dear Harshal,
    GO to the tramsformations of your DSO..
    In the Rule Group..Click on any key Figure..
    this pops u a window..in which u will find  AGGREGATION ..Then u can select Either OVERWRITe or SUMMATION which suites ur requirement..
    Hope this helps u..
    Assign points if helpful..
    Best Regards,
    VVenkat..

  • How do I display lyrics for current selection in Itunes for windows?

    How do I display lyrics for current selection in Itunes for windows? I have lyrics for many songs, am losing hearing and enjoy seeing the lyrics to remind me of my memory of the song...

    try this.. http://www.lyricsplugin.com/
    good luck.

  • Is there a way to switch to single-user mode for screen sharing in Lion?

    Hello,
    with the new multiple user mode one screen sharing guest can not see the mouse cursor of another - even if they use the same login.
    It's a pity, because we use screensharing to discuss the content of the screens with multiple screen sharing users.
    It is necessary to point with the cursor to show the other members of this 'screen sharing meeting' things while discussing.
    This is not possible anymore with Lion and multi user screen sharing.
    Does anybody know a patch or terminal command to switch back to single user mode for screen sharing?
    Kind regards
    Carl M.

    Try using OmniDazzle to help draw attention to what you want:
    http://www.omnigroup.com/products/omnidazzle/

  • Force curtain mode during screen sharing

    We have an interesting use case. Under normal circumstances when someone goes to connect to a remote Mac OS device with screen sharing the device's screen keyboard and mouse still work. Most sites I've been to have recommended "Pay $80 and get Apple Remote Desktop". We actually do have a license for it here and use it for admin tasks (like, Hey... let me share your screen and help you out with your problem). However, we have another use case... We have a lot of iMacs here at the office. In the event of a snow storm the user wants to work from home. So they set up an SSH tunnel into my network and do a screen sharing session. Another user actually comes in to the office that day and can see everything the person is doing on their iMac (and actually do things to the screen themselves). Our compliance manager is having a fit because of this. Now, I can't force all my users to go out and buy ARD for their personal devices. Even if we did, I can't prevent them from using their normal screen sharing app to connect to their machines instead of ARD. So, ARD isn't an option.
    So, I'm hoping there is another solution to the problem. Questions...
    * Where are the ARD plist files and is there a setting that says "Always use Curtain Mode when connecting to this machine". I can probably use Profile Manager to force Remote Management (versus screen sharing alone) and set the ARD plist file to force curtain mode.
    * Is it better to use "Remote Management" or "Screen Sharing" to accomplish this?
    * Any other alternatives?
    Thanks,
    Scott

    Hi.
    How did you fix your problem?  I have the same issue where the option to "switch to control mode" is greyed out. I have 4 macs at home with the same set up"it looks like the same set up" and it only happens on my new iMac.
    I appreciate your help.
    Yvon.

  • How to set "display mode" from external keyboard

    I have an EliteBook 8570p in a docking station, with an external monitor and keyboard attached.
    I typically have my display mode as "duplicate", with the same thing  showing on both my laptop screen and external monitor.  I use the external monitor as the main screen. This might be uncommon, but I prefer it this way.  I've been working this way for quite a while.
    I very recently started using MS PowerPoint 2013.  Today I discovered an annoying bug with this combination.  I was in "slideshow mode" for a pptx I was working on, and I pressed ESC to get back to editing the doc.  What happened was that the external monitor just showed my background wallpaper, and the laptop screen showed the normal display, along with my background wallpaper.  I then had to slide over to my laptop keyboard and press Fn-F4 and set it to "Duplicate", and that restored my external monitor display.
    I'm definitely going to pursue this weird behavior with PowerPoint, but I'm going to assume out of the box that this will be difficult to change.  What I'd like to get from this forum is simply a quicker way to restore the "Duplicate" display mode.  Is there a keyboard shortcut I can use from my external keyboard to change the display mode?  There's no "Fn" key.

    Although I'd still like to get an answer to this, my original problem has been solved, as I was able to disable the feature in PowerPoint 2013 that mucked with my display mode (turn off "Use Presenter View").

  • Fields not greyed out in display mode in screen exit

    Hi all,
    i am working on an screen exit for CJ02 transaction. the values in the customer subscreen are getting updated in database and even it is reflecting in fields when viewed again. the problem is that in display mode (CJ03) the fields are still editable. though there is no save button, but the fields should be greyed out.
    i have tried to modify screen using LOOP AT SCREEN in the function exit provided in PBO.....but it is not picking the subscreen.
    please provide any solution as soon as possible.
    thanks in advance

    In the PBO in your screen exit:
    IF sy-tcode EQ 'CJ03'.
    LOOP AT SCREEN .
    if screen-name 'your field'
    screen-input = 0.
    screen-output = 1.
    MODIFY SCREEN.
    ENDIF.
    endif.
    what enhancement are you using?
    bye

  • How does target display mode work? Where can I read about it?

    I was wondering how target display mode works?  On what models and which version of OS is this available?

    Please do not create multiple threads for the same problem.<br>
    Follow-up at your other thread at https://support.mozilla.org/en-US/questions/1004865.

  • Display mode for certain orders

    Calling PCUI for service tickets ( CRMD_BUS2000116 ) - CRM ver 4.0
    In the search results I have a number of orders, some of which need to be editable and
    some of which aren't.   If a non-editable one is selected, then all the details ( line items, dates
    etc) for the order need to be shown in display mode.
    In the model access class for search results, I can make the relevant lines of the results list view-only by populating table    ET_FIELD_ATTRIBUTE in the read method.  In order to make the order details display-only I have also tried calling CRM_INTLAY_SET_PROCESS_MODE  to set the process mode to C,  however this only seems to affect the fieldgroups processed by this model access class.  All the other details ( spare parts, dates, partners etc - dealt with by other model access classes) remain in change mode.
    How do you tell PCUI that once an order has been selected in the search results, it is to be treated as display-only   ( exactly the same as what happens if you select an order which someone else has locked) ?    Surely there is an easier way than bespoking every single MAC and playing with ET_FIELD_ATTRIBUTE  ?
    Thanks
    Ian

    Hi Lan,
    I dont have any idea about specific orders but if u want for particular user(Partner) who are not created/involved in particular orders they cannot search or open others orders.
    u can achive above scenario by creating diffrent iview for diffrent user with some MAC configuration.
    Hope it'll help u.
    Thanks,
    Dipesh.

  • Making short text field in Display mode for one particular Purchasing

    Hi All,
    This is regarding Making the Short text field in Display mode of PR for one Particular Purchasing.. i am giving you a bit elaborate...We are into E-Catalog Procurement.I will do the shopping from the Vendors external catalog and i will return back to SAP.
    While doing so, i dont want the user to change the Short Text field. I want that field shud display the Description. When i tried with the Screen Layout settings, it is fully grayed out and i am not able to see the Description of the Material. Is there any other options to get this enabled?. Please advice me on this settings to be done. Thanks in Advance.
    With Regards,
    Saakithyan

    Hi
    Define a Field selection key (new not the one which is assigned to document type) which makes  short text editable in screen layout config. and assign it to functional authorization value in t.code OMET. (it should be numeric). Then assign that functional authorization value in user master SU01 for users with parameter id EFB.
    Then it will work
    Regards
    Antony

Maybe you are looking for