{"audience":"Project controllers, PS consultants and project offices that move the quotation-stage work breakdown into the system.","authorization_objects":[{"note":"Create authorization by project business transaction","object":"C_PROJ_TCD"},{"note":"Project authorization by controlling area","object":"C_PROJ_KOK"},{"note":"WBS element authorization by profit center","object":"C_PRPS_PRC"}],"components":[],"countries":[],"effort_days_max":10,"effort_days_min":7,"effort_size":"L","faq":[{"a":"The base version covers the project definition and WBS structure. Networks and activities can be added as a second sheet with BAPI_BUS2002_CREATE and the activity BAPIs; this increases the effort range.","q":"Can networks and activities be loaded as well?"},{"a":"No. Budget and plan values are separate processes with their own approval steps. A separate upload program is recommended for them.","q":"Are budget or planned costs loaded from the same file?"},{"a":"Yes. The PS BAPIs are supported for classic Project System on S/4HANA. If enterprise projects are used, a separate design with the related APIs is needed.","q":"Can this program be used 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":"The corrected file can be uploaded again with the same template."},{"code":"excel","label":"Export to Excel","note":"An empty upload template can be downloaded as Excel."},{"code":"background","label":"Runs as a background job","note":""}],"functions":[{"name":"BAPI_PS_INITIALIZATION","role":"Initializes the PS BAPI unit of work"},{"name":"BAPI_BUS2001_CREATE","role":"Creates the project definition"},{"name":"BAPI_BUS2054_CREATE_MULTI","role":"Creates the WBS elements in bulk in hierarchy order"},{"name":"BAPI_PS_PRECOMMIT","role":"Runs the consistency checks before saving"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Saves a successful project permanently"},{"name":"BAPI_TRANSACTION_ROLLBACK","role":"Rolls back changes in test mode or on error"}],"gap":"CJ20N creates the project on screen, element by element. Standard templates (CJ91, CJ92) copy the structure but do not take each element's description, dates, responsible person and profit center from a file. The graphical CJ20N screens are not suitable for an LSMW recording. Entering structures with hundreds of elements by hand for every new project takes time and causes errors.","id":"ps-project-structure-upload","industries":[],"input_columns":[{"derived":false,"label":"Project definition","required":true,"rule":"","target_field":"PSPID","target_table":"PROJ"},{"derived":false,"label":"Project description","required":false,"rule":"","target_field":"POST1","target_table":"PROJ"},{"derived":false,"label":"Project profile","required":false,"rule":"","target_field":"PROFL","target_table":"PROJ"},{"derived":false,"label":"Company code (project)","required":false,"rule":"","target_field":"VBUKR","target_table":"PROJ"},{"derived":false,"label":"WBS element","required":true,"rule":"","target_field":"POSID","target_table":"PRPS"},{"derived":false,"label":"WBS description","required":true,"rule":"","target_field":"POST1","target_table":"PRPS"},{"derived":false,"label":"Parent WBS (blank = level 1)","required":false,"rule":"","target_field":"POSID","target_table":"PRPS"},{"derived":false,"label":"Company code (WBS)","required":false,"rule":"","target_field":"PBUKR","target_table":"PRPS"},{"derived":false,"label":"Profit center","required":false,"rule":"","target_field":"PRCTR","target_table":"PRPS"},{"derived":false,"label":"Responsible person no","required":false,"rule":"","target_field":"VERNR","target_table":"PRPS"},{"derived":false,"label":"Planning element","required":false,"rule":"","target_field":"PLAKZ","target_table":"PRPS"},{"derived":false,"label":"Account assignment element","required":false,"rule":"","target_field":"BELKZ","target_table":"PRPS"},{"derived":false,"label":"Billing element","required":false,"rule":"","target_field":"FAKKZ","target_table":"PRPS"},{"derived":false,"label":"Basic start","required":false,"rule":"","target_field":"PSTRT","target_table":"PRTE"},{"derived":false,"label":"Basic finish","required":false,"rule":"","target_field":"PENDE","target_table":"PRTE"}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The file is read; each row is one WBS element and carries the project definition, WBS number, parent WBS number, description, organizational data and dates.\n2. Checks: project profile (TCJ41), responsible person number (TCJ04), company code and profit center; WBS numbers must follow the coding mask and every parent must come before its children in the file.\n3. BAPI_PS_INITIALIZATION is called; if the project does not exist, the project definition is created with BAPI_BUS2001_CREATE.\n4. The WBS elements are created in hierarchy order in one call to BAPI_BUS2054_CREATE_MULTI; the parent and left neighbour are derived from the row order in the file. BAPI_PS_PRECOMMIT then runs.\n5. In test mode everything is rolled back with BAPI_TRANSACTION_ROLLBACK; in a real run BAPI_TRANSACTION_COMMIT is done per project. Results and messages are listed per row, and failed rows can be downloaded as a separate file.","module":"PS","object_type":"upload","output_columns":[{"calculated":true,"formula":"Row number in the file","label":"Row","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Project","source_field":"PSPID","source_table":"PROJ"},{"calculated":false,"formula":"","label":"WBS element","source_field":"POSID","source_table":"PRPS"},{"calculated":false,"formula":"","label":"Level","source_field":"STUFE","source_table":"PRPS"},{"calculated":false,"formula":"","label":"Description","source_field":"POST1","source_table":"PRPS"},{"calculated":false,"formula":"","label":"Profit center","source_field":"PRCTR","source_table":"PRPS"},{"calculated":true,"formula":"From the BAPI return messages: checked, created 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":"C:\\temp\\proje_wbs.xlsx","kind":"parameter","label":"Upload file (XLSX or CSV)","name":"P_FILE","ref_field":"","required":true},{"example":"X","kind":"checkbox","label":"Test mode (check without posting)","name":"P_TEST","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Add WBS elements to an existing project","name":"P_EXIST","ref_field":"","required":false}],"part_of":[],"performance":"The PS BAPIs require one logical unit of work per project; all elements of a project are processed in the same call, and on error the whole project is rolled back. A background job is recommended for structures with several thousand elements.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=ps-project-structure-upload","related":["ps-wbs-budget-actual-commitment","ps-wbs-schedule-slippage"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Creates the project on screen element by element; does not read a file.","tcode":"CJ20N"},{"note":"Creates a single WBS element; does not load a hierarchy in bulk.","tcode":"CJ11"}],"summary":"A custom program that creates the project definition and a multi-level WBS structure in bulk from Excel rows, including descriptions, dates, responsible person, profit center and planning / account assignment / billing indicators. It checks the whole hierarchy in test mode first, then lists the result of every WBS row.","tables":[{"access":"write","join_on":"","role":"Project definition: number, description, profile, company code","table":"PROJ","variant":"both"},{"access":"write","join_on":"","role":"WBS element: description, responsible person, profit center and indicators","table":"PRPS","variant":"both"},{"access":"write","join_on":"","role":"WBS basic start and finish dates","table":"PRTE","variant":"both"},{"access":"write","join_on":"","role":"WBS hierarchy (up, down, neighbours)","table":"PRHI","variant":"both"},{"access":"read","join_on":"TCJ41-PROFIDPROJ = PROJ-PROFL","role":"Project profile check","table":"TCJ41","variant":"both"},{"access":"read","join_on":"TCJ04-VERNR = PRPS-VERNR","role":"Responsible person check","table":"TCJ04","variant":"both"}],"title":"Project Definition and WBS Structure Upload from Excel Program","url":"https://nekuhub.com/en/programs/project-and-wbs-structure-upload-from-excel-program/","vendor_id":"nekudos"}