cancel
Showing results for 
Search instead for 
Did you mean: 

BDC for CNR2 or RH_DELETE_INFTY

Former Member
0 Kudos

Hi All,

I have still not got solution for this BDC for CNR2 or RH_DELETE_INFTY .

please do tell me which one to use either BDC or RH_DELETE_INFTY function module for deleting the persons from the workcentres using tcode CNR2.

If so just give little brief explanation abt how to go. I tried doing BDC , The problem is when u click Tcode CNR2 -> then enter work center-> click HR assigment --> next screen Click person '+', choose the person and delete,.

But in BDC when i choose the person it records as cursor , not the field name , so i can realte this to the text field.

if i choose the other function RH_DELETE_INFTY how do i use this, i checked couple of threads but not useful.

if there is any other method to resolve this. please pour in ur views.

Thx in adv,

Shuja

Accepted Solutions (0)

Answers (1)

Answers (1)

suresh_datti
Active Contributor
0 Kudos

Hi Shuja,

Instead of deleteing, you should probab;y try to delimit the relationship using RH_CUT_INFTY or RH_CUT_INFTY_1001_EXT.

Regards,

Suresh Datti

Former Member
0 Kudos

Hi Suresh,

Can you give me an example of using RH_CUT_INFTY .

Regards,

santhoshi

LucianoBentiveg
Active Contributor
0 Kudos

You can use FM 'HR_INFOTYPE_OPERATION'.

Example:


    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
         EXPORTING
              infty         = '0015'
              number        = tab_p0015-pernr
              subtype       = tab_p0015-subty
              objectid      = tab_p0015-objps
              lockindicator = tab_p0015-sprps
              validityend   = tab_p0015-endda
              validitybegin = tab_p0015-begda
              recordnumber  = tab_p0015-seqnr
              record        = tab_p0015
              operation     = 'DEL'
              tclas         = 'A'
              dialog_mode   = '0'
              nocommit      = 'X'
         IMPORTING
              return        = return1.

Regards.

Former Member
0 Kudos

Hi Suresh,

I was trying to use the function RH_CUT_INFTY_1001_EXT and RH_CUT_INFTY_1001_EXT_GENERIC to delimit a relationship between Cost Center and Position. This relationship has a time constraint 3 assigned to it.

With first I get ERROR_DURING_CUT and with second I get a message 'This relationship cannot be delimited ..."

While I tried using same functions to update P-S relationship it worked fine. Do you know of any restrictions that apply? Specially when TC is 3, I should be able to delimit.

Regards,

Rishi