Programmatically create a relationship between two positions in HR
I have a requirement to create relationships in HRP1001 between two given positions with a start and end date.
I need to write an upload program to do this but want to avoid Batch Input if possible.
Are there any relevant function modules that can do what transaction PP01 does?
I think there is no FM for performing validations....u can just test whether an position exist or not...in FM RH_SELECT_OBJECTS_FOR_OTYPE...through which u can test existence of an object.....there is no FM for testing relationship....
As i said before...all the validations can be done before getting into that FM....RH_RELATION_MAINTAIN....
RH_RELATION_MAINTAIN internally performs an BDC of t-code 'PP01'...in proceesing mode 'A'(display of screens)...hence u can change while executing it.....