How to prevent the direct execution of a Z T.Code

Hello Friends,
The scenario is like this :
I am going to create an Z T.Code. I have to block this T.Code from direct execution(means executing it directly by calling from Command Field). But I must be able to execute the same T.Code from within a program by calling it using LEAVE TO TRANSACTION <T.CODE>./ CALL TRANSACTION <T.CODE>.
Is this possible with any form of Basis configurations? Please help.
Regards,
Abijith

The scenario you are trying is what we call a Function Module in ABAP. You can implement the same code as your program in an FM and simply call it. FM has options for test execution, incase you are worried about that. There are various features associated with FM execution i.e. Background, Foreground, RFC, Asynchronous, Synchronous etc all you need is to press F1 and check documentation. Even screen processing can be done using the same but incase you are not comfortable create a program and use Submit. No need to create a transaction itself. Moreover pls check the neccessity of preventing the tcode to be used. Because a user will never know about a tcode unless you tell them. So why worry about it's execution. Check autorization and roles as well in order you need the program to be run by specific users only.

Similar Messages

  • How to prevent the code viewing of jsp files

    hello friends
    How to prevent the code viewing on directly opening .jsp files at the server side
    Thanks in advance

    hello friends
    How to prevent the code viewing on directly opening
    .jsp files at the server side
    Thanks in advanceWhat exactly do you mean by code viewing? If by that you mean you don't want all the folders to show in the directory create a index.jsp file that has all the links to the pages you want to show
    If you mean something else please clarify

  • How to capture the first execution of a report

    Hi,
    I am executing a report in background. The first time the report is executed I have to do a different processing. After the 1st execution I have to different processing.
    Someone please tell me how to capture the 1st execution of a report. Is there a system variable ?
    Appreciate your <removed by moderator> response.
    Thanks,
    Dikshitha G
    Edited by: Thomas Zloch on May 12, 2011 11:36 AM

    Keshav.T wrote:
    Are you going to create a Z table for this ???? ... Is there nobody to advice you in your firm ???
    Hello Keshav,
    A couple of years ago i would have recommended using the INDX table, but it has got it's demerits.
    Maintenance of Z-table is easier than the INDX table. Say there is some error in the program & you want to override the flag. Will it be easier to do so in the INDX table or via SM30 for the Z-Table?
    As a matter-of-fact i will recommend using the solution provided by Florian the TVARVC technique.
    1. Create a parameter(specific to your program) & transport it.(See the trxn STVARV)
    2. In your program check the value of this param & set it accordingly.
    Using TVARVC you will 2 birds with one stone:
    1. You don't have to create a custom table.
    2. Easy maintenance via STVARV trxn.
    Hope you get the point!
    Cheers,
    Suhas
    PS: In our system we have a Z-table designed specifically for this particular purpose. All the programs having this kind of requirement refer to this table.

  • Hello , FMS is how to prevent the client into a large number of bytes?

    Hello , FMS how to prevent the client to pass a large number of bytes , such as one person put a 1G file in the argument , I also silly to receive ?Although there Client.setBandwidthLimit ( ) limit his maximum traffic per second , but is there a way , one more than the maximum amount of bytes to disconnect his.I assume that methods to determine the length is also obtained all of his transfer is finished , in order to determine out of it .

    How to limit the size of the parameters of the method.I wrote a method in the main.asc then the client NetConnection.call assignment, but if the client is malicious to upload very large data, how to limit it, I view the document did not find the clues, I hope that those parameters up to100KB.

  • How to know the runtime execution process

    Hi ,
    How to view the runtime execution process(steps) of a class. I know how to debug, but i like to view the Assembly language code .
    Please suggest
    Thanks ,
    Raj

    Why on earth are you ignoring your previous topic about the same question where the answer is already given more than once?
    [http://forums.sun.com/thread.jspa?threadID=5355140]

  • How to change the direction of my application ?

    apex 4.0 , db11gxe , firefox 24 ,
    hi all,
    how to change the direction of my application from left to right to right to left of vice versa ?

    newbi_egy wrote:
    sure i did , i found nothing ,
    provide me with a link if you have one
    thanks
    Hi,
    That's strange.
    Search works just fine for me
    https://forums.oracle.com/search.jspa?view=content&resultTypes=&dateRange=all&q=rtl&rankBy=relevance&contentType=all&con…
    Regards,
    Jari

  • How to change the direction text writen!

    i will write a notepad in pure java. but i will make it like this: item is top to bottom, and line is left to right. This is mongolian. but i dont know how can change the direction of text writen.
    please tell me!

    Here's what you should do:
    suppose your string is "abc" and you want to display that reversed:
    1. reverse the string
    2. find where your start point is (where you're going to draw 'a'
    3. Use FontMetrics to calculate the offset from the start point you need to make to print the string where it should be

  • How to prevent the user to submit leave request?

    Hi all,
    If the employee has wrong setup in the AME approval,the error "ERROR: An Invalid Setup has been detected for the current Transaction Type in Approvals" will be raised, although the employee will be able to submit the request, the request will have pending for approval status.
    How to prevent the user to submit the request when the error raised?
    Any idea.
    Regards

    Hi,
    Is this possible?  Pl check the error and your Transaction type. Refer ID 420381.1(How to Create the Approval Transaction Type for AME.A?) and also refer Oracle White paper on
    "Approvals Management Responsibilities and Setups in AME.B".
    Hope this helps.
    Regards,
    Siva

  • How to prevent the transaction code

    Hi
    I want to remove the common transaction code like /n,/o and /nex for particular user.
    Is there any SAP standard role availble or how to prevent the authurization for the above client independed
    transaction code.
    Regards,
    Jayakumar

    Hi,
    I want to know why you need to restrict these features when there is no harm.
    These are not transactions. They are extra features in SAP.
    /nT-code --- takes you to the new T-code by ending the previous T-code.
    /oT-code -
    creates a new session with the given T-code.
    /nex -
    ends the session.
    Rgds
    Suman

  • How to prevent the Canon 6D to climb to higher ISOs when it works in automatic mode?

    How to prevent the canon from 6D climbing to higher ISOs when it works in automatic mode?
    I was shooting at a basketball game at ground level and I left it in automatic mode because the moves were too fast, but when I passed to Lightroom, the photos were grainy, due to high ISO.

    Under the settings menu (third menu over), select ISO settings, and then set the Auto ISO limits for max to whatever you consider the maximum acceptable ISO.

  • How to prevent the program not to skip the process when exception is genera

    Hi, friends.
    How to prevent the program not to skip the process when exception is generated?
    For example, I am doing a process for 100 records. If the 15th record causes a Java Exception, I want to be able to skip it and continue processing the remaining 85 records.
    How it is possible with Java Exception handling? Any sample code?
    Thanks,
    Jaykishan

    [http://java.sun.com/docs/books/tutorial/essential/exceptions/]
    while (there are more lines) {
      try {
        process the next line
      catch (...) {
        log the error
    }[http://java.sun.com/docs/books/tutorial/essential/exceptions/]
    You'll want to be careful about which exceptions you catch though. For instance, if there's an unchecked exception, like NullPointerException, it's a sign of a bug in your code. Continuing to process as if that bug weren't there is often a worse approach than just failing. In this particular case, however, as long as you log the exception and then followup by fixing the bug that caused it, it may be acceptable to continue trying to process the rest of the file, even if some lines bring out a bug in your code.

  • Does anyone know how to prevent the YouTube volume from going up automatically?  I keep my volume down and it increases automatically when I play a video.

    Does anyone know how to prevent the YouTube volume from going up automatically?  I keep my volume down and it increases automatically when I play a video.

    Have you tried Windows Update in the Control Panel?
    Many times it will find the newest supported drivers for Hardware.
    Just be sure to install everything not just the Important ones.
    Let us know if this helps.

  • How to Maintain the MM Master Data from one company code to other co code

    Hi Experts,
    Can any one pls tell me how to Maintain the MM Master Data from one company code to other co code.
    Presently we created New plants,New Purchase Orgs under different company code.
    1) Material Master data
    2) Vendor MAster data
    3) PIR
    4) Source List
    Is there any standard Transactions...??
    Please reply.
    Brgds,
    KK

    Hi
    Check out the link -
    http://wiki.sdn.sap.com/wiki/display/ABAP/StepstocreateasimpleLSMWusingbatchinput+recording
    lsmw for data migration for  xk01 transaction
    http://www.sap-img.com/general/lsmw-steps-for-data-migration.htm
    Regards
    Anand

  • How to track the Last Execution of a Custom Program

    Hi all,
    I want to know the last execution date of a Cutom Z program. Kindly tell me as where do we see the same. Is there any table where this is being saved.

    Hello Nikesh,
    EXIT_SAPLS38E_001 is related to the user exits for the ABAP editor (Please read the documentation for details)
    EXIT_SAPLSABE_010 is triggered everytime the report is started, i mean before INITIALIZATION (i laymans terms before selection-screen is displayed).
    Please have a look @ [How to find First Program run in the Current Month in Foreground?|How to find First Program run in the Current Month in Foreground?]. You can very well implement this methodology as well
    BR,
    Suhas
    Edited by: Suhas Saha on Jan 15, 2010 2:11 PM

  • How to get the total execution time from a tkprof file

    Hi,
    I have a tkprof file. How can I get the total execution time. Going through the file i guess the sum of "Total Waited" would give the total time in the section "Elapsed times include waiting on following events:"
    . The sample of tkprof is given below.
    SQL ID: gg52tq1ajzy7t Plan Hash: 3406052038
    SELECT POSTED_FLAG
    FROM
    AP_INVOICE_PAYMENTS WHERE CHECK_ID = :B1 UNION ALL SELECT POSTED_FLAG FROM
      AP_PAYMENT_HISTORY APH, AP_SYSTEM_PARAMETERS ASP WHERE CHECK_ID = :B1 AND
      NVL(APH.ORG_ID, -99) = NVL(ASP.ORG_ID, -99) AND
      (NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'ALWAYS' OR
      (NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'CLEARING ONLY' AND
      APH.TRANSACTION_TYPE IN ('PAYMENT CLEARING', 'PAYMENT UNCLEARING')))
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute    442      0.08       0.13          0          0          0           0
    Fetch      963      0.22       4.72        350      16955          0         521
    total     1406      0.31       4.85        350      16955          0         521
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 173     (recursive depth: 1)
    Number of plan statistics captured: 1
    Rows (1st) Rows (avg) Rows (max)  Row Source Operation
             1          1          1  UNION-ALL  (cr=38 pr=3 pw=0 time=139 us)
             1          1          1   TABLE ACCESS BY INDEX ROWID AP_INVOICE_PAYMENTS_ALL (cr=5 pr=0 pw=0 time=124 us cost=6 size=12 card=1)
             1          1          1    INDEX RANGE SCAN AP_INVOICE_PAYMENTS_N2 (cr=4 pr=0 pw=0 time=92 us cost=3 size=0 card=70)(object id 27741)
             0          0          0   NESTED LOOPS  (cr=33 pr=3 pw=0 time=20897 us)
             0          0          0    NESTED LOOPS  (cr=33 pr=3 pw=0 time=20891 us cost=12 size=41 card=1)
             1          1          1     TABLE ACCESS FULL AP_SYSTEM_PARAMETERS_ALL (cr=30 pr=0 pw=0 time=313 us cost=9 size=11 card=1)
             0          0          0     INDEX RANGE SCAN AP_PAYMENT_HISTORY_N1 (cr=3 pr=3 pw=0 time=20568 us cost=2 size=0 card=1)(object id 27834)
             0          0          0    TABLE ACCESS BY INDEX ROWID AP_PAYMENT_HISTORY_ALL (cr=0 pr=0 pw=0 time=0 us cost=3 size=30 card=1)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                       350        0.15          4.33
      Disk file operations I/O                        3        0.00          0.00
      latch: shared pool                              1        0.17          0.17
    ********************************************************************************

    user13019948 wrote:
    Hi,
    I have a tkprof file. How can I get the total execution time.
    call count cpu elapsed disk query current rows
    total 1406 0.31 4.85 350 16955 0 521TOTAL ELAPSED TIME is 4.85 seconds from line above

Maybe you are looking for