Skip to Content
author's profile photo Former Member
Former Member

Program for Leaving Action..

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2007 at 11:57 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2007 at 12:00 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2007 at 12:16 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2007 at 02:05 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2007 at 11:41 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2007 at 12:00 PM

    Hi,

    I hope you can write a BDC program. I am wondering, it will work for Termination action.

    Good Luck

    Om

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.