Authorization requirement

hi,
  this is my requirement
how to provide authorization to be primarily based on
plant code
purchasing group
material group
incoterm
vendor account group.
please provide me the procedure and if there is any code for it please provide.
thanks in advance

PARAMETERS carr TYPE spfli-carrid.
AT SELECTION-SCREEN.
  AUTHORITY-CHECK OBJECT 'S_CARRID'
    ID 'CARRID' FIELD carr
    ID 'ACTVT'  FIELD '03'.
  IF sy-subrc <> 0.
    MESSAGE 'No authorization' TYPE 'E'.
  ENDIF.
AUTHORITY-CHECK OBJECT auth_obj [FOR USER user]
                        ID id1 {FIELD val1}|DUMMY
                       [ID id2 {FIELD val2}|DUMMY]
                       [ID id10 {FIELD val10}|DUMMY].
Addition:
... FOR USER user
Effect
This statement checks whether authorization is entered in the user master record of the current user or the user specified in user for the authorization object entered in the field auth_obj, and whether this authorization is sufficient for the request specified in the statement. A flat character-type field that contains the name of an authorization object is expected for auth_obj. Without the addition FOR USER, the authorization of the current user is checked.
With id1 ... id10, you must have at least one and can have a maximum of 10 authorization fields listed for the authorization object specified. With id1 ... id10, "flat", character-type fields are expected that contain the name of the authorization fields in uppercase letters. If an authorization field is specified that does not appear in the authorization object, no check can be executed and sy-subrc is set to 4. For each specified authorization field, you must specify with FIELD either a value to be checked in a flat, character-type field val1 ... val10 or the addition DUMMY.
The authority check is carried out if the check indicator for the specified authorization object for the current context is set to check with any proposal status. If the check indicator is set to no check, no authority check is carried out and sy-subrc is set to 0, as with a successful check.
The authorization check is successful if one or several authorizations are created for the authorization object in the user master record and if - for at least one of the authorizations - each of the value sets defined there for the authorization fields specified using FIELD includes the value val1 ... val10 to be checked. Authorization fields that are not included in the statement or that have DUMMY specified for them are not checked. If the check is successful, sy-subrc is set to 0. Otherwise, it is set to a value not equal to 0 (see below).
System Fields
sy-subrc Meaning
0 Authorization successful or no check was carried out. An authorization for the authorization object was found in the user master record. It's value sets include the specified values.
4 Authorization check not successful. One or several authorizations were indeed found for the authorization object in the user master record and they include the value sets, but not the values specified, or incorrect or too many authorization fields were specified.
12 No authorization was found for the authorization object in the user master record.
24 Incorrect authorization fields or an incorrect number of authorization fields was found. This return value is no longer set since Release 6.20. Up to Release 4.6 it is set only if the profile parameter "auth/new_buffering" has a value less than 3.
40 An invalid user ID has been entered in user.
Notes
The authorization fields of an authorization object are fields for data and a field with the name ACTVT for activities. Activities are represented by abbreviations with two characters that are defined in the ACTVT column of the database table TACT or have a customer-specific definition in TACTZ. Possible activities are assigned to the authorization field ACTVT in the authorization object. In the user master record, you have authorizations for data and activities in the form of operands for logical expressions stored as value sets. Here, masking characters can be used for generic authorizations.
When checking the authorization of the current user without the addition FOR USER, the content of the system field sy-uname is not evaluated, but the actual user name is used instead.
The most important contexts for which check indicators can be set are transactions. The execution of a statement AUTHORITY-CHECK can have different results depending on how the current program flow was started. In general, a check indicator should always been set to check.
For authorization objects of the areas SAP NW AS ABAP (BC) and human resources management (HR), a check indicator cannot be set to no check.
Addition
... FOR USER user
Example
Check as to whether the current user has the authorization required for displaying the airline that he specifies on the selection screen. The used authorization object is called S_CARRID and includes the authorization fields CARRID for the name of an airline and ACTVT for the activity. The abbreviation "03" stands for the "Display" activity and is one of the activities that are assigned to the authorization object S_CARRID.
PARAMETERS carr TYPE spfli-carrid.
AT SELECTION-SCREEN.
  AUTHORITY-CHECK OBJECT 'S_CARRID'
    ID 'CARRID' FIELD carr
    ID 'ACTVT'  FIELD '03'.
  IF sy-subrc <> 0.
    MESSAGE 'No authorization' TYPE 'E'.
  ENDIF.

Similar Messages

  • Content Server Error: 407 Proxy Authorization Required

    Hi Experts,
    I am new to Content Server and have recently installed Content Server 6.40 with MaxDB 7.8 database on a Windows 2008 server.
    The installation completed successfully and IIS server was configured as per guide. The Content server is running when checked through URL on server.
    Next, we created a new repository with following details, but are facing "HTTP error: 407 Proxy Authorization Required" while testing the connection.
    Settings in OAC0
    Content Rep.    A1
    Document Area: ArchiveLink
    Storage type: HTTP Content Server
    Version no.: 0046
    HTTP server: <IP of Windows server where CS is intalled>
    Port Number     1090
    HTTP Script     ContentServer/ContentServer
    Transfer drctry C:\temp
    HTTP Port 1090 is open from SAP system(HP-UX) to Content Server(windows) and there is no firewall between the 2 servers, but we still see the error in OAC0 and CSADMIN. I also tried setting the security parameter to 0 in contentserver.ini file, but that didn't help either.
    The content server was installed using administrator user.
    Would appreciate your inputs on what am I missing?
    Thanks.
    Regards,
    Varun

    Hi Varun,
    Please change Document Area: ArchiveLink .
    Remove Archive link and change it to Document Management system ( DMS)
    Check the results and post the output.
    Regards,
    Deepak Kori

  • How to return "HTTP/1.0 401 Authorization Required" from OSB's Message Flow

    How can I return "HTTP/1.0 401 Authorization Required" header from OSB's Message Flow?
    Using of "HTTP Transport -> Authentification" is not possible, because I need flow condition. Transports Headers activity from design palette doesn't allow to send such headers.
    Practical usage: request for kerberos ticket by sending two headers: 401 and WWW-Authenticate: Negotiate...

    Can you briefly expand the use case for better understanding?
    HTTP Client---> Hand Shakes or what ever ----> HTTP Proxy (OSB )---> Pipeline----
    Philosophy behind pipeline is that it is designed to work on the request. Correct me if I'm wrong.
    What you are asking is ability to control the hand shake either in Pipeline or some way during proxy configuration. Unfortunately there is no configuration that is exposed for HTTP proxies in OSB to control that behavior.
    Manoj

  • CE10 ; Crystal_webcompserver : Log message: NT Authorization Required.

    Post Author: gjmoyer
    CA Forum: Administration
    On our Crystal Enterprise 10 server.  We are getting thousands of Warning messages logged to the Application event log from Crysal_webcompserver with description "Log message: NT Authorization Required."
    What are these caused from, and how to I resolve this?

    Post Author: edoco
    CA Forum: Administration
    Having the same issue here...
    The symptom was removed after restarting all services related to Crystal..
    Seems to happen every few weeks.. Still investigating the actual problem.
    gjmoyer:
    On our Crystal Enterprise 10 server.  We are getting thousands of Warning messages logged to the Application event log from Crysal_webcompserver with description "Log message: NT Authorization Required."
    What are these caused from, and how to I resolve this?

  • Authorization Required for RFC user  in R/3-APO system.

    Could you please help regarding one authorization issue. I want to know the authorization required for one RFC user. Now this RFC user used for RFC connection of SAP R/3 - SAP APO system. user type is given dialog type and SAP_ALL profile has been given to this user  id. Now I have to remove SAP_ALL from this user id in R/3 and APO system and  provide the required the authorization in R/3 and APO system.
    Regard
    Auroshikha

    The RFC authorisation depends completely on what the user is doing (ALEREMOTE?).  We can't tell you what RFC auths your connection requires. 
    There is a guide to doing this here: https://wiki.sdn.sap.com/wiki/display/Security/BestPractice-HowtoanalyzeandsecureRFC+connections

  • Initially stating No authorization required using Adobe.  When I try to change it so I can transfer downloaded books by my Nook e-reader it I get an error message stating the Adobe user name and password is associated with another computer.  What gives?

    When I set up Adobe reader on my computer to be able to download books from a library and then transfer to my Nook e-reader, I initially stating No authorization required using Adobe.  When I try to change it so I can transfer downloaded books by my Nook e-reader it I get an error message stating the Adobe user name and password is associated with another computer.  What gives?

    This is pretty surprising and wierd that even Reader 10.1.1 is crashing on your system. It works pefectly for me.
    Would it be possible for you to get the crash dump, and upload it, so that I can have a look at the same.
    Download PROCDUMP from <http://technet.microsoft.com/en-us/sysinternals/dd996900.aspx> and extract it to a folder, say, c:\temp\procdump.exe
    Open cmd prompt and type "cd c:\temp".
    Launch the browser and open the PDF.
    Open task manager, sort processed by name. Two AcroRd32.exe instances  should have been launched. Note the PID (a small integer like 5588) corresponding to the AcroRd32.exe with the higher memory usage; this is the process that must be crashing. Note this PID.
    On the cmd window, type "procdump -e -ma 5588 c:\temp\01.dmp" (replace 5588 with the actual PID of the process noted in Step 4). Procdump will now wait for the aoolication to crash. If it throws a EULA, accept it.
    Perform your steps to cause the crash.
    Procdump will have created a dump file at "c:\temp\01.dmp". Zip it up (since it will be 100s of MBs otherwise) and share with me.
    Thanks in advance for all your help
    Ankit

  • Which authorization required?

    Hi experts,
    I believe that I have 2 problems with authorization.
    In my web dynpro, I have implemented the preview PDF from SMARTFORM as taught in the tutorial below:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785
    Also, I have also called another function BAPI_OBJCL_GETDETAIL somewhere in my web dynpro.
    However, the function is returning me a no authorization for function error. Whereas the preview PDF page shows a blank page (which is working fine on my developer ID).
    Can anyone help me with what are the authorizations required?

    above mentioned BAPI requires autority object 'C_KLAH_BKL' to be added to your profile. Check on this.
    Regards
    Manas Dua

  • How to resolve HTTP/1.1 407 Proxy Authorization Required issue

    Dear Sir,
    I am getting following error when connecting from SQL developer to oracle cloud. I have tested both on SQL developer 3.2.20.09.87 and sqldeveloper-4.0.2.15.21. but getting the same error as below.
    request your in getting the resolution for the same. thanks in advance
    HTTP/1.1 407 Proxy Authorization Required:
    oracle.dbtools.raptor.cloud.auth.AuthenticationFailedException: HTTP/1.1 407 Proxy Authorization Required
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.doPost(BasicAuthenticationEngine.java:162)
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.authenticate(BasicAuthenticationEngine.java:63)
      at oracle.dbtools.raptor.cloud.auth.basic.GUIBasicAuthenticationEngine.authenticate(GUIBasicAuthenticationEngine.java:26)
      at oracle.dbtools.raptor.cloud.connection.ConnectionCreator.createConnection(ConnectionCreator.java:24)
      at oracle.dbtools.raptor.cloud.connection.CConnections$C.getConnection(CConnections.java:39)
      at oracle.dbtools.raptor.cloud.connection.CConnections.getConnection(CConnections.java:176)
      at oracle.dbtools.raptor.cloud.navigator.CloudConnection.openConnectionImpl(CloudConnection.java:127)
      at oracle.dbtools.raptor.cloud.navigator.CloudConnection.getConnection(CloudConnection.java:89)
      at oracle.dbtools.raptor.cloud.navigator.ConnectionTreeNode$LoadTask.doWork(ConnectionTreeNode.java:74)
      at oracle.dbtools.raptor.cloud.navigator.ConnectionTreeNode$LoadTask.doWork(ConnectionTreeNode.java:38)
      at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:554)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
    Caused by: java.io.IOException: HTTP/1.1 407 Proxy Authorization Required
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationHandler.handleError(BasicAuthenticationHandler.java:250)
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationHandler.handleError(BasicAuthenticationHandler.java:24)
      at oracle.dbtools.raptor.cloud.connection.CloudHander.handleResponse(CloudHander.java:38)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:945)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910)
      at oracle.dbtools.raptor.cloud.connection.DefaultClient.executeRequest(DefaultClient.java:96)
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.doPost(BasicAuthenticationEngine.java:153)
      ... 17 more
    Regards,
    Deenanath
    Message was edited by: 2803956
    Hi Brian,
    I did settings for Database and SFTP only. The advanced setting on "new cloud connection" screen fills automatically. when I tried to remove the advanced setting such as host name, port, server path and service name. then it is asking for hostname.
    After doing all the steps i am facing the same issue of " HTTP/1.1 407 Proxy Authorization Required".
    Could you please help me to resolve the issue?
    Thanks for your help and support.

    Did you set up your HTTP Proxies inside of the settings in SQL Developer? Does the particular database you are attempting to access, does the proxy server need authentication? Again, check the http proxy options in sql developer.
    https://docs.oracle.com/cd/E11882_01/doc.112/e12152/intro.htm#CIHFCGCD

  • Authorization required for creating new Organizational units

    Hi all,
    How can we give authorization required for creating new Organizational units (IMG – CRM – Master Data – Organizational Management – Organizational Model – Create Organizational Model) to a particular user?
    Thanks and Regards,
    Archana

    the basis guy should be able to help.
    at a higher level: you need to set authorizations to the roles assigned, the transaction code is pfcg.
    you may create a new role with the required authorization and assign to the relevant users.
    hope it helps..
    regards
    RH

  • Authorization required for creating new Organizational units in CRM

    Hi all,
    How can we give authorization required for creating new Organizational units (IMG – CRM – Master Data – Organizational Management – Organizational Model – Create Organizational Model) to a particular user?
    Thanks and Regards,
    Archana

    Hi archana,
    U can Create a role through Transaction PFCG.
    Just create a role and assign the tcode PPOCA_CRM if u want to give the user just only this authorization otherwise u can select the menu list from sap menu and assign this role to that user.
    Another way is if that user already exist in that system then just assign that particular transaction codr with that user.
    Hope it will help u
    Regards
    Subhash

  • Provider : Authorization Required (Workflow Provider)

    I am trying to use Oracle Workflow as a provider.
    I have defined an external application (using basic authentication) - that works fine.
    I have created a provider.xml, it is registered, the config files modified etc - the test page works fine.
    I have linked the provider to the external application.
    When I add the portlet to a page I always get the following error message (from the Workflow Application Server) :
    Authorization Required
    This server could not verify that you are authorized to access the document requested. Either you supplied >the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials >required.Here is my provider.xml :
    <provider class="oracle.portal.provider.v1.http.URLProvider">
    <session>true</session>
    <authentication class="oracle.portal.provider.v1.http.Authentication">
    <authType>basic</authType>
    </authentication>
    <portlet class="oracle.portal.provider.v1.http.URLPortlet">
    <id>1</id>
    <name>CCC_PROV_WF_JMR_2</name>
    <title>Job Manager Workflow Provider</title>
    <description>Job Manager Workflow</description>
    <timeout>100</timeout>
    <timeoutMessage>Job Manager Workflow timed out</timeoutMessage>
    <showEdit>false</showEdit>
    <showEditDefault>false</showEditDefault>
    <showPreview>false</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentType>text/html</acceptContentType>
    <registrationPortlet>false</registrationPortlet>
    <accessControl>public</accessControl>
    <renderer class="oracle.portal.provider.v1.RenderManager">
    <showPage class="oracle.portal.provider.v1.http.URLRenderer">
    <contentType>text/html</contentType>
    <pageExpires>60</pageExpires>
    <pageUrl>http://sirius.caprion.com:7777/pls/wf_drep</pageUrl>
    </showPage>
    </renderer>
    <securityManager class="oracle.portal.provider.v1.http.URLSecurityManager">
    <authorizType>public</authorizType>
    </securityManager>
    </portlet>
    </provider>
    ANY IDEAS ?
    Thanks

    The relative links need to be converted to absolute links. You can use a filter to achieve this. You need to define your filter similarly to this after the pageURL definition:
                        <filter class="oracle.portal.provider.v2.render.HtmlFilter">
                             <headerTrimTag>&lt;body</headerTrimTag>
                             <footerTrimTag>/BODY></footerTrimTag>
                             <baseHRef>your_page_url</baseHRef>
                             <convertTarget>true</convertTarget>
                        </filter>

  • Authorization required by BAPI_APPRAISAL_CREATE?

    Hi All,
    Is any one having idea what authorization required by BAPI_APPRAISAL_CREATE?
    Because when I am using my user ID to post data it is working,
    but when I am using XI user id to post data it’s not posting.
    It is giving dump “TABLE_INVALID_INDEX”.
    I think it is authorization issue.
    Please guide me what authorizations I need to add with XI user id.
    Regards

    May be XI user id  does not have authrization like SAP_ALL,SAP_NEW
    Thanks
    Seshu

  • Why do I get "Podcast Authorization Required" popup box?

    Since recently applying the latest update to iTunes to version 11.2.2.3, I now get the following message in a popup box whenever I manually update my podcast list:
    Podcast Authorization Required
    To access this podcast, you need
    to log in to www.mevio.com
    It wants a login and password to be entered. Hitting "cancel" makes it go away, but it'll pop up again sporadically as iTunes updates my podcasts.  Any ideas on how to stop this from happening?
    Another issue (possibly related to the above issue) is that iTunes constantly freezes/"not responding" when I manually update my podcasts.  Both of these issues have occurred regularly since I applied the latest iTunes updates.  Am I the only one who still hasn't learned not to trust any iTunes update from Apple?
    Thanks for any help anyone can give me.

    Do you have an add-on called '''Ghostery '''installed? I tried it once myself and if you don't disable certain options, you get those purple popups appearing as can be seen in your screenshot. Go to Tools | Add-ons | Extensions to remove it.
    If you can't find it, try running Firefox in [[Safe Mode]]. If it works correctly in that configuration, then one of your other add-ons is the culprit.

  • Cisco 7925 phone states authorization required

    I have a 7925 that flash authorization required. It doesn't have any UCCX services subscribed to it or anything else as far as services. I even reset it completely to factory defaults and rebuild its profile and recreated the phone in call manager. Yet it continues to flash authorization required. The end user complains that this drains their battery after a very minimal use of the phone. Has anyone experienced this issue and is their a solution? Thanks before hand

    My next question would be is, within your network profile do your credentials match what you have setup for the wireless network authenication process?  i.e. AD crendentials?
    Thanks,
    Tony
    Please rate helpful posts!

  • 401 Authorization Required ERROR!!

    Hi everyone, here is my problem.  I cant change ANY setting for my linksys befsr41 v1 router.   i can log in witht he password (admin), but when i try and change a setting (ie filters) a password prompt pops up , then after entering my password 3 time i get the "401 Authorization Required" error. 
        so far i have reset to factory defaults, changed my firmware, and tried changing the password, nothing has worked.  i know its not a password issue.  i have spent hours on this and got no where SOMEONE PLEASE HELP ME!!!!
    -Matthew
    Message Edited by SDMF on 07-10-2007 11:19 AM
    (Mod Note: Edited due to non-compliance of forum guidelines.)
    Message Edited by daikunzeon on 07-10-2007 11:31 AM

    while the router is ON...press the reset button on the back of it for a whole minute.... while still pressing down, remove the power cable then release the reset button... clear your browser cache again then restart your computer... turn the router back ON again then access the router setup page once more..... you should leave username blank then use admin as your password.... remember your DSL/Cable configuration to get your Internet connection back ok?

Maybe you are looking for