Oracle Primavera P6 lets you set up and assign Activity Codes to the activities in your projects. Activity Codes classify, categorize, and organize activities based on your organization’s reporting needs, and are usually created and assigned at the start of the project. For example, if you subcontract most of your project’s work, you might set up an activity code called “Subcontractor,” establish the set of Subcontractor values that could be used (Jones, Wellair, and so on), and then assign one to each activity. From there, activity codes can be used to categorize, organize, group and sort, and filter activities for reporting.

Activity Codes can be used for the following

  • Group and sort activities into specific categories in the activity table and layouts
  • View summary bars on the Gantt Chart based on activity code values
  • View and roll up activities in the activity table
  • Summarize activities
  • Filter activities
  • Build reports in the wizard or editor
  • Examples of activity codes include Phase, Location, Responsibility, Subcontractor

Activity codes can be set up at three levels

  1. Global: an unlimited number of global activity codes, available to all activities in your P6 database. This level lets you organize activities within a single project or across the entire enterprise project structure (EPS).
  2. EPS: available to activities within an EPS node. You can create an unlimited number of EPS-level codes, and organize activities within a single project or across all projects sharing a common EPS node.
  3. Project: available only to activities in the project where the codes are created. Up to 500 project-level activity codes are allowed, which is useful for organizing and filtering activities to fit a single project’s unique reporting needs.

This tutorial sets up an activity code called “Subcontractor,” walks through the different methods for assigning its values to activities, and then shows how that code can be used to group and sort, filter, and summarize activities on the Activity Table and Gantt Chart.

Step 1: Create the activity code

Open Enterprise > Activity Codes and create a new Global-level code named Subcontractor, then define its values (in this example: Jones, Wellair, Joes, and several others). These values are what will actually be assigned to activities.

Step 2: Assign the code to a single activity

Select an activity, open the Codes tab in Activity Details, and assign the activity the appropriate Subcontractor value.

Step 3: Assign to multiple activities from the Command Bar

Select several activities at once (Shift-click or Ctrl-click), then use the Activity Codes button on the Command Bar to assign the same Subcontractor value to all of them in one action. Add Subcontractor as a column on the Activity Table first, so you can confirm the assignment took on every selected row.

Step 4: Assign to multiple activities by right-click

Select the activities, right-click, choose Assign > Activity Codes, and assign the value from there. This example assigns the Subcontractor “Jones” to the Foundation activities and produces the same result as the Command Bar method in Step 3.

Step 5: Assign with Fill Down

Add the Subcontractor column to the Activity Table, double-click the cell for one activity (for example, activity BA3000 under Structure) and set its value to the Subcontractor “SEIC.” Then select that activity plus the other activities that should get the same value, right-click on the Subcontractor column, and choose Fill Down to copy the value to every selected row at once.

Step 6: Assign with Global Change

For larger, rule-based assignments, open Tools > Global Change. Build a statement such as “if WBS is under Mechanical, assign Subcontractor = WELLAIR,” click Change to preview the affected activities in the Global Change Report, and only then select Commit Changes to actually apply it. After committing, the Mechanical WBS activities show WELLAIR as their Subcontractor.

Tip: Global Change is powerful and irreversible once you commit. Always review the preview report carefully, and back up the project before running a Global Change statement.

Step 7: Group and sort by Subcontractor

Once Subcontractor values are assigned, open the Layout Options bar and select Group and Sort, then choose to group by Subcontractor. The Activity Table now organizes activities under each Subcontractor, and the Gantt Chart shows a summary bar for each group. Click Collapse All to see just the Subcontractor summary bars.

Step 8: Filter by Subcontractor

To hand a single Subcontractor a report of only their own activities, build a filter statement such as “Subcontractor is WELLAIR,” save it, and apply it. The resulting layout shows only that Subcontractor’s activities and schedule, which is a clean way to distribute subcontractor-specific reports.

Want hands-on help mastering Primavera P6?

Mary Williams, a certified master instructor, teaches instructor-led Primavera P6 courses from basics through advanced and resource loading, built around how your team actually works.

See P6 training options
or call 1-800-931-1582