Sie sind auf Seite 1von 3

BT2013(Developed as part of ORP Project)

SELECT SHIP_VIA_LOOKUP_CODE,segment1,(select name from HR_OPERATING_UNITS where


ORGANIZATION_ID=a.org_id)organisation_id
,cancel_flag,closed_code,authorization_status,a.* FROM apps.PO_HEADERS_ALL a where
segment1 in ('701013261');--904001018 -- 544374 site -479169
select closed_code,a.* from apps.po_line_locations_all a where
po_header_id=17715472;

PO interface - Oracle to IFS


SELECT * FROM XXSDL_PO_INT_CTRL WHERE object_header_id=16741474;
SELECT * FROM apps.XXSDL_PO_INTERFACE_V;
SELECT * FROM xxsdl_common_int_error_tbl where
interface_transaction_number='20180125063700234352';--,LH78;

Reusition interface - IFS to Oracle


SELECT * FROM XXSDL_REQUISITIONS_STG where
interface_transaction_number='20170404122510409490';
SELECT * FROM XXSDL_REQUISITIONS_STG where object_header_id=18890712;
select distinct(status) from XXSDL_PO_INT_CTRL;

SELECT * FROM xxsdl_common_int_error_tbl where


INTERFACE_TRANSACTION_NUMBER='20171207054430623275';

Requisition Cancellation - Oracle to IFS


SELECT * FROM XXSDL_REQUISITIONS_INT_CTRL where operation='CANCEL' and
INTERFACE_TRANSACTION_NUMBER='20171229145504253427';
SELECT * FROM XXSDL_REQUISITIONS_INT_CTRL where object_header_id=18890712;
SELECT * FROM xxsdl_common_int_error_tbl where
interface_transaction_number='20171229145504253427' ;

Item master(ICN) - IFS to Oracle


SELECT * FROM XXSDL_ITEMS_STG;
SELECT * FROM xxsdl_common_int_error_tbl where interface_name='ICN_INBOUND';

PO Interface - Oracle to PFS(3PL) � Pentagon Frieght Services


SELECT * FROM XXSDL_PO_INT_CTRL where object_header_id=22872403;
SELECT * FROM xxsdl_common_int_error_tbl where interface_name='PO_OUTBOUND';

GR Interface - PFS(3PL) to Oracle


select rcvl_quantity,a.* from XXSDL_GOODS_RECEIPTS_STG a where
rcvl_po_header_id=22872403;
select * from apps.RCV_HEADERS_INTERFACE where header_interface_id=22872403;
SELECT * FROM xxsdl_common_int_error_tbl where interface_name='IFS.GR.Status'
RCV_HEADERS_INTERFACE and RCV_TRANSACTIONS_INTERFACE
Once the records are inserted into Interface table, standard
Concurrent request(Receiving Transaction Processor) will be called to import into
base tables

GR Interface Outbound � Oracle to IFS


Submit program �Seadrill ORP Outbound Interface Trigger program�
This program will pick all GR�s and post it in CTRL table.;
Select * from apps.XXSDL_GOODS_RECEIPTS_INT_CTRL where
object_header_id=18555506;--14632495,18555506
SELECT * FROM xxsdl_common_int_error_tbl where
INTERFACE_TRANSACTION_NUMBER='20171231065810151881';
select distinct operation from apps.XXSDL_GOODS_RECEIPTS_INT_CTRL;

Select * from rcv_shipment_headers where receipt_num='84114875';


Select * from rcv_shipment_lines;
Select * from apps.rcv_transactions where po_header_id=17715472;
Biztalk service will be invoked to pick the data from View
XXSDL_GR_INTERFACE_V and will be sent to IFS

Oracle Scripts for PR and PO


select * from apps.XXSDL_GR_INTERFACE_V;

select prda.distribution_id from


PO_REQ_DISTRIBUTIONS_ALL PRDA
, PO_REQUISITION_HEADERS_ALL PRHA
, PO_REQUISITION_LINES_ALL PRL
where
PRHA.SEGMENT1 = '70100000928'
--and PRHA.HEADER_ID = PRDA.HEADER_ID
and PRL.requisition_HEADER_ID = PRHA.requisition_HEADER_ID
and prl.requisition_line_id = prda.requisition_line_id;

Query to fetch PO Detail for given PR


select poh.* from
po_headers_all poh,
PO_LINES_ALL POL,
PO_DISTRIBUTIONS_ALL PDL
where POH.PO_HEADER_ID = POL.PO_HEADER_ID
and POL.PO_LINE_ID = PDL.PO_LINE_ID
and pdl.REQ_DISTRIBUTION_ID in (select prda.distribution_id from
PO_REQ_DISTRIBUTIONS_ALL PRDA, PO_REQUISITION_HEADERS_ALL PRHA,
PO_REQUISITION_LINES_ALL PRL where
PRHA.SEGMENT1 = '84100001311'
--and PRHA.HEADER_ID = PRDA.HEADER_ID
and PRL.REQUISITION_HEADER_ID = PRHA.REQUISITION_HEADER_ID
and prl.requisition_line_id = prda.requisition_line_id);

Query to fetch PR Detail for given PO

select PRHA.* from PO_REQ_DISTRIBUTIONS_ALL PRDA, PO_REQUISITION_HEADERS_ALL PRHA,


PO_REQUISITION_LINES_ALL PRL
where
PRL.REQUISITION_HEADER_ID = PRHA.REQUISITION_HEADER_ID
and PRL.REQUISITION_LINE_ID = PRDA.REQUISITION_LINE_ID
and prda.distribution_id in(select pdl.REQ_DISTRIBUTION_ID from
po_headers_all poh,
PO_LINES_ALL POL,
PO_DISTRIBUTIONS_ALL PDL
where POH.PO_HEADER_ID = POL.PO_HEADER_ID
and POL.PO_LINE_ID = PDL.PO_LINE_ID
and poh.segment1 = '141004199');

SQL to Fetch if GR created for PO or Not


select rsh.shipment_header_id ,
RSH.receipt_num,shipped_date,RSH.expected_receipt_date,RSH.shipped_date,rsl.quantit
y_shipped,rsl.quantity_received,rsl.item_description from
po_headers_all poh,
PO_LINES_ALL POL,
RCV_SHIPMENT_HEADERS RSH,
rcv_shipment_lines rsl
WHERE POH.PO_HEADER_ID = POL.PO_HEADER_ID
AND POL.PO_LINE_ID = RSL.PO_LINE_ID
AND RSH.SHIPMENT_HEADER_ID = RSL.SHIPMENT_HEADER_ID
and poh.segment1 = '701000989'
Seadrill ORP Retrigger Biztalk Service Program ---Retriggering

https://seadrilledimanager-prod.azurewebsites.net/?SPHostUrl=https%3A%2F
%2Fmarsdengroup%2Esharepoint%2Ecom%2Fsites%2Fseadrillprod
Login to that portal using below credentials
seadrill.data@themarsdengroup.com
TMG20!6datafeed

-------------------------------------------------------------------------------

The PO status is inprocess in oracle...can you please run the below program in
Seadrill custom resposibility

*****Seadrill PO Status Changes from in process to incomplete****

Das könnte Ihnen auch gefallen