on 08-04-2006 4:09 AM
Hi All;
We arecurrently using the OSA functionality in ERP 2005 and providing links in the portal for the managers ( Apraisers) and Employees ( Appraisee's) to the BSP documents. ( Documents to do.)
We also let the employees select another (part appraiser) via the BSP ( change header data).
Has any one automated a process for transfers. So if a manager leaves and moves to another org. unit How can we change the appraiser for al the documents automatically.
Can the default part appraiser BADI handle transfers. Can we add logic in the BADI to handle transfers.
Thanks
Iliana
Hi Iliana,
Welcome to SDN.
Yes the default Part Appraiser BADI handles for newer requests only and not for the already created ones.If you want to modify you can do manually by Changing the header data using PHAP_ADMIN or PHAP_CHANGE Trnxs.
Rgds,
Jothi.
P.S . Do award pts accordingly and close the thread once your problem is solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>>So we would develop a program that specify the logic for change and then call this FM to update the documents accordingly..
YES
How hard it would be to develop the program ?
Not that hard.. someone conversant with the OSA tables should be able to write the program in reasonable time..
Regards,
Suresh Datti
Hello,
When you do this via a customer specific report (which is possible) I would highly recommend to use the standard function modules of teh component. And also, instead of using the basic FM's like the direct write of appraisers I would use the overall function modules that contains also the business checks and such.
Some ideas on the function modules, lets see:
- Get all the documents for the old appraiser via HRHAP_DOCUMENT_GET_LIST (only for status 1-4)
- Loop over the found documents and for each do
HRHAP_DOCUMENT_GET_DETAIL in ADMIN MODE
- Change the t_header_appraiser table with the new appraiser
- HRHAP_DOCUMENT_SAVE
- HRHAP_DOCUMENT_DEQUEUE (don't forget this one, you won't want to be debugging till deep in the night wondering why your system crashes after 1000 documents.. believe me, i did that.. no fun )
- Next Document.
Now, if you want to include your report in PHAP_ADMIN_PA you can use BAdI HRHAP00_ADMIN to include it, it has the advantage that you get authorization checks on transaction code, and the selection screen is already there. You can skip the HRHAP_DOCUMENT_GET_LIST then.
happy coding
Regards and Groetjes,
Maurice
Hi all. I need to change appraisals status from "In preparation" to "In planning" all together for selected appraisals. I've tried do this through "PHAP_ADMIN->menu->Change status". Unfortunatly, the fixed enchancments is not generated during status change via menu! I've forced coding implementation for HRHAP_ADMIN definition:
method->START_FUNCTION
LOOP AT t_document_id INTO ps_appraisal_id .
CALL FUNCTION 'HRHAP_DOCUMENT_GET_DETAIL'
EXPORTING
mode = 'X'
ui_mode = ' '
s_appraisal_id = ps_appraisal_id
administrator = 'X'
....
CALL FUNCTION 'HRHAP_TEMPLATE_OF_DOCUMENT_GET'
....
CALL FUNCTION 'HRHAP_DOCUMENT_ENQUEUE'
.....
CALL FUNCTION 'HRHAP_DOCUMENT_CHANGE_STATUS'
EXPORTING
plan_version = '01'
template_id = p_template_id
button_id = 'CLOSEPREP'
.....
CALL FUNCTION 'HRHAP_DOCUMENT_DEQUEUE'
.....
ENDLOOP.
endmethod.
And now everything works fine!
User | Count |
---|---|
89 | |
7 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.