+ All Categories
Home > Documents > Cognos Demantra Data Loading Processes Job Aid

Cognos Demantra Data Loading Processes Job Aid

Date post: 27-Dec-2015
Category:
Upload: kelvin-jhon-evangelista
View: 25 times
Download: 0 times
Share this document with a friend
Description:
88
Popular Tags:
12
SAP COGNOS TO DEMANTRA UPLOADING PROCESSES JOB AID Important : 1. Request for previous month SNW TOLL data from Ms Dhang ([email protected]) every 2nd week of the month. 2. SNW TOLL provided by Ms Dhang is not yet ready for upload let Ms Mayette ([email protected]) verify it first and wait for the updated SNW TOLL. 3. Once updated SNW TOLL is avaible you are now ready to generate SELL-IN data for DEMANTRA 4. Open SQL Server Management Studio. Connect to FORTCOGNOS2 server. Expand Management/Legacy/Data Transformation Services
Transcript
Page 1: Cognos Demantra Data Loading Processes Job Aid

SAP COGNOS TO DEMANTRA UPLOADING PROCESSES JOB AID

Important :

1. Request for previous month SNW TOLL data from Ms Dhang ([email protected]) every 2nd week of the month.

2. SNW TOLL provided by Ms Dhang is not yet ready for upload let Ms Mayette

([email protected]) verify it first and wait for the updated SNW TOLL.

3. Once updated SNW TOLL is avaible you are now ready to generate SELL-IN data for DEMANTRA

4. Open SQL Server Management Studio. Connect to FORTCOGNOS2 server. Expand Management/Legacy/Data Transformation Services

Page 2: Cognos Demantra Data Loading Processes Job Aid

5. Right Click 'ARCHIVE_MONTHLY_FORCAST_EXPORT' open.

6. Go to Package/Execute. once done close the package.

Page 3: Cognos Demantra Data Loading Processes Job Aid

PREPARING SELL-IN DATA for DEMANTRA

1. Update ALL the VIEWS Transaction_Dates to the current forecast month to be uploaded. (i.e if target forecast Month is JUNE 2014 change all Transaction_Dates to ‘201406’ – format ‘yyyymm’)

• EXPORT vue_Demantra_Require LEFT(dbo.vw_TrxOrders_DMPI_Export.Transaction_Date, 6) = '201406’ vue_UNCONSTRAINED_DEMANTRA dbo.TB_SALES_TARGET_EXPORT.Transaction_Date = '06/1/2014'

• FRESH_CUT vue_Demantra_Require LEFT(dbo.vw_TrxOrders_DMPI_FRESH.Transaction_Date, 6) = '201406’

• SAP_DATAWAREHOUSE vue_DEMANTRA_REQUIRE_v2 LEFT(dbo.vue_TrxSales_DMPI_Demantra.Transaction_Date, 6) = '201406’

2. Go to “F:\DEMANTRA” folder

Create the folder with name according to the forecast month to be uploaded (i.e. JUN 2014)

Put SNW TOLL in the current folder (JUN 2014)

Page 4: Cognos Demantra Data Loading Processes Job Aid

Open SNW TOLL make sure that 'Month' field is in format 'mmm-yyyy' >Data>Text to Columns>next>

next>

Finish>

Save and close SNW TOLL file.

Page 5: Cognos Demantra Data Loading Processes Job Aid

3. SNW Toll should be loaded to EXPORT database.

TBSNWTOLL_DEMANTRA_DATA table – SNW Toll excel

Note: both table should be empty/truncated before loading new data. load the excel data using the IMPORT/EXPORT method. (check the mapping of columns it should be correct)

4. Make sure there’s no missing customer from Export, Fresh_cut and

SAP_DATAWAREHOUSE otherwise update their customer first before proceeding. To check run this batchfile

For Export F:\EXPORT_CUSTOMER_MASTER\Batch File\Export_Not_in_Customer_Master.bat then check for this excel file ' Export_Customer_not_in_Master.XLS' in F:\EXPORT_CUSTOMER_MASTER\Export not in Customer Master. make sure to rename the file to avoid overwriting of data.

For Fresh_Cut F:\FRESH_CUSTOMER_MASTER\Batch File\Fresh_Not_in_Customer_Master.bat then check for this excel file ' Fresh_not_in_Customer_Master.XLS' in F:\FRESH_CUSTOMER_MASTER\Fresh Not in Master make sure to rename the file to avoid overwriting of data.

For SAP_DATAWAREHOUSE - usually updated by Romelle ([email protected])

Email the 'not in customer master' to Ms Mayette and wait for the updated Customer details.

Wait for the update file and upload it. see JOB AID for reference for EXPORT UPLOADING EXPORT CUSTOMER MASTER IN EXPORT COGNOS CUBE.PDF for FRESH_CUT UPLOADING FRESH CUSTOMER MASTER IN FRESH COGNOS CUBE.PDF

Page 6: Cognos Demantra Data Loading Processes Job Aid

5. Execute the ff: SP scripts to Generate SELL-IN data for Demantra

>Finish

Page 7: Cognos Demantra Data Loading Processes Job Aid

PREPARING SELL-OUT DATA for DEMANTRA (DISTRIBUTORS)

Important : Inform Romelle ([email protected]) if you can start preparing SELL-OUT data for demantra and He will give the go signal to start.

: The process for generating Demantra data for SELL-OUT involves the COGNOS Distributors server (FTCOGNOSDIST) and SAP COGNOS server (FORTCOGNOS2) linked together.

- Generation of SELL-OUT Demantra is done in FTCOGNOSDIST

1. Update the SP “usp_Extract_Data_For_Demantra_Version2” in SELL-OUT

Update the “Doc.Date” to the “Month” of the data to be loaded for forecasting (i.e. JUNE 2014)

where LEFT(T1.DocDate,6) = '201406'

2. Execute the SP “usp_Extract_Data_For_Demantra_Version2”

Note: after the execution use this script to check if there’s misclassified customer.

Server: Ftcognosdist use demantra select customer,Dist_Channel,sum(qty)qty from tb_demantra_data where customer_name is null group by customer,Dist_Channel order by qty desc

If the script returns a value copy it to excelfile and send it to Romelle Degorio. He will update misclassified customer and regenerated Sell-out cube. If updated sell-out cube is ready, re-execute Step 2.

Page 8: Cognos Demantra Data Loading Processes Job Aid

• After SP is completed the TB_DEMANTRA_DATA table will be updated and should be copied to

FORTCOGNOS\Demantra database (overwrite existing TB_DEMANTRA_DATA table)

Use this script to copy the Sellout data to fortcognos:

server:fortcognos2

use Demantra

exec demantra_copy_selloutdata_from_sellout_Server

>Finish

Page 9: Cognos Demantra Data Loading Processes Job Aid

Consolidating SELL-IN and SELL-OUT data for Demantra

1. Execute the DTS “GENERATE_DEMANTRA_SALES_FINALv2”

2. When completed. Go to Demantra VIEW “vue_SKU_NOT_IN_ITEMMASTER” . This view should be

empty of data. If not empty, export the data to Excel file and provide copy to people in the textfile.

' Email Recipients for DEMANTRA SKU NOT IN ITEM MASTER (CSV) .txt'

3. Wait for the updated data from the person in charge and consolidate it in Excel file.

Note : segregate to next sheet SKU that is tag as IGNORE and REPLACE.

4. Email the consolidated data to Ms Mayette Quijano and request update from UOM Demantra.

Page 10: Cognos Demantra Data Loading Processes Job Aid

The ff: are the corrected data and its target table in Demantra

o consolidated Updated - INSERT INTO “additional_item_master” Demantra table

o If you see for REPLACE SKU Code – INSERT INTO “TB_EDGE_ITEMCODE_MAPPING” Demantra table

o if you see IGNORE SKU Code – INSERT INTO “SKU_FOR_DELETE” Demantra table

o UOM DEMANTRA updated - APPEND to “UOM_DEMANTRA” Demantra table

* you can use MSSQL IMPORT/EXPORT method(always check the mapping columns).

5. Update “additional_item_master” in Demantra using the ff: script Database : demantra UPDATE additional_item_master

SET [PRODUCT DESCRIPTION] = CODE + ' ' + [PRODUCT DESCRIPTION]

Note : [PRODUCT DESCRIPTION] of Demantra ItemMaster is CODE+[PRODUCT

DESCRIPTION]

o RUN the ff: Query for the VIEW and table “additional_item_master”

SELECT COUNT(*) AS CTR

FROM vue_NEW_SKU

SELECT COUNT(*) AS CTR

FROM additional_item_master

Note: Both query should result in the same number (i.e. if there are 14 new

additional SKU, then the VIEW should display 14 rows that are not yet in the

“demantra_item_master”

o If “additional_item_master” is now ok, insert the new SKUs into the

“demantra_item_master” table using the ff: script

INSERT INTO demantra_item_master

SELECT * FROM additional_item_master

Note: In case of mistake, just truncate “demantra_item_master” and restore all from

“demantra_item_master_BAK” to get original Item master data

o Query the VIEW “vue_NEW_SKU” -- it should be empty now since

“additional_item_master” is now included in “demantra_item_master” table

7. After all correction data are applied, regenerate again the FINAL Data by executing the DTS

“GENERATE_DEMANTRA_SALES_FINALv2”

Page 11: Cognos Demantra Data Loading Processes Job Aid

8. Check the VIEW “vue_SKU_NOT_IN_ITEMMASTER” – if all processesares done correctly, it should be

empty

Note: if “vue_SKU_NOT_IN_ITEMMASTER” is not empty, check all the correction process if done

correctly (go back to STEP 5).

Note: if all correction process are done correctly, and VIEW “vue_SKU_NOT_IN_ITEMMASTER” is not

empty, export again the results in VUE to Excel and inform ms. Mayette/ms. Katrina of the item master

data that is still need correction. Then go back to STEP 5

9. If “vue_SKU_NOT_IN_ITEMMASTER” is empty, CSV data is now ready to be generated

10. open DTS package “GENERATE_CSV_FOR_DEMANTRA” and execute

11. Go to FOLDER “F:\DEMANTRA\FOR_UPLOADING”. Check if all 3 required CSV files are generated.

The ff: files should be in the FOLDER

o dmpi_item_uom.csv

o dmpi_t_src_item_tmpl.csv

o dmpi_t_src_sales_tmpl.csv

Page 12: Cognos Demantra Data Loading Processes Job Aid

12. COPY the 3 CSV files to the current forecast Month folder needed for uploading (i.e. JUNE 2011) and

put the 3 CSV files in the “for uploading” folder.

13. The Demantra group (Inspirage) should be able to access the 3 Demantra CSV data files in the folder

“F:\DEMANTRA\FOR_UPLOADING”. Important Reference Script location: Server Fortcognos:

1. Generate Demantra data in fortcognos - C:\Documents and Settings\intelqty\Desktop\demantra item\demantra query.sql

2. Generate Sellout Cube for demantra - C:\Documents and Settings\intelqty\Desktop\demantra item\ftcognos demantra querry.sql

3. Checking If Ok for Inspirage demantra upload, this script should show no result. If the script shows result

inform Ms Mayette Quijano – C:\Documents and Settings\intelqty\Desktop\demantra item\ftcognos demantra querry.sql

***Next step Cloning Prod Scheme to UAT server. *** Inform Ms. Katrina Ramos when CSV data are available and the Cloning of Prod Scheme to UAT is finish.

***Ms. Katrina Ramos will inform Inspirage group to upload the CSV data to UAT server.

*** The CSV data will be use for uploading into the Demantra staging table in running the Monthly

Forecast Cycle in Demantra

-FIN


Recommended