Primavera P6 Activity Codes: Creating and Assigning
How to arrange activities in Primavera P6? Primavera P6 Activity Codes enable to make group and sort, filter activities by some specific value such as area, responsible manager, discipline, department, payment categories, etc. Activity codes help to make effective reporting. With the help of activity codes, schedulers planning engineers and other users can create so many different types of work performance reports. This article shows how to create and assign activity codes in Primavera P6.
Primavera P6 Activity Codes
Project managers and upper management often want to receive particular activity reports to understand the current performance of their projects. Therefore schedulers must use the activity codes to support reporting. WBS (Work Breakdown Structure) can be used for this purpose, however, creating reports based on the WBS codes it is not enough to create all types of reports.
Activity codes allow you to organize activities into logical groups based on your project’s requirements. In Primavera P6, an activity code can be Global, EPS (Enterprise Project Structure), or Project. Global activity codes categorize activities across all projects within the organization. EPS activity codes categorize activities within a specific node of the EPS (Enterprise Project Structure). Project activity codes categorize the project activities based on specific groups and deliverables or features within a project.
In Primavera P6, you can create many activity codes according to specific requirements and assign them to the activities. For instance, let’s say your project has several departments and you want to review the performance of each department by analyzing the activities which are under their responsibility. For this purpose, the first thing is to create an activity code and name it as department.
You can first create an activity code “department,” then assign different values such as quality, project control, health and safety, and sales under this activity code. Then you will group the activities of specific departments.
Once you create the activity codes and assign them, you can easily group, sort, and filter the activities.
Creating Activity Codes in Primavera P6
For better understanding, let’s take a glance at the example below.
Assume that we have a sample pipeline project as displayed in Figure 1.

Figure 1 – Sample Pipeline Project
As shown in Figure 1, we have mainline activities such as Pre-Construction Survey, Clearing, and Grading, Welding, NDE/NDT, etc., and the project manager demanded a report which is organized by specific activity groups.
In order to do this, we will define activity codes and assign them to each activity.
To define the activity codes, select Enterprise | Activity Codes as shown in Figure 2.

Figure 2 – P6 Enterprise | Activity Codes
We will select the “Modify” button in the Activity Codes window as shown in Figure 3.

Figure 3 – P6 Activity Codes – Modify
We will select the “Add” button in the Activity Code Definitions – Project window as shown in Figure 4.

Figure 4 – P6 Activity Code Definitions – Project
We will type “Activity Types” for the code name and select “Close”. Then we will turn back to the Activity Codes window and see the Activity Types code as shown in Figure 5.

Figure 5 – P6 Activity Codes
By selecting “Add”, we will define all the activity types such as Pre-Construction Survey, Clearing, and Grading, Welding as shown in Figure 6.

Figure 6 – P6 Activity Codes, Code Values
After creating all the codes, we will close this window and turn back to assign them.
How Do I Add Activity Codes in Primavera P6?
The easiest way of assigning activity codes to the activities is to use the columns. To do this, we will add the column “Activity Types” to the activities table, and assign the activity codes that we defined at the beginning, Figure 7.

Figure 7 – Select Activity Types
As shown in Figure 8, all the activity codes are assigned to the activities.

Figure 8 – Assigning Activity Codes to the Activities
Now it is easy to filter, group, or sort them.
Group and Sort the Activities by Using the Activity Codes
Now we will use the group and sort feature to display activities under specific groups. Select View | Group and Sort by from the main drop-down menu at the top of the screen. Under the “Group By” we will select our newly created “Activity Types” option and toggle hide if empty and sort bands alphabetically group by options as shown in Figure 9.

Figure 9 – Group and Sort
Figure 10 displays our pipeline project grouped by “Activity Types”.

Figure 10 – P6 Activity Codes
Summary
Creating the WBS (Work Breakdowns Structure) and associated deliverables is an important step in the planning phase of a project schedule. You can create WBS (Work Breakdowns Structure) to group the activities under specific levels of your project. However, WBS itself may remain incapable of grouping and sorting activities for specific needs.
Activity codes represent wide categories of information, such as deliverables, responsible engineers, or phases. Primavera P6 Activity codes feature enables to create the infinite possibility of activity codes. In order to prepare explanatory reports for project management, it is critical to assign codes to activities for filtering and grouping them.
In this article, we discussed how to arrange activities in Primavera P6 by using activity codes. We hope that it will be useful for professionals who are working in the field of project planning and scheduling. You can share your comments and experiences regarding activity codes by using the comments box in below.
External References
See Also
Primavera Portfolio Management

Irma Gilda is chief executive of Sonic Training and Consultancy Co., the training platform offers project planning and scheduling More than 60 k learners have used the platform to attain professional success. Irma is a professional Primavera P6 Trainer.
Hi, like your article, but have a query. Let’s say if one activity involves TWO or THREE activity types, when you try to assign code value to this activity code, only ONE code value is allowed. Is there any way to assign multiple code value to an activity code?
Hi
I think your question is about assigning activity codes instead of types. It is possible to assign multiple activity codes to an activity.