Salam Alaikum,
I share with you today the API used to create a position in HR.
*Please note that the values in the API are hard-coded.
Hope you found it useful, feel free to leave a comment if have any note on the subject.
I share with you today the API used to create a position in HR.
*Please note that the values in the API are hard-coded.
declare
l_true BOOLEAN :=false;
l_obj NUMBER;
l_JOB_ID NUMBER :=614;
l_ORGANIZATION_ID NUMBER :=1379;
l_DATE_EFFECTIVE DATE := to_date('01-DEC-2000', 'DD-MON-YYYY');
l_POSITION_ID NUMBER;
l_POSITION_DEFINITION_ID NUMBER;
l_NAME VARCHAR2(30);
l_segment1 VARCHAR2(30) :='TEST POSITION';
l_segment2 VARCHAR2(30) :='10';
begin
hr_position_api.create_position
(
p_validate => l_true
, p_object_version_number => l_obj
, p_JOB_ID => l_JOB_ID
, p_ORGANIZATION_ID => l_ORGANIZATION_ID
, p_DATE_EFFECTIVE => l_DATE_EFFECTIVE
, p_POSITION_ID => l_POSITION_ID
, p_POSITION_DEFINITION_ID => l_POSITION_DEFINITION_ID
, p_NAME => l_NAME
, p_segment1 => l_segment1
, p_segment2 => l_segment2
, p_location_id => 2694
);
end;
Hope you found it useful, feel free to leave a comment if have any note on the subject.