Along with the name of the drawing, the following additional information can be submitted with the API to deal with the priorities of work packages with respect to reservation of material:
-
Priority
-
RoS Date
-
Priority Type
-
Attribute
-
Attribute Sort Order
Implementation
FUNCTION write_fa_header( p_proj_id IN m_user_securities.proj_id%TYPE,
p_fah IN fa_header_rec,
p_ln IN ln_tab_type,
p_wh IN wh_array,
auto_assign_wh_ind IN VARCHAR2,
p_commit IN VARCHAR2,
p_result OUT NUMBER,
p_message OUT VARCHAR2,
p_wp IN wp_array,
p_fah_template IN fa_header_template_rec )
RETURN m_fa_headers.fah_id%TYPE
The wp_array has the following incoming values to deal with the priorities of work packages:
p_wp(1).order_seq := 1;
p_wp(1).ros_date := '03-Jul-2014';
p_wp(1).priority_type := 'WP';
p_wp(1).attr_code := 'ATTRIBUTE';
p_wp(1).attr_sort := 'ASC';
The example above shows how to assign values. If these values are not filled in, the defaults apply.