Authorization to custom t code

Hi all,
I HAVE A MODULE POOL PROGRAM AND I  NEED TO PROVIDE AUTHORIZATION TO ACCESS THE THE Z TCODE FOR THAT MODULE POOL.
I have to write code checking sy-uname or is there any other way that can be used to provide access.
Thanks
swathi

Hi Swathi,
You have to write a code in your program or you can request your basis/security team to provide the access for the Z Tcode to whom ever required.
If you are writing the code, check this:
  w_repid = sy-repid.
Authorization check
  AUTHORITY-CHECK OBJECT 'Authobj name'
                     ID 'ACTVT' FIELD '16'          " Execute
                     ID 'REPID' FIELD w_repid       " Program Name
                     ID 'WERKS' DUMMY               " Dummy
                     ID 'BUKRS' DUMMY.              " Dummy
  IF sy-subrc <> 0.
    MESSAGE e278(rt).
  ENDIF.
Shylesh

Similar Messages

  • Hierarchy Node authorization with customer exit

    Hi All,
    I have created a hierarchy for an info-object A along with nodes test1 and test 2.node test1 consisit of value 10,20,30,40,50 and node test2 consist of value 60,70,80,90.  .
    1) I want that perticuler user should access perticuler node in hierarachy for that reason I have created a database table in which i have maintained the username and the values from the Infoobject A .I want to write a customer exit code in which user X can access node test1 and user Y can access node test2
    but in database table i can not maintain the nodes i can only maintain the values from the nodes
    so how can i restrict the user to perticuler node instead of values
    The authorization values for the perticuler user will get filled by customer exit variable maintained in the authorization profile
    can any body suggest me or send me example customer exit code for this scenario.
    I really appreciate your thoughts on this issue.
    Thanks,

    Hi,
    in addition to Anil's valid input, make sure that ZTEST is NOT ready for input. Indeed "ready for input" vars cannot be changed via customer exits.
    hope this helps...
    Olivier.

  • Amount Authorization to Customer/Vendors

    Can any one please tell me how to give amount authorization to customer/vendors in company code?

    Hi,
    Check OBA3 for setting tolerance & oba4 for assigning tolerance  to users.
    Regards

  • How to search custom T Codes for SAP SD Module

    Hi All,
    I have searched over the net to figure that custom T Codes can be searched using table TSTC and putting 'Z' in the selection criteria 'T code'.
    This shows the list of all Z tcodes for all modules. How do I find the Z tcodes for SD Module. Please help here!!
    Thanks

    Dear Vaibhav,
    Krishna has explained good way to search it out but most of the time Authorization of T-code SE93 is missing so here is another way to find our transaction codes.
    1. Execute Transaction Code SE11 :
    2. Enter the table name "TSTC" & Click on display :
    3. Click on the icon as:
    4. Write Z* for custom transaction codes :
    5. It will show the T-code and also the Program Name & T-Code Description and related information :
    Regards,
    Suhaib Bin Aziz

  • Build error when using custom error codes

    When I try to build my application using custom error codes I receive the following error:
    Error 1 occurred at Copy in AB_Engine_Copy_Error_Files.vi->AB_Application.lvclass:Copy_Error_Files.vi->AB_Application.lvclass:Copy_Files.vi->AB_Build.lvclass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Engine_Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488:  Command requires GPIB Controller to be Controller-In-Charge.
    C:\Program Files\National Instruments\LabVIEW 8.5\user.lib\errors\BPMS-errors.txt
    This only occurs the first time I attempt to build my application. If I build again immediately after receiving the error, everything works fine. My custom error codes were created using the provided editor, and I have included the file in my project. I have also checked the "Copy error codes" box in the advanced build specification settings.

    Hi Donovan,
    The attached project is giving me the error previously discussed. Thanks for your help.
    Attachments:
    BuildError.zip ‏10 KB

  • How to register a custom plsql code

    Hi
    i have wrritten a custom plsql code for my Overtime entries validation for payroll processing.
    Can any body tell me how to register it in application.
    Secondly i want to get the output file generated by report submission on my desktop.i want to know where the report output files for HR and payroll are stored so that i can get them through FTP.
    Regards

    if you want to integrate your plsql into a fast formula, please download the fast formula guide from metalink. Or ask your functional payroll consultant.
    All reports and processes in Oracle Apps are handled via concurrent programs and requests. When a concurrent request is finished, click on the output button, and depending from the filetype, your browser will take action.
    All concurrent output is also stored on the concurrent server. Ask your apps dba where she mapped the concurrent output directory. But i do not see why you should need this.

  • How to make BEX Customer Exit Variable inactive through Customer Exit Code

    Hi,
    I had created two variables VAR1 and VAR2 as Customer Exit variables
    If VAR1 is entered then it should automatically make the VAR2 as NO Entry Variable.
    vice versa also required.
    can u help me with any code in CMOD so that we can make it inactive through Customer Exit Code.
    Thanks in Advance.
    Sunil.

    What i want is not commenting the code
    I want to make the BEX Variable as inactive by using the Customer Exit Code
    EX : If value in VAR1 is entered  then VAR2 should become automatically inactive.
           If value in VAR2 is entered  then VAR1 should become automatically inactive.
    how can this be done
    Thanks in advance.
    Sunil

  • Custom process code and FM for custom IDoc...

    Hello Experts,
    I created a custom IDoc based from ARTMAS05 IDoc. This is because we only need 3 segments and
    the standard idoc(Artmas05) contains so many segments that we need.
    Now, will I create a custom process code and FM for this? how do I go about this?
    Thank you guys and take care!

    Hello,
                 Here are the Steps that we need to be following while creating a Custom Process Code with Custom Function Module. ( Since the Segments to be handled are very Less, I am recommending that you go for a Custom Function Module).
    1. Go to SE37 Create a Function Module. Please ensure to Create it with the IMPORT / EXPORT /TABLES parameters exactly in the way that they exist in any Standard SAP Inbound FM (Refer to IDOC_INPUT_ORDERS for example).
    2. Once our FM is Ready (Need not be Complete with the Code to go ahead with the Process Code Creation) and Active, the next Step is to Create an Entry in the Transaction Code BD51 where we will register the Function Module.
    3. Next, we'll have to go to T-Code WE57 where we'll have to make an entry for the Function Module with the IDoc Type & Message Type.
    4. Finally, go to WE42 and Create a New Process Code and assign the Function Module and the Message Type.
    NOTE 1 : The Process Code is, as we know, Client Dependent. So, once you create a Process Code, we need to have it migrated to the Testing Environment to Start & Carry Out Testing.
    NOTE 2: If Step 2 & 3 are missing, then we'll not be able to assign the Function Module in WE42 while Creating Process Code.
    Hope it was helpful.
    Thanks and Regards,
    Venkata Phani Prasad K

  • Customer/Vendor Code in Form Settings

    Hello everyone,
    I'm facing a strange problem. When I want to add an extra column (Customer/Vendor Code) using form settings in the list of A/R Invoices, the system is displaying Customer/Vendor name instead of the code. When I use the View System Information, the CardCode is displayed at the bottom of the screen. This is happening in all sales documents. I tested this issue in different versions (2007A, 8.8 and 8.81), but the same problem exists.
    Please any idea? Thank you.

    Hi Nadia.....
    At every Form Setting you find Restore Default Button at the bottom.
    Please press that button and then try to see the same you trying to see.......
    Hope this will solve your problem.........
    Regards,
    Rahul

  • Custom Javascript code not working in Safari

    Hello.
    I'm trying to get some javascript to work properly in Safari. The script works fine in Windows IE for and Firefox on both platforms, but Safari it just doesn't work.
    If you look here:
    http://robsimonsen.com/film.html
    and click on the Tides mp3, you will see that the track loads in an iframe right next to it. No javascript is used in the live version. Unfortunately, for some reason, it doesn't work in any other browser- just Safari. So in trying to figure out how to make it work the same in all browsers, some custom javascript code was created to accomplish the same thing:
    http://robsimonsen.com/film4.html
    but it doesn't work in Safari- just every other browser.
    Can anyone help me figure out what's going on?
    Dual 1Ghz G4 MDD   Mac OS X (10.3.9)  

    document.all is audi 5000. use document.getElementById() instead. this seemed to work:
    document.getElementById('plotz').src ="mp3s/Tides.mp3"
    and changing iframe...name=plotz to ...id=plotz
    ibook g4     OSX.4.x

  • Custom T codes for Report painter in FI

    Hi All -
      I have list of report painter reports (created thru GR31) and need to create custom transaction codes. I need information for following points:
    1. How to create tcodes for report painter report
    2. We have to transport those tcodes from DEV server to production and client numbers are different, will the transaction codes work when we promote to different server.
    Thanks in advance.
    Rds,
    K

    Hi,
    Following are the Answers to your Queries.
    1. Please refer to [Creating Transaction Code For Report Painter Reports|http://www.google.com/url?sa=t&source=web&ct=res&cd=1&ved=0CAgQFjAA&url=http%3A%2F%2Fdap-consulting.com%2Fyahoo_site_admin%2Fassets%2Fdocs%2FReport_Painter_Reports.47142031.pdf&ei=MiWYS5ilCYeOlAfn4pCGDQ&usg=AFQjCNEZ0YO6vJ97K24MbU_NI5ROTb5vJA&sig2=Ke-svnqddqrz8RMcTuEnaw].
    2. Please refer to 5th chapter (Page 90) of this document for [Transporting the Report Painter Reports|http://www.google.com/url?sa=t&source=web&ct=res&cd=3&ved=0CA0QFjAC&url=http%3A%2F%2Fwww.sapficoconsultant.com%2FBonus%2FReport%2520painter.pdf&ei=UiaYS8WOA5KylAei3830DA&usg=AFQjCNEHYqOFUd4XmZeX0JFt80OS-u7-mQ&sig2=dz40ldGpk_iyIRFR-yIxug].
    Hope this helps.
    Regards,
    Chandravadan

  • Authorization based on t.code and screenvariant

    All,
    Suppose I have created screenvariant in particular transaction .
    For eg MB52 , I have created one variant , ZVAR1
    Is it possile to give authorization based on t.code MB52 and screen variant  ZVAR1?
    Or t. code and layout of report.
    For eg I have changed the layout and save the report as Z111.
    Now is it possible to give authorization ,MB52 and Z111?
    Please advise.
    regards

    Thanks Alex.
    Suppose I am creating new t.code for MB52 program .
    Now in SE93 which object I should I select :
    - program and screen
    - program and selection screen
    - Method of a class
    - transaction with variant
    - transaction with parameters
    Pls advice.
    regards

  • [Best practice] How to call a service from custom Java code

    Hi all,
    I'm wondering what the best method is to call a standard service from custom Java code?
    In a specific situation iDoc script is extended with custom functions with a custom component. There's Java code mapping to these functions that is executing these functions. The iDoc script functions are called from a workflow entry script.
    In the Java code that runs when the custom iDoc functions are called, I want to call a standard Content Server service. I don't think that the m_service variable is available, so filling the binder and using m_service.executeService() probably isn't possible.
    Also, if it were possible (that is, if I want to call a standard service from my own custom service Java code), what would then be the best method to do so?
    Regards, Stijn

    Hi Sapan,
    Let me explain a bit further.
    I'm an UCM consultant trying to solve a problem that occured at a client when they installed the CS10gR35CoreUpdateBundle.
    Content items are entered into a Workflow when they are checked in. Part of one of the entry scripts of the a workflow step is that related content to the content item in the workflow is (re)submitted for conversion.
    To achive this, a custom component provides an iDoc script extension. This iDoc function (resubmitForConversion) is implemented in Java (the class extends ScriptExtensionsAdaptor).
    In this Java method, first the related content items are fetched. Then the service RESUBMIT_FOR_CONVERSION should be called for all dID's in of the related content.
    Thus, at a certain point in the custom Java code, a native Content Server service must be called. Of course the class of this Java code does not extend the Service class, so the m_service object isn't available.
    The thing is: before installed the 10gR35CoreUpdateBundle everything worked OK. This code was used to execute the service:
            Workspace workspace = CommonUtils.getSystemWorkspace();
            String cmd = binder.getLocal("IdcService");
            if (cmd == null) throw new DataException("!csIdcServiceMissing");
            ServiceData serviceData = ServiceManager.getFullService(cmd);
            if (serviceData == null) throw new DataException(LocaleUtils.encodeMessage("!csNoServiceDefined", null, cmd));
            Service service = ServiceManager.createService(serviceData.m_classID, workspace, null, binder, serviceData);
            UserData fullUserData = CommonUtils.getFullUserData(userName, service);
            service.setUserData(fullUserData);
            binder.m_environment.put("REMOTE_USER", userName);
            ServiceException error = null;
            try {
                service.setSendFlags(true, true);
                service.initDelegatedObjects();
                service.globalSecurityCheck();
                service.preActions();
                service.doActions();
                service.postActions();
                service.updateSubjectInformation(true);
                service.updateTopicInformation(binder);
            } catch (ServiceException e) {
                error = e;
            } finally {
                service.cleanUp(true);
                if (!CommonUtils.isWorkspaceConnectionInTransaction(workspace)) {
                     workspace.releaseConnection();
            }the first problem was that the CS began to complain that a transaction was started within another transaction. So I suspect that the 10gR35 update wrapped a transaction around a workflow script entry.
    With some decompiling I figured out how a service is called from iDoc with the <$executeService()$> command. So I replaced the code above with:
                  String cmd = binder.getLocal("IdcService");
                ServiceData serviceData = ServiceManager.getFullService(cmd);
                if (serviceData == null) throw new DataException(LocaleUtils.encodeMessage("!csNoServiceDefined", null, cmd));
                Workspace workspace = CommonUtils.getSystemWorkspace();
                Service service = ServiceManager.createService(serviceData.m_classID, workspace, null, binder, serviceData);
                UserData fullUserData = CommonUtils.getFullUserData(userName, service);
                service.setUserData(fullUserData);
                binder.m_environment.put("REMOTE_USER", userName);
                service.initDelegatedObjects();
                service.executeSafeServiceInNewContext(cmd, true);This solved the transaction problem but introduces another problem: !csUnableToResubmitItem,(null)!csIllegalScriptAccess,RESUBMIT_FOR_CONVERSION
    The Service Reference Guide says that the access level for RESUBMIT_FOR_CONVERION is 33 (Read, Scriptable). However, in shared/config/resources/std_services.htm the access level is specified as 2 (write).
    Thus, my question still is:
    What is the best method to call a standard Content Server service from any Java code (so without extending the Service class, or having the m_service object available)?

  • Customer Group Code

    Hi,
    We are integration C4C with CRM via HCI.  We are currently doing the code mapping and ID mappings in the system. A business partner has been loaded in C4C from CRM as an example to adjust the code mapping. We got the following error:
    Solve Configuration Issue in Code List Mapping for field CustomerGroupCode with value RT
    It looks one needs to maintain this valude on CustomerGroupCode. My questions are:
    1. where do I configure the Customer Group Code in C4C ? In FT at Account -> Customer Groups ?
    2. where do I check it in CRM?
    I did not find on the integration guide the path for this case.
    Thanks and best Regards,
    Andréa

    Hi,
    you can maintain in C4C the CustomerGroupCode in the "Code List Mapping":
    Waorkcenter: Business Configuration > Implementaion Projects > Open Activity List > Tab: Fine Tune > Code List Mapping for Integration with External Applications and Solutions:
    Maintain Code List Mapping:
    br,
    fabian

  • Can we include any custom T-Code in SAP Menu path

    Hi,
    Can we maintain any custom T-codes in the SAP Menu path in the SAP Menu displayed on the SAP EASY ACCESS.
    Or can we maintain user Menu...?
    If so how to create? and where?
    If so please help me to maintain
    Thanks in Advance,
    Shalem.

    Hi Shalem
      For adding custom T-Codes in SAP user menu, we have to extend the existing area menu <b>S000</b> via transaction <b>SE43N</b>.
      The transaction is for Area Menu Maintenance.
    Kind Regards
    Eswar

Maybe you are looking for

  • Creation of transfer orders using reservation

    Hi, We have requirement to create a transfer order against goods movement reservation. In standard SAP, the transfer orders get generated only after posting goods issue for reservation. However, we need to create transfer orders first so that we can

  • Finding the full path of a process binary using /proc

    Hello, I have an application where I need to monitor whether a certain other process is running. I'm using the /proc filesystem and an ioctl call - namely, PIOCPSINFO - to fetch process information into a prpsinfo_t, then use either the pr_fname fiel

  • Alternate workcenter or resources

    Dear all "During conversion of planned order to Production order the system should not allow to do it if  found Capacity oveloaded."The system should also proposed some alternate workcenter or resources , which is not oveloaded How i can map this sca

  • GUI_UPLOAD FM

    Hi, Im trying to upload a Notepad file using FM GUI_UPLOAD.I have total 255 columns. Im getting the error as Access Denied(13 exception)The following is my code. please help me. data p_apfile LIKE rlgrap-filename.     DATA: lv_filepath TYPE string.  

  • "lightroom encountered an erorr when reading from it's preview cache and needs to close"

    I can't get rid of this error message.  I have moved/deleted the preview cache..did not help.  I then deleted all the other files in the "Lightroom" folder...doesn't help.  Please help!!  thank you in advance