Created by Plannertuts.com
The tutorial is originated from http://www.plannertuts.com/tutorials/how-to-convert-a-projects-wbs-to-activity-codes-in-oracle-primavera-p6-464/.
In this tutorial we explain how to import a WBS dictionary in Primavera P6 without the SDK. NOTE: The steps needed to transform a classical WBS presentation (which is WBS Path and Description) to a format understood by the database (which is parent / child) is covered in Steps 1 to 6 of this tutorial.
To load the WBS data into Primavera P6, instead of using the SDK we will use the XER File Parser utility provided by Oracle. Essentially, the File Parser is an excel file that can read the data contained in a .xer file, and gives the user the ability to modify some information and to build a new .xer.
It is definitely one of the most powerful utilities for Primavera P6, either standalone or enterprise, and it is much safer to use than the SDK, as you don’t write directly to the Primavera database – unlike the SDK.
Tutorial Files
Complete this tutorial by downloading the following files:
Before You Start
Primavera P6 has a well defined database at its core, but you don’t need to be an IT graduate to understand how it works. Here’s what you DO need to know:
I recommend googling the terms above. There are a lot of courses available on database structures.
The description of the tables of Primavera P6 r8.2 database tables are available here. It can be very useful to understand how the P6 database is organized (WBS, Activity Codes, Resources, etc.)
Also, here are some best practices on working with the XER File Parser utility:
Step 1 – Generate a dummy xer file.
Create a blank dummy schedule in P6 – don’t add any WBS or activities. Export the blank schedule to .xer format. The purpose is to have a .xer file with minimal data.
For the purposes of this tutorial, the name of the schedule is Test, and the WBS code, is Sample Oil, Gas WBS.
Step 2 – Open the Xer file using the Excel Parser Utility.
Open the Excel XER File Parser spreadsheet. Click on Load XER file, select TEXT.xer file then click OK.
Here’s what you should see. The table for the WBS dictionary is called PROJWBS. Click the PROJWBS link to edit WBS data.
Here is the result.
The most important columns are wbs_id, wbs_short_name, wbs_name and parent_wbs_id.
In the next steps, we’ll show you how to generate those ids from a WBS.
Step 3 – Generate the WBS_id and the Parent_WBS_id
Open the WBS_id_Generator.xls Excel file. In the second row, copy and paste the values from the Excel File Parser. Please notice, we have changed the WBS Code from “TEST” to “Sample”.
Now copy the data in yellow from the Excel file done in the previous tutorial.
The primary key for the table PROJWBS is wbs_id. We generate a new wbs_id for the new WBS. Please notice for the first wbs_id we add 100 (40484 — 40584) then we increase the number by 1.
Then for the column Parent_wbs_id, by using a vlookup formula, we can find the corresponding wbs_id for the Parent.
Step 3 – Build the new xer file with the new WBS.
Now all what we have to do is fill the columns with the data of the WBS.
Now click on Build XER file. Select a new file name (TEST1) then click on OK.
Voila, now you have a new .xeer file, loaded with the WBS dictionary. You can now import that file to your P6 database. But remember to have a look at it on a test database first – don’t import it to a Production database until you’ve checked the import works.
Wrap Up
The XER File Parser is a must-have utility for any planner especially if he deals with external schedules. In this tutorial we showed only one particular use, but this utility has much broader use.
But who knows, perhaps one day Primavera will the add the facility to copy and paste from Excel – other Planning software can do it, so why not P6?
Created by Plannertuts.com
The tutorial is originated from http://www.plannertuts.com/tutorials/using-primaveras-xer-file-parser-import-wbs-from-excel-without-the-sdk-840/