on 07-04-2007 12:27 PM
Dear All,
We have created a leaving action with set of Infotypes and certain actions and we have to carry out this action for about 5,000 employees.
Now user needs to have a certain program to carry out the action as it's not feasible to carry out manually for 5,000 employees.
Now my qestions to you all is
1. Do you have any Std Program which takes care of this
2. IS their any Std Function Module/BAPI exists which can be used
3. Do we need to write our own BTC/LSMW/etc
Kindly suggest.
FYI : I have already tried one program using the FM - HR_INFOTYPE_OPERATION but this FM is not working for Action - DELIMIT (LIS9) for various Info types so now wondering what to do next. Kindly suggest.
Thanks and have a nice day ahead.
Mit freundlichen Grüßen/Best regards,
Mangalagi S V
Dear All,
Thanks to all those who have responded to this.
Unfortunately I can't go for BDC also as I was told that they might add/delete certain info types for this particular action.
In my program, I am reading table T588M for the action and taking all the infotypes and the related action into my own internal table, after that I am generating the dynamic internal table for each infotype and then reading the Infotype using HR_READ_INFOTYPE and proceeding for related operations using HR_INFOTYPE_OPERATION but this LIS9 was not working so I have to check out as Suresh suggested. Hope every things goes fine with my coding...!!, any way it looks to be big exercise and needs lots of testing.
Thanks for your valuable inputs.
Regards,
Mangalagi S V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can try writing LSMW for the same... this will work as BDC but without any coding and u manage your work...
some of the links which i could get from SDN are:
.
http://esnips.com/doc/8e732760-5548-44cc-a0bb-5982c9424f17/lsmw_sp.ppt
http://esnips.com/doc/f55fef40-fb82-4e89-9000-88316699c323/Data-Transfer-Using-LSMW.zip
http://esnips.com/doc/7582d072-6663-4388-803b-4b2b94d7f85e/LSMW.pdf
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
Hope this helps.
Regards,
Sudhir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If only PA infotypes are there then HR_INFOTYPE_OPERATION will work fine
but if OM infotypes are then you will have to try out RH_RELATION_MAINTAIN
do have structures type Pnnnn & not PAnnnn for HR_INFOTYPE_OPERATION
reward points if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Sharanabasappa ,
Check running the program in dialog mode 2 here you would be able to see whether the delimit operation is working or not .
Secondly have you passed :-
OBJECTID
LOCKINDICATOR and
RECORDNUMBER to this
function module ?
Check the BAPIRETURN1-Message field in the return table?
What is the message you are getting ?
Regards & Thanks,
Darshan Mulmule
Hi Sharanabasappa ,
You can try what suresh has suggested giving 2 calls first with Operation DEL & then with create new record.
You can alternatively use function module HR_ECM_DELETE_INFOTYPE to delete the record & use infotype operation to create the new one so the purpose gets solved.
Regards & Thanks,
Darshan Mulmule
Hi,
I hope you can write a BDC program. I am wondering, it will work for Termination action.
Good Luck
Om
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Darshan and Suresh,
Thanks for your suggestion and try to do it thru BDC itself.
Suresh : 5000...!!, they are not going any where but to another system so we have to make a leaving action in the current system )
Darshan : I don't know what's going wrong before the FM - HR_INFOTYPE_OPERATION IF I debug the program I am able to see the record in the related info type but it's not delimiting the infotype and the return code is also 0 which means Success.
Regards,
Mangalagi S V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
LIS9 doesn't work with HR_INFOTYPE_OPEARTION.. I am 100% sure about that.. A workaround that was suggested in these forums is to delete the record you want to delimit & create a new one with endda as the intended delimit date.. you wil need two successive calls of HR_INFOTYPE_OPEARTION though..
~Suresh
Hi Sharanabasappa ,
You can use BDC or standard function modules like the one which you have tried .
Would you like to share the problem you are facing with HR_INFOTYPE_OPERATION.
Check whether the parameters you are passing to the function module do actually identify a record in the database to be delimited otherwise you would get a message that record does not exist.
Hope this helps..
Regards & Thanks,
Darshan Mulmule
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow! 5000 to let go in one shot.. that sounds a scary place to work..
Anyway, there is no Std program and You will have to write a BDC to perform the termination action..Even if you use function calls like HR_MAINTAIN_MASTERDATA you will have to explicitly code for infotypes triggered by Dyn Actions. not sure if LSMW can be used for this purpose though.. In general, Termination is done one at a time.. hope you have taken care of all possibilities for the employees in question.
~Suresh
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.