Where to create project?
Hi,
We are going to implement ECC 6.0. Client has brief organisation structure as, one holding company has share service department (SSD)which centally handles HR, finance, project management, procurement.This holding company has other manufacturing companies. SSD will supply all services and material to these companies. I am working on Project System module. Can anybody tell me where project should be created, in SSD or in company?
And can anybody give me documents about share sevice?
Thanks
sudhir
hi sudhir,
i am giving in brief please check it out,
Create/Change Project
Prerequisites
You need the authorizations described in Authorization Concept to create projects in the SAP Solution Manager.
You are in the initial screen of the Project Administration transaction in the SAP Solution Manager.
Procedure
1. Choose Project ® Create.
2. Enter a project name in the Create Project dialog box, and choose Continue.
The project name may contain a combination of letters and numbers up to 10 characters in length.
3. Select a Project Type.
See Project Types for an overview of the different project types and their use.
You cannot change the project type later, in the same project. To change the project type, e.g. if you have created an implementation project, but realize that you want to create templates with it, copy the project, and change the project type of the new project.
4. You can assign a solution landscape to the project.
If you create your project structure in the Business Blueprint phase, you can later put structure elements from the selected solution landscape in it.
5. Choose Continue.
You go to the Maintain Project screen.
6. Enter a meaningful project name and language.
7. Save the header data for your project.
8. Enter a name for the enhancement context in which the project documents are to be saved in the SAP Knowledge Warehouse, in the next dialog box.
9. Choose Continue.
10. For a template project, enter a package in which the project structure is to be saved, in the dialog box that appears.
The system copies the package specified here into the Transport Requests tab and uses it by default for subsequent changes to the scope or the project structure in the Business Blueprint. If you want to prevent this package being used later by default, delete it from the Transport Requests tab.
See Transport Requests for further information.
11. Save your entries.
Result
The saved project is put in the SAP Solution Manager project overview. You can now specify header data for the project:
● General Data
● Scope
● Project Team Members
● System Landscape
● Project Standards (status values, keywords, document types)
● Milestones
● Organizational Units
● Templates (only for template projects)
● Transport Requests (only for template projects)
● To change the header data for the project, select Project ® Change. You cannot change the project language after you have saved the header data for your project.
● You can distribute project header data changes to the component system project IMGs with Edit ® Distribute Project Header Data.
dont foret to reward me points
regards
karthik
Similar Messages
-
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 in Creating Project in ESS.
Hi All,
I have a requirement where in , there is change in the personal data screen of ESS package. We configured the NWDI server. But when i am trying to extract the ess/in/pdata dc from the ESS SC. It is failing during the project Build and throwing the below error.
Mar 8, 2009 12:12:17 PM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: ess/in/pdata: Build failed for sap.com/ess/in/pdata(sap.com_SAP_ESS_1) in variant "default": [Error] Generation failed!
Build log -
Development Component Build (2009-03-08 12:11:23)
Component name: ess/in/pdata
Component vendor: sap.com
SC compartment: sap.com_SAP_ESS_1
Configuration: NDI_ESS2_D
Location: NDI_ESS2_D
Source code location: http://sapdev:50200/dtr/ws/ESS2/sap.com_SAP_ESS/dev/inactive/DCs/sap.com/ess/in/pdata/_comp/
DC root folder: C:\Documents and Settings\sk46196\.dtc\0\DCs\sap.com\ess\in\pdata\_comp\
DC type: Web Dynpro
Host: HIC-PCS31092
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/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 used DC "sap.com/pcui_gp/xssfpm"
validating dependency to used DC "sap.com/pcui_gp/xssutils"
validating dependency to used DC "sap.com/ess/per"
DC model check OK
Start build plugin:
using build plugin: sap.com/tc/bi/bp/webDynpro
starting build plugin from : C:\Documents and Settings\sk46196\.dtc\0\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\
Build Plugin 'WebdynproPlugin', Version 7.00 SP 9 (645_VAL_REL, built on 2006-08-23 19:48:09 CEST)
development component: ess/in/pdata (sap.com)
software component: SAP_ESS (sap.com)
location: NDI_ESS2_D
type: Web Dynpro
build variant: default
source location: http://sapdev:50200/dtr/ws/ESS2/sap.com_SAP_ESS/dev/inactive/
plugin start time: 2009-03-08 12:11:39 GMT+05:30 (IST)
Java VM: Java HotSpot(TM) Client VM, 1.5.0-b64 (Sun Microsystems Inc.)
General options:
convert *.xlf to *.properties: yes
include sources for debugging: yes
Used compilation public part does not exist: C:\Documents and Settings\sk46196\.dtc\0\DCs\sap.com\pcui_gp\xssutils\_comp\gen\default\public\FPMUtils\
Used compilation public part does not exist: C:\Documents and Settings\sk46196\.dtc\0\DCs\sap.com\ess\per\_comp\gen\default\public\InternationalPersInfo\
Warning: Source folder does not exist, will be ignored: META-INF
Warning: Source folder does not exist, will be ignored: src/mimes
Warning: Source folder does not exist, will be ignored: src/configuration
Plugin initialized in 1.625 seconds
Preparing data context..
No 'default' JDK defined, will use running VM.
Data context prepared in 8.89 seconds
Executing macro file..
Using macro file: C:\Documents and Settings\sk46196\.dtc\0\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\macros\build.vm
Creating output file: C:\Documents and Settings\sk46196\.dtc\0\DCs\sap.com\ess\in\pdata\_comp\gen\default\logs\build.xml
Macro file executed in 1 second
Starting Ant..
Using build file: C:\Documents and Settings\sk46196\.dtc\0\DCs\sap.com\ess\in\pdata\_comp\gen\default\logs\build.xml
Using build target: build
Generation folder: C:\Documents and Settings\sk46196\.dtc\0\t\7F9C993F9CD60BA2D12EBC39ED1E9345
Using Ant version: 1.6.2
compile:
[echo] Starting dictionary generator
[ddgen]
[ddgen] [Info] Property deployment is true: Deployment information is provided!
[ddgen] [Info] Property sourcepath: C:\Documents and Settings\sk46196\.dtc\0\DCs\sap.com\ess\in\pdata\_comp\src\packages
[ddgen] [Info] Property targetpath: C:\Documents and Settings\sk46196\.dtc\0\t\7F9C993F9CD60BA2D12EBC39ED1E9345\gen_ddic
[ddgen] [Info] Property archivename: sap.comessin~pdata
[ddgen] [Info] Property vendor: sap.com
[ddgen] [Info] Property dcname: ess/in/pdata
[ddgen] [Info] Property projectlanguage: en
[ddgen] [Info] Property language: Available languages are automatically determined!
[ddgen] [Info] Property addpaths ...
[ddgen] [Info] SapMetamodelWebdynproContent.zip - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/bi/extwd/_comp/gen/default/public/def/lib/model
[ddgen] [Info] SapMetamodelDictionaryContent.zip - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/bi/extddic/_comp/gen/default/public/def/lib/model
[ddgen] [Info] SapMetamodelDictionaryContent.zip - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java
[ddgen] [Info] sap.compcui_gpxssfpm~FloorplanManager.jar - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/pcui_gp/xssfpm/_comp/gen/default/public/FloorplanManager/lib/java
[ddgen] [Info] Initialize generation templates from configuration jar:file:/C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/bi/extddic/_comp/gen/default/public/def/lib/java/SapDictionaryGenerationCore.jar!/DictionaryGenerationConfigurationCompiled.xml
[ddgen]
[timer] Dictionary generator finished in 14.733 seconds
[echo] Starting WebDynpro generator
[wdgen]
[wdgen] [Info] Property deployment is true: Deployment information is provided!
[wdgen] [Info] Property sourcepath: C:\Documents and Settings\sk46196\.dtc\0\DCs\sap.com\ess\in\pdata\_comp\src\packages
[wdgen] [Info] Property targetpath: C:\Documents and Settings\sk46196\.dtc\0\t\7F9C993F9CD60BA2D12EBC39ED1E9345\gen_wdp
[wdgen] [Info] Property archivename: sap.comessin~pdata
[wdgen] [Info] Property vendor: sap.com
[wdgen] [Info] Property dcname: ess/in/pdata
[wdgen] [Info] Property projectlanguage: en
[wdgen] [Info] Property language: Available languages are automatically determined!
[wdgen] [Info] Property addpaths ...
[wdgen] [Info] SapMetamodelWebdynproContent.zip - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/bi/extwd/_comp/gen/default/public/def/lib/model
[wdgen] [Info] SapMetamodelDictionaryContent.zip - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/bi/extddic/_comp/gen/default/public/def/lib/model
[wdgen] [Info] SapMetamodelDictionaryContent.zip - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java
[wdgen] [Info] sap.compcui_gpxssfpm~FloorplanManager.jar - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/pcui_gp/xssfpm/_comp/gen/default/public/FloorplanManager/lib/java
[wdgen] [Info] webdynproruntime_repository_pmr.jar - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
[wdgen] [Info] webdynproservices.jar - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
[wdgen] [Info] jrfc.jar - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/com.sap.mw.jco/_comp/gen/default/public/default/lib/java
[wdgen] [Info] cmiapi.jar - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/cmi/_comp/gen/default/public/default/lib/java
[wdgen] [Info] logging.jar - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/logging/_comp/gen/default/public/default/lib/java
[wdgen] [Info] logging.perf.jar - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/logging/_comp/gen/default/public/default/lib/java
[wdgen] [Info] SapMetamodelWebdynproContent.zip - C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/wdp/metamodel/content/_comp/gen/default/public/default/lib/java
[wdgen] [Info] Initialize generation templates from configuration jar:file:/C:/Documents and Settings/sk46196/.dtc/0/DCs/sap.com/tc/bi/extwd/_comp/gen/default/public/def/lib/java/SapWebDynproGenerationCore.jar!/WebDynproGenerationConfigurationCompiled.xml
[wdgen] [Info] Generating packages/com/sap/xss/hr/per/in/pdata/model/HRXSS_PER_P0002_IN.java
[wdgen] [Info] Generating packages/com/sap/xss/hr/per/in/pdata/model/Hrxss_Per_Edit_P0002_In_Output.java
[wdgen] [Info] Generating packages/com/sap/xss/hr/per/in/pdata/model/Bapiret2.java
[wdgen] [Info] Generating packages/com/sap/xss/hr/per/in/pdata/model/Hrxss_Per_F4_Value.java
[wdgen] [Info] Generating packages/com/sap/xss/hr/per/in/pdata/model/Hrxss_Per_Modify_P0002_In_Output.java
[wdgen] [Info] Generating packages/com/sap/xss/hr/per/in/pdata/model/Hrxss_Per_Delete_P0002_In_Output.java
[wdgen] WARNING: Metadata of component VcPerPersonalINOverview is not valid! ComponentUsage "//WebDynpro/Component:com.sap.xss.hr.per.in.personal.overview.VcPerPersonalINOverview/ComponentUsage:FcPersInfo", Role "UsedComponent": A minimum of 1 object(s) is required
[wdgen] WARNING: Metadata of component VcPerPersonalINReview is not valid! ComponentUsage "//WebDynpro/Component:com.sap.xss.hr.per.in.personal.review.VcPerPersonalINReview/ComponentUsage:FcPersInfo", Role "UsedComponent": A minimum of 1 object(s) is required
[wdgen] WARNING: Metadata of component FcPerPersonalIN is not valid! ComponentUsage "//WebDynpro/Component:com.sap.xss.hr.per.in.personal.fc.FcPerPersonalIN/ComponentUsage:FcPersInfo", Role "UsedComponent": A minimum of 1 object(s) is required
[wdgen] WARNING: Metadata of component VcPerPersonalINDetail is not valid! ComponentUsage "//WebDynpro/Component:com.sap.xss.hr.per.in.personal.detail.VcPerPersonalINDetail/ComponentUsage:FcPersInfo", Role "UsedComponent": A minimum of 1 object(s) is required
[wdgen] [Error] com.sap.xss.hr.per.in.personal.overview.VcPerPersonalINOverview --> Component VcPerPersonalINOverview: Has invalid component usage 'FcPersInfo'
[wdgen] [Error] .Subtypes: The mapping definition is inconsistent, the mapped context element does not exist.
[wdgen] [Error] com.sap.xss.hr.per.in.personal.overview.VcPerPersonalINOverview --> ContextModelNode Subtypes [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
[wdgen] [Error] .Subtypes.Subtype: The mapping definition is inconsistent, the mapped context element does not exist.
[wdgen] [Error] .Subtypes.Case: The mapping definition is inconsistent, the mapped context element does not exist.
[wdgen] [Error] .Subtypes.Stext: The mapping definition is inconsistent, the mapped context element does not exist.
[wdgen] [Error] .Subtypes.Del_Button: The mapping definition is inconsistent, the mapped context element does not exist.
[wdgen] [Error] .Subtypes.Disp_Only: The mapping definition is inconsistent, the mapped context element does not exist.
[wdgen] [Error] .Subtypes.Cre_Button: The mapping definition is inconsistent, the mapped context element does not exist.
[wdgen] [Error] .Default_Begda: The mapping definition is inconsistent, the mapped context element does not exist.
[wdgen] [Error] com.sap.xss.hr.per.in.personal.overview.VcPerPersonalINOverview --> ContextModelAttribute Default_Begda [referencedProperty]: The context model attribute has not been bound to a model property
[wdgen] [Error] com.sap.xss.hr.per.in.personal.overview.VcPerPersonalINOverview --> ContextModelAttribute Default_Begda: Context model attributes which are defined as top level attributes have to be mapped to attributes of other controllers.
[wdgen] [Error] com.sap.xss.hr.per.in.personal.overview.VcPerPersonalINOverview --> Component VcPerPersonalINOverview [FcPersInfo]: Component usage has no used component
[wdgen] [Error] com.sap.xss.hr.per.in.personal.overview.VcPerPersonalINOverview --> Component VcPerPersonalINOverview [FcEmployeeServices]: Component usage has no used component
[wdgen] [Info] com.sap.xss.hr.per.in.personal.overview.BizCardsView --> TransparentContainer rootContainer [Children]: Container does not contain children
[wdgen] [Info] Catching throwable null
[wdgen] [Info] com.sap.webdynpro.generation.ant.GenerationAntTaskError
[wdgen] ERROR: Unknown exception during generation null (com.sap.webdynpro.generation.ant.GenerationAntTaskError)
[wdgen] ERROR: Generation failed due to errors (6 seconds)
Ant runtime 22.31 seconds
Ant build finished with ERRORS
[Error] Generation failed!
Error: Build stopped due to an error: [Error] Generation failed!
Build plugin finished at 2009-03-08 12:12:17 GMT+05:30 (IST)
Total build plugin runtime: 38.606 seconds
Build finished with ERROR
This is coming when i am trying to create project. Though the prooject is getting created in the local NWDS but still i is not recognizing many things internally and throwing error in the code.
One thing is this partiuclar DC which i am tring t Create project isshown as a Broken DC in the CBS, Will this be any problem??
Please help me andin this regards with your suggesion., this is really important and critical for us.
Regards
Sai Sharan KallaHi ,
You need to check the activity in DTR, it seems that its not active.
Also make sure that all the URL DTR and CBS have FQDN.
Regards, -
Hi
While trying to Create Projects using the API, I'm getting two types of errors -
The first is : 'API failed in one stage 1 Customer Name is a mandatory Quick Entry field. Value must be passed'
The second is : '
'API failed in one stage 1 Project: '<Project_Number>'
The class category is invalid.'
Both the messages are produced by our custom program. .. however I am not able to understand why the underlying errors occur.
The first error ( Customer Name is a mandatory quick entry field), is caused by Projects that are to be created from Project templates where it is configured with Quick Entry Customer Name required. We are passing Customer Site number ( Party Bill to site number and Party Ship to side number). The site numbers being passed are also set as 'Primary'. Yet they are failing.
For the second Error ( The Class Category is invalid), I rechecked multiple times, the Class categories for the Projects I am trying to create, with the Config in R12 and they are fine. Can't understand the reason for these two issues. Has anyone encountered such an issue ? If so how was it resolved?
Regards
VivekHI All
I resolved both the issues. In case there are others facing similar issues, following was the cause and resolution of my errors
1. Error 1: Customer Name is a Mandatory Quick Entry field. Value must be passed.
The cause was that the data loaded into our custom staging table was not in the right fields. This was because the data file values and the CTL were not in sync.
Resolution:
Corrected the data file to be in Sync with the structure defined in the CTL and this loaded it successfully
2. Error 2: The class category is invalid.
The cause of this error was that in the Projects Template (used to create the project from), the Quick Entry setup had a Class Category set as required and I was not passing a value ( a class code value) for that Class Category.
Hope this helps somebody else
Cheers
Turnbill -
How to assign project specific task with the newly created projects ?
Hi All,
I need help. I need to assign project specific tasks (which i will be taking from staging table) other than the default task which are assigned during project creation. How do I proceed with this within same package. I am attaching the code of my package below...
CREATE OR REPLACE PACKAGE body xxpa_proj_conv_pkg as
PROCEDURE xxpa_create_project_proc(O_ERRBUF OUT VARCHAR2,O_RETCODE OUT VARCHAR2)
is
variables need to derive global parameters
v_responsibility_id NUMBER; --- PA Supervisor responsibility id
v_user_id NUMBER;
deriving global parameters-
-- Variables needed for API standard parameters
v_api_version_number NUMBER := 1.0;
v_commit VARCHAR2(1) := 'F';
v_return_status VARCHAR2(1);
v_init_msg_list VARCHAR2(1) := 'F';
v_msg_count NUMBER;
v_msg_index_out NUMBER;
v_msg_data VARCHAR2(2000);
v_data VARCHAR2(2000);
v_workflow_started VARCHAR2(1) := 'Y';
v_pm_product_code VARCHAR2(10);
---variables for catching errors---
v_error_flag number:=0;
-- Predefined Composite data types
v_project_in PA_PROJECT_PUB.PROJECT_IN_REC_TYPE;
v_project_out PA_PROJECT_PUB.PROJECT_OUT_REC_TYPE;
v_key_members PA_PROJECT_PUB.PROJECT_ROLE_TBL_TYPE;
v_class_categories PA_PROJECT_PUB.CLASS_CATEGORY_TBL_TYPE;
v_tasks_in_rec PA_PROJECT_PUB.TASK_IN_REC_TYPE;
v_tasks_in PA_PROJECT_PUB.TASK_IN_TBL_TYPE;
v_tasks_out_rec PA_PROJECT_PUB.TASK_OUT_REC_TYPE;
v_tasks_out PA_PROJECT_PUB.TASK_OUT_TBL_TYPE;
v_CREATED_FROM_PROJECT_ID varchar2(20);
v_CARRYING_OUT_ORGANIZATION_ID varchar2(20);
v_person_id NUMBER;
v_project_role_type VARCHAR2(20);
API_ERROR EXCEPTION;
v_a NUMBER;
cursor for project in data
CURSOR cur_project_in_data IS SELECT * FROM XXPA_PROJECT_IN_STG;
cursor for task data
CURSOR cur_task_in_data IS SELECT * FROM XXPA_TASK_IN_STG;
------------------------Cursors used for validations----------------------------------
cursor for product code used for validation
cursor cprc is select distinct PROJECT_RELATIONSHIP_CODE from PA_PROJECT_CUSTOMERS;
cursor for distribution rule-
cursor cdr is select DISTRIBUTION_RULE from PA_DISTRIBUTION_RULES;
cursor for project status code
cursor cpsc is SELECT PROJECT_STATUS_CODE, PROJECT_STATUS_NAME FROM PA_PROJECT_STATUSES WHERE STATUS_TYPE = 'PROJECT';
cursor for template/created from project id
cursor ccpid is select project_id from pa_projects where template_flag='Y';
BEGIN
select user_id, responsibility_id into v_user_id, v_responsibility_id
from PA_USER_RESP_V
where user_name like 'amit_kumar%'
and responsibility_name like'PA SupervisorS';
-- --Fnd_global.apps_initialize(user_id,resp_id, resp_appl_id);
-- Fnd_global.apps_initialize(v_user_id,v_responsibility_id,275);
-- -------calling global parameters---
pa_interface_utils_pub.set_global_info
p_api_version_number =>v_api_version_number,
p_responsibility_id =>v_responsibility_id,
p_user_id =>v_user_id,
p_msg_count =>v_msg_count,
p_msg_data =>v_msg_data,
p_return_status =>v_return_status
dbms_output.put_line ('Set Global status ->' || v_return_status);
----Cursor for PRODUCT RELATED DATA-----------
FOR REC IN cur_project_in_data LOOP
-----PASSING VALUES TO THE COMPOSITE DATA TYPE(PROJECT_IN_REC_TYPE)-------
----retrieving product code-----
select lookup_code into v_pm_product_code
from pa_lookups
where lookup_type = 'PM_PRODUCT_CODE'
and meaning = 'Oracle Project Manufacturing';
-----retrieving and validating created from project id----
BEGIN
select project_id
into v_CREATED_FROM_PROJECT_ID
from pa_projects_all
where name=rec.created_from_project_name;
EXCEPTION
when others then
O_Retcode := '1';
O_Errbuf :='Incorrent CREATED_FROM_PROJECT_NAME';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
UPDATE XXPA.XXPA_PROJECT_IN_STG
SET ERROR_FLAG ='1' ,last_updation_date='sysdate' where created_from_project_name = rec.CREATED_FROM_PROJECT_NAME;
END;
-----retrieving & validating carrying out organization id-----
BEGIN
select distinct(CARRYING_OUT_ORGANIZATION_ID)
into v_CARRYING_OUT_ORGANIZATION_ID
from pa_projects_prm_v
where CARRYING_OUT_ORGANIZATION_NAME=rec.carrying_out_organization_name;
EXCEPTION
when others then
O_Retcode := '1';
O_Errbuf :='Incorrent Carrying Out Organization name';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
UPDATE XXPA.XXPA_PROJECT_IN_STG
SET ERROR_FLAG ='1' ,last_updation_date='sysdate' where carrying_out_organization_name = rec.carrying_out_organization_name;
END ;
v_project_in.pm_project_reference := rec.segment1;
v_project_in.project_name := rec.PROJECT_NAME;
v_project_in.created_from_project_id := v_CREATED_FROM_PROJECT_ID;
v_project_in.carrying_out_organization_id := v_CARRYING_OUT_ORGANIZATION_ID;
v_project_in.project_status_code := rec.PROJECT_STATUS_CODE;
v_project_in.description := rec.PROJECT_DESCRIPTION;
v_project_in.start_date := rec.PROJECT_START_DATE;
v_project_in.completion_date := rec.PROJECT_COMPLETION_DATE;
v_project_in.distribution_rule := rec.DISTRIBUTION_RULE;
v_project_in.project_relationship_code := rec.PROJECT_RELATIONSHIP_CODE;
-------------------------Validation of incoming project data--------------------------------
v_error_flag := 1;
project relationship code validation
BEGIN
for prc in cprc
loop
if (rec.PROJECT_RELATIONSHIP_CODE=prc.PROJECT_RELATIONSHIP_CODE) or (rec.PROJECT_RELATIONSHIP_CODE is null)--can be overridden from template
then
v_error_flag :=0;
else null;
end if;
end loop;
END;
project distribution rule validation
BEGIN
for dr in cdr
loop
if (rec.DISTRIBUTION_RULE=dr.DISTRIBUTION_RULE) or (rec.DISTRIBUTION_RULE is null) null since the value can be taken from template too
then
v_error_flag :=0;
else null;
end if;
end loop;
END;
project status code validation
BEGIN
for sc in cpsc
loop
if (rec.PROJECT_STATUS_CODE=sc.PROJECT_STATUS_CODE) or (rec.PROJECT_STATUS_CODE is null) null since the value can be taken from template too
then
v_error_flag :=0;
else null;
end if;
end loop;
END;
dbms_output.put_line ('Error at PROJECT_STATUS_CODE>' ||v_error_flag);
validation logic for project start date
BEGIN
if TRUNC(rec.PROJECT_START_DATE) >= TRUNC(rec.PROJECT_COMPLETION_DATE)
THEN
v_error_flag := 1;
O_Retcode := '1';
O_Errbuf :='Project start date cannnot be greater than completion date';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
END IF;
END;
validation logic for project completion date
BEGIN
if (TRUNC(rec.PROJECT_COMPLETION_DATE)<=TRUNC(rec.PROJECT_START_DATE))
then
if ( rec.PROJECT_STATUS_CODE='CLOSED' and rec.PROJECT_COMPLETION_DATE>sysdate)
THEN
v_error_flag := 1;
O_Retcode := '1';
O_Errbuf :='completion date cannot be greater than sysdate for closed projects';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
END IF;
v_error_flag := 1;
O_Retcode := '1';
O_Errbuf :='Project closed date cannot be less than start date';
end if;
END;
--------Update staging table for the error records--------
BEGIN
if v_error_flag =1
then
O_Retcode := '1';
O_Errbuf :='Incorrect project relationship code';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
UPDATE XXPA.XXPA_PROJECT_IN_STG
SET ERROR_FLAG ='1' ,last_updation_date='sysdate' where PROJECT_RELATIONSHIP_CODE = rec.PROJECT_RELATIONSHIP_CODE;
end if;
END;
-----------------------End of validation of incoming project data----------------------------------
---------------Project Task DATA-----------------
v_a:=0;
FOR tsk IN cur_task_in_data LOOP
v_tasks_in_rec.pm_task_reference :=tsk.task_reference ;
v_tasks_in_rec.task_name :=tsk.task_name;
v_tasks_in_rec.pm_parent_task_reference :=tsk.parent_task_reference ;
v_tasks_in_rec.task_start_date :=tsk.task_start_date ;
v_tasks_in_rec.task_completion_date :=tsk.task_completion_date ;
v_tasks_in(v_a) := v_tasks_in_rec;
v_a:=v_a+1;
end loop;
---------------end of task details------------------
--INIT_CREATE_PROJECT
pa_project_pub.init_project;
---------------------CREATE_PROJECT--------------------------
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_project_in => v_project_in,
p_project_out => v_project_out,
p_key_members => v_key_members,
p_class_categories => v_class_categories,
p_tasks_in => v_tasks_in,
p_tasks_out => v_tasks_out);
if v_return_status = 'S'
then
UPDATE XXPA.XXPA_PROJECT_IN_STG
SET INTERFACE_STATUS ='Success' where segment1 = v_project_out.pa_project_number; ---P->pending & S-> Success
dbms_output.put_line('New Project Id: ' || v_project_out.pa_project_id);
dbms_output.put_line('New Project Number: ' || v_project_out.pa_project_number);
else
UPDATE XXPA.XXPA_PROJECT_IN_STG
SET INTERFACE_STATUS ='Pending' where segment1 = v_project_out.pa_project_number;
raise API_ERROR;
end if;
END LOOP;
Commit;
------Handling Exception--------
EXCEPTION
WHEN api_error THEN
dbms_output.put_line('An error occured during project creation');
IF (v_msg_count > 0 ) THEN
FOR i IN 1..v_msg_count LOOP
apps.PA_INTERFACE_UTILS_PUB.get_messages(
p_msg_count => v_msg_count,
p_encoded => 'F',
p_msg_index => i,
p_msg_data => v_msg_data,
p_data => v_data,
p_msg_index_out => v_msg_index_out);
dbms_output.put_line('Error message v_data ->'||v_data);
dbms_output.put_line('Error message v_msg_data ->'||v_msg_data);
dbms_output.put_line('Error message v_msg_index_out ->'||v_msg_index_out);
dbms_output.put_line('Error message p_msg_index ->'||i);
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,v_data);
END LOOP;
END IF;
WHEN OTHERS THEN
dbms_output.put_line('An error occured during conversion, SQLCODE ->'|| SQLERRM);
IF (v_msg_count >=1 ) THEN
FOR i IN 1..v_msg_count LOOP
PA_INTERFACE_UTILS_PUB.get_messages(
p_msg_count => v_msg_count,
p_msg_index => i,
p_encoded => 'F',
p_msg_data => v_msg_data,
p_data => v_data,
p_msg_index_out => v_msg_index_out);
dbms_output.put_line('Error message ->'||v_data);
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,v_data);
END LOOP;
END IF;
end; --end procedure
END xxpa_proj_conv_pkg;
* Please tell me how to assign project specific task with the newly created projects??? *
Also please tell me how to assign multiple * Project_Relationship_Code * (ex: END CLIENT, GENERAL CONTRACTOR, PRIMARY) for a particular project during project creation?Are you not storing the project number in the staging table designed for storing the task data? You can use create_project API to create the project and tasks at the same time with one single call. You may want to try that option
-
Hi
New Installation. Sharepoint 2013, Project Server 2013 and SQL Server 2008 SP1 (another box).
When I try to create Project Web App Instance, I get
Provisioning 'PWA': Post provisioning setup failed. Exception 'Microsoft.SharePoint.SPException: Failed to find Project Site object. Are there any database mounted?
Followed by:
Failed to provision site PWA with error: Microsoft.SharePoint.SPException: Failed to find Project Site object. Are there any database mounted?
Already tried reinstalling the whole farm to no avail. Farm Admin account is used to do everything within this process.
Thanks in anticipation.Hi
I got the same error when provisioning the PWA
Log Name: Application
Source: Microsoft-SharePoint Products-Project Server
Date: 8/29/2013 11:58:12 AM
Event ID: 6966
Task Category: Provisioning
Level: Error
Keywords:
User: abc\administrator
Computer: mycomputer
Description:
Provisioning 'PWA': Post provisioning setup failed. Exception 'Microsoft.SharePoint.SPException: Failed to find Project Site object. Are there any database mounted?
at Microsoft.Office.Project.Server.Administration.ProvisionFeatureEventHandler.FeatureActivated(SPFeatureReceiverProperties properties)
at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)
at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)
at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)
at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, Int32 compatibilityLevel, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean
fMarkOnly, SPFeatureDefinitionScope featdefScope)
at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope)
at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId)
at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.EnsureProvisioningFeature(SPSite site)
at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.CreateSite(ProjectProvisionSettings provset)'.
Later found that the service application where I was trying to provision the PWA, it was not associated with the web-application. -
Steps to Create Project in Solman using ASAP methology
Let me know steps to create new project in SOLMAN using ASAP road map.
Hi Gajanan,
Kindly read the below pdf
https://websmp204.sap-ag.de/~sapidb/011000358700000916032011E
Also the below one which provides more details
https://websmp204.sap-ag.de/~sapidb/011000358700000414462011E
https://websmp204.sap-ag.de/~sapidb/011000358700000414522011E
Also, roadmap needs to be assigned in solar_project_admin where you create your project as per above documents with proper flavor as shown below.
Thanks
Prakhar -
Unable to Create Project Contract from back end (R12)
Hello,
I am trying to create project contract using following code:
DECLARE
lv_return_status VARCHAR2 ( 1000 );
ln_msg_count NUMBER;
lv_msg_data VARCHAR2 ( 1000 );
l1 oke_import_contract_pub.chr_rec_type;
l2 oke_import_contract_pub.chr_rec_type;
error_message VARCHAR2 ( 3000 );
v_msg_index_out NUMBER;
BEGIN
l1.project_id := 3188;
l1.prime_k_number := 'PRJ-CNV-10016';
l1.owning_organization_id := 365;
l1.start_date := SYSDATE;
l1.inv_organization_id := 364;
l1.authoring_org_id := 82;
l1.k_type_code := 'MIPR';
l1.sts_code :='E';
l1.template_yn:='N';
l1.currency_code:='USD';
oke_import_contract_pub.create_contract_header (
p_api_version => '1.0'
, p_init_msg_list => oke_api.g_false
, p_ignore_oke_validation => 'N'
, x_return_status => lv_return_status
, x_msg_count => ln_msg_count
, x_msg_data => lv_msg_data
, p_chr_rec => l1
, x_chr_rec => l2
IF ln_msg_count > 0 THEN
FOR v_index IN 1 .. ln_msg_count
LOOP
fnd_msg_pub.get (
p_msg_index => v_index
, p_encoded => 'F'
, p_data => error_message
, p_msg_index_out => v_msg_index_out
DBMS_OUTPUT.put_line ('ERROR:' || error_message );
END LOOP;
END IF;
END;
The output results in following error: ERROR:You cannot save this entry before saving the header entry. (COL_NAME=sts_code) (CHILD_TABLE=OKC_K_HEADERS_V) (PARENT_TABLE=OKC_STATUSES_V)
Anybody has used this API or knows other method of creating oracle contract please help.
Thanks in advance.Hi,
How are you. I am currently working on the Project contracts conversion, as in the process of understanding the API's, i have provided some static data to create contract headers, lines and Billing method API's.
When i execute it, i could able to create the contract header but at line level i get the following errors . I don't understand this error "OKE_NO_PARENT_RECORD (COL_NAME=billing_method_code) (CHILD_TABLE=OKE_K_LINES_V) (PARENT_TABLE=OKE_K_BILLING_METHODS)"
Could you please help me in sending your script.
thanks
Ravi.
The original contract number:4100401462_9886546
Contract header id:875449
Contract header number:4100401462_9886546
Return Status S
l_msg_count 0
l_msg_data
Return Status S
l_msg_count 0
l_msg_data
Inventory_item_id for 5498563-79 is -->1285587
1. Value for INVENTORY_ITEM_ID is invalid.
2. OKE_NO_PARENT_RECORD (COL_NAME=billing_method_code) (CHILD_TABLE=OKE_K_LINES_V) (PARENT_TABLE=OKE_K_BILLING_METHODS)
Return Status E
l_msg_count 2
l_msg_data
Inventory_item_id for 5498563-9 is -->1285589
1. Value for INVENTORY_ITEM_ID is invalid.
2. OKE_NO_PARENT_RECORD (COL_NAME=billing_method_code) (CHILD_TABLE=OKE_K_LINES_V) (PARENT_TABLE=OKE_K_BILLING_METHODS)
Return Status E
l_msg_count 2
l_msg_data
Inventory_item_id for 7104853-1 is -->1306099
1. Value for INVENTORY_ITEM_ID is invalid.
2. OKE_NO_PARENT_RECORD (COL_NAME=billing_method_code) (CHILD_TABLE=OKE_K_LINES_V) (PARENT_TABLE=OKE_K_BILLING_METHODS)
Return Status E
l_msg_count 2
l_msg_data
PL/SQL procedure successfully completed.
The following is the test script
========================================================
declare
gr_xxoke_l_chr_rec xxoke_header%ROWTYPE;
type gt_xxoke_header is table of xxoke_header%rowtype index by binary_integer;
l_api_version number := 1.0;
l_init_msg_list varchar2(20) := oke_api.g_true;
l_ignore_oke_validation varchar2(1) := xx_common.gc_yes;
l_return_status varchar2(20) := xx_common.g_null;
l_msg_count number := xx_common.gn_zero;
l_msg_data varchar2(500) := xx_common.g_null;
--l_chr_rec xxoke_header%ROWTYPE;
l_chr_rec oke_import_contract_pub.chr_rec_type;
r_chr_rec oke_import_contract_pub.chr_rec_type;
--r_chr_rec xxoke_header%ROWTYPE;
l_cle_rec oke_import_contract_pub.cle_rec_type; --xxoke_lines%ROWTYPE;
r_cle_rec oke_import_contract_pub.cle_rec_type; --xxoke_lines%ROWTYPE;
bill_tbl OKE_IMPORT_CONTRACT_PUB.bill_tbl_type;
l_inventory_item_id number;
cursor c_head is
select
k_header_id
, contract_number_modifier
, k_number
, buy_or_sell
, currency_code
, status
, status_code
, scs_code
, start_date
, end_date
, owning_organization
, owning_organization_id
, authoring_org
--, esitmated_amount
, date_approved
, short_description
, comments
, description
--, cognomen
, template_yn
--, archived_yn
--, deleted_yn
, customer_po_number
, program_id
, program_number
, project_id
, project_description
, project_name
, project_number
, project_organization
, boa_id
, boa_number
, k_type_code
, priority_code
, prime_k_alias
, prime_k_number
, authorize_date
, authorizing_reason
, award_cancel_date
, date_definitized
, date_issued
, date_negotiated
, date_received
, date_sign_by_contractor
, date_sign_by_customer
, faa_approve_date
, faa_reject_date
, booked_flag
, open_flag
, cfe_flag
, vat_code
, country_of_origin_code
, export_flag
, human_subject_flag
, cqa_flag
, interim_rpt_req_flag
, no_competition_authorize
, penalty_clause_flag
, product_line_code
, reporting_flag
, sb_plan_req_flag
, sb_report_flag
, nte_amount
, nte_warning_flag
, bill_without_def_flag
, cas_flag
, classified_flag
, client_approve_req_flag
, cost_of_money
, dcaa_audit_req_flag
, cost_share_flag
, oh_rates_final_flag
, prop_delivery_location
, prop_due_date_time
, prop_expire_date
, copies_required
, sic_code
, tech_data_wh_rate
, progress_payment_flag
, progress_payment_liq_rate
, progress_payment_rate
, alternate_liquidation_rate
, definitized_flag
, financial_ctrl_verified_flag
, prop_due_time
, line_value_total
, undef_line_value_total
--, sfwt_flag
--,chr_id_response
--,chr_id_award
--,chr_id_renewed
--, contract_number
, chr_type
, trn_code
, authoring_org_id
, issue_or_receive
from oke_k_headers_full_v@testlink
WHERE k_header_id = 608283;
cursor c_line (l_header_id in number) is
select
k_line_id
,parent_line_id
,project_id
,project_name
,project_number
,project_organization
,task_id
,task_number
,task_name
,task_description
,billing_method_code
,inventory_item_id
,item_number
,item_description
,delivery_order_flag
,splited_flag
,priority_code
,customer_item_id
,customer_item_number
,line_quantity
,delivery_date
,unit_price
,uom_code
,billable_flag
,shippable_flag
,subcontracted_flag
,completed_flag
,nsp_flag
,app_code
,as_of_date
,authority
,country_of_origin_code
,drop_shipped_flag
,customer_approval_req_flag
,date_material_req
,inspection_req_flag
,interim_rpt_req_flag
,subj_a133_flag
,export_flag
,cfe_flag
,cop_required_flag
,export_license_num
,export_license_res
,copies_required
,cdrl_category
,data_item_name
,data_item_subtitle
,date_of_first_submission
,frequency
,requiring_office
,dcaa_audit_req_flag
,definitized_flag
,cost_of_money
,bill_undefinitized_flag
,nsn_number
,nte_warning_flag
,discount_for_payment
,financial_ctrl_flag
,c_scs_flag
,c_ssr_flag
,prepayment_amount
,prepayment_percentage
,progress_payment_flag
,progress_payment_liq_rate
,progress_payment_rate
,award_fee
,award_fee_pool_amount
,base_fee
,ceiling_cost
,ceiling_price
,labor_cost_index
,material_cost_index
,customer_percent_in_order
,cost_overrun_share_ratio
,cost_underrun_share_ratio
,date_of_price_redetermin
,estimated_total_quantity
,fee_ajt_formula
,final_fee
,fixed_quantity
,initial_fee
,initial_price
,level_of_effort_hours
,line_liquidation_rate
,maximum_fee
,maximum_quantity
,minimum_fee
,minimum_quantity
,number_of_options
,revised_price
,target_cost
,target_date_definitize
,target_fee
,target_price
,total_estimated_cost
,proposal_due_date
,cost_of_sale_rate
,line_value
,line_value_total
,undef_line_value
,undef_unit_price
,undef_line_value_total
,object_version_number
,sfwt_flag
--,chr_id
--,cle_id
--,cle_id_renewed
--,cle_id_renewed_to
,lse_id
,line_number
,display_sequence
,trn_code
--,dnz_chr_id
,comments
,boe_description
--,hidden_ind
--,price_unit_percent
--,price_negotiated
--,price_negotiated_renewed
--,price_level_ind
--,invoice_line_level_ind
--,dpas_rating
--,block23text
--,exception_yn
--,template_used
--,date_terminated
--,name
,start_date
,end_date
--,upg_orig_system_ref
--,upg_orig_system_ref_id
,attribute_category
,attribute1
,attribute2
,attribute3
,attribute4
,attribute5
,attribute6
,attribute7
,attribute8
,attribute9
,attribute10
,attribute11
,attribute12
,attribute13
,attribute14
,attribute15
--,price_type
--,currency_code
--,currency_code_renewed
,created_by
,creation_date
,last_updated_by
,last_update_login
,last_update_date
from oke_k_lines_full_v@testlink
where header_id = l_header_id
order by line_number;
l_seq_num number;
begin
for r_head in c_head loop
select xxtest_conversion_s.nextval
into l_seq_num
from dual;
l_chr_rec.contract_number:= r_head.k_number||'_'||l_seq_num;
dbms_output.put_line('The original contract number:' || l_chr_rec.contract_number );
l_chr_rec.buy_or_sell := r_head.buy_or_sell;
l_chr_rec.currency_code := r_head.currency_code;
l_chr_rec.sts_code := upper(r_head.status_code);
l_chr_rec.scs_code := r_head.scs_code;
l_chr_rec.start_date := r_head.start_date;
l_chr_rec.end_date := r_head.end_date;
l_chr_rec.inv_organization_id := 91; --r_head.owning_organization_id;
l_chr_rec.authoring_org_id := 82; --r_head.authoring_org_id;
--l_chr_rec.estimated_amount := r_head. 5000000;
l_chr_rec.date_approved := r_head.date_approved;
l_chr_rec.short_description := r_head.short_description;
l_chr_rec.comments := r_head.comments;
l_chr_rec.description := r_head.description;
--l_chr_rec.cognomen := r_head. 'Test Contract Alias';
l_chr_rec.template_yn := r_head.template_yn;
--l_chr_rec.archived_yn := r_head. 'N';
--l_chr_rec.deleted_yn := r_head. 'N';
l_chr_rec.cust_po_number := r_head.customer_po_number;
l_chr_rec.program_id := 1035; --r_head.program_id;
l_chr_rec.project_id := 158017; --r_head.project_id;
l_chr_rec.boa_id := r_head.boa_id;
l_chr_rec.k_type_code := 'Award'; ---r_head.k_type_code;
l_chr_rec.priority_code := r_head.priority_code;
l_chr_rec.prime_k_alias := r_head.prime_k_alias;
l_chr_rec.prime_k_number := r_head.prime_k_number;
l_chr_rec.authorize_date := r_head.authorize_date;
l_chr_rec.authorizing_reason := r_head.authorizing_reason;
l_chr_rec.award_cancel_date := r_head.award_cancel_date;
--l_chr_rec.award_date := r_head. sysdate - 16;
l_chr_rec.date_definitized := r_head.date_definitized;
l_chr_rec.date_issued := r_head.date_issued;
l_chr_rec.date_negotiated := r_head.date_negotiated;
l_chr_rec.date_received := r_head.date_received;
l_chr_rec.date_sign_by_contractor := r_head.date_sign_by_contractor;
l_chr_rec.date_sign_by_customer := r_head.date_sign_by_customer;
l_chr_rec.faa_approve_date := r_head.faa_approve_date;
l_chr_rec.faa_reject_date := r_head.faa_reject_date;
-- l_chr_rec.booked_flag := gr_xxoke_l_chr_rec NULL;
-- l_chr_rec.open_flag := gr_xxoke_l_chr_rec NULL;
l_chr_rec.cfe_flag := r_head.cfe_flag;
l_chr_rec.vat_code := r_head.vat_code;
l_chr_rec.country_of_origin_code := r_head.country_of_origin_code;
l_chr_rec.export_flag := r_head.export_flag;
l_chr_rec.human_subject_flag := r_head.human_subject_flag;
l_chr_rec.cqa_flag := r_head.cqa_flag;
l_chr_rec.interim_rpt_req_flag := r_head.interim_rpt_req_flag;
l_chr_rec.no_competition_authorize := r_head.no_competition_authorize;
l_chr_rec.penalty_clause_flag := r_head.penalty_clause_flag;
l_chr_rec.product_line_code := 'CONTRACT MFG'; --r_head.product_line_code;
l_chr_rec.reporting_flag := r_head.reporting_flag;
l_chr_rec.sb_plan_req_flag := r_head.sb_plan_req_flag;
l_chr_rec.sb_report_flag := r_head.sb_report_flag;
l_chr_rec.nte_amount := r_head.nte_amount;
l_chr_rec.nte_warning_flag := r_head.nte_warning_flag;
l_chr_rec.bill_without_def_flag := r_head.bill_without_def_flag;
l_chr_rec.cas_flag := r_head.cas_flag;
l_chr_rec.classified_flag := r_head.classified_flag;
l_chr_rec.client_approve_req_flag := r_head.client_approve_req_flag;
l_chr_rec.cost_of_money := r_head.cost_of_money;
l_chr_rec.dcaa_audit_req_flag := r_head.dcaa_audit_req_flag;
l_chr_rec.cost_share_flag := r_head.cost_share_flag;
l_chr_rec.oh_rates_final_flag := r_head.oh_rates_final_flag;
l_chr_rec.prop_delivery_location := r_head.prop_delivery_location;
l_chr_rec.prop_due_date_time := r_head.prop_due_date_time;
l_chr_rec.prop_expire_date := r_head.prop_expire_date;
l_chr_rec.copies_required := r_head.copies_required;
l_chr_rec.sic_code := r_head.sic_code;
l_chr_rec.tech_data_wh_rate := r_head.tech_data_wh_rate;
l_chr_rec.progress_payment_flag := r_head.progress_payment_flag;
l_chr_rec.progress_payment_liq_rate := r_head.progress_payment_liq_rate;
l_chr_rec.progress_payment_rate := r_head.progress_payment_rate;
l_chr_rec.alternate_liquidation_rate := r_head.alternate_liquidation_rate;
-- l_chr_rec.prop_due_time := r_head. NULL;
l_chr_rec.definitized_flag := r_head.definitized_flag;
l_chr_rec.financial_ctrl_verified_flag := r_head.financial_ctrl_verified_flag;
--l_chr_rec.cost_of_sale_rate := r_head. 0.1;
oke_import_contract_pub.create_contract_header( p_api_version => l_api_version
, p_init_msg_list => l_init_msg_list
, p_ignore_oke_validation => l_ignore_oke_validation
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, x_msg_data => l_msg_data
, p_chr_rec => l_chr_rec
, x_chr_rec => r_chr_rec
FOR I IN 1..l_msg_count
LOOP
dbms_output.put_line ( I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
END LOOP;
dbms_output.put_line('Contract header id:'|| r_chr_rec.k_header_id);
dbms_output.put_line('Contract header number:'|| r_chr_rec.contract_number);
dbms_output.put_line('Return Status '||l_return_status);
dbms_output.put_line('l_msg_count '||l_msg_count);
dbms_output.put_line('l_msg_data '||l_msg_data);
bill_tbl(1).k_header_id := r_chr_rec.k_header_id;
bill_tbl(1).billing_method_code := 'Mixed';
--bill_tbl(2).k_header_id := r_chr_rec.k_header_id;
--bill_tbl(2).billing_method_code := 'Cost Plus';
OKE_IMPORT_CONTRACT_PUB.define_billing_methods(p_api_version => l_api_version
,p_init_msg_list => l_init_msg_list
,x_return_status => l_return_status
,x_msg_count => l_msg_count
,x_msg_data => l_msg_data
,p_bill_tbl => bill_tbl
FOR I IN 1..l_msg_count
LOOP
dbms_output.put_line ( I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
END LOOP;
dbms_output.put_line('Return Status '||l_return_status);
dbms_output.put_line('l_msg_count '||l_msg_count);
dbms_output.put_line('l_msg_data '||l_msg_data);
for r_line in c_line (r_head.k_header_id) loop
--------CREATE A TOP LINE -----------------
-- validate inventory item
begin
select inventory_item_id
into l_inventory_item_id
from mtl_system_items_b
where segment1 = r_line.item_number
and organization_id = 91;
exception
when others then
dbms_output.put_line('Error in deriving the inventory_item_id:'|| substr(sqlerrm,1,500));
end;
dbms_output.put_line('Inventory_item_id for '||r_line.item_number|| ' is -->' ||l_inventory_item_id);
l_cle_rec.k_line_id := null;
l_cle_rec.parent_line_id := null;
l_cle_rec.project_id := 158017; --r_line.project_id;
l_cle_rec.task_id := null; --r_line.task_id;
l_cle_rec.billing_method_code := 'Mixed';
l_cle_rec.inventory_item_id := l_inventory_item_id;
l_cle_rec.delivery_order_flag := r_line.delivery_order_flag;
l_cle_rec.splited_flag := r_line.splited_flag;
l_cle_rec.priority_code := r_line.priority_code;
l_cle_rec.customer_item_id := r_line.customer_item_id;
l_cle_rec.customer_item_number := r_line.customer_item_number;
l_cle_rec.line_quantity := r_line.line_quantity;
l_cle_rec.delivery_date := r_line.delivery_date;
l_cle_rec.unit_price := r_line.unit_price;
l_cle_rec.uom_code := r_line.uom_code;
l_cle_rec.billable_flag := r_line.billable_flag;
l_cle_rec.shippable_flag := r_line.shippable_flag;
l_cle_rec.subcontracted_flag := r_line.subcontracted_flag;
l_cle_rec.completed_flag := r_line.completed_flag;
l_cle_rec.nsp_flag := r_line.nsp_flag;
l_cle_rec.app_code := r_line.app_code;
l_cle_rec.as_of_date := r_line.as_of_date;
l_cle_rec.authority := r_line.authority;
l_cle_rec.country_of_origin_code := r_line.country_of_origin_code;
l_cle_rec.drop_shipped_flag := r_line.drop_shipped_flag;
l_cle_rec.customer_approval_req_flag := r_line.customer_approval_req_flag;
l_cle_rec.date_material_req := r_line.date_material_req;
l_cle_rec.inspection_req_flag := r_line.inspection_req_flag;
l_cle_rec.interim_rpt_req_flag := r_line.interim_rpt_req_flag;
l_cle_rec.subj_a133_flag := r_line.subj_a133_flag;
l_cle_rec.export_flag := r_line.export_flag;
l_cle_rec.cfe_req_flag := r_line.cfe_flag;
l_cle_rec.cop_required_flag := r_line.cop_required_flag;
l_cle_rec.export_license_num := r_line.export_license_num;
l_cle_rec.export_license_res := r_line.export_license_res;
l_cle_rec.copies_required := r_line.copies_required;
l_cle_rec.cdrl_category := r_line.cdrl_category;
l_cle_rec.data_item_name := r_line.data_item_name;
l_cle_rec.data_item_subtitle := r_line.data_item_subtitle;
l_cle_rec.date_of_first_submission := r_line.date_of_first_submission;
l_cle_rec.frequency := r_line.frequency;
l_cle_rec.requiring_office := r_line.requiring_office;
l_cle_rec.dcaa_audit_req_flag := r_line.dcaa_audit_req_flag;
l_cle_rec.definitized_flag := r_line.definitized_flag;
l_cle_rec.cost_of_money := r_line.cost_of_money;
l_cle_rec.bill_undefinitized_flag := r_line.bill_undefinitized_flag;
l_cle_rec.nsn_number := r_line.nsn_number;
l_cle_rec.nte_warning_flag := r_line.nte_warning_flag;
l_cle_rec.discount_for_payment := r_line.discount_for_payment;
l_cle_rec.financial_ctrl_flag := r_line.financial_ctrl_flag;
l_cle_rec.c_scs_flag := r_line.c_scs_flag;
l_cle_rec.c_ssr_flag := r_line.c_ssr_flag;
l_cle_rec.prepayment_amount := r_line.prepayment_amount;
l_cle_rec.prepayment_percentage := r_line.prepayment_percentage;
l_cle_rec.progress_payment_flag := r_line.progress_payment_flag;
l_cle_rec.progress_payment_liq_rate := r_line.progress_payment_liq_rate;
l_cle_rec.progress_payment_rate := r_line.progress_payment_rate;
l_cle_rec.award_fee := r_line.award_fee;
l_cle_rec.award_fee_pool_amount := r_line.award_fee_pool_amount;
l_cle_rec.base_fee := r_line.base_fee;
l_cle_rec.ceiling_cost := r_line.ceiling_cost;
l_cle_rec.ceiling_price := r_line.ceiling_price;
l_cle_rec.labor_cost_index := r_line.labor_cost_index;
l_cle_rec.material_cost_index := r_line.material_cost_index;
l_cle_rec.customers_percent_in_order := r_line.cost_underrun_share_ratio;
l_cle_rec.cost_overrun_share_ratio := r_line.date_of_price_redetermin;
l_cle_rec.cost_underrun_share_ratio := r_line.cost_underrun_share_ratio;
l_cle_rec.date_of_price_redetermin := r_line.date_of_price_redetermin;
l_cle_rec.estimated_total_quantity := r_line.estimated_total_quantity;
l_cle_rec.fee_ajt_formula := r_line.fee_ajt_formula;
l_cle_rec.final_fee := r_line.final_fee;
--l_cle_rec.final_pft_ajt_formula := r_line.final_pft_ajt_formula;
--l_cle_rec.fixed_fee := r_line.fixed_fee;
l_cle_rec.fixed_quantity := r_line.fixed_quantity;
l_cle_rec.initial_fee := r_line.initial_fee;
l_cle_rec.initial_price := r_line.initial_price;
l_cle_rec.level_of_effort_hours := r_line.level_of_effort_hours;
l_cle_rec.line_liquidation_rate := r_line.line_liquidation_rate;
l_cle_rec.maximum_fee := r_line.maximum_fee;
l_cle_rec.maximum_quantity := r_line.maximum_quantity;
l_cle_rec.minimum_fee := r_line.minimum_fee;
l_cle_rec.minimum_quantity := r_line.minimum_quantity;
l_cle_rec.number_of_options := r_line.number_of_options;
l_cle_rec.revised_price := r_line.revised_price;
l_cle_rec.target_cost := r_line.target_cost;
l_cle_rec.target_date_definitize := r_line.target_date_definitize;
l_cle_rec.target_fee := r_line.target_fee;
l_cle_rec.target_price := r_line.target_price;
l_cle_rec.total_estimated_cost := r_line.total_estimated_cost;
l_cle_rec.proposal_due_date := r_line.proposal_due_date;
l_cle_rec.cost_of_sale_rate := r_line.cost_of_sale_rate;
l_cle_rec.line_value := r_line.line_value;
l_cle_rec.line_value_total := r_line.line_value_total;
l_cle_rec.UNDEF_UNIT_PRICE := r_line.UNDEF_UNIT_PRICE;
l_cle_rec.UNDEF_LINE_VALUE := r_line.UNDEF_LINE_VALUE;
l_cle_rec.UNDEF_LINE_VALUE_TOTAL := r_line.UNDEF_LINE_VALUE_TOTAL;
l_cle_rec.object_version_number := r_line.object_version_number;
l_cle_rec.sfwt_flag := r_line.sfwt_flag;
l_cle_rec.chr_id := r_chr_rec.k_header_id;
--l_cle_rec.cle_id := r_line.cle_id;
--l_cle_rec.cle_id_renewed := r_line.cle_id_renewed;
--l_cle_rec.cle_id_renewed_to := r_line.cle_id_renewed_to;
l_cle_rec.lse_id := r_line.lse_id;
l_cle_rec.line_number := r_line.line_number;
l_cle_rec.sts_code := r_head.status_code; --r_line.sts_code;
l_cle_rec.display_sequence := r_line.display_sequence;
l_cle_rec.trn_code := r_line.trn_code;
l_cle_rec.dnz_chr_id := r_chr_rec.k_header_id;
l_cle_rec.comments := r_line.comments;
l_cle_rec.item_description := r_line.item_description;
l_cle_rec.oke_boe_description := r_line.boe_description;
--l_cle_rec.hidden_ind := r_line.hidden_ind;
--l_cle_rec.price_unit := r_line.price_unit;
--l_cle_rec.price_unit_percent := r_line.price_unit_percent;
--l_cle_rec.price_negotiated := r_line.price_negotiated;
--l_cle_rec.price_negotiated_renewed := r_line.price_negotiated_renewed;
--l_cle_rec.price_level_ind := r_line.price_level_ind;
--l_cle_rec.invoice_line_level_ind := r_line.invoice_line_level_ind;
--l_cle_rec.dpas_rating := r_line.dpas_rating;
--l_cle_rec.block23text := r_line.block23text;
l_cle_rec.exception_yn := 'N'; --r_line.exception_yn;
--l_cle_rec.template_used := r_line.template_used;
--l_cle_rec.date_terminated := r_line.date_terminated;
--l_cle_rec.name := r_line.name;
l_cle_rec.start_date := r_line.start_date;
l_cle_rec.end_date := r_line.end_date;
--l_cle_rec.upg_orig_system_ref := r_line.upg_orig_system_ref;
--l_cle_rec.upg_orig_system_ref_id := r_line.upg_orig_system_ref_id;
l_cle_rec.attribute_category := r_line.attribute_category;
l_cle_rec.attribute1 := r_line.attribute1;
l_cle_rec.attribute2 := r_line.attribute2;
l_cle_rec.attribute3 := r_line.attribute3;
l_cle_rec.attribute4 := r_line.attribute4;
l_cle_rec.attribute5 := r_line.attribute5;
l_cle_rec.attribute6 := r_line.attribute6;
l_cle_rec.attribute7 := r_line.attribute7;
l_cle_rec.attribute8 := r_line.attribute8;
l_cle_rec.attribute9 := r_line.attribute9;
l_cle_rec.attribute10 := r_line.attribute10;
l_cle_rec.attribute11 := r_line.attribute11;
l_cle_rec.attribute12 := r_line.attribute12;
l_cle_rec.attribute13 := r_line.attribute13;
l_cle_rec.attribute14 := r_line.attribute14;
l_cle_rec.attribute15 := r_line.attribute15;
--l_cle_rec.price_type := r_line.price_type;
--l_cle_rec.currency_code := r_line.currency_code;
--l_cle_rec.currency_code_renewed := r_line.currency_code_renewed;
l_cle_rec.created_by := r_line.created_by;
l_cle_rec.creation_date := r_line.creation_date;
l_cle_rec.last_updated_by := r_line.last_updated_by;
l_cle_rec.last_update_login := r_line.last_update_login;
l_cle_rec.last_update_date := r_line.last_update_date;
oke_import_contract_pub.create_contract_line( p_api_version => l_api_version
,p_init_msg_list => l_init_msg_list
,x_return_status => l_return_status
,x_msg_count => l_msg_count
,x_msg_data => l_msg_data
,p_cle_rec => l_cle_rec
,x_cle_rec => r_cle_rec
FOR I IN 1..l_msg_count
LOOP
dbms_output.put_line ( I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
END LOOP;
dbms_output.put_line('Return Status '||l_return_status);
dbms_output.put_line('l_msg_count '||l_msg_count);
dbms_output.put_line('l_msg_data '||l_msg_data);
end loop;
end loop;
end;
============================================================================================= -
Getting error message after creating project ess~org from ESS track
Hi All,
Our basis team just now implemented the track for ESS and MSS.So we need to sync all application from DTR.
We are facing problem with one Dc essOrg.I have created project essOrg from ESS track in inactive DC of development configuration.Build of DC is successful,where as in the Task tab its showing below error message:
" Tree TreeCont [dataSource]: Context element and property are not compatible Orgchart.wdview NWI_HR1_Dessorg~sap.com/src/packages/com/sap/xss/hr/org/chart "
I have done the follwing steps :
1.I have close the project.Then remove it from client.Then close the NWDs and reopen it.Still the same error we are getting after creatig project from the track.
2.Even we tried to repair the DC.Its asking for check out.Then after creating activity its showing an error pop up message "org.eclipse.jdt.core.JavaModelException: Classpath contains duplicate entry: D:Documents and settings/susmita.panigrahi/.dtc/2/DCs/sap.com/pcui_gp/xssfpm/_comp/gen/default/public/FloorplanManager/lib/java/sap.compcui_gpxssfpm~FloorplanManager.jar "
3.I have open the OrgChart view of VcOrgChart Component in NWDs.I have found that the data source property of Tree node is showing red cross mark with name OrgTab(name of context node).I have tried to select another node also other than the context node OrgTab , getting message "Select an attribute of Type"
Can any body tell me how to solve the error"Context element and property are not compatible " coming for DC ess~Org?
Thanks
SusmitaIf you have created other projects and they are working fine? Standard application should work without any modifications, so you may like to revert all the changes(before they cause further problem).
Well you may like to clean up your directory , unless you have loads of application checked out.. Remove all applications from this particular Track, ensure that everytime you delete project from Studio , select to remove code from directory.
This is likely that you are working on applications from two tracks, where version of FPM component is not the same. I always prefer to work one at a time, and i remove other track if i am done with application(This is lame way of handling it, but i prefer this.. saves loads of time to clean/repair)
Also hope you are using compatible version of Studio.
Rgds -
Getting error after creating project of DC ess~Org from ESS Track
Hi All,
Our basis team just now implemented the track for ESS and MSS.So we need to sync all application from DTR.
We are facing problem with one Dc essOrg.I have created project essOrg from ESS track in inactive DC of development configuration.Build of DC is successful,where as in the Task tab its showing below error message:
" Tree TreeCont dataSource: Context element and property are not compatible Orgchart.wdview NWI_HR1_Dessorg~sap.com/src/packages/com/sap/xss/hr/org/chart "
I have done the follwing steps :
1.I have close the project.Then remove it from client.Then close the NWDs and reopen it.Still the same error we are getting after creatig project from the track.
2.Even we tried to repair the DC.Its asking for check out.Then after creating activity its showing an error pop up message "org.eclipse.jdt.core.JavaModelException: Classpath contains duplicate entry: D:Documents and settings/susmita.panigrahi/.dtc/2/DCs/sap.com/pcui_gp/xssfpm/_comp/gen/default/public/FloorplanManager/lib/java/sap.compcui_gpxssfpm~FloorplanManager.jar "
3.I have open the OrgChart view of VcOrgChart Component in NWDs.I have found that the data source property of Tree node is showing red cross mark with name OrgTab(name of context node).I have tried to select another node also other than the context node OrgTab , getting message "Select an attribute of Type"
Can any body tell me how to solve the error"Context element and property are not compatible " coming for DC ess~Org?
Thanks
SusmitaHi,
after creating the project, dont build it, close the project and close you NWDS then open the NWDS ,open the project and build, it will work ithink,
i faced the same problem, try this may be it weill work.
dont remove from client, only close the project.,
Cheers,
Apparao -
LSMW for creating project CJ20N
Hi,
I need to create projects by using transaction cj20n, I tried to find any standard sap project/bapi/idoc that I can use in my LSMW to create the project, but could not find.
Has anyone aware of any standard SAP technique to use in LSMW for creating the project by transaction CJ20N. I am just trying not to create custom recording for the conversion.
Thanks,I have a program for inserting WBS by Batch-input.
report Z_PS_BI_0001
no standard page heading
line-size 80.
*------------------------------- TABLES -------------------------------*
tables : proj , " Définition de projet
prps , " Elément d'OTP - données de base
jest , " Statut individuel par objet
tj02t . " Textes de statuts système
*-------------------------------- DATA --------------------------------*
types : begin of type_prps ,
pspnr like prps-pspnr ,
objnr like prps-objnr ,
posid like prps-posid ,
psphi like prps-psphi ,
pspid like proj-pspid ,
end of type_prps.
data itab_prps type sorted table of type_prps
with unique key pspnr
with header line
initial size 30000.
data : bdc_tab type standard table of bdcdata
with header line .
*------------------------ OPTIONS DE SELECTION ------------------------*
selection-screen begin of block b1 with frame title text-t01.
parameters : p_nom(12) type c
default 'Z_'
obligatory ,
p_kokrs like proj-vkokr
obligatory,
p_bukrs like bsis-bukrs
obligatory .
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-t02.
select-options : s_pspnr for proj-pspnr ,
s_posid for prps-posid .
selection-screen end of block b2.
*-------------------------------- MAIN --------------------------------*
start-of-selection.
* Recherche des données.
perform p_recherche_donnees.
* Création du dossier batch-input
perform p_creation_dossier.
* Edition du compte rendu d'execution.
perform p_edition.
end-of-selection.
* Procédure P_RECHERCHE_DONNEES. *
* Recherche des données nécessaires au programme. *
form p_recherche_donnees.
types : begin of type_prhi ,
posnr like prhi-posnr ,
up like prhi-up ,
end of type_prhi.
data itab_prhi type sorted table of type_prhi
with non-unique key up
with header line
initial size 30000.
data : begin of itab_otp occurs 100 ,
pspnr like prps-pspnr , " OTP
pspn like proj-pspnr , " Projet
posid like prps-posid , " Texte OTP
objnr like prps-objnr , " Objet
end of itab_otp.
data : begin of itab_tmp_otp_1 occurs 100 ,
posnr like prhi-posnr ,
up like prhi-up ,
end of itab_tmp_otp_1.
data : begin of itab_tmp_otp_2 occurs 100 ,
pspnr like itab_otp-pspnr ,
end of itab_tmp_otp_2.
data : v_ligne(9) type n.
* Liste tout les elements d'OTP de niveau 2 pour les projets
* selectionnees.
select b~pspnr a~pspnr b~posid b~objnr
into table itab_otp
from proj as a
inner join prps as b
on b~psphi eq a~pspnr
where a~pspnr in s_pspnr
and a~profl eq '0000010'
and a~vkokr eq p_kokrs
and b~posid in s_posid
and b~stufe eq '2'
and b~pkokr eq p_kokrs.
* Tri de la table
sort itab_otp.
* Chargement de la pseudo PRHI
select posnr up
into corresponding fields of table itab_prhi
from prhi
client specified
where mandt eq sy-mandt
and up ne space.
* Extrait la liste des OTP a rechercher.
append lines of itab_otp to itab_tmp_otp_2.
* Tri
sort itab_tmp_otp_2.
* Créé la liste des OTPs dépendant des OTPs de niveaux 2.
loop at itab_tmp_otp_2.
loop at itab_prhi
where up = itab_tmp_otp_2-pspnr.
move : itab_prhi-posnr to itab_tmp_otp_1-posnr ,
itab_prhi-up to itab_tmp_otp_1-up ,
itab_prhi-posnr to itab_tmp_otp_2-pspnr .
append : itab_tmp_otp_1, itab_tmp_otp_2.
endloop.
delete itab_tmp_otp_2.
endloop.
* Recherche si plus petit niveau.
loop at itab_tmp_otp_1.
read table itab_prhi
with key up = itab_tmp_otp_1-posnr.
if sy-subrc eq space.
delete itab_tmp_otp_1.
endif.
endloop.
sort itab_tmp_otp_1 by posnr.
* Recherche de l'objet pour chacun des OTPs trouvés.
loop at itab_tmp_otp_1.
select single objnr posid psphi
into (itab_prps-objnr, itab_prps-posid, itab_prps-psphi)
from prps
where pspnr eq itab_tmp_otp_1-posnr.
if sy-subrc eq space.
move itab_tmp_otp_1-posnr to itab_prps-pspnr.
append itab_prps.
endif.
endloop.
* Recherche si les OTPs ont bien le statut Budget seul.
loop at itab_prps.
select single *
from jest
where objnr eq itab_prps-objnr
and stat eq 'E0002'
and inact eq ' '.
if sy-subrc ne space.
delete itab_prps.
endif.
endloop.
* Recherche texte projet.
loop at itab_prps.
select single pspid
into itab_prps-pspid
from proj
where pspnr eq itab_prps-psphi.
if sy-subrc eq space.
modify itab_prps.
endif.
endloop.
* Compte le nombre de ligne à traiter.
describe table itab_prps lines v_ligne.
if v_ligne eq space.
write : /1 'Aucune donnée à traiter.'.
stop.
endif.
endform. " P_RECHERCHE_DONNEES.
* Procédure P_CREATION_DOSSIER. *
* Création du dossier batch-input. *
form p_creation_dossier.
data : v_estat type j_estat.
* Recherche de la position du statut Budget seul.
select min( estat )
into v_estat
from tj30t
where stsma eq '00000001'
and spras eq sy-langu.
if v_estat ne 'E0002'.
write : /1 'Customizing statut modifié ! Programme inutilisable !'.
stop.
endif.
* Ouverture du dossier batch-input.
perform open_bdc using p_nom.
* Boucle sur la table des données.
loop at itab_prps.
* Ecran de saisie Projet / OTP
perform bdc_dynpro using 'SAPLCJWB'
'0100'.
perform bdc_field using 'BDC_OKCODE'
'=LETB'.
perform bdc_field using '*PROJ-PSPID'
itab_prps-pspid.
perform bdc_field using '*PRPS-POSID'
itab_prps-posid.
* Sélectionne la première ligne et demande les statuts utilisateurs.
perform bdc_dynpro using 'SAPLCJWB'
'0901'.
perform bdc_field using 'BDC_OKCODE'
'=STAT'.
perform bdc_field using 'RCJ_MARKL-MARK(01)'
'X'.
* Déselectionne la zone Budget/Seul
perform bdc_dynpro using 'SAPLBSVA'
'0300'.
perform bdc_field using 'BDC_OKCODE'
'=BACK'.
perform bdc_field using 'J_STMAINT-ANWSO(01)'
* Enregistre et sort.
perform bdc_dynpro using 'SAPLCJWB'
'0901'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
* Enregistrement de la transaction.
perform insert_bdc using 'CJ02'.
endloop.
* Fermeture du dossier batch-input.
perform close_bdc.
endform. " P_CREATION_DOSSIER
* Procédure P_EDITION. *
* Edition du compte rendu d'éxecution. *
form p_edition.
write : /1 'Compte rendu de la création du dossier Batch-Input.'.
skip 2.
write : /1 'Dossier Batch-Input' ,
p_nom ,
'créé avec succés.'.
skip 4.
write : /1 'Liste des OTPs que le Batch-Input devrait modifier.'.
loop at itab_prps.
write : /5 itab_prps-posid.
endloop.
endform. " P_EDITION.
* Form OPEN_BDC *
* Ouverture du dossier Batch-Input. *
form open_bdc using v_nom_dossier.
call function 'BDC_OPEN_GROUP'
exporting
client = sy-mandt " Numéro de mandant
group = v_nom_dossier " Nom dossier batch
keep = 'X' " Code
user = sy-uname " Nom utilisateur
exceptions
client_invalid = 1
destination_invalid = 2
group_invalid = 3
group_is_locked = 4
holddate_invalid = 5
internal_error = 6
queue_error = 7
running = 8
system_lock_error = 9
user_invalid = 10
others = 11.
if sy-subrc ne 0.
write : /1 'Impossible de créer le dossier batch-input.' ,
/1 'Erreur :' , sy-subrc.
stop.
endif.
refresh bdc_tab.
clear bdc_tab.
exit.
endform. " OPEN_BDC
* Form CLOSE_BDC *
* Fermeture du dossier BTCI *
form close_bdc.
call function 'BDC_CLOSE_GROUP'
exceptions
not_open = 1
queue_error = 2
others = 3.
if sy-subrc ne 0.
write : /1 'Impossible de fermer le dossier batch-input.' ,
/1 'Erreur :' , sy-subrc.
endif.
endform. " CLOSE_BDC
* Form BDC_DYNPRO *
* Alimentation de la ligne d'entête de BDCTAB *
form bdc_dynpro using value(progname)
value(dynpronr).
* Efface la header-line.
clear bdc_tab.
* Insertion des valeurs.
bdc_tab-program = progname.
bdc_tab-dynpro = dynpronr.
bdc_tab-dynbegin = 'X'.
* Enregistrement des valeurs.
append bdc_tab.
endform. " BDC_DYNPRO
* Form BDC_FIELD *
* Traitement des enregistrements de la structure BDCTAB *
* --> FIELDNAME Nom du champ *
* --> FIELDVALUE Valeur du champ *
form bdc_field using value(fieldname) value(fieldvalue).
* Efface la header-line.
clear bdc_tab.
* Insertion des valeurs.
bdc_tab-fnam = fieldname.
bdc_tab-fval = fieldvalue.
* Enregistrement des valeurs.
append bdc_tab.
endform. " BDC_FIELD
* Form BDC_CURSOR *
* Positionnement du curseur sur un champ particulier *
form bdc_cursor using value(fieldname) value(fieldvalue).
* Efface la header-line.
clear bdc_tab.
* Insertion des valeurs.
bdc_tab-fnam = fieldname.
bdc_tab-fval = fieldvalue.
* Enregistrement des valeurs.
append bdc_tab.
endform. " BDC_CURSOR
* Form INSERT_BDC *
* Insertion dans le dossier BTCI *
* Attention : la transaction est codée en dur *
form insert_bdc using t_code.
call function 'BDC_INSERT'
exporting
tcode = t_code
tables
dynprotab = bdc_tab
exceptions
internal_error = 1
not_open = 2
queue_error = 3
tcode_invalid = 4
printing_invalid = 5
posting_invalid = 6
others = 7.
if sy-subrc ne 0.
write : /1 text-003 ,
/1 'Erreur :' , sy-subrc.
endif.
refresh bdc_tab.
clear bdc_tab.
endform. " INSERT_BDC
comment in french -
Error when create project definition and 2 wbs by bapi BAPI_PROJECT_MAINTAI
Hello everyone,
I have to create project definition and 2 wbs, I use function BAPI_PROJECT_MAINTAI but I have the error:
"WBS element 0033.3332.01.R already exists" but that wbs it's created.
This is my code.
data:
I_WBS_ELEMENT_TABLE type BAPI_WBS_ELEMENT occurs 0 with header line,
I_WBS_ELEMENT_TABLE_UPDATE type BAPI_WBS_ELEMENT_UPDATE occurs 0 with header line,
I_PROJECT_DEFINITION like BAPI_PROJECT_DEFINITION,
I_PROJECT_DEFINITION_UPD like BAPI_PROJECT_DEFINITION_UP,
I_METHOD_PROJECT type BAPI_METHOD_PROJECT occurs 0 with header line,
E_MESSAGE_TABLE like BAPI_METH_MESSAGE occurs 0 with header line,
RETURN type BAPIRETURN1,
lv_index LIKE bapi_method_project-refnumber.
lv_index = 1.
I_METHOD_PROJECT-OBJECTTYPE = 'ProjectDefinition'.
I_METHOD_PROJECT-METHOD = 'Create'.
I_METHOD_PROJECT-OBJECTKEY = '0033.3332'.
I_METHOD_PROJECT-REFNUMBER = lv_index.
append I_METHOD_PROJECT.
lv_index = lv_index + 1.
I_METHOD_PROJECT-OBJECTTYPE = 'WBS-Element'.
I_METHOD_PROJECT-METHOD = 'Create'.
I_METHOD_PROJECT-OBJECTKEY = '0033.3332.01'.
I_METHOD_PROJECT-REFNUMBER = lv_index.
append I_METHOD_PROJECT.
lv_index = lv_index + 1.
clear I_METHOD_PROJECT.
I_METHOD_PROJECT-OBJECTTYPE = 'WBS-Element'.
I_METHOD_PROJECT-METHOD = 'Create'.
I_METHOD_PROJECT-OBJECTKEY = '0033.3332.01.R'.
I_METHOD_PROJECT-REFNUMBER = lv_index.
append I_METHOD_PROJECT.
clear I_METHOD_PROJECT.
I_METHOD_PROJECT-OBJECTTYPE = space.
I_METHOD_PROJECT-METHOD = 'Save'.
I_METHOD_PROJECT-OBJECTKEY = space.
I_METHOD_PROJECT-REFNUMBER = space.
append I_METHOD_PROJECT.
I_PROJECT_DEFINITION-PROJECT_DEFINITION = '0033.3332'.
I_PROJECT_DEFINITION-DESCRIPTION = 'Training project'.
I_PROJECT_DEFINITION-PROJECT_PROFILE = 'ZAF0001'.
I_PROJECT_DEFINITION-COMP_CODE = '0033'.
I_PROJECT_DEFINITION-RESPONSIBLE_NO = 1.
I_PROJECT_DEFINITION-APPLICANT_NO = 1.
I_PROJECT_DEFINITION-PLANT = '033A'.
I_WBS_ELEMENT_TABLE-PROJECT_DEFINITION = '0033.3332'.
I_WBS_ELEMENT_TABLE-WBS_ELEMENT = '0033.3332.01'.
I_WBS_ELEMENT_TABLE-DESCRIPTION = 'WBS 1'.
I_WBS_ELEMENT_TABLE-RESPONSIBLE_NO = 1.
I_WBS_ELEMENT_TABLE-APPLICANT_NO = 1.
I_WBS_ELEMENT_TABLE-COMP_CODE = '0033'.
I_WBS_ELEMENT_TABLE-PROFIT_CTR = '0033A99999'.
I_WBS_ELEMENT_TABLE-PLANT = '033A'.
append i_wbs_element_table.
clear I_WBS_ELEMENT_TABLE.
I_WBS_ELEMENT_TABLE-PROJECT_DEFINITION = '0033.3332'.
I_WBS_ELEMENT_TABLE-WBS_ELEMENT = '0033.3332.01.R'.
I_WBS_ELEMENT_TABLE-DESCRIPTION = 'WBS 2'.
I_WBS_ELEMENT_TABLE-RESPONSIBLE_NO = 1.
I_WBS_ELEMENT_TABLE-APPLICANT_NO = 1.
I_WBS_ELEMENT_TABLE-COMP_CODE = '0033'.
I_WBS_ELEMENT_TABLE-PROFIT_CTR = '0033A99999'.
I_WBS_ELEMENT_TABLE-PLANT = '033A'.
append i_wbs_element_table.
PERFORM fill_update_flags USING 'BAPI_PROJECT_DEFINITION_UP'
CHANGING I_PROJECT_DEFINITION_UPD.
PERFORM fill_update_flags USING 'BAPI_WBS_ELEMENT_UPDATE'
CHANGING I_WBS_ELEMENT_TABLE_UPDATE.
append I_WBS_ELEMENT_TABLE_UPDATE.
append I_WBS_ELEMENT_TABLE_UPDATE.
CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
EXPORTING
I_PROJECT_DEFINITION = I_PROJECT_DEFINITION
I_PROJECT_DEFINITION_UPD = I_PROJECT_DEFINITION_UPD
TABLES
I_METHOD_PROJECT = I_METHOD_PROJECT
I_WBS_ELEMENT_TABLE_UPDATE = I_WBS_ELEMENT_TABLE_UPDATE[]
I_WBS_ELEMENT_TABLE = I_WBS_ELEMENT_TABLE[]
E_MESSAGE_TABLE = E_MESSAGE_TABLE
write: / 'Finish'.
*& Form FILL_UPDATE_FLAGS
FORM fill_update_flags USING value(p_ddic_name)
CHANGING p_struc_upd.
DATA: lt_dd03l LIKE dd03l OCCURS 0,
ls_dd03l LIKE dd03l.
DATA: s(40), c(40), sc(80) TYPE c.
FIELD-SYMBOLS: <s>, <c>, <sc> TYPE ANY.
TRANSLATE p_ddic_name TO UPPER CASE.
SELECT * FROM dd03l INTO TABLE lt_dd03l WHERE tabname = p_ddic_name.
s = 'P_STRUC_UPD'.
ASSIGN (s) TO <s>.
LOOP AT lt_dd03l INTO ls_dd03l.
ASSIGN ls_dd03l-fieldname TO <c>.
ASSIGN COMPONENT <c> OF STRUCTURE <s> TO <sc>.
<sc> = 'X'.
ENDLOOP.
ENDFORM. " FILL_UPDATE_FLAGS
Please help me!
Thank you!
Edited by: kishan P on Sep 10, 2010 9:37 AMHi,
Please try creating the project definition and then call the FM again to create the WBS.
http://help.sap.com/erp2005_ehp_04/helpdata/EN/4c/226a7246e611d189470000e829fbbd/frameset.htm
Hope it helps.
Sujay -
Yesterday I tried to create a new C++ project, but Xcode gave me a cannot-create-project error. When I looked at where the project folder was supposed to be, though, it was there and it seemed fine, so I tried to open it, but Xcode said that the project file couldn't be parsed. Today the option to create a C++ project has disappeared completely, though when I look in ~/Library/Application Support/Developer/Shared/Xcode/Project Templates/Application, the template is still there. What's going on and how do I fix this?
OMG so many questions lol
K T asked:
What version Xcode?
v3.2.5, Intel / 64-bit
K T asked:
What is the path to the installed location?
/Developer/Applications/Xcode.app . I think it's the default; it should be in any case.
K T asked:
Did you move anything outside of /Developer?
Um, no? I did create custom project and file templates, but those are at ~/Library/Application Support/Developer/Shared/Xcode/Project Templates and ~/Library/[…]/Xcode/File Templates , respectively. /Developer should be at its default state plus updates. If need be, I can Time Machine it back, or even nuke it and reinstall from the Snow Leopard install disc.
K T asked:
How much free space on your HD?
Plenty. 8.71 gigs according to the Finder; the readout seems to be staying the same, but it always varies a bit from my experience due to scheduled syncs, etc., so assume ~8 gigs to be safe.
K T asked:
Using FileVault?
Not on this computer. I do sync most of my entire home folder (Developer folder included) with its counterpart on two other computers (of which one uses FileVault) , however.
One more thing to note is that I did edit the .xcodeproj file in the template a bit. However, I tested it several times while I was editing it, and once more afterwards by creating a new project. All of these tests worked fine, and I still have that project created with the template with the modified .xcodeproj file. There are no problems with parsing any of the files. I thought one of my automatic syncs might have corrupted the template .xcodeproj file, so I Time Machine'd it back from a known-good copy, and tried to create a project, but got the same error. -
Hi,
For an MSS application, whenever i try to create project, its failing to create a WD project but i can see the project in Navigator. But it's working good for ESS where in when i Create Project from DC in WD Explorer.
The build is failing i guess but i have idea for what reason it's failing.
I've tried to re-import the track but still am facing the same issue.
Please help.
Thanks,
Santosh.The error message Log file has is:
Feb 25, 2008 1:40:32 PM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: mss/ecm/cfg: Build failed for sap.com/mss/ecm/cfg(sap.com_SAP_MSS_1) in variant "default": The Build terminated with errors
Build log -
Development Component Build (2008-02-25 13:39:23)
Component name: mss/ecm/cfg
Component vendor: sap.com
SC compartment: sap.com_SAP_MSS_1
Configuration: NDI_DEV-EP1_D
Location: NDI_DEV-EP1_D
Source code location: .....sap.com_SAP_MSS/dev/inactive/DCs/sap.com/mss/ecm/cfg/_comp/
DC root folder: C:\Documents and Settings\santverma\.dtc\0\DCs\sap.com\mss\ecm\cfg\_comp\
DC type: Enterprise Portal
DC subtype: Portal Content
Host: USHYDSANTVERMA1
DC Model check:
All used DCs are available locally
validating dependency to build plugin "sap.com/tc/bi/bp/pcd"
DC model check OK
Start build plugin:
using build plugin: sap.com/tc/bi/bp/pcd
starting build plugin from : C:\Documents and Settings\santverma\.dtc\0\DCs\sap.com\tc\bi\bp\pcd\_comp\gen\default\public\def\
Build Plugin 'PCDPlugin', Version 7.00 SP 12 (645_VAL_REL, built on 2007-05-08 08:40:28 CEST, CL44404)
development component: mss/ecm/cfg (sap.com)
software component: SAP_MSS (sap.com)
location: NDI_DEV-EP1_D
type: Enterprise Portal, subtype Portal Content
build variant: default
source location: santverma@USHYDSANTVERMA1
output location: C:\Documents and Settings\santverma\.dtc\0\DCs\sap.com\mss\ecm\cfg\_comp\gen\default
plugin start time: 2008-02-25 13:39:24 GMT-05:00 (EST)
Java VM: Java HotSpot(TM) Client VM, 1.4.2_16-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.266 seconds
Preparing data context..
No 'default' JDK defined, will use running VM.
Data context prepared in 0.047 seconds
Creating Ant build file..
Creating output file: C:\Documents and Settings\santverma\.dtc\0\DCs\sap.com\mss\ecm\cfg\_comp\gen\default\logs\build_1.xml
Using macro file: C:\Documents and Settings\santverma\.dtc\0\DCs\sap.com\tc\bi\bp\pcd\_comp\gen\default\public\def\macros\build.vm
Build file created in 0.281 seconds
Starting Ant..
Using build file: C:\Documents and Settings\santverma\.dtc\0\DCs\sap.com\mss\ecm\cfg\_comp\gen\default\logs\build.xml
Using build target: build
Generation folder: C:\Documents and Settings\santverma\.dtc\0\t\AC697D43AA619B0F59628E809483578C
Using Ant version: 1.6.2
repack:
[eptconvert] Found 14 ept files in C:\Documents and Settings\santverma\.dtc\0\DCs\sap.com\mss\ecm\cfg\_comp\src
[eptconvert] Converting pcd/ecma44c335e66ff4abe7638c7fb559041c9/ecm.ept
[xlf2prop] Found 33 XLF files to convert in folder "src\_pcd\ecm_a44c335e66ff4abe7638c7fb559041c9"
[eptconvert] Converting pcd/ecmapproval45a2d5953ed7878e48b1294564e9772/ecmapproval.ept
[xlf2prop] Found 33 XLF files to convert in folder "src\_pcd\ecmapproval_45a2d5953ed7878e48b1294564e9772"
[eptconvert] Converting pcd/ecmbudgets42713cdf1846a1b2885929a55f013c4/ecmbudgets.ept
[xlf2prop] Found 33 XLF files to convert in folder "src\_pcd\ecmbudgets_42713cdf1846a1b2885929a55f013c4"
[eptconvert] Converting pcd/ecmcompleted24fcfe2c17737313c543cad914a292a5/ecmcompleted.ept
[xlf2prop] Found 33 XLF files to convert in folder "src\_pcd\ecmcompleted_24fcfe2c17737313c543cad914a292a5"
[eptconvert] Converting pcd/ecmgenerallinks6d326cdd56c03a2ebab9b0164eb82a19/ecmgenerallinks.ept
[xlf2prop] Found 33 XLF files to convert in folder "src\_pcd\ecmgenerallinks_6d326cdd56c03a2ebab9b0164eb82a19"
[eptconvert] Converting pcd/ecmplanningf594928d76f7bd5b96b6d5e8b618c3a/ecmplanning.ept
[xlf2prop] Found 33 XLF files to convert in folder "src\_pcd\ecmplanning_f594928d76f7bd5b96b6d5e8b618c3a"
[eptconvert] Converting pcd/ecmplanningfb23571b5d50b61aa66916124139077/ecmplanning.ept
[xlf2prop] Found 33 XLF files to convert in folder "src\_pcd\ecmplanning_fb23571b5d50b61aa66916124139077"
[eptconvert] Converting pcd/ecmproperties62eca9b53a75892e77ad3d3e5e4f5df4/ecmproperties.ept
[xlf2prop] Found 33 XLF files to convert in folder "src\_pcd\ecmproperties_62eca9b53a75892e77ad3d3e5e4f5df4"
[eptconvert] Converting pcd/ecmreview4cd06022726d6f44f837dc05c78db9a/ecmreview.ept
[xlf2prop] Found 33 XLF files to convert in folder "src\_pcd\ecmreview_4cd06022726d6f44f837dc05c78db9a"
[eptconvert] Converting pcd/ecmselection136db5adf0961f931f3e219973d53b9a/ecmselection.ept
[xlf2prop] Found 33 XLF files to convert in folder "src\_pcd\ecmselection_136db5adf0961f931f3e219973d53b9a"
[eptconvert] Converting pcd/ecmstatistics97824747718d59d0902b9f535bfe9ca/ecmstatistics.ept
[xlf2prop] Found 33 XLF files to convert in folder "src\_pcd\ecmstatistics_97824747718d59d0902b9f535bfe9ca"
Error: C:\Documents and Settings\santverma\.dtc\0\DCs\sap.com\mss\ecm\cfg\_comp\gen\default\logs\build.xml:62: Failed to convert ept file "_pcd/ecmstatistics_97824747718d59d0902b9f535bfe9ca/ecmstatistics.ept"
at com.sap.tc.buildplugin.anttasks.EPTConverter.execute(EPTConverter.java:117)
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:112)
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.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)
Caused by: com.sap.tc.buildplugin.pp.PackException: Failed to get InputStream for resource
at com.sap.tc.buildplugin.pp.pack.ZipPacker.packResource(ZipPacker.java:317)
at com.sap.tc.buildplugin.pp.pack.ZipPacker.packEntry(ZipPacker.java:287)
at com.sap.tc.buildplugin.pp.pack.ZipPacker.packFiles(ZipPacker.java:247)
at com.sap.tc.buildplugin.pp.pack.ZipPacker.pack(ZipPacker.java:131)
at com.sap.tc.buildplugin.anttasks.EPTTransformer.convert(EPTTransformer.java:160)
at com.sap.tc.buildplugin.anttasks.EPTConverter.execute(EPTConverter.java:112)
... 27 more
Caused by: java.io.FileNotFoundException: C:\Documents and Settings\santverma\.dtc\0\t\AC697D43AA619B0F59628E809483578C\ept\ecmstatistics_97824747718d59d0902b9f535bfe9ca\ecmstatistics_zh_HK.properties (The process cannot access the file because it is being used by another process)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.sap.tc.buildplugin.pp.util.FileResource.getInputStream(FileResource.java:76)
at com.sap.tc.buildplugin.pp.pack.ZipPacker.packResource(ZipPacker.java:315)
... 32 more
--- Nested Exception ---
com.sap.tc.buildplugin.pp.PackException: Failed to get InputStream for resource
at com.sap.tc.buildplugin.pp.pack.ZipPacker.packResource(ZipPacker.java:317)
at com.sap.tc.buildplugin.pp.pack.ZipPacker.packEntry(ZipPacker.java:287)
at com.sap.tc.buildplugin.pp.pack.ZipPacker.packFiles(ZipPacker.java:247)
at com.sap.tc.buildplugin.pp.pack.ZipPacker.pack(ZipPacker.java:131)
at com.sap.tc.buildplugin.anttasks.EPTTransformer.convert(EPTTransformer.java:160)
at com.sap.tc.buildplugin.anttasks.EPTConverter.execute(EPTConverter.java:112)
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:112)
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.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)
Caused by: java.io.FileNotFoundException: C:\Documents and Settings\santverma\.dtc\0\t\AC697D43AA619B0F59628E809483578C\ept\ecmstatistics_97824747718d59d0902b9f535bfe9ca\ecmstatistics_zh_HK.properties (The process cannot access the file because it is being used by another process)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.sap.tc.buildplugin.pp.util.FileResource.getInputStream(FileResource.java:76)
at com.sap.tc.buildplugin.pp.pack.ZipPacker.packResource(ZipPacker.java:315)
... 32 more
Ant runtime 1 minute 7.047 seconds
Ant build finished with ERRORS
Failed to convert ept file "_pcd/ecmstatistics_97824747718d59d0902b9f535bfe9ca/ecmstatistics.ept"
Error: Build stopped due to an error: Failed to convert ept file "_pcd/ecmstatistics_97824747718d59d0902b9f535bfe9ca/ecmstatistics.ept"
Build plugin finished at 2008-02-25 13:40:32 GMT-05:00 (EST)
Total build plugin runtime: 1 minute 8.063 seconds
Build finished with ERROR
Edited by: Santosh Verma on Feb 25, 2008 7:43 PM -
What are privilage for user is required to create project api
Hi
I have to create project using project template I have given info manual to create project manually.
But key member should not be null....error occurs
I have given person I'd and person role type as project manager.
Please help me in this regard.this is the code i have used ...
declare
v_responsibility_id NUMBER; --- PA Supervisor responsibility id
v_user_id NUMBER;
--deriving global parameters-
-- Variables needed for API standard parameters
v_api_version_number NUMBER := 1.0;
v_commit VARCHAR2(1) := 'F';
v_return_status VARCHAR2(1);
v_init_msg_list VARCHAR2(1) := 'F';
v_msg_count NUMBER;
v_msg_index_out NUMBER;
v_msg_data VARCHAR2(2000);
v_data VARCHAR2(2000);
v_workflow_started VARCHAR2(1) := 'Y';
v_pm_product_code VARCHAR2(10);
---variables for catching errors---
v_error_flag number:=0;
-- Predefined Composite data types
v_project_in PA_PROJECT_PUB.PROJECT_IN_REC_TYPE;
v_project_out PA_PROJECT_PUB.PROJECT_OUT_REC_TYPE;
v_key_members PA_PROJECT_PUB.PROJECT_ROLE_TBL_TYPE;
v_key_member_rec pa_project_pub.project_role_rec_type;
v_class_categories PA_PROJECT_PUB.CLASS_CATEGORY_TBL_TYPE;
v_tasks_in_rec PA_PROJECT_PUB.TASK_IN_REC_TYPE;
v_tasks_in PA_PROJECT_PUB.TASK_IN_TBL_TYPE;
v_tasks_out_rec PA_PROJECT_PUB.TASK_OUT_REC_TYPE;
v_tasks_out PA_PROJECT_PUB.TASK_OUT_TBL_TYPE;
v_CREATED_FROM_PROJECT_ID varchar2(20);
v_CARRYING_OUT_ORGANIZATION_ID varchar2(20);
v_person_id NUMBER;
v_project_role_type VARCHAR2(20);
API_ERROR EXCEPTION;
v_a NUMBER;
--cursor for project in data
/*CURSOR cur_project_in_data IS SELECT * FROM XXPA_PROJECT_IN_STG;
--cursor for task data
CURSOR cur_task_in_data IS SELECT * FROM XXPA_TASK_IN_STG;*/
------------------------Cursors used for validations----------------------------------
--cursor for product code used for validation
cursor cprc is select distinct PROJECT_RELATIONSHIP_CODE from PA_PROJECT_CUSTOMERS;
--cursor for distribution rule-
cursor cdr is select DISTRIBUTION_RULE from PA_DISTRIBUTION_RULES;
--cursor for project status code
cursor cpsc is SELECT PROJECT_STATUS_CODE, PROJECT_STATUS_NAME FROM PA_PROJECT_STATUSES WHERE STATUS_TYPE = 'PROJECT';
--cursor for template/created from project id
cursor ccpid is select project_id from pa_projects where template_flag='Y'; */
BEGIN
begin
mo_global.set_policy_context('S',85);
mo_global.init('PA');
end;
fnd_global.apps_initialize ( 50321,56533,275);
select user_id, responsibility_id into v_user_id, v_responsibility_id
from PA_USER_RESP_V
where user_name like 'SVENKAT'
and responsibility_name like'GB Projects Implementation Superuser';
-- --Fnd_global.apps_initialize(user_id,resp_id, resp_appl_id);
-- Fnd_global.apps_initialize(v_user_id,v_responsibility_id,275);
-- -------calling global parameters---
pa_interface_utils_pub.set_global_info
p_api_version_number =>v_api_version_number,
p_responsibility_id =>v_responsibility_id,
p_user_id =>v_user_id,
p_msg_count =>v_msg_count,
p_msg_data =>v_msg_data,
p_return_status =>v_return_status
dbms_output.put_line ('Set Global status ->' || v_return_status);
----Cursor for PRODUCT RELATED DATA-----------
--FOR REC IN cur_project_in_data LOOP
-----PASSING VALUES TO THE COMPOSITE DATA TYPE(PROJECT_IN_REC_TYPE)-------
----retrieving product code-----
select lookup_code into v_pm_product_code
from pa_lookups
where lookup_type = 'PM_PRODUCT_CODE'
and meaning = 'Oracle Project Manufacturing';
-----retrieving and validating created from project id----
BEGIN
select project_id
into v_CREATED_FROM_PROJECT_ID
from pa_projects_all
where name='GB_NRE_Template';--rec.created_from_project_name;
EXCEPTION
when others then
null;
/*O_Retcode := '1';
O_Errbuf :='Incorrent CREATED_FROM_PROJECT_NAME';*/
--Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
/*UPDATE XXPA.XXPA_PROJECT_IN_STG
SET ERROR_FLAG ='1' ,last_updation_date='sysdate' where created_from_project_name = rec.CREATED_FROM_PROJECT_NAME;*/
END;
-----retrieving -- validating carrying out organization id-----
BEGIN
select distinct(CARRYING_OUT_ORGANIZATION_ID)
into v_CARRYING_OUT_ORGANIZATION_ID
from pa_projects_prm_v
where CARRYING_OUT_ORGANIZATION_NAME='IT Project Organization';--rec.carrying_out_organization_name;
EXCEPTION
when others then
dbms_output.put_line ('error in carrying org');
/*O_Retcode := '1';
O_Errbuf :='Incorrent Carrying Out Organization name';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);*/
/*UPDATE XXPA.XXPA_PROJECT_IN_STG
SET ERROR_FLAG ='1' ,last_updation_date='sysdate' where carrying_out_organization_name = rec.carrying_out_organization_name;*/
END ;
v_project_in.pm_project_reference :='GB_NRE_Template'; --rec.segment1;
v_project_in.project_name :='VENKAT_TEST'; --rec.PROJECT_NAME;
v_project_in.created_from_project_id := v_CREATED_FROM_PROJECT_ID;
v_project_in.carrying_out_organization_id := 85;
v_project_in.project_status_code :='UNAPPROVED'; --rec.PROJECT_STATUS_CODE;
v_project_in.description := 'interface';--rec.PROJECT_DESCRIPTION;
v_project_in.start_date := sysdate;--rec.PROJECT_START_DATE;
v_project_in.completion_date := sysdate + 30; --rec.PROJECT_COMPLETION_DATE;
v_project_in.distribution_rule := 'EVENT/EVENT';--rec.DISTRIBUTION_RULE;
--v_project_in.project_relationship_code := ;--rec.PROJECT_RELATIONSHIP_CODE;
-------------------------Validation of incoming project data--------------------------------
v_error_flag := 1;
--project relationship code validation
/*BEGIN
--for prc in cprc
--loop
if (rec.PROJECT_RELATIONSHIP_CODE=prc.PROJECT_RELATIONSHIP_CODE) or (rec.PROJECT_RELATIONSHIP_CODE is null)--can be overridden from template
then
v_error_flag :=0;
else null;
end if;
--end loop;
END; */
/*--project distribution rule validation
BEGIN
for dr in cdr
loop
if (rec.DISTRIBUTION_RULE=dr.DISTRIBUTION_RULE) or (rec.DISTRIBUTION_RULE is null) --null since the value can be taken from template too
then
v_error_flag :=0;
else null;
end if;
end loop;
END; */
--m := 1;
-- l_person_id := 38506;--v_personid; -- need to get from Apps
-- l_project_role_type := 'Project Manager';
/* v_key_member_rec.person_id := 83369;--v_personid;
v_key_member_rec.project_role_type :='PROJECT MANAGER';
v_key_member_rec.project_role_meaning := 'Project Manager';
v_key_members(1) := v_key_member_rec;*/
v_key_members(1).person_id := 83369;
v_key_members(1).project_role_type :='PROJECT MANAGER';
dbms_output.put_line('persion id for key member '||v_key_members(1).person_id);
--project status code validation
/*BEGIN
for sc in cpsc
loop
if (rec.PROJECT_STATUS_CODE=sc.PROJECT_STATUS_CODE) or (rec.PROJECT_STATUS_CODE is null)-- null since the value can be taken from template too
then
v_error_flag :=0;
else null;
end if;
end loop;
END;*/
dbms_output.put_line ('Error at PROJECT_STATUS_CODE>' ||v_error_flag);
/*validation logic for project start date
BEGIN
if TRUNC(rec.PROJECT_START_DATE) >= TRUNC(rec.PROJECT_COMPLETION_DATE)
THEN
v_error_flag := 1;
O_Retcode := '1';
O_Errbuf :='Project start date cannnot be greater than completion date';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
END IF;
END;
validation logic for project completion date
BEGIN
if (TRUNC(rec.PROJECT_COMPLETION_DATE)<=TRUNC(rec.PROJECT_START_DATE))
then
if ( rec.PROJECT_STATUS_CODE='CLOSED' and rec.PROJECT_COMPLETION_DATE>sysdate)
THEN
v_error_flag := 1;
O_Retcode := '1';
O_Errbuf :='completion date cannot be greater than sysdate for closed projects';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
END IF;
v_error_flag := 1;
O_Retcode := '1';
O_Errbuf :='Project closed date cannnot be less than start date';
end if;
END;*/
--------Update staging table for the error records--------
/*BEGIN
if v_error_flag =1
then
O_Retcode := '1';
O_Errbuf :='Incorrent project relationship code';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
UPDATE XXPA.XXPA_PROJECT_IN_STG
SET ERROR_FLAG ='1' ,last_updation_date='sysdate' where PROJECT_RELATIONSHIP_CODE = rec.PROJECT_RELATIONSHIP_CODE;
end if;
END;*/
-----------------------End of validation of incoming project data----------------------------------
---------------Project Task DATA-----------------
v_a:=1;
--FOR tsk IN cur_task_in_data LOOP
v_tasks_in_rec.pm_task_reference :='Labor';--tsk.task_reference ;
v_tasks_in_rec.task_name :='Labor';--tsk.task_name;
--v_tasks_in_rec.pm_parent_task_reference :=tsk.parent_task_reference ;
v_tasks_in_rec.task_start_date := sysdate;--tsk.task_start_date ;
v_tasks_in_rec.task_completion_date :=sysdate + 30;--tsk.task_completion_date ;
v_tasks_in(v_a) := v_tasks_in_rec;
--v_a:=v_a+1;
--end loop;
---------------end of task details------------------
--INIT_CREATE_PROJECT
pa_project_pub.init_project;
---------------------CREATE_PROJECT--------------------------
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_project_in => v_project_in,
p_project_out => v_project_out,
p_key_members => v_key_members,
p_class_categories => v_class_categories,
p_tasks_in => v_tasks_in,
p_tasks_out => v_tasks_out);
if v_return_status = 'S'
then
/*UPDATE XXPA.XXPA_PROJECT_IN_STG
SET INTERFACE_STATUS ='Success' where segment1 = v_project_out.pa_project_number; ---P->pending & S-> Success*/
dbms_output.put_line('New Project Id: ' || v_project_out.pa_project_id);
dbms_output.put_line('New Project Number: ' || v_project_out.pa_project_number);
else
/*UPDATE XXPA.XXPA_PROJECT_IN_STG
SET INTERFACE_STATUS ='Pending' where segment1 = v_project_out.pa_project_number;*/
raise API_ERROR;
end if;
--END LOOP;
Commit;
------Handling Exception--------
EXCEPTION
WHEN api_error THEN
dbms_output.put_line('An error occured during project creation');
IF (v_msg_count > 0 ) THEN
FOR i IN 1..v_msg_count LOOP
apps.PA_INTERFACE_UTILS_PUB.get_messages(
p_msg_count => v_msg_count,
p_encoded => 'F',
p_msg_index => i,
p_msg_data => v_msg_data,
p_data => v_data,
p_msg_index_out => v_msg_index_out);
dbms_output.put_line('Error message v_data ->'||v_data);
dbms_output.put_line('Error message v_msg_data ->'||v_msg_data);
dbms_output.put_line('Error message v_msg_index_out ->'||v_msg_index_out);
dbms_output.put_line('Error message p_msg_index ->'||i);
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,v_data);
END LOOP;
END IF;
WHEN OTHERS THEN
dbms_output.put_line('An error occured during conversion, SQLCODE ->'|| SQLERRM);
IF (v_msg_count >=1 ) THEN
FOR i IN 1..v_msg_count LOOP
PA_INTERFACE_UTILS_PUB.get_messages(
p_msg_count => v_msg_count,
p_msg_index => i,
p_encoded => 'F',
p_msg_data => v_msg_data,
p_data => v_data,
p_msg_index_out => v_msg_index_out);
dbms_output.put_line('Error message ->'||v_data);
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,v_data);
END LOOP;
END IF;
end; --end procedure
error .....
Set Global status ->S
persion id for key member 83369
Error at PROJECT_STATUS_CODE>1
An error occured during project creation
Error message v_data ->Key Member is a mandatory Quick Entry field. Values must be passed for project_role_type and person_ID. (PROJECT=GB_NRE_Template)
Error message v_msg_data ->PA
Maybe you are looking for
-
The scroll bar (the one used to scroll up and down any kind of website), that is normally in the right part of the firefox browser, would be of much help to me if it could sometimes be moved to the left part of the browser. Is this possible? How can
-
HT5557 How do I move a book from one collection to another one?
I can move a book around within a collection, but I would like to sort my books by author or subject. I know how to create a collection or folder. JOHN
-
I want to develop an E-Mail client like ThunderBird, Edura in Java for UNIX,. If any one of you developed such project than please guide me. My email address is [email protected] Thank you.
-
R12 : Currency between order/invoice/paymentR12
Hello, In 11i we have the constraint to have the same currency between the PO, the invoice and the payment. I'd like to know if in R12 we can manage some special settings (for some suppliers) to avoid this constraint. e.g. can we manage a Chinese sup
-
Does iCloud back up the Camera Roll pics or just the Photo Stream pics or both? Curious why the Photo Stream has 65 pics and Camera Roll has 853 which the same 65 photo stream pics are included in the camera roll? YOu would think photo stream would b