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.

Similar Messages

  • 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.

  • Can we setup the transfer of 'objectives' from one appraisal to another?

    Dear All,
    Is it possible to setup a policy to transfer the 'objectives' from one previously started/done appraisal to another newly created appraisal automatically on the creation, based on some criteria like following:
    - Transfer all non-achieved objectives from a closed 'annual appraisal' (for year 2011) ..INTO.. next year's (for 2012) annual appraisal.
    - Transfer all achieved objectives from all closed 'assignment/engagement appraisal' between 1st Jan to 30th Jun ..INTO.. an 'interim appraisal' for the period of 1st Jan to 30th Jun (for the same year)
    - Transfer all achieved objectives from all closed 'assignment/engagement appraisal' between 1st Jan to 31st Dec ..INTO.. an 'annual appraisal' for the period of 1st Jan to 31st Dec (for the same year)
    - Transfer all achieved objectives from all closed 'interim appraisals' for the period of 1st Jan to 30th Jun ..INTO.. an 'annual appraisal' for the period of 1st Jan to 31st Dec (for the same year)
    If it is possible.....what is the detailed method to do that? ....In my opinion it can only be done via customization....am i right?
    Regards,
    Talha.

    Hi,
    Unfortunately such functionality does not exist. If you are using PMP, you will be able to do this to an extent but not the way you want based on certain criteria.
    Regards,
    Vinayaka

  • MAXDB copy log file from one server to the other server.

    Hi All,
    I want to copy a log file from one server to the other server , the database is Maxdb and i don't know how to do it. I want to do it through command prompt, (set of commands required) the front end tool which we are using is DBM ( database manager). Please help.
    Regards
    M.A

    Hi,
    Basically, the process is of log shipping. Transferring logs from DC to DR system.
    For that, you can check HowTo - Standby DB log shipping - MaxDB - SCN Wiki
    This is script based. I have not done it but the idea remains the same.
    Regards,
    Divyanshu

  • Copying an object from one document to another in CS4

    When more than one document is open in CS4 (for example document 1 and document 2), and the documents are arranged with tabs at the top, it should be possible to drag an object from document 1 to the tab of document 2, have the tab of document 2 automatically come to the top, and then drop the object onto a page in document 2. Is this a bug or is it just me?

    You're right, it SHOULD be, but it isn't. I filed a feature request as soon as CS4 was released, but add your voice at http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    In the meantime you need to either use copy/paste or switch to a tiles view.
    Peter

  • Copying an object from one vector into another

    I need to get a specified object from vector 1 to vector 2 so its no longer in vector 1
    I've created the two vectors, I know how to access, remove, add elements to a vector using the relevant methods
    Do you use the remove method, then add?

    Do you use the remove method, then add?Yes this is the way to do it.
    And btw, as an aside - Even when there are more advanced ways to do it, It is always good when you are doing things for the first time or when you are starting out building something complex to KISS - Keep it simple, stupid. This applies to me as well and I've been doing this a long time

  • Copy static text from one MIF documents to other MIF document

    Hi All,
    I'm trying to copy the text frames and their contents from one document to other document.
    I"m following the bellow steps..!
    1. Open Template1.mif by F_ApiSimpleOpen()
    2. Create new document called "Template2.mif" using "F_ApiCustomDoc"
    3. Import the required formats by
    F_ApiSimpleImportFormats(Template2,Template1,FF_UFF_COLOR |FF_UFF_COMBINED_FONTS |FF_UFF_COND |FF_UFF_DOCUMENT_PROPS |FF_UFF_FONT |FF_UFF_MATH |FF_UFF_PAGE |FF_UFF_PGF |FF_UFF_TABLE |FF_UFF_VAR))
    4. Read the text frames from "Template1" and create new text frame in Template2
         pgfId = F_ApiGetId(FV_SessionId, Template1, FP_FirstFlowInDoc);
         while (pgfid) {
         //     create a new text frame in Template2
              tFrameId = F_ApiNewGraphicObject(Template2, FO_TextFrame, pFrameId);
              objGraphicId = F_ApiGetId(Template1, pgfId, FP_FirstTextFrameInFlow);
         //assigning the properties of text frames
              propspdf = F_ApiGetProps(docIdfrom, objGraphicId);
              F_ApiSetProps(docIdto, tFrameId,&propspdf);
    Till this step, it is working as expected.
    Next I need to read the paragraphs of each text frame and put only static text available in the TEXT FRAMES OF Template1 in newly crated TEXT FRAMES of Template2. But ignore the variables in the text frames.
    I tried to work with the following piece of code
         doc2PgfId = F_ApiGetId(docIdfrom, objGraphicId, FP_FirstPgf);
         doc1PgfId = F_ApiGetId(docIdto, tFrameId, FP_FirstPgf);
         while (doc2PgfId && doc1PgfId)
                   F_ApiDeallocatePropVals(&propspdf);
                   tispdf = F_ApiGetText(docIdfrom, doc2PgfId, FTI_String|FTI_PgfBegin|FTI_PgfEnd);
                   tisspdf = F_ApiGetText(docIdto, doc1PgfId, FTI_String);
                   n=tispdf.len;
                   n1=tisspdf.len;
                   for(i=0; i<tispdf.len;i++){
                         ti = &tispdf.val[i];
                         tiT = &tisspdf.val[i];
                         //compare the text type and handle each text item appropriately
                         switch(ti->dataType){
                         //handle normal free flowing text
                          case(FTI_String):
                           //F_ApiAlert("In String", FF_ALERT_CONTINUE_NOTE);
                           tr.beg.objId = pgfId;
                           tr.beg.offset = ti->offset;
                           trT.beg.objId = tr.beg.objId;
                           trT.beg.offset = tr.beg.offset;
                        F_ApiDeallocatePropVals(&props);
                        props = F_ApiGetTextProps(docIdfrom, &tr.beg);
                        F_ApiSetTextProps(docIdto, &trT.beg,&props);
                        name1=(StringT)ti->u.sdata;
                        textLoc=F_ApiAddText(docIdto, &trT.beg,name1);
            //textLoc.objId = pgfId1;
            //textLoc.offset = textLoc.offset;
            //if the text string is a part of a variable then
            //it would have been taken care of so ignore it
            break;
           case(FTI_PgfBegin):
                      pgfId = ti->u.idata;
                      pgfId1 = tiT->u.idata;
                      propspdf = F_ApiGetProps(docIdfrom, pgfId);
                      F_ApiSetProps(docIdto, pgfId1,&propspdf);
                       break;
           case(FTI_PgfEnd):
                 pgfId = 0;
                 pgfId1= 0;
                 textLoc.offset=0;
                 bPgfalive = False;
                 break;
         //Get ID of next pgf in frame
    where am I going wrong? Is there any simple way of doing it?
    How do I go ahead with this? Please help..!
    Thanks,
    Basav

    Hi Michael,
    Thanks for quick reply..!
    There was a piece of code which validates whether the text frame I needed exists or not. I intentionally removed so as to not to confuse the reader.
    Let me give you a clear picture that what I want to do..!
    I've a MIF file and XML file that has the details of text frames and its contents in the MIF. XML looks like
    <?xml version="1.0" encoding="UTF-8"?>
    <MyProjectXML>
    <TextFrame frame="fr18111dd"><P>Basava</P></TextFrame>
    <TextFrame frame="fr224362cc"><P>Prabhu</P></TextFrame>
    <TextFrame frame="fr2547"><P>5 Year Performance (US Dollar)</P></TextFrame>
    </MyProjectXML>
    My MIF file has more than 50  named text frames. Some of them are in XML file, like - fr18111dd, fr224362cc,fr2547. These text frames have the static text,variables and tables. [ Tables I've kept it aside to work later for now]
    What I need -
    Need a MIF file that has frames available in XML file and replace the variables with the values given in <P> tag and keep the static text as it is.
    I'm trying the other way now, Open the MIF file and delete all the text frames except the frames mentioned in the XML file and save as new file.
    Let me know if I'm doing anything wrong here..! That will save my time and effort.
    Am I clear on my query? and what I wanted to achive ? Let me know otherwise..!
    Thanks,
    Basav

  • How to copy a structure from one SAP system to other SAP system in ABAP

    Hi All,
      We have a requriement where need to copy an strcture of 250 feilds from on SAP system to other SAP system , do any one know how to do it .
    Regards
    Channu

    Channappa,
    It is really not hard to manually create the structure. Ctrl-Y copy from the source system screen and paste in the target system screen. You'll have to do this one page at a time. So, you will have to repeat it 9 times (or 18 times if you have to copy/paste component list and type separately).
    I can assure you that you can finish the task in less than 30 minutes.

  • Copying sales order from one company code to other

    Hi,
    I am trying to copy one sales order data from one company code to another, all the details should be same other than the company code and some fields , for this I am using std BAPI Getdetail to get all the details of sales order and passing to BAPI, CREATE FROM DAT2 , so that I create new order.
    When I check the new order, I see everything same but CANCEL DATE value in the ITEM Overview is not copied, I checked the original order , it has cancel date value. The order is an AFS order with AFS tabs.
    I Checked the BAPI GET Detail FM, it doesn't retrieve that information, moreover it doesn't have that field ( J3_ACADA) in the ITEM structure. I can see cancel date value in VBAP. The ITEM structure in CREATE FROM DAT2 also doesn' have that field.
    I can populate using USER_EXIT but I need to get the value from original order.
    How to copy the cancel date value to new order.It should happen only for the orders which I run through this report.
    Any suggestions let me know.
    Thanks

    Hi Uma,
    As my understand, the couple Tcode FS15 and FS16 is used to copy GL master data from in same client or different client.
    The file attract from FS15 will be stored in SAP, not in your local computer.
    And when you run FS16, the system will file this file and upload it.
    Here is selection screen in FS15, you can determine the file name, and keep the batch input name as default.
    After executed, the file is generated with message like below
    Then, go to tcode FS16 with parameter:
    You can untick "Check file only" for Production run.
    When you execute it, the batch input RFBISA20 is generated.
    After that, you go to tcode SM35 to check the batch input RFBISA20, excute this batch input here and check the log.
    Julie

  • To find Missing DB Objects from one schema,sid to other schema,sid

    Hi Friends..
    I have an requirement as bellow...
    Recently we migrated from one schema to other ,some of the DB objects are missed while migrating.
    After Migration now the schema and SID are Different for newly created schema
    while comparing the newly created schema2 with old schema1 found that some of the DB objects are missed.
    So i need to find out the difference's from Schema1 to Schema2.
    But now schema 2 is having different sid and schema name and to make the changes in schema2 with respect to schema1.
    Please let me know how to go ahead with this....
    Thanks in advance...

    Hi,
    Here's one way:
    SELECT     object_name
    ,     object_type
    FROM     all_objects
    WHERE     owner     = 'SCHEMA1'     -- Case-sensitive
        MINUS
    SELECT     object_name
    ,     object_type
    FROM     all_objects
    WHERE     owner     = 'SCHEMA2'     -- Case-sensitive
    ;Use a database link for one half of the MINUS, if necessary.
    This will not detect objects that have the same name and type, but are different. For example, if both schemas have a table called TABLE_X, the query above will not display TABLE_X, even if the two tables have different rows and/or columns.

  • Moving objects from one infoarea to the other infoarea.

    Hi all,
    I have created few objects like ODS , cubes and multiprovider under suppose InfoArea A.
    But now I have to move all these to InfoArea B.
    When I am trying to drag and drop these objects from InfoArea A to InfoArea B it is giving following message.
    Drag  Drop is switched off - switch on inRSADMIN/RSADMINSV
    when I am going to Tcode RSADMIN it is giving following message.
    BW User ALE          ALEREMOTE
    Debugging User
    BEx order number     DB0K910429
    Releasest. hier
    Monitor initial
    Last IDoc no.        56
    Last IS-Nr.          0
    XPRA executed
    Lock Mangr Logs
    MD: Sing. Rec. Inst
    I am not aware of these options. So please provide some infromation to go ahead.
    I am wiating for your reply.
    Thanks,
    Uday.

    Hi,
    You have to maintain settings on RSADMINSV table.
    1. Goto SM30 transaction.
    2. Pass the table RSADMINSV and goto change mode.
    3. Uncheck the Drag & Drop Off option.
    4. Save and exit.
    Check out the SAP note : 642989.
    Regards,
    Vivek

  • Copying a Window from One Smartform to the Other

    Hello Experts!
    I was wondering if there is a way that I can copy a window and then paste it on another smartform.. it is that simple. I have tried the normal righ clicking and copy and paste but it does not work.
    Thank you,
    Val.

    Hi
    I donot think It is possible. But you can copy a smartform to your own development classes.
    For that you need to do the following things.
    Check the link
    Re: change std invoice smart form?
    Reward if make some sense to you
    Thanks
    Krushna

  • Sales order Userexit to copy item text from one line item to other

    Hi Gurus,
                 I have an urgent issue. Based on item category in sales order, for one line item, I am getting item text. Now I have to copy same item text to other line item.
    Till now I tried save_document_prep & save_document to
    build object tdname & fetch all tdid from table stxh for object 'VBBP'.
    After that READ_TEXT and SAVE_TEXT function module.
    But during creation of sales order I am not able to get any value in STXH table for created sales order. Now I want to know from which internal table I can get item text ?  (some internal table should be there like xvbap to get text per line item)
    Or is there any other way to do this... Please help.
    Points will be rewarded.
    Thanks,

    Hi ,
    try something like this .
            l_name = ls_vbap-vbeln.
            IF l_name IS INITIAL.
              l_name = 'XXXXXXXXXX'.
            ENDIF.
            CONCATENATE l_name ls_vbap-posnr INTO l_name.
            CALL FUNCTION 'READ_TEXT'
                name            = l_name
    Regards
    Prabhu

  • Passing a Value from one page to Another is not working

    Hi friends,
    I have a table called country in which i build a Form in page1 with a report in page2 based on the table. So iif i clicked the edit icon in the page 2 report means then it can fetch the corresponding record in the page 1 form as well(so that i can update the record in the form).
    My scenario is i have one more search page  in page 3 which has one page item like Country_id(text item) with a Region button "Find".
    If i typed any country id in the text item and pressed Find, means then it should redirect to the form page 1 inorder to fetch those correponding country id details that i entered in the search page page 3.
    For that i followed the below steps like in the search page 3
    created a Find button in the page 3 with below options
    Button Style: Template Based Button
    Button Template: Button
    Button Type: Normal
    Action: Submit Page
    Button Style: Template Based ButtonThen under the after Processing i created a branch condition:
    On submit: After processing(After Computation, Validation and Processing)
    Target Type: page in this Appliction
    page           : 1
    Set these items P1_COUNTRY_ID
    with these values: &P3_COUNTRY_ID.
    (when button Find is pressed)
    But the id is not passing to the page 1 from the page 3(search region) that i entered inorder to query my form in page 1 according to the value that i entered in  search region in page3
    kindly help me friends with this.. Hope u understand my scenario..
    Brgds,
    Mini

    Hi,
    Source setting for that form page item P1_COUNTRY is
    Source Used:"Only when current value in the session state is null"
    Source Type: Static Assignment.Since i build this form along with report.
    Is im missing something.
    Regards,
    Mini

  • How can i copy and paste from one spreadsheet to another?

    Trying to shuffle around the rows as part of an everchanging schedule.  When i copy and paste from one spreadsheet to the other, the images overlay each other as if i were litterally cutting them out of paper and then sloppily pasting to another. Is there a way to set them up so crosscutting is more seamless in appearance?

    jrc1971 wrote:
    ...When i copy and paste from one spreadsheet to the other, the images overlay each other as if i were litterally cutting them out of paper and then sloppily pasting to another.
    JRC,
    The reason you get that result is that you are pasting the rows to the canvas of your second document instead of into an existing table.
    Instead, make a large blank table in your receiving document and paste into that table only after clicking on the cell where you want the first cell of the copied data to be positioned.
    Jerry

Maybe you are looking for