Copying goals/objectives from appraisal documnt : FM not working...

I have a requirement in which all the "Goals/Objectives" from the previous years appraisal documents are to be copied to the newly created appraisal documents for the current year.
I take the details of the previous years appraisal document using "HRHAP_DOCUMENT_GET_DETAIL" .
I use the exact data of the previous years document making only minor changes (document header dates) and then create a new appraisal document using FM "HRHAP_DOCUMENT_SAVE".
The error is that the Goals/Objectives do not get copied completely....
eg. The previous years document has 3 goals
     "xxx
      yyy
      zzz"
The newly created will have 3 goals but the texts of the goals will not get copied and will display the default text. eg:
     "New Goal
      New Goal
      New Goal"
Using Other FM's like HRHAP_DOCUMENT_CREATE or HRHAP_DOC_UPDATE_BODY_AND_SAVE also give the same results.
The problem might be because I am directly using "body_elements" from the previous document in the new document w/o any edits.
Any n all suggestions highly welcome....
p.s. kindly notify me if this query should be posted in another forum other than ABAP Development.

Hi,
Try like this ...
To get all the templates use this FM
CALL FUNCTION 'HRHAP_TEMPLATE_GET_LIST'
    EXPORTING
      add_on_application = 'PA'
      plan_version       = '01'
    IMPORTING
      t_templates        = tb_templates.
Data :  tb_s_with_or_without    TYPE hap_s_sel_with_or_without.
tb_s_with_or_without-sel_display_existing = 'X'.
*--To get the list the documents
  CALL FUNCTION 'HRHAP_DOCUMENT_GET_LIST_XXL'
    EXPORTING
      add_on_application    = ' '
      plan_version          = '01'
      t_templates           = tb_templates
      s_sel_status          = tb_hap_status-----> mandatory table to pass --just pass it
      t_sel_status_sub      = gt_1000_status_sub---->pass this if u r considering the Sub statuses also
      s_sel_with_or_without = tb_s_with_or_without---->check above
      t_appraisees          = tb_appraisees---> get all appraisal Ids into this table form HRHAP table
    IMPORTING
      t_documents           = tb1_docs.---> will get all the documents
Regards,
Padmasri.

Similar Messages

  • Copying goals/objectives from one appraisal documnt to other.(Not working)

    I have a requirement in which all the "Goals/Objectives" from the previous years appraisal documents are to be copied to the newly created appraisal documents for the current year.
    I take the details of the previous years appraisal document using "HRHAP_DOCUMENT_GET_DETAIL" .
    I use the exact data of the previous years document making only minor changes (document header dates) and then create a new appraisal document using FM "HRHAP_DOCUMENT_SAVE".
    The error is that the Goals/Objectives do not get copied completely....
    eg. The previous years document has 3 goals
    "xxx
    yyy
    zzz"
    The newly created will have 3 goals but the texts of the goals will not get copied and will display the default text. eg:
    "New Goal
    New Goal
    New Goal"
    Using Other FM's like HRHAP_DOCUMENT_CREATE or HRHAP_DOC_UPDATE_BODY_AND_SAVE also give the same results.
    The problem might be because I am directly using "body_elements" from the previous document in the new document w/o any edits.
    Any n all suggestions highly welcome....

    Hi,
    Try like this ...
    To get all the templates use this FM
    CALL FUNCTION 'HRHAP_TEMPLATE_GET_LIST'
        EXPORTING
          add_on_application = 'PA'
          plan_version       = '01'
        IMPORTING
          t_templates        = tb_templates.
    Data :  tb_s_with_or_without    TYPE hap_s_sel_with_or_without.
    tb_s_with_or_without-sel_display_existing = 'X'.
    *--To get the list the documents
      CALL FUNCTION 'HRHAP_DOCUMENT_GET_LIST_XXL'
        EXPORTING
          add_on_application    = ' '
          plan_version          = '01'
          t_templates           = tb_templates
          s_sel_status          = tb_hap_status-----> mandatory table to pass --just pass it
          t_sel_status_sub      = gt_1000_status_sub---->pass this if u r considering the Sub statuses also
          s_sel_with_or_without = tb_s_with_or_without---->check above
          t_appraisees          = tb_appraisees---> get all appraisal Ids into this table form HRHAP table
        IMPORTING
          t_documents           = tb1_docs.---> will get all the documents
    Regards,
    Padmasri.

  • Paste as Smart Object from Ai to Ps not working. Boundary box is there but art is missing.

    Paste as shape layer works and so does paste as outline but Smart Object and pixels paste not working. I have the latest versions of each program.

    Could you please post screenshots to illustrate the issue?
    Are you sure the copied Path has Fill or Stroke?

  • CS3 - Copy and Paste from InDesign to Illustrator NOT working

    I am trying to copy and paste some graphical elements from InDesign to Illustrator. The Paste command is active in Illustrator, but when I evoke the command, nothing is pasted. What is wrong?

    Apparently it is an issue with Leopard (and Illustrator)
    Workarounds:
    1) Export from InDesign as eps or PDF, or
    2) Copy paste into Photoshop as a Smartobject, and then double click the layer to edit smart object (it will open in Illustrator)
    I know, it's a pain.
    Ian

  • Unknown error when copying any object from Illustrator to Photoshop

    When trying to copy an object from Illustrator CS5 and paste it to Photoshop CS5 on Windows 7 I get the the following error when I switch from Illustrator to Photoshop:
    The operation cannot complete because of an unknown error. [pdf!]
    This only happens between Illustrator and Photoshop - copying an object to InDesign works fine.
    I deleted the full Adobe preferences folder on D:\Users\[username]\AppData\Roaming\Adobe   but that doesn't help.
    Am I the only one with this issue?
    Q

    There's definitely something wrong.
    Have you rebooted your machine recently?
    I'm on a Mac, so maybe something happens on Windows that I'm not aware of.
    Let's see if anyone on a Windows system has any ideas.
    Anyone?

  • Reopen All Windows from Last Session is not working

    The option Reopen All Windows from Last Session is not working, is there any other way to recover the tabs from my last session?
    Last night I fell asleep and my friend shut down my laptop.
    When I woke up in the morning I couldn't restore my last session which had several tabs opened for my research.
    I don't know the exact date when I found them, so I haven't been able to find them in History either.
    I've looked around on the internet, but haven't been able to find anything that helped me out.
    Hope you can help me! Thanks.

    Restart your Mac.
    Check the box for:  Reopen windows when logging back in
    Then check History >  Reopen Windows from Last Session

  • HT201210 trying to download an instal ios 7 on my iphone 4s, after half an hour into the download it came up with a message saying failed and everytime i try again the download doesnt start. tried downloading from itunes aswel but not working. anyone know

    trying to download an instal ios 7 on my iphone 4s, after half an hour into the download it came up with a message saying failed and everytime i try again the download doesnt start. tried downloading from itunes aswel but not working. anyone know why?

    The servers are overloaded. There are a hundred million people all trying to download iOS 7 at one time. Try again later

  • The "always match my default message font" option in the Signature preferences from Mac Mail does not work if e-mail is received in other Mail Software. How can I make it work?

    The "always match my default message font" option in the Signature preferences from Mac Mail does not work if e-mail is received in other Mail Software. How can I make it work?

    I found this plugin which solved pretty much all of my mail font rendering problems.  It is designed for Lion, so don't know whether it will work but thought I would offer it up.
    http://noware-it.zxq.net/

  • HT201412 Safari could not open the page because the server stopped responding- new ipad mini's (2 from separate places) are not working with At & T router but computers work. Can you please help me. I've tried everything. Thanks ya'll!

    Safari could not open the page on my new ipad mini's because the server stopped responding- new ipad mini's (2 from separate places) are not working with At & T router but computers work fine. Yesterday I got it to work. Weird. Can you please help me. I've tried everything. Thanks ya'll!

    Hello SavannahSweetie,
    I was looking into the issue you are desribing, and found a great article for troubleshooting wifi connections with iOS devices. It's called iOS: Troubleshooting Wi-Fi networks and connections and can be found here: http://support.apple.com/kb/ts1398.
    Start with this section, and work your way down if needed.
    Basic troubleshooting
    Tap Settings > Wi-Fi and turn Wi-Fi off and then on again.
    Verify that you are in range of your Wi-Fi router or base station.
    Confirm that your Wi-Fi router and Cable/DSL modem are connected to power and turned on.
    Check whether other devices (portable computers, for example) are able to connect to the Wi-Fi network and access the Internet.
    Update your Wi-Fi router to the latest firmware.For AirPort Base Stations, refer to this article for information about firmware updates. For third-party Wi-Fi routers, check the manufacturer's website for details on updating your firmware.
    Restart your iOS deviceHold the On/Off button until "slide to power off" appears. Slide to power off your device. When it is off, press the On/Off button to turn it back on.
    All the best,
    Sterling

  • Redemption code from Photoshop Elements 12 purchased from Best Buy does not work 'Oops! This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code.'   I have an invoice and the pickup notice from

    Redemption code from Photoshop Elements 12 purchased from Best Buy does not work 'Oops! This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code.'   I have an invoice and the pickup notice from Best Buy.   What other information does Best Buy need?   What will they do?   Will I get a new box?   What happened to the days of just typing in a simple s/n?   

    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • Wish to post KeyNote file as pdf. Export from KN to iW not working

    Wish to post KeyNote file as pdf. Export from KN to iW not working - get blank screen. Tried to upload PDF to mobile me and link to that file - also didn't work. I'm not familiar with iFrames but have read about them in this forum - is that my only option? Why wouldn't a KN export work?
    Thanks, Brian

    I have just tried this with a test site and publishing to a folder and it does work perfectly for me.
    I had a Keynote document already so all I did was click on File and then selected the Print option. I then selected the save as pdf option the the pdf document was created on my desktop instantly.
    All I then did was open iWeb and type some words in a text box My Prices. I then highlighted My Prices and opened the Inspector and went to Hyperlink and clicked on the option Hyperlink to a file. I then selected the pdf file from my desktop.
    I then used ftp to a folder on my desktop and when I opened the appropriate page, I click on the words My Prices and the pdf file opened straight away.
    As OT has suggested, check that you have linked to the correct file. If it does not work, either you have not created the pdf correctly or at all or you have not linked to the correct file.
    As I said, it worked for me.

  • Help!!! I can not make or receive calls! other functions itself. Internet, sms, whatsapp work. I restored as new iphone from the phone and from itunes and still not working.

    I can not make or receive calls! other functions itself. Internet, sms, whatsapp work. I restored as new iphone from the phone and from itunes and still not working.
    Sorry for my english i'm spanish

    I have not tried that...I will look up the process so that I can do it correctly (and still transfer all of my files, contacts, etc).  Any suggestions?  What is the advantage of restoring as a new device..is this more akin to a complete wipe of a hard drive?

  • Windows 7 Defrag from command line does not work

    We are running Windows 7 in a virtualized environment. When running windows defrag using schedule or from command line, it does not work. The command that I am executing as administrator is
    C:\Windows\system32>defrag /c
    Microsoft Disk Defragmenter
    Copyright (c) 2007 Microsoft Corp.
    It displays the above message and exits back to the command prompt. However if I run the command defrag C: it does work. Defragmenting from the GUI works as well as long as both the disks (C: and System Reserved) are selected and when I click on
    Defragment disks, works fine.
    I am concerned about defrag running from the task scheduler with the command "defrag /c" (auto scheduled using Configure Schedule... from Disk Defragmenter) does not work and the system never gets defragmented automatically.
    This happens only with some of the windows 7 VM's that we have.
    There are no entries in Event Log that point to the defrag (using task scheduler). Any ideas what may be going on?

    Hi,
    Could you defrag as below method:
    1. Open Disk Defragmenter by clicking the Start button. In the search box, type
    Disk Defragmenter, and then, in the list of results, click
    Disk Defragmenter.
    2.Under Current status, select the disk you want to defragment.
    3.To determine if the disk needs to be defragmented or not, click Analyze disk. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    Once Windows is finished analyzing the disk, you can check the percentage of fragmentation on the disk in the
    Last Run column. If the number is above 10%, you should defragment the disk.
    4.Click Defragment disk. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    For more information, please read this article:
    Ways to improve your computer's performance
    http://windows.microsoft.com/en-in/windows/improve-performance-defragmenting-hard-disk#1TC=windows-7
    Meanwhile, read this article:
    Defrag from the Command-Line for More Complete
    Control
    http://technet.microsoft.com/en-us/magazine/ff458356.aspx
    Karen Hu
    TechNet Community Support

  • Yesterday suddenly the sound output from my Headphone is not working

    Hi, I've Mac Book Pro 15" with Retina display. Yesterday suddenly the sound output from my Headphone is not working. When I tried to solve this, I've noticed in system preferences it's jumping from Internal speakers to Head phone and vice versa. Can anyone help me on this issue please? I am using the original Apple Headset only.
    Thanks
    Babu
    <Re-Titled By Host>

    Tell us:
    OS X version ?
    What may have changed prior to the onset of the issue of "... suddenly... not working..." and " ... preferences ... jumping from ..." ? Software added, upgraded, updated?
    what precidely do you mean by " ... preferences ... jumping from ..." ?
    ÇÇÇ
    EDITadded
    I see that your Question has languished for some period of time without response. You have posted your issue in Using Apple Support Communities whose topic is 'How to use this forum software's interface, features and/or how to find what you wish'. It is a relatively low traffic and inappropriate forum for your problem. I will ask our Hosts to move it to " MacBook Pro " where it may get a more rapid response from your fellow users.
    endEDIT

  • Wireless keyboard numbers from 1-9 are not working .

    My wireless apple keyboard numbers from 1-9 are not working. No water was spilt on it and tried the numlock.
    I asked local store and he said that i should purchase a new one which i don't want to.
    Is there a solution ?? Please help

    Hi jacky256,
    If you are having issues with your Apple Wireless Keyboard, try the steps in the article below.  The section "Keyboard has one ore more keys that do not respond" may shed some light on this issue.
    Troubleshooting wireless mouse and keyboard issues - Apple Support
    https://support.apple.com/en-us/ts3048
    Regards.
    - Judy

Maybe you are looking for

  • Macbook Pro Audio - Share with Another Computer

    I just bought a new set of speakers for use with my Macbook Pro. I would like to be able to keep it plugged in to my docking station but also have them available when I am using my WIndows PC. Can anyone recommend a way to do this? Do I need a KVM sw

  • IWeb not working..

    Hey All.. Had my first dable with iWeb tonight and made a 5 page website with content from my recent Wedding. However, after clicking on publish and getting a message saying it was done, when I click visit and it takes me to my site, I am getting an

  • I do not get notification on my iPad mini, I use to until the last update

    I do not receive my notifications any more since the last up day on my iPad mini!!

  • XUL Runner incompatible with 7.0.1

    Tried to open firefox notice appeared on screan error platform version 7.0.1 is not compatible with min version >=2.0 max versin < =2.0

  • Adobe Application Manager keeps opening/closing?

    Hello. Installed 6 copies of CS5.5 Design Premium this weekend on some machines in our studio. Did all the updates, etc. and everything was fine. Now, on 3 of the machines, every minute or so, the Adobe Application Manager pops up in the dock, then d