DECLARE
vRefcursorOrg SYS_REFCURSOR;
vOrganizationId mtl_parameters.organization_id%TYPE;
vOrganizationCode mtl_parameters.organization_code%TYPE;
vOrganizationName hr_organization_units.name%TYPE;
vTemp NUMBER;
BEGIN
inv_inv_lovs.get_all_orgs(x_organizations => vRefcursorOrg,
p_organization_code => '%');
LOOP
FETCH vRefcursorOrg
INTO vOrganizationId,
vOrganizationCode,
vOrganizationName,
vTemp;
EXIT WHEN vRefcursorOrg%NOTFOUND;
dbms_output.put_line('OrganizationId :' || vOrganizationId ||
',OrganizationCode:' || vOrganizationCode ||
',OrganizationName:' || vOrganizationName);
END LOOP;
CLOSE vRefcursorOrg;
END;
沒有留言:
張貼留言