PO Approval Groups Upload Copy link

Description

Categories
Enginatics, R12 only, Upload
Repository
GitHub
Creates and updates the approval groups of the Approval Groups form, with their rules, and the assignments of approval groups to positions or jobs per document type of the Approval Assignments form.

A row carries an approval group, optionally with one rule (Object, Type, Amount Limit, Low Value, High Value, Inactive Date), one assignment (Position or Job, Document Type, Start Date, End Date), or both. The group values are taken from the first row of each group.

Low Value and High Value of an account, item or item category range hold the segment values separated by the flexfield delimiter, such as 01-000-0000-0000-000. A Location rule takes the location in Low Value.

An operating unit that uses approval hierarchies (Use Approval Hierarchies in the Financials options) assigns positions, otherwise jobs.

Rules and assignments are ended with Inactive Date and End Date, not deleted.

SQL 110 lines

Parameters 6

ParameterTypeList of values SQL
Upload ModeLOV
:p_upload_mode like '%'||xxen_upload.action_update
Operating UnitLOV
haouv.name=:operating_unit
Approval GroupLOV
x.approval_group=:approval_group
PositionLOV
x.control_group_id in (select ppca.control_group_id from po_position_controls_all ppca, per_positions pp where ppca.position_id=pp.position_id and pp.name=:position) and (x.row_type_sort<>2 or x.position=:position)
JobLOV
x.control_group_id in (select ppca.control_group_id from po_position_controls_all ppca, per_jobs_vl pjv where ppca.job_id=pjv.job_id and pjv.name=:job) and (x.row_type_sort<>2 or x.job=:job)
Document TypeLOV
x.control_group_id in (select ppca.control_group_id from po_position_controls_all ppca, po_control_functions_all pcfa where ppca.control_function_id=pcfa.control_function_id and pcfa.control_function_name=:document_type) and (x.row_type_sort<>2 or x.document_type=:document_type)