0% found this document useful (0 votes)
59 views

SQL

The document describes scripts that were run to update default number values for various item attributes in the WF_ITEM_ATTRIBUTES table where the item type is 'POAPPRV'. It also describes running a script to select the maximum increment value from the po_change_order_tolerances_all table and running a script to select data from po_change_order_tolerances_all and join it with other tables to return organization ID, tolerance ID, sequence number, change order type, tolerance name, maximum increment and decrement values for a given PO number.

Uploaded by

deepi001
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views

SQL

The document describes scripts that were run to update default number values for various item attributes in the WF_ITEM_ATTRIBUTES table where the item type is 'POAPPRV'. It also describes running a script to select the maximum increment value from the po_change_order_tolerances_all table and running a script to select data from po_change_order_tolerances_all and join it with other tables to return organization ID, tolerance ID, sequence number, change order type, tolerance name, maximum increment and decrement values for a given PO number.

Uploaded by

deepi001
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

We ran the following scripts based on ID 728789.1 (1)We ran this script on Test instance.

update WF_ITEM_ATTRIBUTES set NUMBER_DEFAULT = -100 where item_type = 'POAPPRV' and name = 'CO_H_PO_TOTAL_T'; commit; update WF_ITEM_ATTRIBUTES set NUMBER_DEFAULT = -100 where item_type = 'POAPPRV' and name = 'CO_D_AMOUNT_ORDERED_T'; update WF_ITEM_ATTRIBUTES set NUMBER_DEFAULT = -100 where item_type = 'POAPPRV' and name = 'CO_D_QUANTITY_ORDERED_T'; update WF_ITEM_ATTRIBUTES set NUMBER_DEFAULT = -100 where item_type = 'POAPPRV' and name = 'CO_S_AMOUNT_T'; update WF_ITEM_ATTRIBUTES set NUMBER_DEFAULT = -100 where item_type = 'POAPPRV' and name = 'CO_S_QUANTITY_T'; update WF_ITEM_ATTRIBUTES set NUMBER_DEFAULT = -100 where item_type = 'POAPPRV' and name = 'CO_L_UNIT_PRICE_T'; update WF_ITEM_ATTRIBUTES set NUMBER_DEFAULT = -100 where item_type = 'POAPPRV' and name = 'CO_L_QUANTITY_T'; (2)We did not ran this script because it is related to 11i version. (3)We ran this script. select maximum_increment from po_change_order_tolerances_all where change_order_type='CO_ORDERS' and tolerance_name = 'PO_AMOUNT' and org_id = &ORG_ID; (4) We did not ran this script UPDATE po_change_order_tolerances_all set maximum_increment = -100 where change_order_type = 'CO_AGREEMENTS' AND tolerance_name = 'HEADER_AMOUNT_AGREED' AND org_id = &Operation_id; We ran this script also.

select pcot.ORG_ID Org ,pcot.TOLERANCE_ID ID ,pcot.SEQUENCE_NUMBER Seq ,pcot.CHANGE_ORDER_TYPE Type ,pcot.TOLERANCE_NAME Name ,pcot.MAXIMUM_INCREMENT "Max %" ,pcot.MAXIMUM_DECREMENT "Min %" from po_change_order_tolerances_all pcot ,po_headers_all ph ,po_headers_all ph1 where pcot.change_order_type in (select decode(ph2.type_lookup_code, -- References PO_DOCUMENT_TYPES_ALL_B.do cument_subtype 'STANDARD', 'CO_ORDERS', 'BLANKET', 'CO_RELEASES', 'CONTRACT', 'CO_AGREEMENTS') from po_headers_all ph2 where ph2.po_header_id = ph1.po_header_id) and pcot.org_id = ph.org_id and ph1.po_header_id = ph.po_header_id and ph.segment1 = '&po_num' order by pcot.org_id,pcot.tolerance_id;

Note:As per Oracel suggestion we ran these scripts on ADTC Test instance.

You might also like