CProjects - Assign Project Types to Ogr. unit

Hi,
We are on cProjects 4.0.
We require a Project Type to be valid only for an org. unit such that users of other org. unit cannot  acccess this project type. Can we achieve this?
Please suggest...

Hi Bittu,
The best way might be to hide some project types, which must not be used. But unfortuenately there is no such feature.
As work around, you can implement the Badi method  ATTRIBUTES_VERIFY of Badi DPR_ATTRIBUTES. It will be called, after you input the project type & click of the 'create' button. Within this method, you can decide if the user can use the project type or not.
Kind regards,
Zhenbo

Similar Messages

  • CProjects-MS Project - import and export of task-role-resource assignment

    Hi,
    We are on PPM5.0
    We are currently working on cProjects-MSP client integration.
    What we have not been able to configure for import/export so far is:
    1. Task-Role-Resource assignment
    Whereas we are are able to import/export the "Person Responsible" and "Role Responsible" fields, we have not been able to align the task-role-resource assignments.
    We see a "Resource Name" column (Standard) in MSP. When we click on the drop down, we see all the roles from the cProjects project. But the alignment does not happen.
    Summary:
    On export and import, we need to automatically see the role-resource-task assignment. How is this possible?
    2. Code field to "VC_BUPA_GUID" gets a number which is not the BP ID.
    Is it possible to import the BP numbers in MSP. Also, how can we assign a number to the role in MSP such that on import into cProjects, the role is already staffed with the corresponding BP.
    3. Is it possible to export all the resources (BPs) into a drop down in MSP - like we see the Project Type, Role Type etc.
    Thanks.

    Hi Anuradha,
    Thanks for your inputs.
    When we export to MSP, we see the cProjects roles under the "Resource Name" drop down in MSP.
    However, they are only seen when we expand on the drop down.
    For e.g. RoleA, and RoleB are two roles in cProjects project, along with many other roles.
    Both of these roles are assigned to a task, say TASK1.
    When exported to MSP, we expect both of these roles to show against TASKI, as "RoleA, RoleB" under the "Resource Name" column. However, these roles are not seen. They only appear as elements of drop down, along with all other roles in the project, when we explicitly click on the drop down.
    Please let me know if I are missing out on something.
    Thanks.

  • Assigning storage bin type to storage unit type

    Hello guys,
    I would like to know the purpose of assigning the storage bin type to storage unit type in the storage bin type search table.
    Thanks,
    Maxx

    Hello Maxx,
    First let's understand what is the meaning of "Storage unit type"
      Storage unit type is type of pallet i.e. big pallet, small pallet, industrial pallets etc so all this pallets have standard sizes.
    Now let's understand what is the meaning of "Storage Bin type"
      Storage bin type the classification of storage bin according to their characteristic /size i.e. 1 meter bin, 2 meter bin , 4x2 bin etc
    Now if you have requirement that 1 meter bin should allow only small pallets not big pallet becuase it can not be fit in 1 meter bin so you can restrict this by assigning storage bin type to storage unit type.
    Hope this will help you to understand the concept for assigning Storage bin type to SU type.
    Regards
    Arif Mansuri

  • Resp Person Tab is not coming in CJ20N for a particular project type

    Hi All,
    I am unaware of the standard SAP screen in CJ20N but we have a screen in CJ20n wherein we can assign a person / link a person this particular tab is not coming at all for a particular project type (Resp Person) rather a different tab (cust enhancement) is coming but our problem is we have a mass program which works on BDC and hence if the required screens are not there it fails.
    Can someone please tell me if there is come config i can check/ maintain for this resp person tab so that it starts coming for all project types.
    Regards
    Anmol Pareek

    Hey Sarang,
    Thanks a lot, it was helpful, one more thing though, In Resp Persons tab there is something called Link Employees and my problem is that i have a mass linking program (using BDC) which cannot work if i dont see that screen in my BDC (without changing BDC). The way you have told is in OPUK/ OPUJ check for proj type and see if person responsible is hidden or not. I dont think that is what i am asking because no matter what this person responsible is hidden, but for certain project types Resp Person tab itself is not coming and that is the problem.
    Regards
    anmol

  • The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the

    Hi,
    Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
    I have created a dynamic web project and added javax RS jars:
    When im trying to run this, i'm getting the below mentioned error:
    FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
    RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
    Please help as im stuck with this from long.
    Thanks in advance.
    Below is the code for my service class:
    package com.rest.assignment;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.Enumeration;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.Application;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.Response;
    @Path("/restService")
    public class RestService extends Application {   
        @GET
        @Path("/getEmpDetails")
        @Produces(MediaType.APPLICATION_JSON)
        public Response getStringResponse()
            EmpBean empBean = new EmpBean();
            String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
            Properties properties = new Properties();
            try {
                properties.load(new FileInputStream(filePath));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
             Enumeration e = properties.propertyNames();
             String result="";
            String[] empDetailsArr;
            while (e.hasMoreElements()) {
              String key = (String) e.nextElement();
              String empDetails = properties.getProperty(key);
              empDetailsArr=empDetails.split(",");    
              empBean.setFirstName(empDetailsArr[0]);
              empBean.setLastName(empDetailsArr[1]);
              empBean.setEmpId(empDetailsArr[2]);
              empBean.setDesignation(empDetailsArr[3]);
              empBean.setSkillSet(empDetailsArr[4]);
              result = empDetailsArr[1];
            //return empBean;
            return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
        @Override
        public Set<Class<?>> getClasses() {
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(RestService.class);
            classes.add(EmpBean.class);
            return classes;
    and my empBean goes like this:
    package com.rest.assignment;
    public class EmpBean {
        private String firstName;
        private String lastName;
        private String empId;
        private String designation;
        private String skillSet;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getEmpId() {
            return empId;
        public void setEmpId(String empId) {
            this.empId = empId;
        public String getDesignation() {
            return designation;
        public void setDesignation(String designation) {
            this.designation = designation;
        public String getSkillSet() {
            return skillSet;
        public void setSkillSet(String skillSet) {
            this.skillSet = skillSet;
    Web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <display-name>restWS</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
      <servlet-name>REST</servlet-name>
      <servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
      <init-param>
       <param-name>javax.ws.rs.Application</param-name>
       <param-value>com.rest.assignment.RestService</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>REST</servlet-name>
      <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>
    </web-app>
    When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.

    Hi,
    Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
    I have created a dynamic web project and added javax RS jars:
    When im trying to run this, i'm getting the below mentioned error:
    FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
    RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
    Please help as im stuck with this from long.
    Thanks in advance.
    Below is the code for my service class:
    package com.rest.assignment;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.Enumeration;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.Application;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.Response;
    @Path("/restService")
    public class RestService extends Application {   
        @GET
        @Path("/getEmpDetails")
        @Produces(MediaType.APPLICATION_JSON)
        public Response getStringResponse()
            EmpBean empBean = new EmpBean();
            String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
            Properties properties = new Properties();
            try {
                properties.load(new FileInputStream(filePath));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
             Enumeration e = properties.propertyNames();
             String result="";
            String[] empDetailsArr;
            while (e.hasMoreElements()) {
              String key = (String) e.nextElement();
              String empDetails = properties.getProperty(key);
              empDetailsArr=empDetails.split(",");    
              empBean.setFirstName(empDetailsArr[0]);
              empBean.setLastName(empDetailsArr[1]);
              empBean.setEmpId(empDetailsArr[2]);
              empBean.setDesignation(empDetailsArr[3]);
              empBean.setSkillSet(empDetailsArr[4]);
              result = empDetailsArr[1];
            //return empBean;
            return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
        @Override
        public Set<Class<?>> getClasses() {
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(RestService.class);
            classes.add(EmpBean.class);
            return classes;
    and my empBean goes like this:
    package com.rest.assignment;
    public class EmpBean {
        private String firstName;
        private String lastName;
        private String empId;
        private String designation;
        private String skillSet;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getEmpId() {
            return empId;
        public void setEmpId(String empId) {
            this.empId = empId;
        public String getDesignation() {
            return designation;
        public void setDesignation(String designation) {
            this.designation = designation;
        public String getSkillSet() {
            return skillSet;
        public void setSkillSet(String skillSet) {
            this.skillSet = skillSet;
    Web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <display-name>restWS</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
      <servlet-name>REST</servlet-name>
      <servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
      <init-param>
       <param-name>javax.ws.rs.Application</param-name>
       <param-value>com.rest.assignment.RestService</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>REST</servlet-name>
      <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>
    </web-app>
    When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.

  • SSDT: Creation of localDB instances from project file - Sql Server Unit testing purposes

    I have a SqlServer Database Project in my solution (VS2013 Professional) which has a corresponding test project with some stored procedure unit tests. Currently I am using a LocalDB and as far as I understand a local database instance is created in C:\Users\[User]\AppData\Local\Microsoft\Microsoft
    SQL Server Local DB\Instances\Projects and the specific .mdf file referenced in the SQL Server Object Explorer is in C:\Users\[User]\AppData\Local\Microsoft\VisualStudio\SSDT\[ProjectName]. The unit tests run fine on my local machine which I have developed
    the project on.
    My issue is we have a box which is configured to check out the project file from our version control, build the project using ms build commands and then run the unit tests using VSTest.Console. Usually with C# Test projects we reference the test project
    dll and the unit tests run fine. I have referenced the dll for the test project with the stored procedure unit tests in. 
    With the Stored Procedure unit tests however we get this exception: 
    Initialization method [project].[spTest].TestInitialize threw exception. System.Data.SqlClient.SqlException: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. The specified LocalDB instance does not exist.
    After some digging I have realised that the localdb instance seems to be created when the project itself is created in VS not when it is built. Specifically when the localdb is first used and if you look into the appData folder of the test machine there
    is no corresponding mdf file for the project.  
    The question is is there a way to set up a localDB instance on the new machine if all you have the project file? The only purpose of the project on the test machine is to run the unit tests, no other development purposes. VS2013 Professional is installed
    on the test machine but a solution only using config file changes or MSBuild/VSTest commands would be preferable.
    I realise you could change the connection string to an actual test database and run the unit tests of that but we quite like the localdb approach for the testing. I also realise that you could potentially transfer the mdf file (haven't tested this solution)
    as well, though I would prefer if there is a solution to my initial question. 
    http://technet.microsoft.com/en-us/library/hh234692.aspx
    http://msdn.microsoft.com/en-us/library/hh309441(v=vs.110).aspx
    I have been reading up on LocalDB and I assume a automatic LocalDB is created when you create a sql server database project (ie on localdb first use). I have tried adding the database creation to the test project config file but do not really know where
    to go from there. The second link does not really specify when the named localdb will be created if you add the config items and I am not even sure if that is an actual solution.  Here's my test project config file for reference
    <configSections>
    <section name="system.data.localdb" type="System.Data.LocalDBConfigurationSection,System.Data,Version=4.0.0.0,Culture=neutral,PublicKeyToken=[PublicKeyToken]"/>
    <section name="SqlUnitTesting_VS2013" type="Microsoft.Data.Tools.Schema.Sql.UnitTesting.Configuration.SqlUnitTestingSection, Microsoft.Data.Tools.Schema.Sql.UnitTesting, Version=12.0.0.0, Culture=neutral, PublicKeyToken=[PublicKeyToken]" />
    </configSections>
    <system.data.localdb>
    <localdbinstances>
    <add name="SimpleUnitTestingDB" version="11.0" />
    </localdbinstances>
    </system.data.localdb>
    <SqlUnitTesting_VS2013>
    <DatabaseDeployment DatabaseProjectFileName="..\..\..\SimpleUnitTestDB\SimpleUnitTestDB.sqlproj"
    Configuration="Release" />
    <DataGeneration ClearDatabase="true" />
    <ExecutionContext Provider="System.Data.SqlClient" ConnectionString="Data Source=(localdb)\Projects;Initial Catalog=SimpleUnitTestDB;Integrated Security=True;Pooling=False;Connect Timeout=30"
    CommandTimeout="30" />
    <PrivilegedContext Provider="System.Data.SqlClient" ConnectionString="Data Source=(localdb)\Projects;Initial Catalog=SimpleUnitTestDB;Integrated Security=True;Pooling=False;Connect Timeout=30"
    CommandTimeout="30" />
    </SqlUnitTesting_VS2013>
    Thanks in advance for any response. Sorry if there is any misunderstanding, while I have been using VS to develop from the start, this is the first time I have used a Sql Server Database Project. 
    Regards,
    Christopher. 

    Yes, you can create a LocalDB instance manually. You use the SqlLocalDb utility, see here:
    http://technet.microsoft.com/en-us/library/hh212961.aspx
    Erland Sommarskog, SQL Server MVP, [email protected]

  • 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

  • Assign document (DIR) to organization unit (screen 209)

    Hello,
    I'm trying to assign a document to organizational unit. Or actually it's document info record (DIR) since using document management system (DMS).
    I have made configuration in at the DMS side; i.e. my document type has object NORG with screen 209 assigned to it. I haven't been able to find what is screen 209 since I have no knowledge of the program 7cannot use SE80 then).
    However, when I'm creating a document with CV01N it shows organizational unit as a possible entry but doesn't give any help (F4) or doesn't allow to enter anything - when I enter org. unit (existing one) and press enter, the field goes blank.
    Is there any experience how to assign documents when using HR transactions, such PO10? Or is there a feature or IMG setting in OM I have to active before I can utilise this documents? I've tried to locate but haven't found any. I don't want to use services for object because of the needs for tracking and statuses.
    Help is highly appreciated.
    BR,
    Pipsa

    Hello,
    I'm trying to assign a document to organizational unit. Or actually it's document info record (DIR) since using document management system (DMS).
    I have made configuration in at the DMS side; i.e. my document type has object NORG with screen 209 assigned to it. I haven't been able to find what is screen 209 since I have no knowledge of the program 7cannot use SE80 then).
    However, when I'm creating a document with CV01N it shows organizational unit as a possible entry but doesn't give any help (F4) or doesn't allow to enter anything - when I enter org. unit (existing one) and press enter, the field goes blank.
    Is there any experience how to assign documents when using HR transactions, such PO10? Or is there a feature or IMG setting in OM I have to active before I can utilise this documents? I've tried to locate but haven't found any. I don't want to use services for object because of the needs for tracking and statuses.
    Help is highly appreciated.
    BR,
    Pipsa

  • BAPI or FM for NCOP Transaction (To assign Cost Center to Org Unit)

    Hi,
    We are searching for a BAPI or any other means to assign Cost Center to Org Unit.
    recording  this transaction is not so useful because the screen fields are not recorded properly.
    Please advise if you had come across this transaction.
    Thanks in advance,
    Nagu

    Hi Prasad,
    This is one of the answers i found in SDN itself check this
    PP01> select the Object type (Org Unit)> enter the Org Unit No
    Select the Cost Distribution Infotype--> Create & enter the Cost Center
    Reward if it helps,
    Satish

  • Difference in Project Types and Solution Directory

    Hi -
    We are in the process of deploying solution manager within our organiation.  We have a made good progress in designing the end to end processes for an implementation project.  I am now looking for guidance on after the project is in production how to make changes - bugs and enhancements.  Should this be done directly in the solution directory or a specific project type?  We are not using CHaRM.  If it is a project type, when should changes be made directly within the solution directory?
    Also, what are the difference in the project types - implementation, upgrade, maintenance, safeguarding, template, and upgrade.  When should each be used?
    Thanks in advance!

    Hi Janice,
    you have two options to do changes in operations:
    Directly in Solution Directory. However, there are some limitation since not all tabs can be changed (e. g. configuration tab is only available in display mode).
    Via a maintenance project. This functionality is available since Solution Manager 4.0 FP 1. You have to assign a maintenance project to your solution and activate the check-out/check-in functionality (in the "solution settings"). It will the be possible to check-out objects into the maintenance project and perform your changes in the maintenance project. These changes will become visible in Solution Directory as soon as you check-in the objects. This functionality is currently independent of CHaRM.
    An overview of the project types is available in the Solution Manager Application help. Follow the path "Projects--> Project Administration -->  Project types".
    Best regards,
    Michael

  • Create Project trough enterprise project type with templates does not send notification to team member(email) when published

    Hi All,
    I encountered this issue in my client site when implementing project server 2013.
    At First I thought that this issue occurred intermittently , sometimes project creation (create project from PWA- assign resources with team member -save and publish) trigger email notification to the assigned team member and sometimes not. (new task notification)
    I have checked with our infrastructure team and verify that I use the right SMTP server address and port , and cross check with them for their side configuration (exchange) , we did not find anything wrong on both settings.
    and then we found out that the failed notification email comes from project creation using defined project templates in an enterprise project type, even from a project that consist of template schedule , we added new task on that project and assign a team
    member on that task that resulted with notification sent to the team member, but not with task that comes from templates.
    can someone help us on this issue, or is there any CU on this?
    I appreciate any comments and feedback, Thanks for your attention!
    Regards,
    Nugroho
    EPM implementator

    Kirteshtiw,
    Yes we did create the template from project professional and as far as i know,
    the only way to create template is just to save it, no option to publish the template.
    When you create a new project from template for some of the task you remove the resources then assign resource to those tasks then save and publish the project.
    <--there are no resources assigned from the template, when i assign resources (new assignment) this will not trigger notification
    Or create a new task under summary task assign resource then save and publish the task you notification sent to the resource means it is working.
    <--new task (not from template ) also trigger the notification

  • How define new project type SAP CRM

    Dear All,
    How we can define New project type required when creating the Lead in SAP CRM.
    Screen shot attached.
    Regards'
    Kumar

    Dear Suma,
    Why do you need BAPI for creating Business Partner. You can do that by using standard transaction "BP"..you can create the business partner of type "Person", "Group" or organization.
    You need to do some of the following configurations (as applicable) for the Business Partner:
    <b>Number Range:</b>
       Define Number ranges
       Assign Standard Number Range to Groupings
    <b>Middleware Setting for Transferring BP from CRM to R/3</b>     
           Setup the Function Modules in the table CRMC_BUT_CALL_FU through transaction SM30 transaction in CRM
           Setup the Function Modules in the table COM_BUPA_CALL_FU through the transaction SM30 transaction in R/3
    <b>Set up of Custom Roles and Relationships</b>     
            Define the BP view
         Create BP Roles
         Creation of Role Categories
         Creation of Relationships
         Configure Field Attributes for Each BP <b>Relationship Category
    Creation of Partner Functions     
    Creation of Access Sequence</b>     
    <b>Maintain Title     
    Define Salutation     
    Define Partner Determination Procedure     </b>
         Assign Partner Determination procedure to Transaction Type
         Assign procedure to item categories
    <b>Define cutomer price group (Customer Credit Tier)     
    Define Customer Group     </b>
    <b>Business Agreement     </b>
         FI CA Activation in CRM
         Define No. Range for Business Agreement
         Define Business Agreement Class
    Thanks,
    Atin
    <b><b>Reward points if it helps.</b></b>

  • On iprocurement page..How to populate task field dependent on Project lov field value which Project type is "Capital Project Type"

    Hi,
    I have an requirement on Iprocurement page where in i have to populate task field as CAPL in case my project field contains the project which is of type 'Capital Project Type'.
    Please suggest how can we implement this.
    Thanks,
    Abhishek

    try these links:
    http://sharepoint.stackexchange.com/questions/103682/autopopulate-form-fields-based-on-selection-in-people-picker-column-using-javasc
    http://sharepoint.stackexchange.com/questions/80261/people-picker-not-getting-populated-in-the-sharepoint-site
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx

  • Retrieve all values from project type when project type combo box is null

    Hi,
    We are facing a tight situation here. We have a scenario where we have 2 filter options.
    1) Department ID
    2) Project type
    When department ID is selected all the department IDs should be populated in the combo box and the project type combo box should be empty.
    Similarly, when project type is selected all the project types should be populated in the combo box and the department ID combo box should be empty.
    Then, when more than one value is selected from department ID box and all the values from project type must be retrieved from query level (as per business logic).
    How do we do this? Kindly help us with this situation.

    Basically my situation slightly different.
    I am trying to do a bulk insert on SQL Server table using prepared statement, during that time i am getting the exception. I am using JDBC-ODBC driver. However, if i do individual record insertion, it is working.
    Any idea about this type of problem ?
    Regards
    Ramesh

  • VS 2010 Pro "Other Project Types" / "Setup and Deployment": No items found

    Hello,
    I have VS 2010 Pro Version 10.0.40219.1 SP1 Rel. I have developed a VB.Net application and would like to deploy it. When I try to add a setup project to the solution, I get "No items found" where a list of project types should be in the "Add New Project"
    dialog, "Installed Templates", "Other Project Types", "Setup and Deployment". Shouldn't the Pro version have those templates installed? If so, can I copy them from somewhere? I noticed that "Database" and "Test Projects" also have empty lists. There are lots
    of templates available for the various languages.
    I tried to modify the VS 2010 installation by adding support for SharePoint, but that did not help. Do I have to uninstall, reboot, and re-install? It's so cumbersome considering that I would need to redo the updates as well.
    OS is Win 7 Pro, processor is Intel E8400.
    Thanks!
    r4

    Hi robertrackl,
    Thanks for your post.
    The Setup Project template is located in: Installed Templates >> Other Project Types >> Setup and Deployment >> Visual Studio Installer. Would you please check if the templates exists in this path?
    If not, you can follow the steps below to reset your Visual Studio templates:
    Please open Windows Explorer, and navigate to <Visual Studio Installation Path>\Common7\IDE
    (by default is C:\Program Files \Microsoft Visual Studio 10.0\Common7\IDE);
    Delete the ItemTemplatesCache, ProjectTemplatesCache
    folder;
    Open Visual Studio Command Prompt (2010) under Start menu -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools (run it with Administrator privilege: right-click the program -> Run as administrator);
    Run the devenv /InstallVSTemplates switch;
    Run the devenv /Setup switch.
    If you have any concerns, please feel free to let me know.
    Best Regards,
    Andrew Wu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Maybe you are looking for

  • Photoshop CC 2014 - color panel resizing by itself?

    Hello, I am wondering if anyone else has reported (or even experienced) the new color panel in Photoshop CC 2014 resizing itself when maximizing and then restoring the Photoshop CC 20114 application frame? Here are some images to illustrate the issue

  • Javascript, or something in a JEditorPane, panel?

    I have an html file that I display inside of a JEditorPane. If I run the html file in a windows browser, the javascript works, but if I run it in the JEditorPane it displays the html stuff, but the javascript functionality doesnt work. Is their somet

  • Can I uninstall and reinstall "Pages" without losing files?

    My Pages program may be, ...IS, ...corrupted.  (Maybe by a disgruntled co-worker?)  When I type a client's name, Pages automatically misspells it.  Same with my own name, and perhaps with other words I've not yet discovered. I suppose I should uninst

  • A question to Denes Kubicek (Repeating Calendar)

    Hi Denes! I've an issue with the calendar function you've posted on the blog...I was using it preety much and it was working fine until I've modified it with some if clauses... It looks like this now... create or replace FUNCTION return_table_fn RETU

  • Black lit screen and unresponsive on start up

    My mid-'13 (purchased October '13) 11" MacBook Air turns on but only to a black lit screen (no curser etc), the keyboard seems unresponsive and when I close it, the Apple is still lit up. Been like this for 4 days and no change. Fully charged. Runnin