How to Unlock a Locked Recoed for Infotype 2010..

Dear Expert,
How can I unlock a locked record from Infotype 2010. When I am using BDC how should I decide which record to select in PA30 once I have passed the date and Employee Number details on the screen.
If on the same date if there are more than one record and if the first one is not locked then the BDC is locking them insted of unlocking it.
Is there any function module which can help me. The Code I have used is as below.
The field SPRPS is coming during recording but bdc gives error stating this field is not there on the screen so could not use this one as well..
IF T_REPORT-INFOTYPE = '2010'.
          PERFORM BDC_DYNPRO USING 'SAPMP50A' '1000'.
          PERFORM BDC_FIELD  USING 'BDC_OKCODE' '=LIST'.
          PERFORM BDC_FIELD  USING 'RP50G-PERNR' T_REPORT-PERNR.
          PERFORM BDC_FIELD  USING 'RP50G-TIMR6' 'X'.
          PERFORM BDC_FIELD  USING 'RP50G-BEGDA' TEMP_BEGDA.
          PERFORM BDC_FIELD  USING 'RP50G-ENDDA' TEMP_BEGDA.
          PERFORM BDC_FIELD  USING 'RP50G-CHOIC' '2010'.
          PERFORM BDC_FIELD  USING 'RP50G-SUBTY' T_REPORT-LGART.
         PERFORM BDC_FIELD  USING 'P50G-SPRPS' 'X'.
          PERFORM BDC_DYNPRO USING 'MP200000' '3450'.
          PERFORM BDC_FIELD  USING 'BDC_CURSOR' 'P2010-BEGDA(01)'.
          PERFORM BDC_FIELD  USING 'BDC_OKCODE' '=EDQ'.
          PERFORM BDC_FIELD  USING 'RP50M-BEGDA' TEMP_BEGDA.
          PERFORM BDC_FIELD  USING 'RP50M-ENDDA' TEMP_BEGDA.
          PERFORM BDC_FIELD  USING 'RP50M-PAGEA' ' 1'.
          PERFORM BDC_FIELD  USING 'RP50M-SELE2(01)' 'X'.
          PERFORM BDC_DYNPRO USING 'MP200000' '2450'.
          PERFORM BDC_FIELD  USING 'BDC_OKCODE' '/00'.
          PERFORM BDC_DYNPRO USING 'MP200000' '2450'.
          PERFORM BDC_FIELD  USING 'BDC_CURSOR' 'P2010-LGART'.
          PERFORM BDC_FIELD  USING 'BDC_OKCODE' 'UPD'.
Unlock the Details to the R/3 using Tcode PA30.
          CALL TRANSACTION 'PA30' USING BDCDATA MODE 'P' MESSAGES INTO MESSTAB.
Regards,
Vidya..

first of all, use a BAPI instead of BDC.. HR_MAINTAIN_MASTERDATA
you may have to do some up-front logic to determine which records to unlock, if necessary.
EDIT: that is a FM, not BAPI.
Edited by: robert phelan on Mar 16, 2009 8:57 PM

Similar Messages

  • How to unlock a locked ipad It is locked and now i can not unlock it, the screen is not responding to my sliding the arrow to unlock. can someone suggest what should i do?

    How to unlock a locked ipad It is locked and now i can not unlock it, the screen is not responding to my sliding the arrow to unlock. can someone suggest what should i do?

    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
    You may have to force iPad/iPod into Recovery Mode
    http://support.apple.com/kb/ht4097

  • How to unlock icloud lock of my iphone

    how to unlock icloud lock iphone 5

    i brought this phone in 2013 and i am sure its a new phone,coz in front of me only the phone is unpacked .
    the ever biggest mistake i made is that time i was not aware abt apple id n i told them to activate the phone for me.the guy who is dealing with the software installation activated my phone with his id it seems. May be after couple of weeks i started facing problem like every time it was showing for the apple id password was incorrect.That time a  friend created one new apple id for me and i started using that with out any issue. All these happ after the release of IOS 7.1.2 , one day my wife by mistakely formatted iphone with out disabling the Find my iphone option and all these mis happ started.
    my question is finally i found that guy who activated my phone ,but he is telling the apple id wat he is using is with domain hotmail.com
    n not sure abt the id  [email protected] where showing as the id used for activation, as this was happened  2 years before. Is there any possibility where the same id can be used now as same ID with some other domain( for eg domain of our primary mail id present in the apple info like  [email protected])
    i searched in the check activation lock status  its shwoing locked with some id not in the theft mode or lost mode.
    is there any possibility where i can view watz the full id used to activate the phone

  • Plug_in:how to unlock a locked document use acrobat API

    how to unlock a locked document use acrobat API.in acrobat plug_in

    how to unlock a locked document use acrobat API.in acrobat plug_in(Which API can enter a password to unlock the locked document)

  • How to unlock iCloud lock ?

    my iphone 4 have icloud lock, how can i unlock it ? OR IS IT PAID ?

    otokokochashvili wrote:
    Thanks, but without knowing past owner's apple id and password it's imposible unlocking iphone ? will Downgrade  unlock it ?
    No.  For starters, you couldn't downgrade even if you tried.
    The phone is useless to you unless you know the previous owners iCloud username and password.

  • How to unlock a record in an infotype

    Hi Gurus,
    I have to unlock an record in the infotype. There is a field in the infotype SPRPS which is indicated with 'x' states that it is locked. I am trying to to unlock the record by modifying the field SPRPS by using the function module hr_infotype_operation.
    When I am trying to update the field SPRPS with space it is throwing error.
    Previously I wrote so many programs for infotype updation every thing ran fine in those programs by using the fm 'hr_infotype_operation'.
    I am throughing with error 'EPG                  009No data stored for 0170 in the selected period'
    Please help me in solving this.
    Ravi

    Hi,
    Goto PA30 and enter PERNR.
    Then from the menu select Utilities --> Change entry/Leaveing date and then change the start date accordingly.
    Then Save.
    OR
    PA30 --> Give PERNR and select 0001 and Overview.
    Then select the record and then change it.
    Regards,
    Srini.
    Edited by: Srini on Nov 24, 2008 8:04 AM

  • Pls help on how to unlock the locked ipad2 wifi screen.

    I had my iPad2 wifi was locked the screen when my little boy tried to open by guessing passcode more than 3x... Need your help pls on how i can unlock the locked screen? I would appreciate your advise... Thank you.
    Gerry murillo

    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
    You may have to force iPad into Recovery Mode
    http://support.apple.com/kb/ht1808

  • How to find the user exit for infotype 2013 ?

    Hi All,
    How to find the user exit in infotype 2013? i want to change the drop down list default value in infotype 2013.
    Thanks,
    Srikanth P

    reward points if useful
    User exit name is PBAS0001.
    code should be written in ZXPADU01 for PBO
    ZXPADU02 for PAI.

  • How to unlock my locked iphone fast?

    How can I unlock my locked iphone that's completely locked?

    You'll need to connect the iPhone to your computer and restore it:
    http://support.apple.com/kb/ht1808
    If that still doesn't work, try DFU mode:
    http://www.iclarified.com/entry/index.php?enid=1034
    Regards.

  • Ipod touch 3rd g how to unlock a locked screen

    Ipod touch 3rd gen 32g screen is locked how to unlock

    Forgotten Screen-Lock Passcode
    Connect the iOS device to your computer and try to make a backup
    iOS: How to back up
    Then restore via iTunes. The iOS device will be erased. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:         
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store   
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • HT1937 how to unlock a locked iphone

    Dear Sirs
    Pleasant day I hope....
    Just asking about how to unlock a sim card locked iphone
    thanks

    See  >  https://discussions.apple.com/message/18214284#18214284
    From the  More Like This  section on the right...

  • How to unlock ipad without waiting for timer

    I have an iPad mini and my friend locked it for x amount of time. I know the code but can't enter it for a while. Is there a way to unlock it by syncing it to iTunes without erasing it? I have the laptop that it is synced to.

    No. You have to wait it out, or restore it with iTunes. You can restore it and then sync your content back to the iPad. More information can be found here.
    http://support.apple.com/kb/ht1212

  • How to extend IDOC type "HRMD_A" for infotype 2001?

    Hi,
    I'm trying to send infotype 2001 to another SAP system via ALE and since it is not part of message type "HRMD_A" I have tried to create an extension. I've already created a new segment(we31) and put this segment into the extension(we30). And I've assigned the extension to the message and basic type (we82) but it still doesn't work. Is there anything else I have to do?
    Many thanks in advance
    Christopher

    Hello Christopher,
    I don't think any coding is required in your case if I understand your issue correctly.
    Just create a Z segment (say Z1P2001...make it same structure as P2001) then insert it as a child segment type of E1PITYP in your customer extension which should be attached to Basic Type HRMD_XX (as per your SAP release).
    Make sure in the partner profile you have specified the name of your customer extension and in table T777D you have maintained the value of your Z segment (Z1P2001) in the field IDOC segment.
    Now, as long as you have change pointers activated globally as well as for the message type you are using, change pointers will be auto triggered for infotype 2001 and when you run BD21 to process the change pointer, you'll see the system has automatically populated your customer segment Z1P2001.
    Let me know if it solved your case.
    Cheers,
    Sougata.
    Edited by: Sougata Chatterjee on May 23, 2008 1:41 PM

  • Cross system object lock -how to build up lock entries for existing request

    Hello,
    we implemented ChaRM for some years and  intend to activate cross system object lock (CSOL), now.
    But there are a lot of existing transport requests, which have not been imported to productive system, yet.
    It would be very helpful to create lock entries for objects, which are assigned to those transport requests.
    Does anyone know any standard report for this purpose?
    Thanks a lot for any hint.
    Best regards
    Horst

    If anyone else needs that feature:
    Report TMW_TRKORR_LOCK_UPDATE (executed in satellite system) will lock the objects of a transport request in solution manager system.

  • HT1316 How to unlock the locked SIM

    Not get it to unlock the locked SIM

    Hi Anagha,
    Go to system Administration --> Monitoring --> Object Locking.
    Select object locking. The objects locked are displayed on the right hand side. Choose the objects and select unlock button that is found above.
    Regards
    Arun

Maybe you are looking for

  • Barcode printing -Barcode is not being scanned by the scanner.

    Hi, I am working on a rtf XML template creation for Pick slip Report. I have field called delivery_id which should be printed as barcode. I followed the instructions as per documents: 411899.1 and 373001.1.I downlaoded a demo version of the barcode f

  • Cordless phone on separate line kills AOL connection with Airport Extreme

    I lose my AOL connection everytime I get a phone call. My cordless phone is a panasonic 2.4Ghz gigarange extreme connected to a separate line. How can I change settings on either Airport Extreme or the cordless phone to fix this? Thanks, [email prote

  • Idoc reprocess status 03

    hello i need to reprocess idocs in status 03 through bd87 but it is not allowing please help

  • PDF Layer Generation from DWG file

    I am able to generate a PDF with layer controls (visible and invisible) when opening a DWG file from Acobat X.   I however with same file can not generate the same layer controls by using Adobe.pc3 or DWGtoPDF.pc3 from AutoCAD.   I either get the lay

  • ARQ: How to configure Role Approve/Reject Email Notifications???

    Hi, I would like to achieve below for my business scenario with below MSMP stage configurations: MSMS Stages Configurations: MANAGER --> Can act on both request and line items level Role Owner--> Can ONLY act on line items Requirement In best case, a