Skip to Content

Delimit a position using FM "RH_CUT_INFTY_1001_EXT" is not updating HRP1001.

Hi All,

I have a situation where i am moving a person from one position to another position and i have to create a holder A008 for his old position.

I am using the below FM. I am passing

OTYPE =S

SCLAS =P

INFTY = 1001

SOBID =00001889

OBJID =40010950

ENDDA = 99991231 BEGDA =20170605 RSIGN =A RELAT = 008.

I see that the below FM calls 'rh_cut_infty' internally. When i see the code of this FM in line 230 ,when sy-subrc eq 0 and only when the buffer is ON it does the update.

I am not able to understand this and why my data is not being updated to the table.

 LOOP AT t_p1001 ASSIGNING <wa_p1001>.
    CALL FUNCTION 'RH_CUT_INFTY_1001_EXT'
      EXPORTING
        GDATE                         = <wa_p1001>-endda
        HISTO                         = ' '
        VTASK                         = 'D'
      TABLES
        INNNN                         = t_p1001[]
*       ILFCODE                       =
     EXCEPTIONS
       ERROR_DURING_CUT              = 1
       NO_AUTHORIZATION              = 2
       GDATE_BEFORE_BEGDA            = 3
       CUT_OF_TIMCO_ONE              = 4
       RELATION_NOT_REVERSIBLE       = 5
       CORR_EXIT                     = 6
       OTHERS                        = 7.
    IF SY-SUBRC <> 0.
* Implement suitable error handling here
    ENDIF.
Endloop.
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jul 13, 2017 at 08:18 AM

    try fm RH_CUT_INFTY.

    Dont forget to enqueue both relations A and B (fm RH_PM_ENQUEUE)

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 13, 2017 at 02:29 PM

    Hi Divya,

    Can you try vtask = 'B' and see whether that solves the issue?

    *B=Buffer

    Thanks

    Sathya

    Add comment
    10|10000 characters needed characters exceeded

    • GDATE should be the delimit_date. ( If you want the new relationship should be effective from today, pass yesterday's date to GDATE). from the code snippet, I think you are passing the endda of the existing record (99991231) which is causing the problem.

      Sathya

  • Jul 20, 2017 at 04:18 PM

    Thanks Sathya and Volker.

    So far i have been sending only relationship A 008 inthe FM, i sent both B008 and A 008 and worked as expected.

    Add comment
    10|10000 characters needed characters exceeded