Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Table of Contents
1. Un scheduling the GWN Orders ................................................................ 3
2.1 Copy Merge Forecast Program for Source-PCT_EMPTY .................................. 5
2. 2 Copy Merge Forecast Program for Source-PCT_LS .................................................... 7
3. Load/Copy/Merge MDS Program for Organization PCT .................... 9
4. Copy/Merge Forecast Programs for Organization GWN ................... 10
4. 1 DICE Empty Gwinner Demand Classes Forecast ..................................................... 10
4. 2 DICE Load Gwinner Demand Classes Forecast ........................................................ 12
5. DICE Populate Forecast Data for Manual ATP (JOB-0092) .................. 14
6. Rescheduling Of the GWN Programs ..................................................... 16
6. 1 Rescheduling Orders for demand class-AP ............................................................... 17
7. DICE OSS Arrival Date Update(JOB-0102): ........................................................ 18
8. 1 MDS Program for Organization: BCA ........................................................................ 19
8. 2 MDS Program for Organization: BIM ......................................................................... 21
8.3 Load/Copy/Merge Programs for Organization GWN ............................................. 22
9. Data Collection .................................................................................................................................... 23
10. Launch and Push Plan Programs.................................................................................................... 27
10. 1 Push Plan Program for LEG:STA .............................................................................. 27
10. 2 Launch Supply Chain Planning Program for LEG: BIM ........................................ 29
10. 3 Push Plan Program for LEG: BIM .............................................................................. 29
10. 4 Launch Supply Chain Planning Program for LEG: PCT ........................................ 30
10. 5 Push Plan Program for LEG: PCT ............................................................................. 31
10. 6 Launch Supply Chain Planning Program for LEG: BCM....................................... 31
10. 7 Push Plan Program for LEG: BCM ............................................................................ 32
11. DICE Release Concurrent Programs ............................................................................................... 33
11. 1 DICE Release Concurrent program on Hold (EXT-0063) ....................................... 33
10. 2 DICE Release Concurrent program on Hold (EXT-0063) ....................................... 34
12. SQL Queries ........................................................................................................................................ 35
13. Issues Faced During Weekend Planning Run ................................................................................ 42
13.1 Push Plan Issues ............................................................................................................ 42
22.2 Refresh Collection Snapshot Failure: ......................................................................... 43
13.3 Data Collection Failure: ............................................................................................... 44
3 Doosan Weekend Job Run Book
Shift Timings
We should always consider shift timings of ‘Assembly’ and should not consider ‘Welding’
3RD Shift in Assembly will be from 11PM Friday (CST) – 7 AM Saturday (CST)
Instance DNAPROD(P1)
3. Enter the Parameter as follows (mentioned in the excel sheetScheduling Rules B (tab) )
c. Item= Null
e. Resequence Method=FIFO_SEQ_NUM
g. Threads = 15
4. Click OK
5. Click Submit
6. Note down the Request Id of the program in the excel sheet against the respective Program name.
Check the number of orders against the Item Model using the below query .
5 Doosan Weekend Job Run Book
order by alloc_model;
When the GWN un-scheduling is running, we can run the below programs:
Instance DNAPROD(P1)
Steps:
2. Click Forecast
3. Click Copy
5. Enter the Start date and End date from parameters tab in excel sheet under Forecast Copy section
against PCT_EMPTY.
6 Doosan Weekend Job Run Book
6. Click Ok
7. Click Submit
Verification:
Path:
Press F11( Query mode) in Forecast set give PCT_CON_ST and ctrl+F11. Click on forecast items select
second item click on detail. Make sure its empty.
Note: Copy/Merge Forecast programs for PCT should be run sequentially i. e. Only after the
completion of current program, execute the next one.
7 Doosan Weekend Job Run Book
2. Click Forecast
3. Click Copy
5. Enter the Start date and End date from parameters tab in excel sheet under Forecast Copysection
against PCT_LS
6. Click Ok
7. Click Submit
Verification:
Path:
Press F11( Query mode) IN Forecast set give PCT_CON_ST and ctrl+F11. Click on forecast items. Enter
in query mode give M2% in item and ctrl+F11 then click on detail make sure all the dates are within the
end date as given in excel sheet.
Explanation:
After running the program the Current Quantity and the Original Quantity should be equal (in the
snapshot below)
9 Doosan Weekend Job Run Book
Note: After the completion of the above program, you can execute Load/Copy/Merge for PCT
organization
2. Click on MDS
3. Click on LOAD/COPY/MERGE
5. Enter the start date and end date from the parameters tab in the excel sheet from the MDS
ASCPsection against PCT organization
6. Click Ok
7. Click Submit
9. Click on the View Details tab and note down the start and end time of the program in the excel sheet.
Instance DNAPROD(P1)
Steps:
1. Go to Toolbar
2. Click on View
11 Doosan Weekend Job Run Book
3. Select Requests
4. Click on Submit a New Request
5. Select Request Set
6. Enter the Job Name as mentioned in the excel sheet
7. Clicking on every row (Parameters tab), default parameters are populated.
8. Click ok.
9. Click Submit
Validation:
After running above program, please run below query by giving dates as mentioned in parameter tab of
weekend excel for copy forecast.
After running this query, you should not be able to see forecast designator (AMR1_CN_FC / AP_CN_FC
/ EMEA_CN_FC/ OCN_CN_FC/ EXPD_CN_FC /NAGS_CN_FC/ CHN_CN_FC) – if you don’t see
these forecast designators, which means it is fine.
1. Go to Toolbar
2. Click on View
3. Select Requests
4. Click on Submit a New Request
5. Select Request Set
6. Enter the Job Name as mentioned in the excel sheet
7. Clicking on every row (Parameters tab), default parameters are populated.
8. Enter the start date and end from the excel sheet in the Parameters tab from the Forecast / Copy
section against GWN for every demand class.
9. Click ok.
10. Click Submit
11. Note down the Request ID.
13 Doosan Weekend Job Run Book
Validation:
After running above program, please run below query by giving dates as mentioned in parameter tab of
weekend excel for copy forecast.
After running this query, you should be able to see forecast designator (AMR1_CN_FC / AP_CN_FC /
EMEA_CN_FC/ OCN_CN_FC/ EXPD_CN_FC /NAGS_CN_FC/ CHN_CN_FC) and if you don’t see
even anyone of these that means we have an issue with the program parameters or program run.
Group By
14 Doosan Weekend Job Run Book
FD. ORGANIZATION_ID,
FD. FORECAST_DESIGNATOR,
FD. SOURCE_FORECAST_DESIGNATOR,
FD. SOURCE_ORGANIZATION_CODE
order by FD. ORGANIZATION_ID, FD. FORECAST_DESIGNATOR;
Instance DNAPROD(P1)
Steps:
1. Go to Toolbar
2. Click on View
3. Select Requests
4. Click on Submit a New Request
5. Select Single Request
6. Enter the Program Name - DICE Populate Forecast Data for Manual ATP (JOB-0092)
7. Enter the parameter from the excel sheet (Org- GWN)
8. Click Ok
15 Doosan Weekend Job Run Book
9. Click Submit
10. Note down the Request Id of the program in the excel sheet against the respective Program
name.
Once program “DICE Populate Forecast Data for Manual ATP (JOB-0092)”, gets completed, please run
below query to check quickly whether data is copied to “xxit_fc_item_qty” table. If we see data for all
forecast designators that means program worked the way it is intended to:
Selectorganization_id,forecast_designator,count(*)fromxxit_fc_item_qtygroupbyorganization_id,forecast
_designatororderbyorganization_id,forecast_designator;
selectorganization_id,
forecast_designator,
sum(original_forecast_quantity)Orig,
sum(current_forecast_quantity)Curr
fromxxit_fc_item_qty
groupbyorganization_id,
forecast_designator
orderbyorganization_id,
forecast_designator;
16 Doosan Weekend Job Run Book
1. When Rescheduling, submit 8-10 programs at a time and check the Process count using the below
mentioned query.
Instance DNAPROD(P1)
Steps:
3. Enter the Parameter as follows (mentioned in the excel sheetScheduling Rules B (tab) )
17 Doosan Weekend Job Run Book
b. Unschedule Only = No
c. Item= Null
e. Resequence Method=FIFO_SEQ_NUM
g. Demand Class=AP
h. Threads = 1
4. Click OK
5. Click Submit
6. Note down the Request Id of the program in the excel sheet against the respective Program name.
Run the above program each time for various demand class like EMEA, Oceania, NAGS, EXP, China
and AMR1 orders as below:
18 Doosan Weekend Job Run Book
Note:
1. Run for all the items (Check scheduling rules tab) provided in excel sheet and make sure all
the orders are properly rescheduled.
2. Check the query GWN Models -- Schedule Status by Model/Demand Class -- use to monitor
AMR1 demand class unschedule/reschedule to make sure all the orders are scheduled
properly.
3. When we start running Unscheduling/Rescheduling programs we have a query planning
manager records keep monitoring it and make sure that process status is not exceeding 10,000.
4. When Rescheduling has completed, check the forecast query for gwn.
If the consumption shown is less than number of rescheduled orders then run
Overconsumption query given below:
select sum(current_forecast_quantity)
from MRP_FORECAST_dates_v
where forecast_designator='GWN_CON_ST'
and last_update_date>= '06-Jul-2013'
and origination_type_desc ='Overconsumption'
The output of the above query should match the difference between scheduled sales order and
the forecast consumption.
8. MDS Programs for Organizations BCA, BIM, BMK, CAR, WHP and GWN
Steps:
2. Click MDS
3. Click Load/Copy/Merge
5. Enter the Start date and End date from parameters under MDS ASCPsection for BCA organization
6. Click Ok
7. Click Submit
9. Click on the View Details tab and note down the start and end time of the program in the excel sheet
Note: Only after the completion of above program, execute the next program.
21 Doosan Weekend Job Run Book
Steps:
2. Click MDS
3. Click Load/Copy/Merge
5. Enter the Start date and End date from parameters under MDS ASCPsection for BIM organization
6. Click Ok
7. Click Submit
9. Click on the View Details tab and note down the start and end time of the program in the excel sheet
Note: Once the above program is completed, execute the next program.
Similarly execute the MDS programs for the orgs and for GWN MDS,
22 Doosan Weekend Job Run Book
Note:
For example GWN are working in 3rd shift (Friday 11PM-Saturday 7AM (CST)), then the program
should be executed after Saturday 7AM (CST).
Instance DNAPROD(P1)
Steps:
2. Click MDS
3. Click Load/Copy/Merge
5. Enter the Start date and End date from parameters under MDS ASCPsection for GWN organization
23 Doosan Weekend Job Run Book
6. Click Ok
7. Click Submit
9. Click on the View Details tab and note down the start and end time of the program in the excel sheet
9. Data Collection
Instance DNAASCPP(O1)
Steps:
1. Go to Toolbar
2. Click on View
3. Select Requests
4. Click on Submit a New Request
24 Doosan Weekend Job Run Book
a. Enter Number of Workers and Sales Order( Special Parameters in excel sheet)
b. Click Ok.
25 Doosan Weekend Job Run Book
b. Click Ok.
26 Doosan Weekend Job Run Book
b. Click Ok
8. Click Submit
10. Enter the Start time and the End time of the programs as mentioned below in the excel sheet.
1. You can execute the next Program (Push Plan) in the same instance (O1).
4. Launch plan and Push Plan of two different organizations should be run in parallel.
5. For the Push Plan programs make sure that the Horizontal Start Date and Horizontal End Dates
should have no value.
6. Run the below query after completion of each Launch supply program and check for the updated
dates in the output
where compile_designator in
('BCM_WKEND','BCM_ATT','PCTWEKEND','BCM_MIDWK','PP_WKEND')
Steps:
5. Click Ok.
6. Click Submit
7. Note down the Request id, Start time & End Time in the excel sheet against the respective
program.
You can run the Launch Plan Program of different organization in parallel with the above Push
Plan program.
29 Doosan Weekend Job Run Book
Steps:
2. Click Launch
b. Click Ok
5. Click Submit
6. Enter the Request Id in the excel sheet against the respective Program.
Steps:
6. Click Ok.
7. Click Submit
8. Note down the Request id, Start time & End Time in the excel sheet against therespective program.
Instance DNAASCPP(O1)
Steps:
2. Click Launch
b. Click Ok
5. Click Submit
6. Enter the Request Id in the excel sheet against the respective Program.
Steps:
6. Click Ok.
7. Click Submit
8. Note down the Request id, Start time & End Time in the excel sheet against the respective program.
Note:
Similarly we need to launch the BCM_WKEND plan and push plan information program after the
BCM_WKEND plan gets completed.
Instance DNAASCPP(O1)
Steps:
2. Click Launch
32 Doosan Weekend Job Run Book
b. Click Ok
5. Click Submit
6. Enter the Request Id in the excel sheet against the respective Program.
Steps:
6. Click Ok.
7. Click Submit
8. Note down the Request id, Start time & End Time in the excel sheet against the respective program.
33 Doosan Weekend Job Run Book
Instance DNAPROD(P1)
Steps:
1. Go to Toolbar
2. Click on View
3. Select Requests
5. Enter the Job Name - DICE Release Concurrent program on Hold (EXT-0063)
7. Click OK
8. Click Submit
9. Note down the Request Id of the program in the excel sheet against the respective Program name.
Note: Once the above program completes, execute the next program
8. Click OK
9. Click Submit
10. Note down the Request Id of the program in the excel sheet against the respective Program name.
select
ola. schedule_status_code, msi. item_Type, ola. item_type_Code, ola. visible_demand_Flag, oha.
attribute14,
msi. atp_flag, ola. override_atp_date_code OVATP, sum(ola. ordered_quantity)
from oe_order_lines_allola,
oe_order_headers_alloha,
mtl_system_items_bmsi
where msi. inventory_item_id = ola. inventory_item_id
and msi. organization_id = ola. ship_from_org_id
and oha. header_id = ola. header_id
and ola. ship_from_org_id = 106
and ola. open_flag = 'Y'
37 Doosan Weekend Job Run Book
select
ola. schedule_status_code, msi. item_Type, ola. item_type_Code, ola. visible_demand_Flag, oha.
attribute14,
msi. atp_flag, ola. override_atp_date_code OVATP, sum(ola. ordered_quantity)
from oe_order_lines_allola,
oe_order_headers_alloha,
mtl_system_items_bmsi
where msi. inventory_item_id = ola. inventory_item_id
and msi. organization_id = ola. ship_from_org_id
and oha. header_id = ola. header_id
and ola. ship_from_org_id = 446
and ola. open_flag = 'Y'
and ola. booked_flag = 'Y'
and ola. cancelled_flag = 'N'
and (ola. visible_demand_flag = 'Y' or ola. visible_demand_flag is null)
and msi. atp_flag in ('Y','R','C')
and ola. link_to_line_id is null
and ola. item_type_code in ('MODEL')
and ola. actual_shipment_Date IS NULL
group by
ola. schedule_status_code, msi. item_Type, ola. item_type_Code, ola. visible_demand_Flag,
oha. attribute14, msi. atp_flag, ola. override_atp_date_code
order by
ola. schedule_status_codedesc;
select
ola. schedule_status_code, msi. item_Type, ola. item_type_Code, ola. visible_demand_Flag, oha.
attribute14,
msi. atp_flag, ola. override_atp_date_code OVATP, sum(ola. ordered_quantity)
from oe_order_lines_allola,
oe_order_headers_alloha,
38 Doosan Weekend Job Run Book
mtl_system_items_bmsi
where msi. inventory_item_id = ola. inventory_item_id
and msi. organization_id = ola. ship_from_org_id
and oha. header_id = ola. header_id
and ola. ship_from_org_id = 124
and ola. open_flag = 'Y'
and ola. booked_flag = 'Y'
and ola. cancelled_flag = 'N'
and (ola. visible_demand_flag = 'Y' or ola. visible_demand_flag is null)
and msi. atp_flag in ('Y','R','C')
and ola. link_to_line_id is null
and ola. item_type_code in ('MODEL')
and ola. actual_shipment_Date IS NULL
group by
ola. schedule_status_code, msi. item_Type, ola. item_type_Code, ola. visible_demand_Flag,
oha. attribute14, msi. atp_flag, ola. override_atp_date_code
order by
ola. schedule_status_codedesc;
--Overconsumption----
select sum(current_forecast_quantity)
from MRP_FORECAST_dates_v
where forecast_designator='GWN_CON_ST'
and last_update_date>= '06-Jul-2013' ///current date
and origination_type_desc ='Overconsumption'
---MDS Query---
39 Doosan Weekend Job Run Book
('AMR1_GMDS','AP_GMDS','EMEA_GMDS','EXPD_GMDS','CHN_GMDS',
'NAGS_GMDS','OCN_GMDS')
AND SCHEDULE_DATE >= '22-Jul-2013'
AND SCHEDULE_DATE <= '31-Jul-2014'
and source_code='MRCSAL'
group by
msd.schedule_designator
select organization_id,
forecast_designator,
sum(original_forecast_quantity) Orig,
sum(current_forecast_quantity) Curr
from xxit_fc_item_qty
group by organization_id,
forecast_designator
order by organization_id,
forecast_designator;
where compile_designator in
('BCM_WKEND','BCM_ATT','PCTWEKEND','BCM_MIDWK','PP_WKEND')
Cause: FDPSTP failed due to ORA-02055: distributed update operation failed; rollback required
ORA-06512: at "APPS.MS”
Cause:
Error is caused by pushing a demand from ASCP with the same DEMAND_ID as an existing
MRP_GROSS_REQUIREMENTS entry
The product design generates the DEMAND_ID values used when pushing a demand from the RDBMS
sequence MRP_GROSS_REQUIREMENTS_S. If that sequence reaches its maximum value, the sequence
needs to be reset to a smaller number.
Solution:
After discussing with DBA team, we have learnt that instead of resetting the sequence, we better purge
the plans whose Min/Max demand id is causing the issue.
Run the below SQL again and compare the values of MIN(DEMAND_ID) and MAX(DEMAND_ID) and
ensure that they are not greater than the LAST_NUM of theSequence MRP_GROSS_REQUIREMENTS_S.
Purge the plans using following two responsibilities assigned to Bobcat_jobs_plan user:
Please follow Note 944864.1 and 577658.1 inMetalink, whenever you need more info.
This happens only with BCM_WKEND plan during Sunday Evening and it is not happening every
weekend.
We had one failure on it during the weekend after the application of patch # 16772118.
After application of this patch we have issues where materialized views are used. We use materialized
view in Refresh collection Snapshot and hence it is causing the issue.
44 Doosan Weekend Job Run Book
SR # 3-8113810409, opened with Oracle on it and we get more info on it through note # 1573704.1
We applied the patch # 17230530 provided by Oracle to eliminate the issue we had with materialized
view.
In one of the planning data pull worker log file I see below error (but not in all planning data pull
workers log files).
Solution:
Cause is not known, but Oracle advised to run below 8 steps and it solved the issue:
1. Ask your DBA to compile all invalid objects in both Source and Destination Instances. (please
skip this if already done)
3. Run Gather Stat Schemas for All schemas in both Source and in Destination instances.
- If you can, run it for 50% or even more like 80%, if not, just run it at a % level that you can.
45 Doosan Weekend Job Run Book
6. In Source instance:
Run "Refresh Collections Snapshots" program with following parameters:
(run it from Source Instance if using Decentralized setup):
Go to Oracle Manufacturing responsibilities, such as:
Material Planner or Manufacturing and Distribution Manager, or Material Planner (or ASCP)
Navigation:
View / Requests / Submit a New Request.
Submit program: "Refresh Collection Snapshot"
Parameters:
Refresh Mode = Complete
Snapshot Name = ALL SNAPSHOTS
7. In Source instance:
Run "Refresh Collections Snapshots" program with following parameters:
(run it from Source Instance if using Decentralized setup):
Go to Oracle Manufacturing responsibilities, such as:
Material Planner or Manufacturing and Distribution Manager, or Material Planner (or ASCP)
Navigation:
View / Requests / Submit a New Request.
Submit program: "Refresh Collection Snapshot"
Parameters:
Refresh Mode = Automatic
Snapshot Name = ALL SNAPSHOTS
Threshold for Truncating Logs = 0
Degree = 0
46 Doosan Weekend Job Run Book
8. Run Complete Data Collection from ASCP responsibility (in Destination instance, if
Decentralized):
Go to Advanced Supply Chain Planner responsibility.
Navigation:
Collections / Oracle Systems / Standard Collections
Collections Method = Complete Refresh
Root Cause:
We have found the root cause of the data collection failure we had past weekend. This error was caused
due to the running of a Scheduled “Refresh Collection Snapshot” job in DNAPROD instance in parallel
with “Planning Data Pull” in DNAASCPP instance.
The “Refresh Collection Snapshot” is scheduled to run at 2AM Sunday morning and due to delayed
weekend plan runs we run data collection 2 at same time. Hence, running time of both jobs coincides and
due to which “Refresh Collection Snapshot” in DNAPROD create locks on snapshot tables.