|
|

楼主 |
发表于 2009/8/21 00:28:37
|
显示全部楼层
对于采购模块中,所有接口中出现的错误,都会出现在PO_INTERFACE_ERRORS中,这对于集中差错非常的方便。采购订单的接口:po_headers_interface;po_lines_interface
关于这个订单接口的描述和说明都是大块大块的字母文(ENGLISH),看起来很乏味,也不好理解,因此我还是发个示例给大家看一下吧
数据示例:
insert into po_headers_interface
(interface_header_id,
action,
org_id,
document_type_code,
PO_HEADER_ID,
vendor_id,
vendor_site_code,
Vendor_doc_num,
creation_date)
values
(po_headers_interface_s.nextval,
'UPDATE',--'CREATE'
83,
'QUOTATION',
55001,
3338,
'NON PRODUCT',
'PWM681',
sysdate);
commit;
v_flag:='Y';
end if;
Insert into po_lines_interface(
interface_line_id,
interface_header_id,
action,
item_id,
item_description,
unit_price,
organization_id,
creation_date,
sourcing_rule_name)
values(po_lines_interface_s.nextval,
po_headers_interface_s.Currval,
'ADD',
v_item_id,
v_item_description,
v_unit_price,
83,
sysdate,
v_item_number); |
|