HR_INFOTYPE_OPERATION with DEL is not working.

Hi guys,
im trying to delete one row for it 0416 (i call this function using a BAPI in pa30)
the return code are: cant find an entry to delete001002002001A114   2007111420071114000
there isnt any entry in table T582Z with it 0416
here is the code
data: returne type  BAPIRETURN1,
      return type  BAPIRETURN1.
data: w0416 type p0416.
get the same record
Select single *
  into corresponding fields of w0416
  from pa0416
  where pernr = w2001-pernr
  and numbr = w2001-ABWTG
  and begda = w2001-begda
  and endda = w2001-endda.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = W2001-pernr
IMPORTING
RETURN = RETURNE.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0416'
NUMBER = w2001-pernr
SUBTYPE = 'Z001'
VALIDITYEND = w2001-begda
VALIDITYBEGIN = w2001-endda
RECORD = w0416
OPERATION = 'DEL'
TCLAS = 'A'
IMPORTING
RETURN = RETURN
EXCEPTIONS
OTHERS = 0.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = W2001-PERNR.
any ideas?

Hi ,
First check is there any entry for that EMP.
get the same record
Select single *
into corresponding fields of w0416
from pa0416
where pernr = w2001-pernr
and numbr = w2001-ABWTG
and begda = w2001-begda
and endda = w2001-endda.
if sy-subrc eq 0.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = W2001-pernr
IMPORTING
RETURN = RETURNE.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0416'
NUMBER = w2001-pernr
SUBTYPE = 'Z001'
VALIDITYEND = w2001-begda
VALIDITYBEGIN = w2001-endda
RECORD = w0416
OPERATION = 'DEL'
TCLAS = 'A'
IMPORTING
RETURN = RETURN
EXCEPTIONS
OTHERS = 0.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = W2001-PERNR.
endif.
Regards
Peram

Similar Messages

  • How to delete video from iTunes library? del and shift+del are not working - no any reaction

    how to delete video from iTunes library? del and shift+del are not working - no any reaction.

    seb963 wrote:
    Hi
    Currently, iMatch is turned off on my computer, as I do not want to upload any more songs. If I turn it on, will it upload all songs that are currently in my library? Is there another way that deleting them one by one?
    You must enable iTunes Match on the new computer. The best way to accomplish what you want to do is to create a new, empty library by launching iTunes while holding down the Option key (Shift on Windows) and choosing "new library." Do not let iTunes scan for new content, but do enable iTunes Match on the empty library. Once the scan is finished you may delete tracks from the cloud. When you are done switch back to the main iTunes library.

  • HT4235 iPod nano 6th generation, syncing with audiobooks does not work now, had been working.  Sync test says:  No iPod touch, iPhone, or iPad found.  Connectivity test OK, no physical problems, iTunes shows the iPod.  Any clues what to do?

    iPod nano 6th generation, syncing with audiobooks does not work now, had been working.  Sync test says:  No iPod touch, iPhone, or iPad found.  Connectivity test OK, no physical problems, iTunes shows the iPod.  Any clues what to do?

    Hmm.. Thank you for the response.
    Have you tried using the iPod with another user account or computer, to help narrow down whether the problem lies with the computer, account, or the iPod itself?
    Maybe try reformatting it, using the tools provided by Windows. Instructions on how to reformat your iPod can be found in this article.
    http://www.methodshop.com/gadgets/ipodsupport/erase/index.shtml
    B-rock

  • Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. Thanks.

    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. I am getting lots of spelling errors as the MacBook laptop screen is too small. Thank you so much! .

    Contentmom6 wrote:
    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work.
    Normally, you just connect the monitor to the MacBook using a VGA adaptor that you can buy from an Apple Store.  Now try System Preferences > Displays > Detect Displays.  You should now be able to select a display mode for the monitor.  If it still doesn't work, then I'd check that everything is properly connected.  I've had problems with colours disappearing due to a faulty connection in the VGA adaptor.
    Bob

  • FIND with MATCH OFFSET not working

    Hi,
    I have a statement:
    FIND '/' IN <ls_data_package>-/bic/zbib_sysn MATCH OFFSET off2.
    this works in all the case except for when <ls_data_package>-/bic/zbib_sysn = SSULTANA-VMC/.
    (i.e. when /bic/zbib_sysn = USERID-VMC/, here SSULTANA is the user ID)
    *In this case off2 = .
    Value of sy-subrc is 0 after this statement is executed
    Can some one please point out what I am doing wrong.
    Thank you,
    CD
    Edited by: CSD . on Sep 26, 2008 9:53 PM

    >FIND with MATCH OFFSET not working  
    Most unlikely.  More likely is that it isn't doing what you think it should be doing.  Or you're using it incorrectly!
    I can't really follow what your problem is.  I assume you mean that you are getting off2 with value 0, when /bic/zbib_sysn contains USERID-VMC/
    Can you be a little clearer in what the issue is?
    DATA: off2 TYPE i.
    FIND '/' IN 'this string /' MATCH OFFSET off2.
    WRITE: / sy-subrc, off2.
    This little program returns 0 and 12 
    matt

  • I am having trouble with my speakers not working while online in particular on windows.My audio works when playing audio files

    I am having trouble with my speakers not working while online particular on facebook. My audio works when playing audio files.

    Hi,
    Did it happen all the time or sometime?
    Please check online browser status:
    Click Volume icon in the taskbar, click Mixer link button as below:
    If it's fine, follow this guide to run troubleshooter to detect and fix the issue:
    Tips for fixing common sound problems
    http://windows.microsoft.com/en-in/windows/tips-fixing-common-sound-problems#tips-fixing-common-sound-problems=windows-7
    Meanwhile, this similar thread also could be referred:
    https://social.technet.microsoft.com/forums/ie/en-US/a4a1cfe5-93a5-4c0b-9bf6-f7db0304f2ba/no-sound-on-youtube-or-any-other-webpage
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Serial number provided with download does not work, now what?

    serial number provided with download does not work, now what?

    Chrish29593217 you are welcome to contact our directly at Contact Customer Care.  What Adobe software title are you facing difficulties with?

  • TS3297 i bot a 3g iphone 2nd hand and it is trobleing a lot with os and not working plese help me

    i bot a 3g iphone 2nd hand and it is trobleing a lot with os and not working plese help me

    The following guide gives information on how to sync ringtones from your computer to the phone. The reference section at the bottom of the quide also gives instructions on how to convert a song to a ringtone. https://discussions.apple.com/docs/DOC-3792

  • [svn] 4323: Bug: LCDS-544 - Scenario where two components have seperate channel sets with overlapping channels not working .

    Revision: 4323
    Author: [email protected]
    Date: 2008-12-15 19:23:10 -0800 (Mon, 15 Dec 2008)
    Log Message:
    Bug: LCDS-544 - Scenario where two components have seperate channel sets with overlapping channels not working.
    QA: Yes
    Doc: No
    Checkintests Pass: Yes
    Details:
    * Hunting to a new channel within a channelset never triggered a disconnect from the previous channel(s). This isn't a problem in general, but does becomes a problem when an app defines two distinct channelsets containing at least one shared channel at the head of the list. In this case, the first channelset hunts past it and connects on a later channel. But when the second channelset hunts through (triggering a connect fault when it hits that initial shared channel that can't connect), the fault is processed by the first channelset as well (incorrectly).
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-544
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as

    Running the script by python2 solves it for me:
    su - mythtv -c "nice -n 19 python2 /usr/bin/tv_grab_nl_py --output ~/listings.xml"
    Best regards,
    Cedric

  • I have downloaded skype, but after synchronizing with itunes skype not working, why?

    i have downloaded skype, but after synchronizing with itunes skype not working, why?  when I was synchronizing I believe there was some message in itune saying software not backed up or somethin to that effect.

    Thanks for your response.
    However, I did not find any solution to my problem.
    in my phone the skype application skype is not opening up, same is the caseiwth mobile voip. Both these applications were downloaded last night and it worked then, but not working now.
    Thanks in advance for anyone willing to help. I am new to the iphone.

  • Hello, all of a sudden I fell down my system and completely erased all bookmarks. Your progress with restoration does not work, send me ansver,please

    Hello, all of a sudden I fell down my system and completely erased all bookmarks. Your progress with restoration does not work, write me of bookmarks could not be loaded. Please advice on everything because I came and they seriously need it.

    Did your computer crash or did Firefox crash causing the loss of the bookmarks?
    You can check for problems with the places.sqlite database file in the Firefox Profile Folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    See also:
    *http://kb.mozillazine.org/Lost_bookmarks
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.org/kb/Firefox+crashes

  • Dell printer not working right with 10.6.4 update

    I updated to 10.6.4 yesterday and now my dell 5130cdn isnt working properly. most of the time i get a network host is busy and then it eventually prints 5-10 minutes later . Ive deleted the printer and reinstalled the mac os driver dell. no change.
    Do i just have to wait for Dell to update their driver ( if ever) or is there any suggested fixes?
    Thanks

    Am experiencing this same problem. Got a new Dell 5130 cdn Color Laser printer. Hooked it up to the network, my wife can print to it fine from her PC, my kids (running OS X) have no problem, but when I try to use it (running Leopard - 10.6.4) I get the "Network host 'DELL9CDE5B.local.' is busy; will retry in 30 seconds" and it keeps extending.
    It does eventually print, after a few minutes. Takes about 3 or 4 minutes per page to print. Tried Print Therapy, no help.
    Called Dell, they said they don't offer support for OS X system. Huh? I said I would return the printer, all $1,400, they then "escalated" things and said they would have someone call me w/in 24 to 48 hours.
    Very frustrating that it appears Dell doesn't have drivers that work with 10.6.4.

  • PSElements 12, purchased with Dell computer, quit working.  How do I get the software to function again?

    I purchased a Windows 7 system from Dell in April 2014, including PSElements 12 and Premiere 12.  Elements 12 worked fine until a few days ago, then reverted to the 30-day trial version.  A Dell Support Agent worked on it for two days, left Elements 12 where it will not run at all, suggested I contact Adobe.  Premiere 12 seems to be ok.
    How do I get PSElements 12 functioning once more?  I have a valid activation code.  Can I uninstall the program and download it anew from Adobe?

    After reading some other posts, I decided to try a new download from Adobe, activated with my valid Activation Code.  The first attempt completed the installation, but would not run.
    I then used Revo Uninstaller Pro to uninstall the program and its leftover bits, and, in the process, learned that an Adobe Reader update may have written to the same area as PSE 12.  I removed Adobe Reader.
    After reinstalling PSE 12, I first got the Welcome Screen.  When I selected "Start with Editor", I now get no response at all.  I am beginning to suspect that the startup icon only starts the Organizer, and I can't find a way to start the Editor.
    Frustration abounds!!!!!
    Jim Nichols

  • Title in combination with videoclip does not work.

    I did pre-order the dutch version Premiere Elements 9. (Del. mid okt.) Until that time I installed the english trialversion PE 9.
    I tried to place a title at the same place as my videoclip.(videotracks 1 and 2). This results in a black screen. Changing tracks does not work.
    When I place a title over a still image(photo-jpeg) then I see both title and image at the same time. Is this a problem with the trialversion?
    or can't this be done in Elements. I know that in Premiere Pro this was possible.
    What am I doing wrong?

    I'm sorry, but I don't know enough about what you've done to tell you what you've done wrong.
    But first, make sure you are in Timeline, not Sceneline mode.
    Your video should be on the Video 1 track.
    Position the CTI playhead on this clip and click on the "T" in the lower right of the Monitor panel to open the Titles workspace. Create your title.
    The title will appear on the Video 2 track, at the position of the CTI, over your background video. You can also move it around and change its placement on the timeline if you'd like.

  • Dell Printer not working

    I'm am working on an iBook and my friend has a Dell XP desktop. We are on a wireless network and can share files. I want to be able to wirelessly print to his Dell A920 which is connected via USB to his computer.
    I am able to connect to the printer and set it up...i.e. I can use Printer Setup Utility navigate to his computer select the connected printer and everything. However, I am not able to selected what kind of printer it is because Dell isn't a choice, so I leave it as Generic.
    When I go to print a word document the printer makes noise (sounding like it's going to print) and a status bar showing the printing process shows up on the Dell's screen. Except, it goes from 0 - 100% in about 2 sec, then closes, and never prints. To me the problem seems to be that I can't select what type of printer it is in Printer Setup Utility and therefore there is no driver and I can't print.
    Does anyone know what this Dell's associated driver is. I think that Epson makes Dell's printers. Thank you very much.

    Lexmark make many of the Dell printers, however following earlier posts on this the Lexmark drivers will not work with Dell printers.
    The A920 is similar to the Lexmark X1150 so you could try that driver, but previous experience tells me it probably won't.
    As there is no Mac driver for the Dell printer you will need to print to PDF, pass the file onto the PC and print from there.
    The Generic Printer option won't work as the A920 is not a postscript printer.
    iFelix

Maybe you are looking for