Sei sulla pagina 1di 2

INSERT INTO RCV_HEADERS_INTERFACE

( HEADER_INTERFACE_ID
,
GROUP_ID ,
PROCESSING_STATUS_CODE
,
RECEIPT_SOURCE_CODE ,
TRANSACTION_TYPE
,
LAST_UPDATE_DATE
,
LAST_UPDATED_BY
,
LAST_UPDATE_LOGIN
,
CREATION_DATE
,
CREATED_BY
,
SHIPPED_DATE
,
VENDOR_NAME
,
EMPLOYEE_NAME
,
VALIDATION_FLAG
,
SHIP_TO_ORGANIZATION_CODE ,
EXPECTED_RECEIPT_DATE,
SHIPMENT_NUM,
ASN_TYPE,
AUTO_TRANSACT_CODE)
SELECT
RCV_HEADERS_INTERFACE_S.NEXTVAL,
RCV_INTERFACE_GROUPS_S.NEXTVAL,
'PENDING',
'VENDOR',
'NEW',
sysdate,
1007881,
1007881,
sysdate,
1007881,
sysdate,
'Advanced Network Devices',
'jones, karen d',
'Y',
'M1', --ship-to org code
sysdate,
'SHIP-20483',
'ASN',
'SHIP'
FROM DUAL;
INSERT INTO RCV_TRANSACTIONS_INTERFACE
(INTERFACE_TRANSACTION_ID
,
HEADER_INTERFACE_ID
,
GROUP_ID
,
LAST_UPDATE_DATE
,
LAST_UPDATED_BY
,
CREATION_DATE
,
CREATED_BY ,
LAST_UPDATE_LOGIN
,
TRANSACTION_TYPE
,
TRANSACTION_DATE
,
PROCESSING_STATUS_CODE
,
PROCESSING_MODE_CODE
,
TRANSACTION_STATUS_CODE
,
QUANTITY,
UNIT_OF_MEASURE
,
AUTO_TRANSACT_CODE
,
RECEIPT_SOURCE_CODE
,

SOURCE_DOCUMENT_CODE
,
DOCUMENT_NUM
,
RELEASE_NUM
,
DOCUMENT_LINE_NUM
DOCUMENT_SHIPMENT_LINE_NUM
SHIP_TO_LOCATION_CODE ,
--NOTICE_UNIT_PRICE
VALIDATION_FLAG
TO_ORGANIZATION_CODE ,
ITEM_NUM

,
,
,
,

)
SELECT
RCV_TRANSACTIONS_INTERFACE_S.NEXTVAL,
RCV_HEADERS_INTERFACE_S.CURRVAL,
RCV_INTERFACE_GROUPS_S.CURRVAL,
SYSDATE,
1007881,
SYSDATE,
1007881,
1007881,
'SHIP',
sysdate,
'PENDING',
'BATCH',
'PENDING',
12,
'Each',
'SHIP',
'VENDOR',
'PO',
'20483',
'', --release number
'2', --line number
'1', --shipment number
'M1- Seattle', -- 'ship to location',
--1,
'Y',
'M1',
'CM13139'
FROM DUAL;