Skip to Content
avatar image
Former Member

FM for delimit the infotype record

Hi

I'm new to HR-ABAP.I need to develop function modules to delimit the some infotype records (eg: 0167,0168,0014,2006 etc)

Presently i developed the function module that has following source code.

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'

EXPORTING

number = empno

CALL FUNCTION 'HR_READ_INFOTYPE'

EXPORTING

tclas = 'A'

pernr = empno

infty = '0167'

begda = delimitdate

endda = delimitdate

  • BYPASS_BUFFER = ' '

  • LEGACY_MODE = ' '

  • IMPORTING

  • SUBRC =

TABLES

infty_tab = itab "itab is of the structure p0167

enddate = itab-endda.

MOVE delimitdate TO itab-endda.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

infty = '0167'

number = empno

subtype = itab-subty

objectid = itab-objps

lockindicator = itab-sprps

validityend = enddate

validitybegin = itab-begda

recordnumber = itab-seqnr

record = itab

operation = 'LIS9'

tclas = 'A'

dialog_mode = '0'

  • NOCOMMIT =

  • VIEW_IDENTIFIER =

  • SECONDARY_RECORD =

IMPORTING

return = return

  • KEY =

CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'

EXPORTING

number = empno

when i use 'MOD' operation in FM 'HR_INFOTYPE_OPERATION' that FM runs perfectly.it changes the enddate to delimit date in the table PA0167.

But, when i use 'LIS9' (delimiting) operation FM is throwing following error message

"E PG 428 A complex application error has occurred".

I need help regarding this error statement.can i use 'MOD' operation to delimit the records (time constraint of most of the infotype record to be delimited is 2).In which case we use 'LIS9'??

Also any SAP function modules for delimiting IT2006 infotypes????

Pls suggest.

Thank u,

shrinivas

Message was edited by: Shrinivas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 02, 2010 at 12:58 AM

    All,

    I also has tried to use 'HR_infptype_operation' to delimit an info type, ex 0169 and finally find a way to do it without causing unecessary retroactive payrool. I use 'DEL' action with the p0169-begda = the delimited date and it delimited info type 169 just like LIS9.

    I hope this help everyone.

    aktang

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Terry,

      I'm trying to delimit infotype 0170 when I try using the DEL with and putting the one day after the delimit date into the BEGDA but keep getting the error message change before earliest retro. date 01012016 acc. to control rec.  From my understanding we can not have these items go back to retro.

      The current begin date in record is 09012015 end date of 12319999.  Trying to delimit to date of 04302015.

      Do you know a way around this?

      Thanks for any help,

      Wendy

      After doing some further looking and searching ended up using the FM 'HR_BEN_DELETE_SPENDING_PLANS'  This allows you to delimit without effecting retroactive.
      Code:

           CALL FUNCTION 'HR_BEN_DELETE_SPENDING_PLANS'

                EXPORTING

                     spenda_selection = spenda_selection

                     nocommit = ' '

                     reaction = ' '

                IMPORTING

                     return = g_return

                     subrc = subrc

                TABLES

                     error_table = error_tables2.

      Note: the spenda_selection begda = the delimit date + 1

                the spenda_selection endda = current end date example 12319999

                the spenda_selection-del_bplan = 'X'

                fill the other fields such as pernr, pltyp, etc.

  • Oct 03, 2006 at 09:59 AM

    For 167 & 168 have you looked at HR_BEN_TERMINATE_HEALTH_PLAN & HR_BEN_TERMINATE_INSURE_PLAN?

    The error message you got is actually mapped to (00)344 ie "No batch input data for screen & &"

    For the delimit operation, you probably,need to pass the delimit date separately..

    I have a feeling this function call cannot be used for the delimit operation le 'LIS9'.AS the delimit date is usually entered on a pop-up box when you do it via PA30.

    ~Suresh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      And does it work for it0011 ?

      I need to delimit a record, and I am trying to use HR_INFOTYPE_OPERATION, with action = 'LIS9'. Somehow, it only works sometimes (feels like random..).

      Can I keep on trying or should I use the DEL + INS tip?

      thanks