{"audience":"Project schedulers, project control (PMO) teams and project managers.","authorization_objects":[{"note":"Change authorization by network type","object":"C_AFKO_AWK"},{"note":"Project authorization by controlling area","object":"C_PROJ_KOK"}],"components":[],"countries":[],"effort_days_max":7,"effort_days_min":5,"effort_size":"M","faq":[{"a":"The simplest way is to use a code field in the scheduling tool that holds the SAP network and activity number. If that is not possible, a mapping table is kept and the program translates the code in the file through it.","q":"How are activity codes in the scheduling tool matched to SAP?"},{"a":"If scheduling on save is set in the network profile, SAP recalculates the dates when saving. If not, a separate scheduling job can be planned after the transfer; this step is optional.","q":"Is the network rescheduled after the transfer?"},{"a":"Yes. BAPI_BUS2002_ACT_CHANGE_MULTI and the network tables are supported in S/4HANA. For the read side, the CDS view I_NetworkActivityByInternalKey can be used for a clean core approach.","q":"Does it work on S/4HANA?"}],"features":[{"code":"test_run","label":"Test mode (check without posting)","note":""},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"error_file","label":"Download failed lines as a separate file","note":"Failed rows are returned to the scheduler as a file for correction."},{"code":"background","label":"Runs as a background job","note":""},{"code":"email","label":"Send the result by email","note":"A summary of each transfer can be sent to the project scheduler."}],"functions":[{"name":"BAPI_PS_INITIALIZATION","role":"Initializes the PS BAPI buffer for each network"},{"name":"BAPI_BUS2002_ACT_CHANGE_MULTI","role":"Updates duration, work and constraint dates of the changed activities"},{"name":"BAPI_PS_PRECOMMIT","role":"Runs the PS consistency checks before saving"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Saves successful networks permanently"},{"name":"BAPI_TRANSACTION_ROLLBACK","role":"Rolls back changes in test mode or on error"}],"gap":"CN22 and CJ20N change network activities one by one; there is no standard transaction that takes updates from an external scheduling tool from a file in a scheduled and controlled way. As a result the dates in the two systems quickly drift apart. The custom interface matches the activities, writes only changed values and keeps a log of every transfer.","id":"ps-schedule-import-network-activities","industries":[],"input_columns":[{"derived":false,"label":"Network","required":true,"rule":"","target_field":"AUFNR","target_table":"AFKO"},{"derived":false,"label":"Activity","required":true,"rule":"","target_field":"VORNR","target_table":"AFVC"},{"derived":false,"label":"Activity description (for checking)","required":false,"rule":"","target_field":"LTXA1","target_table":"AFVC"},{"derived":false,"label":"Normal duration","required":false,"rule":"","target_field":"DAUNO","target_table":"AFVV"},{"derived":false,"label":"Duration unit","required":false,"rule":"","target_field":"DAUNE","target_table":"AFVV"},{"derived":false,"label":"Work","required":false,"rule":"","target_field":"ARBEI","target_table":"AFVV"},{"derived":false,"label":"Work unit","required":false,"rule":"","target_field":"ARBEH","target_table":"AFVV"},{"derived":false,"label":"Start constraint type","required":false,"rule":"","target_field":"EINSA","target_table":"AFVV"},{"derived":false,"label":"Constrained start date","required":false,"rule":"","target_field":"NTANF","target_table":"AFVV"},{"derived":false,"label":"Finish constraint type","required":false,"rule":"","target_field":"EINSE","target_table":"AFVV"},{"derived":false,"label":"Constrained finish date","required":false,"rule":"","target_field":"NTEND","target_table":"AFVV"}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The file is read from the local PC or a folder on the application server; network and activity number are the mandatory key fields.\n2. The routing number (AUFPL) of the network is found in AFKO; the activity (VORNR) is matched in AFVC. Rows without a match become errors.\n3. The current duration (DAUNO/DAUNE), work (ARBEI/ARBEH), constraint types (EINSA/EINSE) and constraint dates (NTANF/NTEND) in AFVV are compared with the file; with \"changed only\" selected, rows without differences are skipped.\n4. For each network BAPI_PS_INITIALIZATION is called, changed activities are updated with BAPI_BUS2002_ACT_CHANGE_MULTI and BAPI_PS_PRECOMMIT is run.\n5. Without errors the changes are saved with BAPI_TRANSACTION_COMMIT; in test mode or on error BAPI_TRANSACTION_ROLLBACK runs. Old and new values are written to the log; a server file is moved to an archive folder after processing.","module":"PS","object_type":"interface","output_columns":[{"calculated":true,"formula":"Row number in the file","label":"Row","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Network","source_field":"AUFNR","source_table":"AFKO"},{"calculated":false,"formula":"","label":"Activity","source_field":"VORNR","source_table":"AFVC"},{"calculated":false,"formula":"","label":"Activity description","source_field":"LTXA1","source_table":"AFVC"},{"calculated":false,"formula":"","label":"New duration","source_field":"DAUNO","source_table":"AFVV"},{"calculated":false,"formula":"","label":"Constrained start","source_field":"NTANF","source_table":"AFVV"},{"calculated":true,"formula":"List of the fields that differ between file and AFVV","label":"Changed fields","source_field":null,"source_table":null},{"calculated":true,"formula":"Updated, no change or error","label":"Status","source_field":null,"source_table":null},{"calculated":true,"formula":"First error or success message from the BAPI return table","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"/interface/ps/schedule/","kind":"parameter","label":"File or server folder","name":"P_FILE","ref_field":"","required":true},{"example":"X","kind":"checkbox","label":"Read from application server","name":"P_SERVER","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Write changed values only","name":"P_ONLYCH","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Test mode (check without saving)","name":"P_TEST","ref_field":"","required":false}],"part_of":["ps-project-planning-earned-value-pack"],"performance":"Read AFKO, AFVC and AFVV in one pass with the network numbers from the file. Call the BAPI once per network with all changed activities, not once per activity. When scheduled as a nightly job, choose hours when users are not changing the same networks.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=ps-schedule-import-network-activities","related":["ps-network-activities-low-float","ps-network-confirmation-upload","ps-wbs-schedule-slippage"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Changes network activities one by one; no scheduled transfer from a file.","tcode":"CN22"},{"note":"Dates and durations are updated manually in the Project Builder; no comparison with the external plan and no log.","tcode":"CJ20N"}],"summary":"A custom interface program that transfers activity duration, work and constraint dates updated in the scheduling tool (Primavera P6, MS Project or Excel) to SAP network activities via a file. Project planners keep the schedule in one place, and cost planning, capacity and material requirement dates in SAP stay current.","tables":[{"access":"write","join_on":"AFVV-AUFPL = AFVC-AUFPL AND AFVV-APLZL = AFVC-APLZL","role":"Activity quantities and dates: duration, work, constraint types and constraint dates","table":"AFVV","variant":"both"},{"access":"read","join_on":"AFVC-AUFPL = AFKO-AUFPL","role":"Network activity: activity number, description, WBS assignment","table":"AFVC","variant":"both"},{"access":"read","join_on":"","role":"Network header: routing number","table":"AFKO","variant":"both"},{"access":"read","join_on":"PRPS-PSPNR = AFVC-PROJN","role":"WBS element shown in the log","table":"PRPS","variant":"both"}],"title":"Primavera / MS Project Schedule Import to Network Activities Interface","url":"https://nekuhub.com/en/programs/primavera-ms-project-schedule-import-to-network-activities/","vendor_id":"nekudos"}