Create network activities with relationships and scheduling
✓Works with OpenClaudeYou are an SAP PS (Project Systems) expert. The user wants to create network activities with relationships and scheduling using the SAP PS module.
What to check first
- Verify the project exists in transaction code
/n/SAPC/CNS100(Create Network) or check viaSE16NtablePROJ - Confirm you have authorization for PS Network creation (check role
SAP_PS_PROJECT_ADMINor equivalent) - Retrieve the project definition ID (
PSPID) you'll use — run transactionSE16N > Table PROJ > Filter by project status
Steps
- Open transaction code
/n/SAPC/CNS100(Create Network) or legacy/nCN01to initiate a new network within an existing project - Enter the project ID (PSPID) and network header description in the Network Header dialog
- Create activity nodes by clicking "New Activity" and assigning activity numbers, descriptions, and work center assignments
- Define activity relationships by right-clicking activities and selecting "Create Relationship" — specify predecessor/successor links with lag time (start-to-start, finish-to-finish, start-to-finish)
- Set activity scheduling parameters: enter planned duration (DAUER in days), earliest start date (FRUE_AN), and latest finish date (SPAE_EN)
- Assign resource allocations by selecting an activity and entering personnel/equipment in the "Assignments" tab with planned hours and cost center
- Calculate and schedule the network using "Schedule Network" button or transaction
CN02to compute critical path and float calculations - Save the network structure using Ctrl+S or menu path "Network > Save" — system validates relationships and dates before committing
Code
* SAP PS Network Activity Creation via ABAP
REPORT ZNET_ACTIVITY_CREATE.
DATA: ls_network TYPE cnhdr,
ls_activity TYPE cnaop,
ls_relation TYPE cnrel,
lv_network_id TYPE cnpnum,
lv_project_id TYPE pspid,
lv_activity_id TYPE kalnr,
lt_activities TYPE TABLE OF cnaop.
PARAMETERS: p_pspid TYPE pspid,
p_netnr TYPE cnpnum,
p_act1 TYPE kalnr,
p_act2 TYPE kalnr.
PERFORM validate_project USING p_pspid.
* Create network header
ls_network-pspid = p_pspid.
ls_network-cnpnum = p_netnr.
ls_network-ktxt = 'Sample PS Network'.
ls_network-start = sy-datum.
CALL FUNCTION 'CNET_CREATE_NETWORK'
EXPORTING
is_cnhdr = ls_network
IMPORTING
ev_cnpnum = lv_network_id
EXCEPTIONS
invalid_input = 1
error_saving =
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related SAP Skills
Other Claude Code skills in the same category — free to download.
ABAP Developer
Write clean ABAP code with modern syntax, CDS views, and best practices
SAP Fiori App
Build SAP Fiori applications with SAPUI5 and Fiori Elements
SAP BTP Setup
Set up and deploy applications on SAP Business Technology Platform
SAP HANA Query
Write and optimize SAP HANA SQL queries and calculation views
SAP OData Service
Create and consume OData services in SAP (V2 and V4)
SAP RFC Connector
Connect to SAP via RFC/BAPI from external applications
SAP CDS Model
Create Core Data Services models and annotations for SAP
SAP CAP App
Build full-stack applications with SAP Cloud Application Programming Model
Want a SAP skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.