[hr_infotype_operation fails] update it230 in it8 via clientspecified IT

Hi there
I need some help to solve my problems with updating infotype 230 from a clientspecified Infotype.
How it works:
I have a client-specified Infotype (9100) that recalculates specific dates for the public sector (typical german stuff ). Those data, stored at infotype 0230, is maintained via it0008 where a small subscreen is included, to enter those Data.
At Infotype 9100 the user can start modifying data by pushing the button "modify IT0008 Data".
At PAI the fcode calls a perform where "HR_INFOTYPE_OPERATION" passes the Data to IT0008.
I think everything works fine und the return structure is initial, what means: allright, nothing went wrong!
BUT: no data is transferred to the database tables!! If I press the button a second time, the system crashes with a dump ...
If I use "2" at dialogmode, infotype 8 is shown and the data is correctly inserted into the correct fields ...
The problem is: the FM "HR_INFOTYPE_OPERATION" works fine, but the Data is not send to / updated in the DB tables of IT230.
Here's the coding:
****ps_0008 and ps_0230 are the datasets, containing the data to modify my infotype(s)
****p_viekn is the viewidentifier
  CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
      number = ps_0008-pernr
    IMPORTING
      return = gv_return_struc.
  IF NOT gv_return_struc IS INITIAL.
*** Errorhandling
    EXIT.
  ENDIF.
  CALL FUNCTION 'HR_INFOTYPE_OPERATION'
  EXPORTING
    infty         = '0008'
    number        = ps_0008-pernr
    subtype       = ps_0008-subty
    validityend   = ps_0008-endda
    validitybegin = ps_0008-begda
    record        = ps_0008
    view_identifier = p_viekn
    secondary_record = ps_0230
    operation     = 'MOD'
    dialog_mode   = '0'
  IMPORTING
    return        = gv_return_struc
    key           = gv_record_key.
  CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
    EXPORTING
      number = ps_0008-pernr.
thankyou for your help

Thanks
I already tried to commit with ABAP "COMMIT WORK". Is this similar to your proposal?!?!
But yesterday I found a first workaround, thats working great!
I export neccessary Data to ABAP-Memory (with EXPORT obj to MEMORY ID xyz) , calling an external programm (SUBMIT report AND RETURN)
The external Programm does nothing more than getting the Data from ABAP-Memory (by IMPORT obj FROM MEMORY ID) and calling the function modul "HR_INFOTYPE_OPERATION" to modify the Infotype
Now I try to solve it with a simple function module (don't know why I didn't think about it earlier) ....
So, my question is answered and maybe this thread can help someoneelse with the same problems

Similar Messages

  • I tried updating my Photoshop CS6 via the cloud and received the following message...Update failed Errors encountered during installation.(U44M1P7).  What does that mean

    I tried updating my Photoshop CS6 via the cloud and received the following message...Update failed Errors encountered during installation.(U44M1P7).  What does that mean

    http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html

  • Using FM HR_INFOTYPE_OPERATION to update infotype 0001.

    We're using FM HR_INFOTYPE_OPERATION to update the infotype 0001 (Organisation). We basically have the Cost center field grayed out on the entry screen so can not update it via BDC, which the cirrent method that we use to create new employees, based on data passed in from a third party system. When then attempt to update the employee record (using Copy) and the FM mentioned.
    We first get the details of the infotype using FM HR_INFOTYPE_GETDETAIL, and this work perfectly, returning all the information required. We the update the structure returned by the RECORD parameter and then use the FM HR_INFOTYPE_OPERATION, like so:
        call function 'HR_INFOTYPE_OPERATION'      
          exporting                                
             infty         =  '0001'               
             number        =  gs_p0001-pernr  
             SUBTYPE       =                       
             OBJECTID      =                       
             lockindicator = 'X'                   
             validityend   = '99991231'            
             validitybegin = gs_p0001-einda   
             RECORDNUMBER  = '001'                 
             record        = gs_p0001             
             operation     = 'COP'   
             nocommit      = 'X'             
       importing                           
        return        = gt_bapireturn1   
        key           = gs_bapipakey     
    exceptions                          
        others        = 1.            
    However, we receiving an error in the gt_bapireturn1 itab basically giving the error PG 184. When I look up the error it basically says that to update this info type we need an exclusive lock, which I would have thought exists when using the LOCKINDICATOR parameter. The previous FM ( HR_INFOTYPE_GETDETAILS) returns blank against the SPRPS fileld (Lock indicator) when reading the infotype data, so it's not previously locked or anything.
    We're using version 4.0b, which I know is pretty old, but surely this update should work.
    Has anyone encountered this problem before, and, do you think I should be able to update this field even though it's grayed out on the screen ?.
    Jason
    Edited by: Jason Stratham on Mar 16, 2010 11:41 AM

    I read that I should be using the enqueue and dequeue FM's despite the LOCKINDICATOR parameter.
    This I have now done, but am now receiving an error PG 428 'A complex application error has occurred', but I'm none the wiser in knowing why this error has occurred. Has anyone encountered this error before?.
    I'm beginning to feel that despite being told that I can use the HT_INFOTYPE_OPERATION  function module it may well purely imitate the front screen processing, which does not allow us to change the cost center value. Is there any way that this might be done. We're on version 4.0b, and I'm sure that in later version there might be a BAPI that almost directly updates it. I guess there's no such method for 4.0b?.
    Jason
    Edited by: Jason Stratham on Mar 16, 2010 12:06 PM

  • Software iOS 6.0.1.failed update, Software iOS 6.0.1.failed update

    Software iOS 6.0.1.failed update what to do next

    Is your iPad currently running an iOS lower than iOS 5? Did you get an error message with a #?
    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. For the iPad Mini the iOS is 6.0.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • Can't update/search/install packages via pacman or yaourt

    Everything was fine until I manually installed package-query and yaourt and now I am unable to update/search/install packages via pacman or yaourt.
    Earlier I was having trouble installing the package-query and yaourt packges using pacman so had to install them manually and now it wont connect to the repos.
    My eth0 is up, the proxies are set, all browsers work so no problem from the network side.
    :: Synchronizing package databases...
    error: failed retrieving file 'core.db' from mirror.us.leaseweb.net : Connection timed out after 10001 milliseconds
    error: failed retrieving file 'core.db' from mirror.nl.leaseweb.net : Connection timed out after 10001 milliseconds
    error: failed retrieving file 'core.db' from mirror.de.leaseweb.net : Connection timed out after 10001 milliseconds
    error: failed retrieving file 'core.db' from archlinux.polymorf.fr : Connection

    clfarron4 wrote:I usually advise against this (mainly because it's out-dated) but there is the [archlinuxfr] repository for installing yaourt, if you really insist on sticking with it. Once you're done, disable the repository though because everything except for yaourt is out-of-date by at least a month.
    Don't ever suggest that. The repo is 100% useless since it is trivial to install yaourt from aur. Also yaourt/package-query in that repo is often broken/outdated.
    Also it is not relevant to op's problem anyway. There were some routing issue to leseweb the other day, I also noticed it. Just switching mirror works fine.
    Last edited by Mr.Elendig (2013-09-04 13:37:49)

  • Multiple "FAILED UPDATES" warnings for CS5 Design Premium

    I am not good at forums and hope this is the right place. If not, please someone guide me because I need help.
    I have gotten a failed update warning many times on my Win7 Ultimate machine after trying to do a maintenance update on my CS5 Design Premium. Does anyone know what to do? With all due respect I was angered to learn from Prakesh via chat support that I had to turn to the forums for help with a software update issue!! I thought forums were for learning how to use features of the software, not what I would consider a software technical issue. Is this common with ADOBE?
    I also have CS6 Production Premium but haven't encountered any update issues with it.......yet.
    ANY help would be greatly appreciated. I spent THOUSANDS of dollars on these 2 packages and can't believe I can't make a call to ADOBE!

    update manually, http://www.adobe.com/downloads/updates/

  • Failed Update - Windows 8.1 Update

    I purchased a new laptop in March running Win. 8. I updated to 8.1 and then the latest update. I downloaded drivers for my Photosmart 7500 and Officejet 6500A Plus E710n from the HP website. Everything works fine, but when I checked my update history, I have over 400 failed attempts to install something. I'm  getting at least 30 a day. My officejet appears to be OK. The printers are set up wirelessly. I also have a Macmini and my printers are connected via USB. These are the messages in my update history.
    "Hewlett-Packard - Imaging, Other hardware - Null Fax - HP Photosmart 7520 series"
    and
    "Hewlett-Packard - Imaging, Other hardware - Null Print - HP Photosmart 7520 series"
    Installation Status: Failed
    Hewlett-Packard Imaging, Other Hardware Update released in November, 2009
    Error details: Code 80070490
    I contacted the Microsoft forum, but they haven't replied.
    I don't know if you can help me. It's probably a Microsoft issue.
    Helen
    This question was solved.
    View Solution.

    I thought I sent you a reply, but I can't find it. Thae document you sent from Microsoft didn't work. I followed all the directions and when I got to the command prompt and entered the command, hit enter, tried to enter the next command and nothing happened. The directions were to enter both commands hitting the ENT key after each one. Nothing happened and when I tried to exit, again nothing happened. So, it didn't work. I guess I have to deal with all the failed updates for my printer. At least the really important updates are woking OK. I guess all the HP Photosmart 7520 failed updates I'll just have to treat as nuisances.
    Helen

  • I have recently updated the new apps via creative cloud now photoshop and bridge no longer work, they open then say they have encountered a problem and close, I also tried opening the old version of photo shop but getting the same result

    I have recently updated the new apps via creative cloud now photoshop and bridge no longer work, they open then say they have encountered a problem and close, I also tried opening the old version of photo shop but getting the same result

    What OS version? What's the exact error? Exactly when does the error occur? What previous versions? What is on the screen when the error displays? Does Photoshop get fully open?
    Try opening Photoshop holding down Shift key immediately to turn off plug-ins. Lots of good suggestions here: Photoshop: Basic Troubleshooting steps to fix most issues

  • IPhone 4 in recovery mode after failed update with most recent software (3/25/13), I only have the past 30 days worth of photos and my contacts in iCloud, how do I get the rest of my pictures off of my phone? I have read the apple article already.

    Basically headline says it all, my phone is in recovery mode following a failed update through the phone and I want all my photos back.  I have already read the "iOS: Unable to Update or Restore" and it indicates that when restoring through iTunes, you lose all data on the phone. I have checked my iCloud (I am a Windows7 user so uploading does not happen automatically, as I unfortunately just figured out) and it only will upload my past 30 days of photos and contacts, inline with what I've read about the cloud only storing 30 days of your past data. I really would like to get all of my photos off of my phone, I had photostream activated and most were in that stream. Is there anything I can do? I don't know what operating system is on there currently, but I have always updated my phone succesfully until today when this happened, so I'm assuming whatever is most up to date until today is the OS it has. Thank you!

    When your phone is in recovery mode, it's like it crashed.  The only way that you can get it out of recovery mode is by restoring, and this erases all your data as well.   
    You can believe what you wish by "reading all over the internet".  This is Apple's technical support forum.  We do know what we're talking about.
    since you have very important photos on your phone, why haven't you been importing them to your computer as soon as possible after taking them?  This is how the phone is meant to be used.  Keeping critical data on only a device which can be easily stolen, dropped and broken is just plain foolish.  Also, did you not back up your phone (as you should be doing with any computer) before attempting any operating system update?  As you've now just painfully learned, updates do not always go as planned.
    I'm sorry for your data loss, but let this be a very important lesson.  BTW, when was the last time you backed up your computer?  I'm sure you have important data on your computer.  Hard drives WILL fail.

  • I can't seem to update icloud's calendar via my iPhone's calendar. Also, iCal on Mac follows iCloud so when I sync iPhone to Mac it becomes a even more confusing situation...

    Pardon my ignorance. I have scoured the forums and no one seem to touch on the exact subject I am talking about.
    I can't seem to update iCloud's calendar via my iPhone's calendar with all connectivity turned on (sync,push,pull,slap whatsoever).
    Also, iCal on Mac follows iCloud (sluggishly and not due to connection problem, so i'd nice to have a status bar telling me whether or not it's active and doing some updating) so when I sync iPhone to Mac it becomes a even more confusing situation...
    Simplified version:
    -Events created on the iphone doesnt get on icloud.
    -When iphone is synced with ical on mac and changes are made on Mac, changes are not immediately reflected on iphone unless clicked "sync"
    -I just want to view a live ical at all times without going to safari and opening up the web iCal. I want to view a 100% live iCal on the native iCal via iPhone. Like google docs! Is that too much to ask!?
    Iphone seemed to have a "push" or "sync in this many minutes" option for iCal, but that seemed like it's only receiving changes, and not send out changes made via phone. Very confusing, very annoying!

    Download iTunes using the tab at the top of this page. Then run the update with iTunes closed.

  • Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    iPhoto preferences - set the email client to Mail
    LN

  • HT4623 I have an ipad 2 on ops 4.3 and have just updated to 7.1 via itunes. I backed up first and have synced repeatedly but keep getting a message on my ipdad screen that the ipad is not set up - I chose the set up option restore from itunes back up

    I have an ipad 2 on ops 4.3 and have just updated to 7.1 via itunes. I backed up first and have synced repeatedly but keep getting a message on my ipdad screen that the ipad is not set up - I chose the set up option restore from itunes back up

    To free up hard drive space the best bet is to move data files that you don't need access to all the time. Likely candidates are music, video, and photos. Things like word processing and spreadsheet files can also be moved but they tend not to be very large and so don't free up much space. The problem with moving the above mentioned files is that iTunes and iPhoto need to know where the files are stored.
    Here's an article explaining how to move the iTunes folder. You can move the iPhoto library using the Finder but there is a slight complication. Start iPhoto, open the Preferences and click on the Advanced tab. The first option is "Copy items to the iPhoto Library". If this option is checked, copy the iPhoto library to your external folder (drag it from the Pictures folder to your external drive) and then delete it from your Picture folder. If this option is not checked, it is a bit more complicated and we'll need to talk a bit.

  • Error when updating Playbook OS version via Blackberry Desktop Manager

    Greeting,
    I have a batch of old playbooks which having the stack charging issue, but I found that I can update the OS to the newest version (2.1.0.1917) via Blackberry Desktop Manager, then the charging algorithm will be changed to the updated one and go over this dead battery issue. I was able to do so successfully in the past week smoothly on several devices.
    But since this Monday, the Desktop Manager is saying "An updated Blackberry Desktop Software component must be installed before you can continue" when downloading the Desktop software and will appear "There was an error updating your software, an error has occurred while downloading the Blackberry Desktop Software.Please try again." and preventing the process. Seems there are some change on the server side starting this week which has caused this problem, but there's no error code to locate the exact issue.
    I tried on 2 different computers as well as completed uninstalling and re-installing the Desktop manager, also tried to disable the automatic update as been advised in some threads. So no clue how to deal with it for now. It will be highly appreciate if some one can share some idea.
    I've attached the step by step screenshots for reference, where you can find here:
    http://forums.crackberry.com/blackberry-playbook-f222/error-when-updating-playbook-os-version-via-bl...
    Thanks,

    BLock wrote:
    Sorry I can not help you with your problem but perhaps you can help me.  
    Can you advise where I can find info on "disable the automatic update"?
    just ignore the update if you dont want it on the playbook
    for reloading the OS
    First I would like you to do a Back Up of your PlayBook using your computer and BlackBerry Desktop Software.
    This can be downloaded for free from http://us.blackberry.com/apps-software/desktop/
    After the Back Up is complete I need you to unplug your PlayBook and then push and hold down the Power Button until the unit Force Powers Off.
    Now, while Desktop Software is still open on your computer and the PlayBook Powered Off, Connect the PlayBook to your computer.
    You should see and error screen from Desktop Software pop up that has the options to Retry, Update, or Cancel.
    QUICKLY choose the Update option.
    This will erase all the information off of your PlayBook and Re-Write the Software back onto it. Once it's complete your PlayBook will need to go back through the setup wizard, and you can then perform a restore using Desktop Software to return your information. The only thing that won't come back after the restore are the apps that you downloaded from App World but they can be easily Re-Installed using the My World feature in App World.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Hi, my iphone 5 encountered an unknown error while updating to iOS 7 via itunes and is now stuck in recovery mode and prompts me to restore the phone when I connect it to itunes but then I would lose all my data. Any suggestions please?

    Hi, my iphone 5 encountered an unknown error while updating to iOS 7 via itunes and is now stuck in recovery mode and prompts me to restore the phone when I connect it to itunes but then I would lose all my data. I DO NOT have any back ups on itunes. Is there anyway to get out of recovery mode without restoring or recover data after a restore?
    Or any other suggestions please? Thanks

    As pdroth said, you should have gotten a backup made when you started the update of iOS. If you cannot find a backup, and the phone is in recovery mode, there are no futher suggestions to make. To get the phone working again you have to restore. You cannot force a backup at this time since it is already in recovery mode. It will not allow anything else but a restore at this point.

  • HT2305 When I am trying to update my iPad 2 via syncing it with my PC, I get the following error message: "iPad software update server could not be contacted." Any ideas?

    When I am trying to update my iPad 2 via syncing it with my PC, I get the following error message: "iPad software update server could not be contacted." Any ideas?

    Try rebooting your router and or cable modem. Unplug it/them for about 30 seconds and then plug back in. See if it works then. Reboot your iPad as well.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

Maybe you are looking for

  • Can't create a Home Folder alias

    How can I create an alias of the Home Folder (User Folder) to put on the desktop? I've done it in the past, but I'm not able to do it now, nor am I remembering how I did it. When I highlight the Home Folder in the User's folder and try to make the al

  • Steps required for Sender IDOC adapter PI 7.0

    Hi all, My basis guy has installed SAP EHP1 for PI7.0 for handling the idoc packaging(sending idocs in packs)... Please can any one let me know the further settings required in PI after it has been installed... and even when i open the sender IDOC in

  • Macbook Pro Connectivity Problem

    my macbook pro quits its internet connection whenever I close it. Then I have to wait for reconnection when I open it. How can I adjust this?

  • Ship to party post code or the post code of the delivery address

    Hi I need to prepare a query that has amongst other things the post code where the material was delivered. Which table and field should I use for the same pls? Also- related to this..whever I want to find a field and a table name..I say f1 and then f

  • Very very synch with Windows 7

    I have recently gotten a new laptop with Windows 7 and while iTunes loaded without any problems I am having problems synching my iPhone. It takes so long that the device times out every time. Even when I tried to just synch one thing at a time (i.e.