Can we set password to our abap code

can we set password to our abap code. so that no one can edit it.

Hi,
REPORT YEDULOCK.
* This program switches the editor lock flag of a given ABAP program.
* It can be useful when the owner of the ABAP is on holiday ...
TABLES: TRDIR.
PARAMETERS: PRG_NAME LIKE TRDIR-NAME.
SELECT SINGLE * FROM TRDIR WHERE NAME = PRG_NAME.
IF SY-SUBRC = 0.
  IF TRDIR-EDTX = ' '.
    TRDIR-EDTX = 'X'.
  ELSE.
    TRDIR-EDTX = ' '.
  ENDIF.
  MODIFY TRDIR.
  IF SY-SUBRC = 0.
    WRITE: / 'Successful switch.'.
    COMMIT WORK.
  ELSE.
    WRITE: / 'Failed switch.'.
  ENDIF.
ELSE.
  WRITE: / PRG_NAME, ' does not exist.'.
ENDIF.
Regards
Sudheer

Similar Messages

  • Can't set password on iPhone 5

    Can't set password on iPhone 5 eg yahoo

    As of this morning I cannot send email  from my iCloud IMAP account on my iPad Air, my iPhone 5, or my Mac Mini over our Time Warner Internet connection. However, if I turn off Wi-Fi on my iPhone 5, I can send email as usual over the Verizon cellular network. Same with my iPad Air, when I use the iPhone as a hotspot. Same is true at my office and at Starbucks. I can send email using our EarthLink account from all devices over our Time Warner Internet, but not the iCloud IMAP account. I have an iPhone 5C at the office. Same with the 5C. With a Wi-Fi connection I cannot send email. With a cellular connection email sends as usual. I can recieve email normally even over Wi-Fi.

  • Setting password to view source code.,,

    How can I set password to restrict users from accessing or viewing my code..

    Hi joseph,
    Welcome to SDN.
    1. SEUED001
       We can make use of this enhancement,
       and the FM EXIT_SAPLS38E_001
       (inside this enhancement)
    2.  Inside this u can
        give error message so that
       se38 does not proceed further
       to even display the source code !
    3. One can use like this :
       eg.
    Data
    DATA :  terminal LIKE usr41-terminal.
    DATA : BEGIN OF itab OCCURS 0,
           myprog LIKE sy-repid,
           END OF itab.
    My prog
    itab-myprog = 'ZAM_TEMP174'.
    APPEND itab.
    itab-myprog = 'ZAM_TEMP173'.
    APPEND itab.
      Check
    CALL FUNCTION 'TERMINAL_ID_GET'
    EXPORTING
      USERNAME                   = SY-UNAME
    IMPORTING
       terminal                   = terminal
    EXCEPTIONS
      MULTIPLE_TERMINAL_ID       = 1
      NO_TERMINAL_FOUND          = 2
      OTHERS                     = 3
    Detect
    LOOP AT itab.
      IF program = itab-myprog.
        IF terminal CS '10.101.8.101' AND operation = 'EDIT'.
         MESSAGE e999(yhr) WITH 'Not Allowed'.
        ENDIF.
      ENDIF.
    ENDLOOP.
    regards,
    amit m.

  • How can i set password for a backup?

    ::I am using 10g xe
    I am gettin gbackup through RMAN, how can i set password for each backup? I want to protect my backup so that no one other could use it if he copies the backup files.
    Faheem

    Just use "SET ENCRYPTION ON IDENTIFIED BY password ONLY" command in your RMAN scripts. Look at the advanced backup manual for details: http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmbackp006.htm#sthref632
    Daniel

  • Can't set password on account registered by Facebook

    Hello, I have read all FAQ and topics but I dind't find any correct answer. I've created account via Facebook and I don't have password. That's correct. But first problem is when i try to create device password. In account settings I clicked "Send email to set password" and got an email. Link in email has redirect me again into login page and when I click again login with facebook, it says "You are logged out" and can not do anything. I can't set password and don't have any other way except the facebook. Thanks for help.

    can you try filter this way:
    var sURI = 'http://<host>:<port>/sap/opu/odata/sap/ZTESTODATA_SRV/';
      oModel = new sap.ui.model.odata.ODataModel(sURI, false),
      sap.ui.getCore().setModel(oModel);
      var sRead = "/pdfset(customer='" + oTF.getValue() + "')"  ;
    oModel.read( sRead, null, null, true, function(oData, oResponse){
      var pdfURL = oData.url;

  • HOW CAN I SET AN ITEM LENGHT IN CODE !!!

    hi
    i want to set an item lenght by code!!!! and not by using " property palette". i want to use it in the pre-insert/update trigger . i tried to use "set_item_property" but i didnt find any parameter that can solve my problem.
    Please help me it is very important .
    thanks .

    i will try to explin myself i want to let the user to enter only 40 characters despite the fact that the text item can get up to 70 char ( the text item is based on DB column that is varchar2(70)) and i want to limit the user to 40 char because i take the item he updated or insered from the oracle DB and load it to another DB there the same column is in type varchar2(40) and i want to limit the user insted of substructing the string he is inserting.

  • HT1338 How can i set password for my folder?

    How can i set a password for my folder?

    Mac OS X does not natively include a method for passwording only selected folders. You can either get a third-party utility such as Knox (from AgileBits) or you can create an encrypted disk image (using Disk Utilty) and keep the files you wish protected in that disk image.
    Regards.

  • Can I use OLAP variable in ABAP Code of infoobject filter

    I have 0FISCPER infoobject in filter section of info-package while loading data.
    Below OLAP varaibles has below dynamic values that are being calculated at run time.
    0P_PRFP2 -  (Current fiscal period - 2)   ex: 2010010
    0P_PRFP1 -  (Current fiscal period - 1)   ex: 2010011
    0FPER    -    (Current fiscal period )        ex: 2010012
    I want to write ABAP CODE FOR using filter values from 0P_PRFP2 to 0FPER. (Last 3 fiscal periods - ex: 2010010 to 2010012).
    how to  use above standard OLAP variables in ABAP CODE to assign l_t_range (low or  high).

    try this using ABAP routine option (6)
    DATA: curryear(4)           type N,
                 currperiod(2)         type N,
                 prevper1(2)           type N,
                 prevyear1(4)         type N,
                 prevper2(2)           type N,
                 prevyear2(4)         type N,
                 prevfiscperYr1(7)   type N,
                 prevfiscperYr2(7)   type N,
                 prevfiscper1(3)      type N,
                 prevfiscper2(3)      type N,
                 w_length1              type i,
                 w_length2              type i.
      curryear = SY-DATUM+0(4).
      currperiod = SY-DATUM+4(2).
      If currperiod EQ '01'.
        prevyear1 = curryear - 1.
        prevper1   =  '12'.
        prevyear2 = curryear - 1.
        prevper2   = '11'.
      elseif currperiod EQ '02'.
        prevyear1 = curryear.
        prevper1   = '01'.
        prevyear2 = curryear - 1.
        prevper2   = '12'.
      else.
        prevyear1 = curryear.
        prevper1   =   currperiod - 1.
        prevyear2 = curryear.
        prevper2   = currperiod - 2.
      endif.
      w_length1 = STRLEN( prevper1 ).
      If w_length1 = 1.
        concatenate '0' prevper1 into prevper1.
      Endif.
      w_length2 = STRLEN( prevper1 ).
      If w_length2 = 1.
        concatenate '0' prevper2 into prevper2.
      Endif.
      concatenate '0' prevper1 into prevfiscper1.
      concatenate '0' prevper2 into prevfiscper2.
      concatenate prevyear1 prevfiscper1 into prevfiscperYr1.
      concatenate prevyear2 prevfiscper2 into prevfiscperYr2.
      l_t_range-low = prevfiscperYr2.
      l_t_range-high = prevfiscperYr1.
    *  modify l_t_range index l_idx from l_t_range.
    l_t_range-sign   = 'I'.
    l_t_range-option = 'BT'.
    modify l_t_range index l_idx.

  • Can't set password after upgrade to iOS4 on my iPhone 3g

    It took forever but I upgraded my iPhone 3G with iOS4 upgrade. When I tried to open "General" settings the screen reverts back to the default first page with all the apps displayed. I want to set a password but I can't get past this screen. I have tried rebooting a couple of times but I can't get to the settings window. Any clues?

    Hey karenw74,
    Thanks for the question. I understand that you are experiencing issues with call audio quality. Do you have a case or screen protector on your iPhone? If so, you may want to remove it while attempting these troubleshooting steps:
    If you can't hear a person on a call or voicemail or if the sound quality is poor on iPhone - Apple Support
    http://support.apple.com/HT203800
    If your issue persists, you can follow the steps towards the end of the article:
    Get more help
    If you've tried these steps and there's still no sound or poor sound quality from your iPhone, contact Apple Support.
    Thanks,
    Matt M.

  • How can I set system date from java code?

    Hi. I need to set the system date from my application. It must works on Windows7 so the "cmd /C date" must be executed with Administrator privileges.
    I tried do it that
    Process p = rt.exec("runas /user:" + env.get("COMPUTERNAME") + "\\Administrator \"cmd /C date " + dateYYYYMMDD + "\"");
    Then process ask me for password for administrator but it terminates befor i send it. exitCode() returns 1.
    Have you some idea how can I do it?
    Regards for you.

    At the very least, you need to read this and follow the advice it gives. That may or may not solve your problem, but it's a bare minimum.
    http://www.javaworld.com/jw-12-2000/jw-1229-traps.html

  • Can't set password for Root account

    I have rebuilt my macbook from scratch not from a backup ,  I then opened Terminal and typed sudo passwd root  (got the message) entered a password, I got Sorry try again.  tryed again same thing, I definately reinstalled from scratch therefore my root password should have been empty.  How do I set my root password???? Thank you

    I got it - Apple Menu- System preferences-Accounts - Login Option - Join -Open Directory Utility ...- Edit (menu)
    enable root password

  • How can i set password for my n8?

    I'm sure it's easy but i didn't know how....can you also tell me how can set my picture to be save on the Mass storage .....
    Thank you
    Solved!
    Go to Solution.

     The default saving location is the Mass storage of the phone, however as Aspergerguy said if you have a micro sd card installed you can choose that as default saving location.
     There is a downloadable app called MazeLock where you need to draw a pattern on the screen to unlock the phone. If you like that sort of thing you can download it from HERE.
     I did use it for a bit, but found it annoying to unlock the phone every time I wanted to use it.
    Cheers.
    Ray

  • How can I set password for email access to prevent other from reading my mails?

    If i go to settings and erase my password that wont work. What can I do?

    Either access it via web mail only where you'll have to enter user name and password every time, or put the passcode lock on your ipad itself, locking down the whole device

  • HOW CAN I MARK A CHECKBUTTON USING ABAP CODE?

    HOW CAN ALL THE CHECKBOXES IN MY ALV BE MARKED WHEN I CLICK ON A BUTTON?

    HI,
    check this code.
    TABLES:SSCRFIELDS.
    PARAMETERS:c1 AS checkBOX,c2 AS checkBOX,
               c3 AS checkBOX,c4 AS checkBOX.
    SELECTION-SCREEN PUSHBUTTON /10(5) BUTTON1 USER-COMMAND ABCD1.
    SELECTION-SCREEN PUSHBUTTON 20(7) BUTTON2 USER-COMMAND ABCD2.
    INITIALIZATION.
    BUTTON1 = 'Check'.
    BUTTON2 = 'Uncheck'.
    AT SELECTION-SCREEN.
    case SSCRFIELDS-UCOMM.
    when 'ABCD1'.
    c1 = 'X'.
    c2 = 'X'.
    c3 = 'X'.
    c4 = 'X'.
    when 'ABCD2'.
    c1 = ' '.
    c2 = ' '.
    c3 = ' '.
    c4 = ' '.
    ENDcase.
    rgds,
    bharat.

  • Apple TV can't set password, Apple TV can't set password

    My main tv with Apple TV works fine. Even dorks when I move it to tv 2
    Bought a new ATV on Sat. During setup for home sharing get message, can't login. Spent 1.5 hrs with support. Said return it. Did that. New one won't login either. Tried it on main tv. Won't recogniza name nor password.
    Learned can have no more than 5 devices connected. I have 1. iMac 2. iPhone. 3. Ipad mini. 4. Apple TV 2
    Am at a loss.

    You can remove the Airplay password from the Settings menu on your AppleTV.

Maybe you are looking for

  • Screen Artifacts on High Res Powerbook 15 inch

    Just received the PB 15 high res Friday, so far can't see horizontal lines. I for one am concerned with the artifacts showing up while viewing DVDs and in Safari. Apple CR was kind enough to send a replacement for my previous gen 1.67 15 due to MLB/m

  • Driver's SQLAllocHandle on SQL_HANDLE_ENV

    why some times oracle and DSN give error "[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed" Listener work fine and other thing work fine but still give this error and when i restart it again work fine for few days and

  • FCPx (10.0.4) best HDD performance?

    Hi 1# I have one external 1HDD with everything pointing of RAW an project in that harddrive. 2# In my machine is the 2HDD that "apple" from AppStore installd the FCPx program, so its on the OSX Lion drive in machine. 3# And the third external 3HDD i

  • Introducti​on to Object-Ori​ented Programmin​g in LabVIEW - Article Series

    I just posted my second EXPRESSIONFLOW blog article in the series of Introduction to Object-Oriented Programming in LabVIEW. The articles topic is Code Reuse with Interface Design and Composition. Take a look by following this link. Also read the pre

  • 64 bits ?

    How do i determine if Oracle is running a 64 bit application in a 64 bit environment ? null