cancel
Showing results for 
Search instead for 
Did you mean: 

Error message in RH_RELATION_MAINTAIN

0 Kudos
389

Hello All,

Can someone please help me to provide an info about creating relationships(IT1001) between PD objects.

I am trying to create a relationship B003 between Organizational unit(O) and Position(S) using the FM RH_RELATION_MAINTAIN. If an error encounters during the creation then the entire processing is blocked in Tcode:PP01. It does not return any exception or error. My problem is that I want to get the errors or exceptions in case of any failure.

In my case error occurred due to 2 reasons: 1) either Cost center of Organizatinal unit is blocked in cost center master

2) Cost center of Organizational Unit is no more valid.

I have used FM RH_INSERT_INFTY but it does not do any validations as specified above. It simply create a new record in IT1001. In cases specified above, this FM should have returned some error.

Is there any other FM or way wherein I can create relations with validations or it returns error.

Thanks,Amit

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Check for FMs

RH_INSERT_INFTY.

RH_CUT_INFTY_1001_EXT

RH_CUT_INFTY_1001_EXT_GENERIC

RH_DELETE_INFTY_1001_EXT

RH_DEL_INFTY_1001_EXT_GENERIC

RH_INSERT_INFTY_1001_EXT

RH_UPDATE_INFTY_1001_EXT

Regards,

Manoj.

Former Member
0 Kudos

Take a look at cost center you are using in CSKS table. The validty to of the cost center might be over so you are seeing that error. It will work fine If you use a valid cost center.

Former Member
0 Kudos

Try using 'RH_INSERT_INFTY_1001_EXT'

CALL FUNCTION 'RH_INSERT_INFTY_1001_EXT'

EXPORTING

FCODE = 'INSE'

VTASK = 'D'

ORDER_FLG = 'X'

COMMIT_FLG = 'X'

AUTHY = 'X'

WORKF_ACTV = 'X'

TABLES

INNNN = ZHRP1001

ILFCODE = ZILFCODE

EXCEPTIONS

NO_AUTHORIZATION = 1

ERROR_DURING_INSERT = 2

RELATION_NOT_REVERSIBLE = 3

CORR_EXIT = 4.

Regards