DRP Testing: LEARNING Summary

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 12

DRP Testing

LEARNING Summary
In DRP testing, I got to learn about HP-ALM tool i.e how test cases can be captured and how
defect are being inserted in the tool and assigned to individual for corrective action.
I was told to run the task of 2 Layer and 1 layer model in DRP TEST where I learned about some
procedures behind the task and also the table responsible for the same. Below are the test
cases, which I run and have put the short summary with that so that it can be shared with team
and can be used as a knowledge base for our team.

2 LAYER

1. Cutoff – Billing
Ran Task successfully and data updated in table DRP_DWH_INVOICES and correctly showing in EV
Procedure: pck_drp_cutoff.sql

2. Cutoff - Buffer Inventory

Delete the data from DRP_LOGICAL_INVENTORIES and after task run, table populated again.
Procedure: pck_drp_cutoff.sql

3. Cutoff - Current RD Backlog


Current RD backlog correctly showing in EV after task run. Backlog can be visible in Backlog Info screen
Procedure: pck_drp_cutoff.sql

4. Cutoff - Cust Inventory


Deleted the data from table DRP_CUTOFF_CUST_INVENTORIES and after task run table populated again
and showing in EV.
Procedure: pck_drp_cutoff.sql

5. Cutoff – FABOUT
In Fabout , a quantity available on particular FG and is being showing in EV after task run.
Procedure: pck_drp_cutoff.sql

6. Cutoff – GIT
Delete the data from DRP_SHP_HEADERS and DRP_SHP_ITEMS table and then ran the task and after
that same number of rows got inserted.
Procedure: pck_drp_cutoff.sql

7. Cut Off –All Measures


All below 4 Cut-off Task ran successfully.
GIT
Cust In
Buffer Inv
FABOUT

8. Demand Adaptation
Load the delfor and then an entry got created in signal list with ‘Derived Forecast’
Also after task run, an entry created in DE_EVENT table with 'I' and picked by adapter and changed to
‘S’.

9. Demand - Generate Response


Response file 'D3015730.gz' created at /drpte/batch/outgoing.

10. Demand - Process RD Backlog


Ran task and an entry created in DEMAND_HEADER and status changed to 30 in DSL

11. Demand - Transfer


Delfor: 8c9o3 loaded and then ran the task 'Demand transfer' and signal status change from 10 to 20.

12. GEN SM Shipment


Shipment executed successfully from Shipment Manager View an entry created in EID_CALL.

13. Refresh - Buffer Inventory, Current RD Backlog, Cust Inventory, FABOUT,GIT


Data correctly visible in EV after Cut-Off task as it is event based.

14. Sync DRP to SGA - Stock Policy


Ran successfully for SVWW. Checked in the logs.

LOG PATH: /LOG_RECV/SO/LOG

Log File: SGA06MinMaxQtyUpdLog.20180228


15. Sync SGA to DRP - Demand Site
Deleted the demand site:8718010004 in DRP .Ran task and sync from SGA successful.

Table: DRP_SITE

16. Sync SGA to DRP - Product


Deleted the product: VNS1NV04DPTR-E from DRP Screen then ran the task and it comes into DRP again.

17. Sync SGA to DRP - Stock Policy


Task ran successfully and updated in DSD table.

18. Sync SGA to DRP – Supply Site


Deleted the Supply Site: P1C7-2702 and then ran task and it got sync again from SGA.

1 LAYER

1. 1 Layer BAS
Model: 1 Layer Frame Shared

When the Proposed RD Backlog is generated then the entry created in DRP_DM_MAST and
DRP_DM_DET tables and exact weekly quantity is being showing in EV.

2. 1 Layer BSH
Model: 1 Layer Frame Unshared

When the Proposed RD Backlog is generated then the entry created in DRP_DM_MAST and
DRP_DM_DET tables and exact weekly quantity is being showing in EV.

3. 1 Layer CSH
Model: 1 Layer Consi VMI

When the Proposed RD Backlog is generated then the entry created in DRP_DM_MAST and
DRP_DM_DET tables and exact weekly quantity is being showing in EV.

4. FIRM Backlog - 1L BAS NO FIRM NETTING


When the Proposed RD Backlog is generated then the entry created in DRP_DM_MAST and
DRP_DM_DET tables and RDBKGFIRM having Qty !=0 is inserted in DRP_DM_DET table.

5. FIRM Backlog - 1L BAS WITH FIRM NETTING


When the Proposed RD Backlog is generated then the entry created in DRP_DM_MAST and
DRP_DM_DET tables and RDBKGFIRM having Qty = 0 is inserted in DRP_DM_DET table.

6. FIRM Backlog - 1L BSH NO FIRM NETTING


When the Proposed RD Backlog is generated then the entry created in DRP_DM_MAST and
DRP_DM_DET tables.
Qty: Non- zero in DRM_DM_DET table and no configuration in Business Mode-> Backlog Netting.

7. FIRM Backlog - 1L BSH WITH FIRM NETTING


Change the configurator setting at Product level.
Business Model -> Backlog Netting -> Firm Unconstraint
Then Firm Backlog line will be visible in EV and entry with Qty:0 created in DRP_DM_DET table.
Queries:

select * from DEMAND_SUPPLY_DATA where SOURCE_SITE__ID = '4010085202' and


PRODUCT__ID='L4979DTR-E' and ROW_TYPE__CODE='RR' order by fordate desc;

select * from stock_reserve_condn where sga__code = '66A0000004' and sgp__item_nr = '00270' order
by last_updating_date;

desc DRP_DWH_INVOICES;

create table DWHI_MJ


as
select * from DRP_DWH_INVOICES
where product_code='L4979DTR-E'
and CUSTOMER_SHIP_TO='4010085202'
and CUSTOMER_COMPANY__ID='BOWW'
order by inv_date desc;

select * from DRP_DWH_INVOICES


where product_code='L4979DTR-E'
--and CUSTOMER_SHIP_TO='4010085202'
and CUSTOMER_COMPANY__ID='BOWW'
order by inv_date desc;

delete from DRP_DWH_INVOICES


where product_code='L4979DTR-E'
--and CUSTOMER_SHIP_TO='4010085202'
and CUSTOMER_COMPANY__ID='BOWW';
select * from Drp_Cutoff;
select * from Drp_Site_Product_Lnk;
insert into tmp_mj values ('BOWW','4010085202','L4979DTR-E');

select * from BACKLOG_DLY


where 1=1
and CUSTOMER_SHIP_TO__ID='4010085202'
and rtrim(COMMERCIAL_PRODUCT__CODE)='L4979DTR-E';
select * from SO_STRUCTURE ;
select * from so_scheduled where id='7F78N00392.294.1.329';
select * from so_sub_item where id='7F78N00392.294.1';
select * from so_item where id='7F78N00392.294';

update so_item set CUSTOMER_PART_NR__CODE='622024702C' where id='7F78N00392.294';


update so_scheduled
set TBA_FLAG='N'
where id='7F78N00392.294.1.329';
select * from logical_inventories where
1=1
and plant__code = '0959'
and store_code = '6L03'
and product_code='L4979DTR-S-JLFM/';
select * from internal_git;

SELECT sum(ss.committed_qty)
FROM so so, so_item si,so_sub_item ssi,so_scheduled ss
where si.so__code=ssi.so__code
and ssi.so__code=ss.so__code
and ss.so__code = so.code
and si.Id = ssi.so_item__id
and ss.so_sub_item__Id = ssi.ID
and ss.LAST_COMMITTED_DATE='02-MAR-2018 00:00:00'
and not (ss.so_status__COde='70' and ss.fully_invd_flag='Y') and ss.so_status__Code not in ('40','41')
and ss.finished_good__code = 'L4979DTR-S-JLFM/';

select * from so_Scheduled where id='4F47N02939.176.1.1434';

Cancelled 5k core :
update so_Scheduled set so_status__Code='40' ,plant_so_status__Code='40' where
id='4F47N02939.176.1.1434';

create table DRP_LI_MJ


as
select * from DRP_LOGICAL_INVENTORIES where COMMERCIAL_PRODUCT__CODE='L4979DTR-E';
delete from DRP_LOGICAL_INVENTORIES where COMMERCIAL_PRODUCT__CODE='L4979DTR-E';
create table DRP_CCI_MJ
as
select * from DRP_CUTOFF_CUST_INVENTORIES where COMMERCIAL_PRODUCT__CODE='L4979DTR-E';

delete from DRP_CUTOFF_CUST_INVENTORIES where COMMERCIAL_PRODUCT__CODE='L4979DTR-E';


select * from internal_git;
select * from PENDING_SHIPMENT where COMMERCIAL_PRODUCT__CODE='L4979DTR-E';

select * from DRP_SHP_HEADERS where ID IN (select shph_id from DRP_SHP_ITEMS where


COMMERCIAL_PRODUCT__CODE='L4979DTR-E');;

select * from DRP_SHP_ITEMS where COMMERCIAL_PRODUCT__CODE='L4979DTR-E' ;


select sum(SHIPPED_QTY) from DRP_SHP_ITEMS where COMMERCIAL_PRODUCT__CODE='L4979DTR-E'
and ITEM_STATUS_DATE_M ODIFIED like '17-FEB-2018%'
order by ITEM_STATUS_DATE_MODIFIED desc;

create table DRP_SHPH_MJ


as select * from DRP_SHP_HEADERS where ID IN (select shph_id from DRP_SHP_ITEMS where
COMMERCIAL_PRODUCT__CODE='L4979DTR-E');

create table DRP_SHPI_MJ


as select * from DRP_SHP_ITEMS where COMMERCIAL_PRODUCT__CODE='L4979DTR-E' ;
select count(*) from where COMMERCIAL_PRODUCT__CODE='L4979DTR-E' ;
select count(*) from DRP_SHPH_MJ;

delete from DRP_SHP_ITEMS where COMMERCIAL_PRODUCT__CODE='L4979DTR-E' ;


delete from DRP_SHP_HEADERS where ID IN (select shph_id from DRP_SHP_ITEMS where
COMMERCIAL_PRODUCT__CODE='L4979DTR-E');
delete from DRP_CUTOFF_CUST_INVENTORIES where COMMERCIAL_PRODUCT__CODE='L4979DTR-E';
select * from DRP_LOGICAL_INVENTORIES where COMMERCIAL_PRODUCT__CODE='L4979DTR-E';

select * from DRP_EVENT where CUSTOMER_COMPANY__ID='BOWW' and PRODUCT__ID='L4979DTR-E'


order by EVENT_END_DATE desc ;

select * from eid_Call


where 1=1
and TARGET_CUSTOMER_SHIP_TO__ID='4010085202'
and COMMERCIAL_PRODUCT__CODE='L4979DTR-E'
order by insertion_date desc;
select * from eid_Call order by insertion_date desc;
select * from sm_drp_eid_Call where DRP_CUSTOMER_COMPANY__ID='BOWW'
--and TARGET_CUSTOMER_SHIP_TO__ID='4010085202'
and COMMERCIAL_PRODUCT__CODE='L4979DTR-E'
order by INSERTION_DATE desc;

select * from EID_KEEP_LOG where EID_CALL__TRANSACTION_ID='718160';


select * from sm_Demand_x_shipment order by INSERTION_DATE desc;

select * from logical_inventories where


1=1
and plant__code = '0899'
and store_code = '6A02'
and product_code='L5050ED1/';
select * from internal_git;

select * from sm_product_x_site


where 1=1
--PRODUCT__ID='L4979DTR-E'
and CUSTOMER_COMPANY__ID='BOWW'
and LAST_UPDATING_DATE >sysdate -30
order by LAST_UPDATING_DATE asc;
select * from sm_shipment_plan where PRODUCT__ID='L4979DTR-E' and site__id='4010085202';

select * from PRODUCT_DRPUSR where CUSTOMER_COMPANY__ID='BOWW' and


ST_PRODUCT__ID='L4979DTR-E';
select distinct customer_part_nr__name from demand_supply_data where PRODUCT__ID='L4979DTR-
E' and CUSTOMER_COMPANY__ID='BOWW';
select * from sales_genl_provision where sga__code = '66A0000004' and commercial_product__code
like 'L4979DTR-E%';
select * from TMP_SGA_DATA;

select type from logical_inventories;

select * from schedule where customer_ship_to__id='4010085202' and


commercial_product__code='L4979DTR-E' ;
order by SCHD_DATE desc;

select * from delf_envelope where EDI_CONTROL_COUNT='8c9o3';

select * from EDI_PARKED_FILE_HDR;


select * from drp_demand_status;

insert into edi_parked_file_hdr values


('/home0701/tuxsicte/pamit/8c9o3','R00003','ORDERS',sysdate,'eux250','01','','');

select * from TODOLIST where FILE_NAME like '%8c9o3%';

select
layer_type__code,id,PROCESSING_STATUS,CUSTOMER_SHIP_TO__CODE,COMMERCIAL_PRODUCT__CO
DE,ASSOCIATION__CODE,
CUSTOMER_PART_NR,SO__CODE,NETTING_MODE,FRAME_LEVEL,SW_USER__ID,INSERTION_DATE,LAST
_UPDATING_DATE,PROCESSING_START_DATe,SALES_ORDER_TYPE__CODE,SO_SUB_TYPE__CODE from
demand_header
where customer_Ship_to__code='4010073101'
and commercial_product__Code='L4979DTR-E'
order by insertion_date;

select * from RD_BACKLOG_DLY where commercial_product__Code='L4979DTR-E' and


customer_Ship_to__id='4010085202' ;

select * from sga where customer_assocn__code='BOWW';


--66A0000004
select * from sales_genl_provision where sga__code = '66A0000004' and commercial_product__code
like 'L4979DTR-E%';
select * from stock_reserve_condn where sga__code = '66A0000004' and sgp__item_nr = '00270' order
by last_updating_date;
select * from STOCK_CONSIGNT_CONDN where SGA__CODE='66A0000004' and SGP__ITEM_NR
='00270';

select * from demand_supply_data


where 1=1
and product__id='L4979DTR-E'
and customer_company__id='BOWW'
and row_type__code IN ('MNDOS','MXDOS')
--and SOURCE_SITE__ID='4010085202'
order by fordate desc;

select * from PRODUCT_DRPUSR where CUSTOMER_COMPANY__ID='BOWW'


--118
and ST_PRODUCT__ID='L4979DTR-E';

select * from sales_genl_provision where sga__code = '66A0000004' and commercial_product__code


like 'L4979DTR-E%';

select * from TMP_SGA_DATA;

select * from DRP_SITE where CUSTOMER_COMPANY__ID='BOWW';


--50

select * from de_event where de_event_status='I' ;


select * from edi_rsp order by INSERTION_DATE desc;
select * from SENT_HISTORY order by INSERTION_DATE desc;

select * from drp_response_period_details;


select * from DRP_RESPONSE_DATA_CONTENT;

desc RMS_PRODUCT_RETURN_REQUEST ;

update de_event set de_event_status='I'


where customer_association__code='BOWW'
and commercial_product__Code='L4979DTR-E'
and insertion_date >sysdate -2;

SELECT LI.STORE_CODE -- used in API


,
LI.PLANT__CODE -- used in API
,
LI.PRODUCT_CODE -- used in API
,
LI.ON_HAND_QTY -- used in API
,
LI.ENGAGED_QTY -- used in API
,
LI.IN_PICK_QTY -- used in API
,
LI.IN_SHIP_QTY ,
LI.IN_TRANSIT_QTY ,
LI.IN_QI_QTY ,
LI.RESERVED_QTY -- used in API
,
LI.DATE_CREATED ,
LI.USER_CREATED ,
LI.DATE_MODIFIED ,
LI.USER_MODIFIED ,
LI.LAST_RECOVERY_DATE ,
LI.TRANSIT_DATE_MODIFIED ,
LI.TRANSIT_USER_MODIFIED ,
LI.LAST_UPDATING_DATE ,
QTY_TO_BE_INVOICED ,
' ' -- Null value for commercial_product__code in loading phase
FROM LOGICAL_INVENTORIES LI
WHERE (LI.PLANT__CODE, LI.STORE_CODE) IN
(SELECT DISTINCT PLANT__CODE,
STORE__CODE
FROM DRP_SITE
WHERE CUSTOMER_COMPANY__ID = 'BOWW'
AND TYPE = 'S'
)
AND LI.PRODUCT_CODE IN
(SELECT ID
FROM DRP_ITEM
WHERE PRODUCT__ID ='L4979DTR-E'
AND CUSTOMER_COMPANY__ID = 'BOWW'
);
insert into edi_parked_file_hdr values
('/home0701/tuxsicte/mayank/8fcw4','R00003','ORDERS',sysdate,'eux250','01','','');
select * from edi_parked_file_hdr;

select * from delf_envelope where EDI_CONTROL_COUNT='8fcw4';

select * from schedule where DELF_HDR__CODE='0801277635711 000031';


select * from de_event order by insertion_date desc;;
update de_event set DE_EVENT_STATUS='P' where id='11210706';
select PRODUCT_MATURITY__CODE,code from PLM_MATERIAL where TYPE='CP' and code='UR64-TR';

select * from de_entity where id IN ('E0003','E0001');


select * from product_drpusr where descr='UAM1-TR';
select * from DE_EVENT_DETAILS where de_event__id='11210706';

select edi_control_count,insertion_date,DELF_HDR__CODE from delf_envelope


where DELF_HDR__CODE IN(select distinct DELF_HDR__CODE from schedule where
demand_type__code is not null and schd_ind='1' and length(rtrim(DELF_HDR__CODE)) >3
and rtrim(COMMERCIAL_PRODUCT__CODE) IN (Select rtrim(CODE) from PLM_MATERIAL where
TYPE='CP' and PRODUCT_MATURITY__CODE <21)
and rtrim(COMMERCIAL_PRODUCT__CODE) IN (Select rtrim(id) from product_drpusr))
order by insertion_date desc;
select * from drp_demand_Status;

DE_EVENT -> E0003 ->I

UR64-TR

SELECT DISTINCT w.id


FROM waiver w ,
waiver_type wt ,
waiver_type_x_application wta
WHERE w.waiver_type__code = wt.code
AND w.activity_status__code = '30'
And Wta.Waiver_Type__Code = Wt.Code
AND wta.application_name = 'DRP'
AND w.commercial_product__code = 'UR64-TR'
AND (w.Customer_Ship_To__ID = '4003554005'
OR w.Customer_Ship_To__ID IS NULL
OR w.Customer_Ship_To__ID = ' ');

select edi_control_count,insertion_date,DELF_HDR__CODE from delf_envelope


where DELF_HDR__CODE IN(select distinct DELF_HDR__CODE from schedule where
demand_type__code is not null and schd_ind='1' and rtrim(COMMERCIAL_PRODUCT__CODE) IN (Select
rtrim(CODE) from PLM_MATERIAL where TYPE='CP' and PRODUCT_MATURITY__CODE <21))
order by insertion_date desc
Keep Pending:

IF Shipment Propose for 20k


Availability: UR:8k , DD:5k

Previously if Process Mode is Keep Pending then it will not propose shipment

If Process Mode is Normal , then normal shipment will be triggered for 20k.

Change:
If Process Mode is 'Keep Pending' then it will propose 8k and 5k and 7k as Normal.

insert into edi_parked_file_hdr values


('/home0701/tuxsicte/pamit/8c9o3','R00003','ORDERS',sysdate,'eux250','01','','');

DRP- PRoduct Not able to select Product

Product: L4979DTR-E
Shipto :4010085202
Assoc: BOWW

eul0701.sgp.st.com

Cut Off Billing: 27th Feb 5:30 AM CET


28 06:54
/vobs/dev_sched/drp/dbobjects/pck_drp_cutoff.sql

Cust Inventory: 27 FEB - 07:50 AM CET

Buffer Inv: 27 FEB - 08:40 AM CET

ALL Measure: 10:29 (FabOut)

You might also like