1 Reply Latest reply: Dec 16, 2013 4:00 AM by 1060511 RSS

    using  pa_project_pub.add_task to add task fail in pa_tasks

    1060511

      Hi , I am using  pa_project_pub.add_task to add tasks into a project, the process runs well. The task data created in pa_fin_structures_tasks_v,  but not created in pa_tasks.

      the project is a financial and workplan partially shared structures.

      my procedure as follow:

      pa_project_pub.add_task(p_api_version_number    => 1.0,

                                p_commit                => FND_API.G_FALSE,

                                p_init_msg_list         => FND_API.G_FALSE,

                                p_msg_count             => l_msg_count,

                                p_msg_data              => l_msg_data,

                                p_return_status         => l_return_status,

                                p_pm_product_code       => NULL,

                                p_pm_project_reference  => NULL,

                                p_pa_project_id         => 68366, --95362,

                                p_pm_task_reference     => 12345,

                                p_pa_task_number        => 12345,

                                p_task_name             => 'test12',

                                p_long_task_name        => 'test12',

                                p_task_description      => NULL,

                                p_scheduled_start_date  => l_start_date,

                                p_scheduled_finish_date => l_end_date,

                                p_pa_parent_task_id     => NULL,

                                --p_carrying_out_organization_id => 197,

                                p_service_type_code          => NULL,

                                p_task_manager_person_id     => NULL,

                                p_billable_flag              => 'Y',

                                p_chargeable_flag            => 'Y',

                                p_allow_cross_charge_flag    => 'Y',

                                p_limit_to_txn_controls_flag => 'N',

                                p_financial_task_flag        => 'Y',

                                P_STRUCTURE_VERSION_ID       => 3593608, --3593608, --element_version_id

                                p_pa_project_id_out          => oo_pa_project_id,

                                p_pa_project_number_out      => oo_pa_project_number,

                                p_task_id                    => oo_task_id);

      In Project Superuser-> Financial->Tasks, it shows the information:The structure of the project or program has changed. You can make additional changes or select Process Updates to submit the PRC: Process Structure Updates concurrent program. You must run this process to ensure that plan and actual information is synchronized with the latest changed structure.

       

      What should I do in my procedure to add task?