Error while creating Project.
Hi All,
While creating project, I'm getting an error as below:
[wdgen] WARNING: Metadata of component VcOADP is not valid! ComponentUsage "//WebDynpro/Component:com.sap.xss.ser.oadp.VcOADP/ComponentUsage:FcObjectSelection", Role "UsedComponent": A minimum of 1 object(s) is required
Generating packages/com/sap/xss/ser/oadp/wdp/IPublicFcOADPInterfaceCfg.java
[wdgen] [Info] Generating packages/com/sap/xss/ser/oadp/wdp/IExternalFcOADPInterfaceCfg.java
[wdgen] [Info] Generating packages/com/sap/xss/ser/oadp/wdp/IPrivateFcOADPInterfaceCfg.java
[wdgen] [Info] Generating packages/com/sap/xss/ser/oadp/FcOADPInterfaceCfg.java
[wdgen] [Info] Generating packages/com/sap/xss/ser/oadp/wdp/InternalFcOADPInterfaceCfg.java
[wdgen] [Info] Generating packages/com/sap/xss/ser/oadp/FcOADPInterfaceCfg.wdcontroller
[wdgen] [Info] Generating packages/com/sap/xss/ser/oadp/wdp/IMessageFcOADP.java
[wdgen] [Error] com.sap.xss.ser.oadp.VcOADP --> Component VcOADP: Has invalid component usage 'FcObjectSelection'
[wdgen] [Error] com.sap.xss.ser.oadp.VcOADP --> Component VcOADP [FcObjectSelection]: Component usage has no used component
[wdgen] [Error] com.sap.xss.ser.oadp.VcOADP --> Component VcOADP [FcNavigation]: Component usage has no used component
[wdgen] [Info] com.sap.xss.ser.oadp.DataViewSelectorView --> TransparentContainer RootUIElementContainer [Children]: Container does not contain children
[wdgen] [Info] com.sap.xss.ser.oadp.ColumnConfigurationView --> TextView ColumnConfigurationTextView: UIElement does not have a label
[wdgen] [Info] com.sap.xss.ser.oadp.DataViewView --> TransparentContainer RootUIElementContainer [Children]: Container does not contain children
[wdgen] [Info] com.sap.xss.ser.oadp.NavigationView --> TransparentContainer RootUIElementContainer [Children]: Container does not contain children
[wdgen] [Info] com.sap.xss.ser.oadp.OrgViewSelectorView --> TransparentContainer RootUIElementContainer [Children]: Container does not contain children
[wdgen] [Info] Catching throwable null
[wdgen] [Info] com.sap.webdynpro.generation.ant.GenerationAntTaskError
[wdgen] at com.sap.webdynpro.generation.ant.GenerationAnt.showCheckResult(GenerationAnt.java:157)
[wdgen] at com.sap.ide.webdynpro.generation.Generation.check(Generation.java:2047)
[wdgen] at com.sap.ide.webdynpro.generation.Generation.generatePersistentComponent(Generation.java:1296)
[wdgen] at com.sap.ide.webdynpro.generation.console.GenerationConsole.generate(GenerationConsole.java:175)
[wdgen] at com.sap.webdynpro.generation.ant.GenerationAnt.main(GenerationAnt.java:50)
[wdgen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wdgen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[wdgen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[wdgen] at java.lang.reflect.Method.invoke(Method.java:324)
[wdgen] at com.sap.webdynpro.generation.ant.WDGenAntTask.execute(WDGenAntTask.java:219)
[wdgen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[wdgen] at org.apache.tools.ant.Task.perform(Task.java:364)
[wdgen] at org.apache.tools.ant.Target.execute(Target.java:341)
[wdgen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[wdgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[wdgen] at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:116)
[wdgen] at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:58)
[wdgen] at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:196)
[wdgen] at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:168)
[wdgen] at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
[wdgen] at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
[wdgen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wdgen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[wdgen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[wdgen] at java.lang.reflect.Method.invoke(Method.java:324)
[wdgen] at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:347)
[wdgen] at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:99)
[wdgen] at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:73)
[wdgen] at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58)
[wdgen] at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723)
[wdgen] at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5633)
[wdgen] at com.sap.ide.eclipse.component.provider.actions.dc.DcCreateProjectAction.buildDCs(DcCreateProjectAction.java:1027)
[wdgen] at com.sap.ide.eclipse.component.provider.actions.dc.DcCreateProjectAction$1.execute(DcCreateProjectAction.java:299)
[wdgen] at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71)
[wdgen] at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
[wdgen] at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85)
[wdgen] at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
[wdgen] ERROR: Unknown exception during generation null (com.sap.webdynpro.generation.ant.GenerationAntTaskError)
[wdgen] ERROR: Generation failed due to errors (5 seconds)
Error: C:\Documents and Settings\agoel\.dtc\0\DCs\sap.com\pcui_gp\oadp\_comp\gen\default\logs\build.xml:97: [Error] Generation failed!
at com.sap.webdynpro.generation.ant.WDGenAntTask.execute(WDGenAntTask.java:254)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:116)
at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:58)
at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:196)
at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:168)
at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:347)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:99)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:73)
at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58)
at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723)
at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5633)
at com.sap.ide.eclipse.component.provider.actions.dc.DcCreateProjectAction.buildDCs(DcCreateProjectAction.java:1027)
at com.sap.ide.eclipse.component.provider.actions.dc.DcCreateProjectAction$1.execute(DcCreateProjectAction.java:299)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
If anybody has some idea about this, please help me with the same.
Hi Thunder Feng,
In My case that is the same a rempote DC , kindly assist me in solving the issue ...
im getting error as shown below
Error Fri Feb 01 09:48:28 IST 2013 Feb 1, 2013 9:48:28 AM
com.sap.ide.eclipse.component.provider.actions.dcmetadata... [Thread[main,5,main]] Error: No team provider found for the project.
Similar Messages
-
Hi Gurus,
I'm getting an error while creating a New project.
My code looks like this:
APPS.PA_PROJECT_PUB.CREATE_PROJECT
(p_api_version_number => l_object_version_number --IN Parameter
,p_commit => l_commit --IN Parameter
,p_init_msg_list => l_init_msg_list --IN Parameter
,p_msg_count => l_msg_count --OUT Parameter
,p_msg_data => l_msg_data --OUT Parameter
,p_return_status => l_return_status --OUT Parameter
,p_workflow_started => l_workflow_started --OUT Parameter
,p_pm_product_code => g_pm_product_code --IN Parameter
,p_op_validate_flag => l_op_validate_flag --IN Parameter
,p_project_in => g_project_in --IN Parameter
,p_project_out => g_project_out --OUT Parameter
,p_tasks_in => g_task_in --IN Parameter
,p_tasks_out => g_task_out --OUT Parameter
The out put params are: p_msg_count => 1
p_return_status => E
p_workflow_started => N
g_project_out.pa_project_id => 170000000000000000000
g_project_out.pa_project_number => ^
g_task_out_rec.pa_task_id => 170000000000000000000
End process record p_proj_insert => 1
Resetting the task count variable
when I checked the API code I found this:
PA_INTERFACE_UTILS_PUB.G_PROJECt_ID := null; --bug 2471668 ( not in the project context )
PA_PM_FUNCTION_SECURITY_PUB.check_function_security
(p_api_version_number => p_api_version_number,
p_responsibility_id => l_resp_id,
p_function_name => 'PA_PM_CREATE_PROJECT',
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_function_allowed => l_function_allowed
. I think I am getting the error because of this.
Now, question.
Do I need to run the Create Project from a specific Responsibility?
because when I ran the underlined query, I fpound the final status as 'N'.
I'm a HR guy and PA is a new world for me. Any help will be appreciated.
Thanks!!
VikyYou need to find any responsibility and userid that lets you create a project using the screen.
And then in your code, you need to set your context to that resp/userid.
Hope this helps
Sandeep Gandhi -
Error while creating project through import.wdl
Hi
We are having issues creating project using the import.wdl.
We are able to create content administration and merchandising projects though.
We are getting the following error while creating a programatic import project through import.wdl
[12/8/13 23:26:27:259 CST] 00000021 SystemErr R atg.workflow.WorkflowException: The inner project was not created. Check that your project workflow has been initialized by the workflow engine.
[12/8/13 23:26:27:260 CST] 00000021 SystemErr R at atg.epub.project.ProcessHomeMethods.initializeProcess(ProcessHomeMethods.java:450)
[12/8/13 23:26:27:260 CST] 00000021 SystemErr R at atg.epub.project._ProcessHome_Impl.initializeProcess(_ProcessHome_Impl.java:53)
[12/8/13 23:26:27:260 CST] 00000021 SystemErr R at atg.epub.project._ProcessHome_ReposImpl.initializeProcess(_ProcessHome_ReposImpl.java:3)
[12/8/13 23:26:27:260 CST] 00000021 SystemErr R at atg.epub.servlet.CreateProcessFormHandler.handleCreateProcess(CreateProcessFormHandler.java:380)
We have checked all the workflow manager settings. The workflowProcessManager.xml is properly pointing to the system name and drp port.
We had delete entries from
epub_wf_server_id
epub_coll_workflow
epub_workflow_info
dss_server_id
dsi_server_id
upon enabling the logdebugs of WorkFlowProcesManager, we are seeing the following debugs.
[12/8/13 23:31:08:101 CST] 00000020 SystemOut O /atg/epub/workflow/process/WorkflowProcessManager received message on port IndividualEvents message: ObjectMessage()
[12/8/13 23:31:08:101 CST] 00000020 SystemOut O /atg/epub/workflow/process/WorkflowProcessManager [message]: received an individual event message StartWorkflowMessage[messageId=96000003subjectId=prc272003,subjectType=process,processName=/Commerce/import.wdl,segmentName=main,user=user : admin null] of type atg.workflow.StartWorkflow
[12/8/13 23:31:08:101 CST] 00000020 SystemOut O /atg/epub/workflow/process/WorkflowProcessManager [message]: created individual execution context ProcessExecutionContextImpl[individual,subject=process:prc272003,messageType=atg.workflow.StartWorkflow,message=StartWorkflowMessage[messageId=96000003subjectId=prc272003,subjectType=process,processName=/Commerce/import.wdl,segmentName=main,user=user : admin null],sessionId=Tw-Yr5CQqqkADS3q8MadASz,parentSessionId=Tw-Yr5CQqqkADS3q8MadASz,request=atg.servlet.DynamoHttpServletRequest@1009990707,response=atg.servlet.DynamoHttpServletResponse@3c9e3c9e]
[12/8/13 23:31:08:103 CST] 00000020 SystemOut O /atg/epub/workflow/process/WorkflowProcessManager [message]: 0 individual instances found for subject process:prc272003
[12/8/13 23:31:08:103 CST] 00000020 SystemOut O /atg/epub/workflow/process/WorkflowProcessManager [message]: going through process segments registered for type atg.workflow.StartWorkflow for subject process:prc272003If you have a support contract with Orcale you can find out hoe to fix this error by checking out Knowledge Article 1038072.1 How to troubleshoot "atg.workflow.WorkflowException: The inner project was not created. Check that your project workflow has been initialized by the workflow engine."
The article says you should:
1.
delete from epub_wf_server_id
delete from epub_coll_workflow
delete from epub_workflow_info
restart server and retest
2. If problem exists check that you have configured the Workflow Process Editor Server correctly.
The problem is that probably the workflow has not been not been initialized correctly by the Workflow Editor Server. -
Hi there
We are on Release 12.2.4 (on Linux x86-64) and getting the following error while assigning the Agreement to a Change Control's Action Item. As a result of this we are unable to proceed ahead with completing the Project Change Control process.
Any help will be greatly appreciated.
Steps to reproduce
Navigation - Project SU Vision Services Responsibility > Project > Control > Change Orders
1. Create a new Change Order > Create a new Action > Impact > Check Financial Impact checkbox
2. Under the 'Agreement Information' choose the Funding Agreement. Following error is thrown:
You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed.
3. I tried clearing the cache, bounced Apache, and even restarted the entire Application Tier. The error doesn't go away.
Regards
Kabeer KhanHi there
We are on Release 12.2.4 (on Linux x86-64) and getting the following error while assigning the Agreement to a Change Control's Action Item. As a result of this we are unable to proceed ahead with completing the Project Change Control process.
Any help will be greatly appreciated.
Steps to reproduce
Navigation - Project SU Vision Services Responsibility > Project > Control > Change Orders
1. Create a new Change Order > Create a new Action > Impact > Check Financial Impact checkbox
2. Under the 'Agreement Information' choose the Funding Agreement. Following error is thrown:
You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed.
3. I tried clearing the cache, bounced Apache, and even restarted the entire Application Tier. The error doesn't go away.
Regards
Kabeer Khan -
Error while creating projects in SAP-PS from cProjects
Hi,
Need suggestion on creating projects in SAP-PS from cProjects. There is cProjects & SAP-PS interface.The requirment is to create project in SAP-PS from cProjects. All the configuration has done in cProjects & PS module also. While saving the projects & checking the accouting the following error & project is n't creating.
1.Combination company / CO area is invalid Message no. KO124
2.Acct assignment determination is not poss.in the account assgnmnt manager
Message no. IAOM220
3.Only one error message is transferred from the log to the cockpit
Message no. IAOM_CPROJECTS029
I would like to request all to suggest in fixing the issue.
Thank you for your coopearation.
Regards,
RanjanHi Ranjan,
If the companay code does not belong to the Co area, the system will certainly raise an error message. The question is, where do the values come from.
Woud you please check the customizing in ERP system, if you can find the inconsistence:
1. Customizing of the Proj.Profile under 'Create Project Profile' , SAP standard delivered is CPR0001, may be replaced by customer,
Which Co-area & company code are used. In Tab 'organization'
2. Which responsible Org.unit is maitained at involved cProject, to which co-area or company codes is this org.unit assigned.
3. If the Badi under the
Integration with Other mySAP.com Components ->
Collaboration Projects -> Controlling -> Business Add-Ins (BAdIs),
which set the org. information hardly via Badi method.
Kind regards,
Zhenbo -
Error while creating project automatically from cProjects
Hi,
Need suggestion on creating projects in SAP-PS from cProjects. There is cProjects & SAP-PS interface.The requirment is to create project in SAP-PS from cProjects. All the configuration has done in cProjects & PS module also. While saving the projects & checking the accouting the following error & project is n't creating.
1.Combination company / CO area is invalid Message no. KO124
2.Acct assignment determination is not poss.in the account assgnmnt manager
Message no. IAOM220
3.Only one error message is transferred from the log to the cockpit
Message no. IAOM_CPROJECTS029
I would like to request all to suggest in fixing the issue.
Thank you for your coopearation.
Regards,
RanjanHi,
The neccesary configuration for cProjects & SAP-PS interface are as follows.
1. Project Types in cProjects, Object types, Organisation unit with Org structure in line with project profile
2. Activate Accounting integration
3. Object types for object link (WBSE in this case)
4. Accounting integration using cost collector
5. Easy cost planing settings both in R/3 systems & cProjects
6. Project profile configuration in R/3 (cProjects standard)
7. CO Scenario maintainance view determination (Multi level controlling-Project role, automatic)
All the enterprise structure assignments should be same in cProjects & R/3.
Hope this may help you.
Regards,
Rakesh Pradhan -
Error While Creating Project From Active Workspace.
Hi Friends,
While I am trying to create Project (WebDynpro DC) from my Active Workspace.
I am getting few errors..They are as follows.
1> .classpath (read only exception) --- By mistakenly .classpath was added to one of my activity and it is in DTR. So kindly suggest me a solution to Delete this file.
2> Resource ProjectProperties.wdproperties is not in sync with latest version.
To delete resource:
- check-in changes and then delete.
- revert resource and then delete.
Kindly suggest me some solutions.
Thanks and Regards.
Yajush MishraHi,
The neccesary configuration for cProjects & SAP-PS interface are as follows.
1. Project Types in cProjects, Object types, Organisation unit with Org structure in line with project profile
2. Activate Accounting integration
3. Object types for object link (WBSE in this case)
4. Accounting integration using cost collector
5. Easy cost planing settings both in R/3 systems & cProjects
6. Project profile configuration in R/3 (cProjects standard)
7. CO Scenario maintainance view determination (Multi level controlling-Project role, automatic)
All the enterprise structure assignments should be same in cProjects & R/3.
Hope this may help you.
Regards,
Rakesh Pradhan -
Error while creating Project using API - PA_PROJECT_PUB.CREATE_PROJECT
I am working on Projects conversion and currently trying to create a project using the API.
I have recetified all the errors it was giving and struck at 1 error. please find the error message below.
"You have submitted invalid parameters to this process, preventing its successful completion. Please contact your system administrator."
It gives me this error and I was not able to know the cause for this error. Please let me know how to bypass this error and go ahead with projects conversion???
Attached below is my package:
Thanks,
Kesava
=====================================================================================================================
CREATE OR REPLACE PACKAGE xxbwp.xxbwp_pa_proj_conv_pkg AUTHID CURRENT_USER
IS
PROCEDURE xxbwp_pa_proj_conv_proc(errbuf OUT VARCHAR2
,retcode OUT VARCHAR2);
END xxbwp_pa_proj_conv_pkg;
CREATE OR REPLACE PACKAGE BODY xxbwp.xxbwp_pa_proj_conv_pkg
IS
PROCEDURE xxbwp_pa_proj_conv_proc(errbuf OUT VARCHAR2
,retcode OUT VARCHAR2)
IS
v_data VARCHAR2(2000);
v_index_out NUMBER;
v_msg_count NUMBER;
v_msg_data VARCHAR2(2000);
v_return_status VARCHAR2(1);
v_api_version_number NUMBER := 1.0;
v_commit VARCHAR2(1) := apps.fnd_api.g_false;
v_init_msg_list VARCHAR2(1) := apps.fnd_api.g_false;
v_workflow_started VARCHAR2(1) := 'Y';
v_pm_product_code VARCHAR2(30) := NULL;
v_op_validate_flag VARCHAR2(1) := 'Y';
v_project_in apps.pa_project_pub.project_in_rec_type;
v_project_out apps.pa_project_pub.project_out_rec_type;
v_customers_in apps.pa_project_pub.customer_tbl_type;
v_key_members apps.pa_project_pub.project_role_tbl_type;
v_class_categories apps.pa_project_pub.class_category_tbl_type;
v_tasks_in apps.pa_project_pub.task_in_tbl_type;
v_tasks_in_rec apps.pa_project_pub.task_in_rec_type;
v_tasks_out apps.pa_project_pub.task_out_tbl_type;
v_org_roles apps.pa_project_pub.project_role_tbl_type;
v_structure_in apps.pa_project_pub.structure_in_rec_type;
v_ext_attr_tbl_in apps.pa_project_pub.pa_ext_attr_table_type;
v_deliverables_in apps.pa_project_pub.deliverable_in_tbl_type;
v_deliverable_actions_in apps.pa_project_pub.action_in_tbl_type;
-- Variables declaration related to project_in_rec_type
l_pm_project_reference VARCHAR2(25);
l_pa_project_id NUMBER;
l_pa_project_number VARCHAR2(25);
l_segment1 VARCHAR2(25);
l_project_name VARCHAR2(30);
l_description VARCHAR2(250);
l_long_name VARCHAR2(240);
l_department_mapping VARCHAR2(50);
l_department_mapping_c VARCHAR2(50);
l_department_mapping_e VARCHAR2(50);
l_created_from_project_id NUMBER;
l_carrying_out_organization_id NUMBER;
l_proj_start_date DATE;
l_completion_date DATE;
l_temp_project_type VARCHAR2(30);
l_company_id VARCHAR2(10);
l_company_id_c VARCHAR2(10);
l_company_id_e VARCHAR2(10);
l_proj_type VARCHAR2(30);
l_cnt NUMBER := 0;
l_task_cnt NUMBER := 0;
l_responsibility_id NUMBER;
l_application_id NUMBER;
l_user_id NUMBER;
l_global_info_msg_count NUMBER;
l_global_info_msg_data VARCHAR2(2000);
l_global_info_return_status VARCHAR2(1);
CURSOR C1 IS
SELECT *
FROM xxbwp.xxbwp_pa_proj_conv_tbl
WHERE proj_type = 'STORAGE';
begin
FOR C1_REC in C1
LOOP
SELECT APPS.pa_projects_s.nextval
INTO l_pa_project_id
FROM DUAL;
BEGIN
SELECT description
INTO l_proj_type
FROM apps.fnd_lookup_values
WHERE lookup_type = 'BWP_PROJECT_TYPES_LKP'
AND lookup_code = C1_REC.proj_type
AND 1 = 1;
END;
BEGIN
SELECT project_id, project_type, carrying_out_organization_id
INTO l_created_from_project_id, l_temp_project_type, l_carrying_out_organization_id
FROM apps.pa_projects_all
WHERE project_type = l_proj_type
AND template_flag = 'Y';
END;
BEGIN
SELECT rt.responsibility_id, rt.application_id
INTO l_responsibility_id, l_application_id
FROM apps.fnd_responsibility_tl rt
WHERE rt.responsibility_name = 'BWP PA Projects Superuser';
EXCEPTION WHEN OTHERS THEN
RETURN;
END;
BEGIN
SELECT u.user_id
INTO l_user_id
FROM APPS.fnd_user u
WHERE u.user_name = 'CHUNDURK';
EXCEPTION WHEN OTHERS THEN
RETURN;
END;
-- Set the environment
APPS.pa_interface_utils_pub.set_global_info
(p_api_version_number => 1.0
,p_responsibility_id => l_responsibility_id
,p_user_id => l_user_id
,p_resp_appl_id => l_application_id
,p_msg_count => l_global_info_msg_count
,p_msg_data => l_global_info_msg_data
,p_return_status => l_global_info_return_status);
--Assign values to project_in_rec_type
v_project_in.pm_project_reference := C1_REC.PROJ_NUM;
v_project_in.pa_project_id := l_pa_project_id;
v_project_in.pa_project_number := C1_REC.PROJ_NUM;
v_project_in.project_name := C1_REC.PROJ_NAME;
v_project_in.description := NULL;
v_project_in.long_name := C1_REC.PROJ_LONG_NAME;
v_project_in.created_from_project_id := l_created_from_project_id;
v_project_in.carrying_out_organization_id := l_carrying_out_organization_id;
v_project_in.start_date := C1_REC.trans_start_date;
v_project_in.completion_date := C1_REC.trans_end_date;
v_project_in.scheduled_start_date := C1_REC.trans_start_date;
v_project_in.scheduled_finish_date := C1_REC.trans_end_date;
v_project_in.project_status_code := 'APPROVED';
FOR x IN (SELECT person_id, project_role_type, start_date_active, end_date_active
FROM apps.pa_project_players
WHERE project_id = 262)
LOOP
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,'PERSON ID '||x.person_id);
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,'PROJECT ROLE TYPE '||x.project_role_type);
l_cnt := l_cnt + 1;
v_key_members(l_cnt).person_id := x.person_id;
v_key_members(l_cnt).project_role_type := x.project_role_type;
v_key_members(l_cnt).start_date := x.start_date_active;
v_key_members(l_cnt).end_date := x.end_date_active;
END LOOP;
-- Retrieving and assigning tasks from template to a project
FOR x IN (SELECT task_id, parent_task_id, task_name, long_task_name, task_number, description,
billable_flag, cint_eligible_flag, chargeable_flag
FROM apps.pa_tasks t
WHERE t.project_id = l_created_from_project_id
START WITH parent_task_id IS NULL CONNECT BY PRIOR task_id = parent_task_id)
LOOP
l_task_cnt := l_task_cnt + 1;
v_tasks_in_rec.pm_task_reference := x.task_id;
v_tasks_in_rec.task_name := x.task_name;
v_tasks_in_rec.long_task_name := x.long_task_name;
v_tasks_in_rec.pa_task_number := x.task_number;
v_tasks_in_rec.task_description := x.description;
v_tasks_in_rec.task_start_date := C1_REC.trans_start_date;
v_tasks_in_rec.task_completion_date := C1_REC.trans_end_date;
v_tasks_in_rec.scheduled_start_date := C1_REC.trans_start_date;
v_tasks_in_rec.scheduled_finish_date := C1_REC.trans_end_date;
v_tasks_in_rec.pm_parent_task_reference := x.parent_task_id;
v_tasks_in_rec.billable_flag := x.billable_flag;
v_tasks_in_rec.cint_eligible_flag := x.cint_eligible_flag;
v_tasks_in_rec.chargeable_flag := x.chargeable_flag;
v_tasks_in_rec.tasks_dff := 'Y';
v_tasks_in_rec.attribute1 := l_pa_project_id;
v_tasks_in(l_task_cnt) := v_tasks_in_rec;
END LOOP;
v_class_categories(0).class_category := 'Reimbursable';
v_class_categories(0).class_code := 'No';
APPS.FND_MSG_PUB.initialize;
apps.pa_project_pub.create_project
(p_api_version_number => v_api_version_number
,p_commit => v_commit
,p_init_msg_list => v_init_msg_list
,p_msg_count => v_msg_count
,p_msg_data => v_msg_data
,p_return_status => v_return_status
,p_workflow_started => v_workflow_started
,p_pm_product_code => v_pm_product_code
,p_op_validate_flag => v_op_validate_flag
,p_project_in => v_project_in
,p_project_out => v_project_out
,p_customers_in => v_customers_in
,p_key_members => v_key_members
,p_class_categories => v_class_categories
,p_tasks_in => v_tasks_in
,p_tasks_out => v_tasks_out
,p_org_roles => v_org_roles
,p_structure_in => v_structure_in
,p_ext_attr_tbl_in => v_ext_attr_tbl_in
,p_deliverables_in => v_deliverables_in
,p_deliverable_actions_in => v_deliverable_actions_in
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,v_return_status||' '||v_msg_count);
IF v_msg_count > 0 THEN
FOR i in 1 .. v_msg_count
LOOP
apps.pa_interface_utils_pub.get_messages
(p_encoded => 'F'
,p_msg_count => v_msg_count
,p_msg_index => i
,p_msg_data => v_msg_data
,p_data => v_data
,p_msg_index_out => v_index_out);
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,v_data);
END LOOP;
END IF;
END LOOP;
end xxbwp_pa_proj_conv_proc;
end xxbwp_pa_proj_conv_pkg;
show errors;
Edited by: user644005 on Sep 11, 2009 11:02 AMHi Kesava,
I notice that in the package you used the application user_name=CHUNDUK calls the API pa_project_pub.create_project.
I wonder if you used chunduk as database user to execute the package Or you used APPS to execute the package?
The APi document states that it is a requirement to create a db username as the same name with the application username.
I have been running the problem to execute API 's delete project and try to figure what could be my problem.
TIA -
Error while creating project in NWDS from DTR
Hi Experts,
I have installed NWDS 7.0.11 and Imported the configuration from NWDI
After importing I created a project .
I am getting the following error.
Development Component Build (2010-06-08 22:43:39)
Component name: vendordisplay
Component vendor: weyerhaeuser.com
SC compartment: domtar.com_DOMTAR_VENDOR_DISPLAY_1
Configuration: NW3_DMTRWAS_D
Location: NW3_DMTRWAS_D
Source code location: http://cinw3.domtar.com:50300/dtr/ws/DMTRWAS/domtar.com_DOMTAR_VENDOR_DISPLAY/dev/inactive/DCs/weyerhaeuser.com/vendordisplay/_comp/
DC root folder: D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\weyerhaeuser.com\vendordisplay\_comp\
DC type: Web Dynpro
Host: D--113000920
DC Model check:
All used DCs are available locally
validating dependency to build plugin "sap.com/tc/bi/bp/webDynpro"
validating dependency to public part "default" of DC "sap.com/tc/col/api"
validating dependency to public part "default" of DC "sap.com/tc/cmi"
validating dependency to public part "default" of DC "sap.com/tc/ddic/ddicruntime"
validating dependency to public part "default" of DC "sap.com/tc/ddic/metamodel/content"
validating dependency to public part "default" of DC "sap.com/tc/wd/webdynpro"
validating dependency to public part "default" of DC "sap.com/tc/logging"
validating dependency to public part "default" of DC "sap.com/tc/wdp/metamodel/content"
validating dependency to public part "default" of DC "sap.com/com.sap.aii.proxy.framework"
validating dependency to public part "default" of DC "sap.com/com.sap.aii.util.misc"
validating dependency to public part "default" of DC "sap.com/com.sap.exception"
validating dependency to public part "default" of DC "sap.com/com.sap.mw.jco"
validating dependency to public part "default" of DC "weyerhaeuser.com/connection_service"
validating dependency to public part "default" of DC "weyerhaeuser.com/custom_types"
validating dependency to public part "default" of DC "weyerhaeuser.com/information_service"
validating dependency to public part "SearchHelp" of DC "weyerhaeuser.com/search_help_service"
validating dependency to public part "default" of DC "weyerhaeuser.com/navigation_service"
DC model check OK
Start build plugin:
using build plugin: sap.com/tc/bi/bp/webDynpro
starting build plugin from : D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\
Build Plugin 'WebdynproPlugin', Version 7.00 SP 11 (645_VAL_REL, built on 2007-01-31 22:47:10 CET, CL51454)
development component: vendordisplay (weyerhaeuser.com)
software component: DOMTAR_VENDOR_DISPLAY (domtar.com)
location: NW3_DMTRWAS_D
type: Web Dynpro
build variant: default
source location: prasanna@D--113000920
output location: D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\weyerhaeuser.com\vendordisplay\_comp\gen\default
plugin start time: 2010-06-08 22:43:40 GMT+05:30 (IST)
Java VM: Java HotSpot(TM) Client VM, 1.4.2_14-b05 (Sun Microsystems Inc.)
General options:
convert *.xlf to *.properties: yes
include sources for debugging: yes
Checking path lengths for sources
Path length checks finished in 0.093 seconds
Preparing data context..
No public part descriptor found in D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\tc\col\api\_comp\gen\default\public\default, using legacy mode.
No public part descriptor found in D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\tc\cmi\_comp\gen\default\public\default, using legacy mode.
No public part descriptor found in D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\tc\ddic\ddicruntime\_comp\gen\default\public\default, using legacy mode.
No public part descriptor found in D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\tc\ddic\metamodel\content\_comp\gen\default\public\default, using legacy mode.
No public part descriptor found in D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\tc\wd\webdynpro\_comp\gen\default\public\default, using legacy mode.
No public part descriptor found in D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\tc\logging\_comp\gen\default\public\default, using legacy mode.
No public part descriptor found in D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\tc\wdp\metamodel\content\_comp\gen\default\public\default, using legacy mode.
No public part descriptor found in D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\com.sap.aii.proxy.framework\_comp\gen\default\public\default, using legacy mode.
No public part descriptor found in D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\com.sap.aii.util.misc\_comp\gen\default\public\default, using legacy mode.
No public part descriptor found in D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\com.sap.exception\_comp\gen\default\public\default, using legacy mode.
No public part descriptor found in D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\com.sap.mw.jco\_comp\gen\default\public\default, using legacy mode.
No 'default' JDK defined, will use running VM.
Data context prepared in 0.344 seconds
Creating Ant build file..
Creating output file: D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\weyerhaeuser.com\vendordisplay\_comp\gen\default\logs\build.xml
Using macro file: D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\macros\build.vm
Build file created in 0.266 seconds
Starting Ant..
Using build file: D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\weyerhaeuser.com\vendordisplay\_comp\gen\default\logs\build.xml
Using build target: build
Generation folder: D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\t\F5F315E03624A8A9DCE52475ABD38A2D
Error: D:\Back Up 26-May 2010\Prasanna\NWDS\.dtc\0\DCs\weyerhaeuser.com\vendordisplay\_comp\gen\default\logs\build.xml:15: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Bad comment content(file:///D:/Back%20Up%2026-May%202010/Prasanna/NWDS/.dtc/0/DCs/weyerhaeuser.com/vendordisplay/_comp/gen/default/logs/build.xml, row:15, col:40)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:222)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:131)
at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:108)
at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:61)
at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:213)
at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:190)
at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:347)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:99)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:73)
at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58)
at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723)
at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5633)
at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)
at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
Caused by: com.sap.engine.lib.xml.parser.ParserException: Bad comment content(file:///D:/Back%20Up%2026-May%202010/Prasanna/NWDS/.dtc/0/DCs/weyerhaeuser.com/vendordisplay/_comp/gen/default/logs/build.xml, row:15, col:40)
at com.sap.engine.lib.xml.parser.XMLParser.scanComment(XMLParser.java:2186)
at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2779)
at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2830)
at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280)
at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342)
at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:208)
... 21 more
--- Nested Exception ---
com.sap.engine.lib.xml.parser.ParserException: Bad comment content(file:///D:/Back%20Up%2026-May%202010/Prasanna/NWDS/.dtc/0/DCs/weyerhaeuser.com/vendordisplay/_comp/gen/default/logs/build.xml, row:15, col:40)
at com.sap.engine.lib.xml.parser.XMLParser.scanComment(XMLParser.java:2186)
at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2779)
at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2830)
at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280)
at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342)
at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:208)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:131)
at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:108)
at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:61)
at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:213)
at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:190)
at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:347)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:99)
at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:73)
at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58)
at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723)
at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5633)
at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)
at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
Ant runtime 0.062 seconds
Ant build finished with ERRORS
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Bad comment content(file:///D:/Back%20Up%2026-May%202010/Prasanna/NWDS/.dtc/0/DCs/weyerhaeuser.com/vendordisplay/_comp/gen/default/logs/build.xml, row:15, col:40)
Error: Build stopped due to an error: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Bad comment content(file:///D:/Back%20Up%2026-May%202010/Prasanna/NWDS/.dtc/0/DCs/weyerhaeuser.com/vendordisplay/_comp/gen/default/logs/build.xml, row:15, col:40)
Build plugin finished at 2010-06-08 22:43:41 GMT+05:30 (IST)
Total build plugin runtime: 1.172 seconds
Build finished with ERROR
Steps tried but no use .
Set the Java Home
Reload and Rebuild the project
Synced the DC
Added the ips in host files
After all this still when I try to DC build I am getting the same error . ,
Dont know how to proceed
Edited by: Prasanna Kumar on Jun 9, 2010 11:48 AMTry to syncronize DC dependencies (in Development Configuration perspective: "Sync Used DCs")... after, rebuild your project.
regards,
Angelo -
Error while creating new projects using api
Hello,
I am having error while creating projects using standard api, PA_PROJECT_PUB.CREATE_PROJECTS. The error I am having is as follow.
Source template ID is invalid.
===
My code is as follow:
SET SERVEROUTPUT ON SIZE 1000000
SET VERIFY OFF
define no=&amg_number
DECLARE
-- Variables used to initialize the session
l_user_id NUMBER;
l_responsibility_id NUMBER;
cursor get_key_members is
select person_id, project_role_type, rownum
from pa_project_players
where project_id = 1;
-- Counter variables
a NUMBER := 0;
m NUMBER := 0;
-- Variables needed for API standard parameters
l_commit VARCHAR2(1) := 'F';
l_init_msg_list VARCHAR2(1) := 'T';
l_api_version_number NUMBER :=1.0;
l_return_status VARCHAR2(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
-- Variables used specifically in error message retrieval
l_encoded VARCHAR2(1) := 'F';
l_data VARCHAR2(2000);
l_msg_index NUMBER;
l_msg_index_out NUMBER;
-- Variables needed for Oracle Project specific parameters
-- Input variables
l_pm_product_code VARCHAR2(30);
l_project_in pa_project_pub.project_in_rec_type;
l_key_members pa_project_pub.project_role_tbl_type;
l_class_categories pa_project_pub.class_category_tbl_type;
l_tasks_in pa_project_pub.task_in_tbl_type;
-- Record variables for loading table variables above
l_key_member_rec pa_project_pub.project_role_rec_type;
l_class_category_rec pa_project_pub.class_category_rec_type;
l_task_rec pa_project_pub.task_in_rec_type;
-- Output variables
l_workflow_started VARCHAR2(100);
l_project_out pa_project_pub.project_out_rec_type;
l_tasks_out pa_project_pub.task_out_tbl_type;
-- Exception to call messag handlers if API returns an error.
API_ERROR EXCEPTION;
BEGIN
-- Initialize the session with my user id and Projects, Vision Serves (USA0
-- responsibility:
select user_id into l_user_id
from fnd_user
where user_name = 'SSHAH';
select responsibility_id into l_responsibility_id
from fnd_responsibility_tl
where responsibility_name = 'Projects Implementation Superuser';
pa_interface_utils_pub.set_global_info(
p_api_version_number => l_api_version_number,
p_responsibility_id => l_responsibility_id,
p_user_id => l_user_id,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status);
if l_return_status != 'S' then
raise API_ERROR;
end if;
-- Provide values for input variables
-- L_PM_PRODUCT_CODE: These are stored in pa_lookups and can be defined
-- by the user. In this case we select a pre-defined one.
select lookup_code into l_pm_product_code
from pa_lookups
where lookup_type = 'PM_PRODUCT_CODE'
and meaning = 'Conversion';
-- L_PROJECT_IN: We have to provide values for all required elements
-- of this record (see p 5-13, 5-14 for the definition of the record).
-- Customers will normally select this information from some external
-- source
l_project_in.pm_project_reference := 'AGL-AMG Project &no';
l_project_in.project_name := 'AGL-AMG Project &no';
l_project_in.created_from_project_id := 1;
l_project_in.carrying_out_organization_id := 2864; /*Cons. West*/
l_project_in.project_status_code := 'UNAPPROVED';
l_project_in.start_date := '01-JAN-11';
l_project_in.completion_date := '31-DEC-11';
l_project_in.description := 'Trying Hard';
l_project_in.project_relationship_code := 'Primary';
-- L_KEY_MEMBERS: To load the key member table we load individual
-- key member records and assign them to the key member table. In
-- the example below I am selecting all of the key member setup
-- from an existing project with 4 key members ('EE-Proj-01'):
for km in get_key_members loop
-- Get the next record and load into key members record:
l_key_member_rec.person_id := km.person_id;
l_key_member_rec.project_role_type := km.project_role_type;
-- Assign this record to the table (array)
l_key_members(km.rownum) := l_key_member_rec;
end loop;
-- L_CLASS_CATEGORIES: commented out below should fix the error we get
-- because the template does not have an assigment for the mandatory class
-- 'BAS Test'
l_class_category_rec.class_category := 'Product';
l_class_category_rec.class_code := 'Non-classified';
-- Assign the record to the table (array)
l_class_categories(1) := l_class_category_rec;
-- L_TASKS_IN: We will load in a single task and a subtask providing only
-- the basic fields (see pp. 5-16,5-17,5-18 for the definition of
-- the task record)
l_task_rec.pm_task_reference := '1';
l_task_rec.pa_task_number := '1';
l_task_rec.task_name := 'Construction';
l_task_rec.pm_parent_task_reference := '' ;
l_task_rec.task_description := 'Plant function';
-- Assign the top task to the table.
l_taskS_in(1) := l_task_rec;
-- Assign values for the sub task
l_task_rec.pm_task_reference := '1.1';
l_task_rec.pa_task_number := '1.1';
l_task_rec.task_name := 'Brick laying';
l_task_rec.pm_parent_task_reference := '1' ;
l_task_rec.task_description := 'Plant building';
-- Assign the subtask to the task table.
l_tasks_in(2) := l_task_rec;
-- All inputs are assigned, so call the API:
pa_project_pub.create_project
(p_api_version_number => l_api_version_number,
p_commit => l_commit,
p_init_msg_list => l_init_msg_list,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_workflow_started => l_workflow_started,
p_pm_product_code => l_pm_product_code,
p_project_in => l_project_in,
p_project_out => l_project_out,
p_key_members => l_key_members,
p_class_categories => l_class_categories,
p_tasks_in => l_tasks_in,
p_tasks_out => l_tasks_out);
-- Check the return status, if it is not success, then raise message handling
-- exception.
IF l_return_status != 'S' THEN
dbms_output.put_line('Msg_count: '||to_char(l_msg_count));
dbms_output.put_line('Error: ret status: '||l_return_status);
RAISE API_ERROR;
END IF;
-- perform manual commit since p_commit was set to False.
COMMIT;
--HANDLE EXCEPTIONS
EXCEPTION
WHEN API_ERROR THEN
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
WHEN OTHERS THEN
dbms_output.put_line('Error: '||sqlerrm);
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
END;
===
Msg_count: 1
Error: ret status: E
ERROR: 1: Project: 'AGL-AMG Project 1123'
Source template ID is invalid.
PL/SQL procedure successfully completed.I was using a custom Application, which had a id other then 275 (which belongs to Oracle projects)
-
Hello experts,
I am getting error while creating project in SEGW i.e. "you are not authorized to create project"
please find attachments for error screenshots and SU53 transaction screenshot.
please help me to solve this issue..hi,
you don't have authorization to create the project please ask to basis guy to give you authorization in your SAP ID for these objects which are coming in su53 .
Regards,
mukesh -
Error while creating web dynpro project from DTR
Hello,
I am getting following error while creating Web Dynpro project from DTR,
org.eclipse.jdt.core.JavaModelException: File /<track name><DC><package>/.classpath is read-only.
Still project gets created but evenif I check out view , it does not allow me to edit it.
Also I have checked in and activated some changes but active copy in DTR is not reflecting those changes.
I tried Add subtree option in DTR perspective for folders in this project. Is it result of that?
Please help me in this regard.
Thank You
BeenaHi Beena,
.classpath file should not checked in to DTR(uncheck the Read only properties). It is local file it contains class path for local system.
Generally in webdynpro project only src folder should be checked in DTR.
Regards
Suresh -
Error While creating new project
Hi,
I am getting the following error while creating and saving the new Project in the customized project types. If I create any project in the standard project type 'Development Projects' , I could save the project(No error). I checked all the customisation. But I could not understand the problem.
Error type:
Error when processing your request
What has happened?
The URL http://xxxxxxx.com:8000/sap/bc/webdynpro/sap/cprojects/ was not called due to an error.
Note
The following error text was processed in the system QAR :
Access via 'NULL' object reference not possible.
The error occurred on the application server jkeccdq_QAR_01 and in the work process 3 .
The termination type was: RABAX_STATE
The ABAP call stack was:
What can I do?
If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system QAR in transaction ST22.
If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server jkeccdq_QAR_01 in transaction SM21.
If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 3 in transaction ST11 on the application server jkeccdq_QAR_01 . In some situations, you may also need to analyze the trace files of other work processes.
If you do not yet have a user ID, contact your system administrator.
Error code: ICF-IE-http -c: 200 -u: -l: E -s: QAR -i: j_QAR_01 -w: 3 -d: 20080630 -t: 150706 -v: RABAX_STATE -e: OBJECTS_OBJREF_NOT_ASSIGNED
HTTP 500 - Internal Server Error
Your SAP Internet Communication Framework Team
Pls Help me to solve this issue.
Thanking you
Regards,
N.Ramesh.
+91-9958755695Have you checked if you assigned in the project type the project category?
There is a simple check to see if there is something wrong on the customizing of the project types:
Copy a standard project type and change only the project type ID. Check if you can create a project from this new project type
Hope this helps
Neil -
Error while creating new project number
Hi Folks,
I am getting the below error while creating a new project number.
"Oracle Projects failed to generate unique project number. Please contact your system administrator to setup the next number field for automatic project numbering in implementation options window.
Can any expert help me out in this issue?
Thanks in advance.
SPRHi,
What u can do is to navigate to setup>>system>> implemention options and project TAB look for the next project number sequence and just increase the next number by 1.
This problem may have come coz there is some project which already have that project number which is next in sequence.
Thanks
-Shivdeep Singh -
Error While creating CA project. Reason: Null
Hi Experts,
I am new to CAF. While trying to create a new CAF project in NWDS CE 7.2 I am getting error:"Error While creating CA project. Reason: Null". This happens once I click finish in Project Bundle window.
Can anyone please help me on this?
Regards,
UnniWas a Plugin issue.
Regards,
Unni
Maybe you are looking for
-
How to display error message ??
Hi, I have a BDC program to upload data from an excel sheet. I could see that some records of data fail to pass and hence after my bdc run i would like to display error message for the failed records as follows: costcenter: cost element: fiscal year:
-
How do I re-install the OS and keep all data?
I have K9 WebProtection and forgot which e-mail address I signed up with (as well as admin password..stupid I know). Today it blocked yahoo and google (it isn't supposed to block anything but adult material which we needed when my son still lived wit
-
Not sure if 5ghz is better than 2.4? Im running 8 devices on my wireless at 2.4 just wondering if I should connect anything to the 5ghz. thank you
-
System copy of JDI system.
Hello Experts, We have our JDI on admi1 server (6.40). We made a system copy of admin1 java +abap stack in order to create a support path. (admin1 we are plannign to upgrade, admin2 will be our support path in downtime) Basically we are trying to mi
-
IWeb, QTL's and Autoplay
Hi This may be a question for the iWeb board (so I have also posted it there). I am using iWeb to create a site using the Blog template. If I put a Quicktime Movie on an 'entry' page, with Autoplay enabled, then clicking the link to that entry on the