To find Manager id based on Project id

Hi ABAPers,
                   This is kishore. I am new to ABAP-HR
Can any one tell me the logic based on Project-id (of its type HRP1001-OBJID) to find the Manager id, Manager Name, Manager Email.
I know the logic find name and mail-id, but I need Manger id of corresponding Project.
Any one having working knowledge on PS module I hope they have good idea about this
Please help me in the format of sample code or Function Modules.
Thanks In advance
Kishore kumar

Hi
           Actually projectid and their relation objectid avialble in
PROJ table .But Based on that how to find corresponding
project manager id.I hope i give clear information to u.
regards,
kishore.

Similar Messages

  • Using container managed form-based security in JSF

    h1. Using container managed, form-based security in a JSF web app.
    A Practical Solution
    h2. {color:#993300}*But first, some background on the problem*{color}
    The Form components available in JSF will not let you specify the target action, everything is a post-back. When using container security, however, you have to specifically submit to the magic action j_security_check to trigger authentication. This means that the only way to do this in a JSF page is to use an HTML form tag enclosed in verbatim tags. This has the side effect that the post is not handled by JSF at all meaning you can't take advantage of normal JSF functionality such as validators, plus you have a horrible chimera of a page containing both markup and components. This screws up things like skinning. ([credit to Duncan Mills in this 2 years old article|http://groundside.com/blog/DuncanMills.php?title=j2ee_security_a_jsf_based_login_form&more=1&c=1&tb=1&pb=1]).
    In this solution, I will use a pure JSF page as the login page that the end user interacts with. This page will simply gather the input for the username and password and pass that on to a plain old jsp proxy to do the actual submit. This will avoid the whole problem of having to use verbatim tags or a mixture of JSF and JSP in the user view.
    h2. {color:#993300}*Step 1: Configure the Security Realm in the Web App Container*{color}
    What is a container? A container is basically a security framework that is implemented directly by whatever app server you are running, in my case Glassfish v2ur2 that comes with Netbeans 6.1. Your container can have multiple security realms. Each realm manages a definition of the security "*principles*" that are defined to interact with your application. A security principle is basically just a user of the system that is defined by three fields:
    - Username
    - Group
    - Password
    The security realm can be set up to authenticate using a simple file, or through JDBC, or LDAP, and more. In my case, I am using a "file" based realm. The users are statically defined directly through the app server interface. Here's how to do it (on Glassfish):
    1. Start up your app server and log into the admin interface (http://localhost:4848)
    2. Drill down into Configuration > Security > Realms.
    3. Here you will see the default realms defined on the server. Drill down into the file realm.
    4. There is no need to change any of the default settings. Click the Manage Users button.
    5. Create a new user by entering username/password.
    Note: If you enter a group name then you will be able to define permissions based on group in your app, which is much more usefull in a real app.
    I entered a group named "Users" since my app will only have one set of permissions and all users should be authenticated and treated the same.
    That way I will be able to set permissions to resources for the "Users" group that will apply to all users that have this group assigned.
    TIP: After you get everything working, you can hook it all up to JDBC instead of "file" so that you can manage your users in a database.
    h2. {color:#993300}*Step 2: Create the project*{color}
    Since I'm a newbie to JSF, I am using Netbeans 6.1 so that I can play around with all of the fancy Visual Web JavaServer Faces components and the visual designer.
    1. Start by creating a new Visual Web JSF project.
    2. Next, create a new subfolder under your web root called "secure". This is the folder that we will define a Security Constraint for in a later step, so that any user trying to access any page in this folder will be redirected to a login page to sign in, if they haven't already.
    h2. {color:#993300}*Step 3: Create the JSF and JSP files*{color}
    In my very simple project I have 3 pages set up. Create the following files using the default templates in Netbeans 6.1:
    1. login.jsp (A Visual Web JSF file)
    2. loginproxy.jspx (A plain JSPX file)
    3. secure/securepage.jsp (A Visual Web JSF file... Note that it is in the sub-folder named secure)
    Code follows for each of the files:
    h3. {color:#ff6600}*First we need to add a navigation rule to faces-config.xml:*{color}
        <navigation-rule>
    <from-view-id>/login.jsp</from-view-id>
            <navigation-case>
    <from-outcome>loginproxy</from-outcome>
    <to-view-id>/loginproxy.jspx</to-view-id>
            </navigation-case>
        </navigation-rule>
    NOTE: This navigation rule simply forwards the request to loginproxy.jspx whenever the user clicks the submit button. The button1_action() method below returns the "loginproxy" case to make this happen.
    h3. {color:#ff6600}*login.jsp -- A very simple Visual Web JSF file with two input fields and a button:*{color}
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
        <jsp:directive.page
    contentType="text/html;charset=UTF-8"
    pageEncoding="UTF-8"/>
        <f:view>
            <webuijsf:page
    id="page1">
    <webuijsf:html id="html1">
    <webuijsf:head id="head1">
    <webuijsf:link id="link1"
    url="/resources/stylesheet.css"/>
    </webuijsf:head>
    <webuijsf:body id="body1" style="-rave-layout: grid">
    <webuijsf:form id="form1">
    <webuijsf:textField binding="#{login.username}"
    id="username" style="position: absolute; left: 216px; top:
    96px"/>
    <webuijsf:passwordField binding="#{login.password}" id="password"
    style="left: 216px; top: 144px; position: absolute"/>
    <webuijsf:button actionExpression="#{login.button1_action}"
    id="button1" style="position: absolute; left: 216px; top:
    216px" text="GO"/>
    </webuijsf:form>
    </webuijsf:body>
    </webuijsf:html>
            </webuijsf:page>
        </f:view>
    </jsp:root>h3. *login.java -- implent the
    button1_action() method in the login.java backing bean*
        public String button1_action() {
            setValue("#{requestScope.username}",
    (String)username.getValue());
    setValue("#{requestScope.password}", (String)password.getValue());
            return "loginproxy";
        }h3. {color:#ff6600}*loginproxy.jspx -- a login proxy that the user never sees. The onload="document.forms[0].submit()" automatically submits the form as soon as it is rendered in the browser.*{color}
    {code}
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    version="2.0">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-W3CDTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html"
    pageEncoding="UTF-8"/>
    <html>
    <head> <meta
    http-equiv="Content-Type" content="text/html;
    charset=UTF-8"/>
    <title>Logging in...</title>
    </head>
    <body
    onload="document.forms[0].submit()">
    <form
    action="j_security_check" method="POST">
    <input type="hidden" name="j_username"
    value="${requestScope.username}" />
    <input type="hidden" name="j_password"
    value="${requestScope.password}" />
    </form>
    </body>
    </html>
    </jsp:root>
    {code}
    h3. {color:#ff6600}*secure/securepage.jsp -- A simple JSF{color}
    target page, placed in the secure folder to test access*
    {code}
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page
    contentType="text/html;charset=UTF-8"
    pageEncoding="UTF-8"/>
    <f:view>
    <webuijsf:page
    id="page1">
    <webuijsf:html id="html1">
    <webuijsf:head id="head1">
    <webuijsf:link id="link1"
    url="/resources/stylesheet.css"/>
    </webuijsf:head>
    <webuijsf:body id="body1" style="-rave-layout: grid">
    <webuijsf:form id="form1">
    <webuijsf:staticText id="staticText1" style="position:
    absolute; left: 168px; top: 144px" text="A Secure Page"/>
    </webuijsf:form>
    </webuijsf:body>
    </webuijsf:html>
    </webuijsf:page>
    </f:view>
    </jsp:root>
    {code}
    h2. {color:#993300}*_Step 4: Configure Declarative Security_*{color}
    This type of security is called +declarative+ because it is not configured programatically. It is configured by declaring all of the relevant parameters in the configuration files: *web.xml* and *sun-web.xml*. Once you have it configured, the container (application server and java framework) already have the implementation to make everything work for you.
    *web.xml will be used to define:*
    - Type of security - We will be using "form based". The loginpage.jsp we created will be set as both the login and error page.
    - Security Roles - The security role defined here will be mapped (in sun-web.xml) to users or groups.
    - Security Constraints - A security constraint defines the resource(s) that is being secured, and which Roles are able to authenticate to them.
    *sun-web.xml will be used to define:*
    - This is where you map a Role to the Users or Groups that are allowed to use it.
    +I know this is confusing the first time, but basically it works like this:+
    *Security Constraint for a URL* -> mapped to -> *Role* -> mapped to -> *Users & Groups*
    h3. {color:#ff6600}*web.xml -- here's the relevant section:*{color}
    {code}
    <security-constraint>
    <display-name>SecurityConstraint</display-name>
    <web-resource-collection>
    <web-resource-name>SecurePages</web-resource-name>
    <description/>
    <url-pattern>/faces/secure/*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    <http-method>HEAD</http-method>
    <http-method>PUT</http-method>
    <http-method>OPTIONS</http-method>
    <http-method>TRACE</http-method>
    <http-method>DELETE</http-method>
    </web-resource-collection>
    <auth-constraint>
    <description/>
    <role-name>User</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name/>
    <form-login-config>
    <form-login-page>/faces/login.jsp</form-login-page>
    <form-error-page>/faces/login.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
    <description/>
    <role-name>User</role-name>
    </security-role>
    {code}
    h3. {color:#ff6600}*sun-web.xml -- here's the relevant section:*{color}
    {code}
    <security-role-mapping>
    <role-name>User</role-name>
    <group-name>Users</group-name>
    </security-role-mapping>
    {code}
    h3. {color:#ff6600}*Almost done!!!*{color}
    h2. {color:#993300}*_Step 5: A couple of minor "Gotcha's"_ *{color}
    h3. {color:#ff6600}*_Gotcha #1_*{color}
    You need to configure the "welcome page" in web.xml to point to faces/secure/securepage.jsp ... Note that there is *_no_* leading / ... If you put a / in there it will barf all over itself .
    h3. {color:#ff6600}*_Gotcha #2_*{color}
    Note that we set the <form-login-page> in web.xml to /faces/login.jsp ... Note the leading / ... This time, you NEED the leading slash, or the server will gag.
    *DONE!!!*
    h2. {color:#993300}*_Here's how it works:_*{color}
    1. The user requests the a page from your context (http://localhost/MyLogin/)
    2. The servlet forwards the request to the welcome page: faces/secure/securepage.jsp
    3. faces/secure/securepage.jsp has a security constraint defined, so the servlet checks to see if the user is authenticated for the session.
    4. Of course the user is not authenticated since this is the first request, so the servlet forwards the request to the login page we configured in web.xml (/faces/login.jsp).
    5. The user enters username and password and clicks a button to submit.
    6. The button's action method stores away the username and password in the request scope.
    7. The button returns "loginproxy" navigation case which tells the navigation handler to forward the request to loginproxy.jspx
    8. loginproxy.jspx renders a blank page to the user which has hidden username and password fields.
    9. The hidden username and password fields grab the username and password variables from the request scope.
    10. The loginproxy page is automatically submitted with the magic action "j_security_check"
    11. j_security_check notifies the container that authentication needs to be intercepted and handled.
    12. The container authenticates the user credentials.
    13. If the credentials fail, the container forwards the request to the login.jsp page.
    14. If the credentials pass, the container forwards the request to *+the last protected resource that was attempted.+*
    +Note the last point! I don't know how, but no matter how many times you fail authentication, the container remembers the last page that triggered authentication and once you finally succeed the container forwards your request there!!!!+
    +The user is now at the secure welcome page.+
    If you have read this far, I thank you for your time, and I seriously question your ability to ration your time pragmatically.
    Kerry Randolph

    If you want login security on your web app, this is one way to do it. (the easiest way i have seen).
    This method allows you to create a custom login form and error page using JSF.
    The container handles the actual authentication and protection of the resources based on what you declare in web.xml and sun-web.xml.
    This example uses a statically defined user/password, stored in a file, but you can also configure JDBC realm in Glassfish, so that that users can register for access and your program can store the username/passwrod in a database.
    I'm new to programming, so none of this may be a good practice, or may not be secure at all.
    I really don't know what I'm doing, but I'm learning, and this has been the easiest way that I have found to add authentication to a web app, without having to write the login modules yourself.
    Another benefit, and I think this is key ***You don't have to include any extra code in the pages that you want to protect*** The container manages this for you, based on the constraints you declare in web.xml.
    So basically you set it up to protect certain folders, then when any user tries to access pages in that folder, they are required to authenticate.
    --Kerry                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Package Management for CodeExchange ABAP projects

    Hi CodeExchange ABAP Contributors,
    according to the size of ABAP in the [https://cw.sdn.sap.com/cw/codex/projects|CodeExchange Project Directory Tag cloud] most of the Projects are ABAP based. Some of them like Twibap, ABAP JSON and ABAP OAuth depend on each other. That is also the case if you want to install packages using [SAPLink|http://code.google.com/p/saplink/], then you need in the most of the cases some [Plugin|http://code.google.com/p/saplink/wiki/pluginList] installed. That can be sometimes very cumbersome.
    As a user of Perl, PHP and Ruby I was using their package management systems like CPAN, Pear and Gems. They provide an easy command line interface to install and update packages. In addition they take care about dependencies.
    I think it's time to start working on a Package Management for CodeExchange ABAP projects. Let's call it ABAP Package Management (APM). SAPLink providing the container to exchange the package and ZAKE to handle the download and install can be a good starting point.
    Let's discuss the problem space here and perhaps we also can involve someone who has perhaps already some experience in building a package management system.
    Best regards
    Gregor

    Hi,
    an XML file to be included into the nugg that describes dependencies on a base of Plugin ID, Plugin Name and Version should be enough.
    The XML should be managed by SAPLink, the hard job is to automatically download and install the plugins.
    How to login to CodExch?
    How to download the certified version of the plugin? A project can delete an old version nugg.
    As you said we need a central instance were the plugin version are versioned and identified univocally.
    Indeed we need a page in code exchange or a tool in release page in order to register the current file as versioned.
    Regards,
    Ivan

  • Newbie looking for maven-based web projects

    I'm looking looking for maven-based web projects so I could learn how to orginize and configure code and configuration files respectively. Thx in advance.

    Tones of good material exists at the Maven2 site:
    http://maven.apache.org/
    Another very good place where to find information:
    http://www.sonatype.com/book/
    To search for free jars (very useful)
    http://www.mvnrepository.com/search.html
    It is kind of difficult to start, but it worth the effort.
    I cannot imagine to start a project without Maven + Continuum

  • CO type- find manager HR : How to enhance it?

    Hi, Experts,
    I'd like to know the RFC or ABAP logic behind the standard CO type find manager,
    we want to enhance it to our own logic which based on other 'manager' defition.
    thanks and  best regards.
    Jun

    Hi,
    any idea which SPS this RFC is delivered with?
    I can see it in our ERP 2005 (IDES) system, but not in our SAP R/3 4.7x200 (w/ HR) system. In IDES I can see that it is located in SAP > BC > BC-GP > S_EUP_GP (Function Group CAF_EU_GP)
    I have been looking in the Object Lists of each individual Support Package (from the SAP Notes list in the Support Package Stack wizard in the SAP Support Portal). Unfortunately I am still coming up blank & this has taken me 6 hours so far.
    Does anybody know if/when this RFC becomes available (SPS level, or Support Package for 4.7)?
    Also does anybody know how to do a "global" Object List search for information like this?
    Many thanks for any information,
    Jim

  • Repot based on Project type

    Hi Experts,
    Is there any std. report in ps basing on project type?
    i have searched. But i could not find the same in PS STD Reports.
    pl. suggest.
    Regards,

    Thank you very much for the suggestion.
    It is worked.
    Regards

  • Server (Tomcat) Managed "Role-Based" Authentication (isUerInRole)

    I am using the Tomcat 5.0.27. In order to use server managed "role-based" authentication, we supply the server with two tables. One of the tables containes userID and password, and the other tables contains userID and userRole (a person can have more than one role). (We must map each user to his/her role somewhere, and it is in the $TOMCAT/conf/server.xml file)
    My difficulty stems from the tables are structured in my database. I do have a table that contains userID and password; however, I do not have a table that contains userID and userRole. In order to know a person's role, I have to navigate from one table to another using foreign key and primary key.
    Is there a way to tell the server to navigate from one table to another to find a person's role? Or we "must" create a table that contains userID and userRole for us to use the isUserInRole() method for security check?

    check out the tomcat docs
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm
    according to docs you have to create these tables
    create table users (
    user_name varchar(15) not null primary key,
    user_pass varchar(15) not null
    create table user_roles (
    user_name varchar(15) not null,
    role_name varchar(15) not null,
    primary key (user_name, role_name)

  • How to find next number range for project definition in tcode CJ20N

    Hai Experts,
          Please help me 'How to find next number range for project definition in tcode "CJ20N". I was trying in function module NUMBER_GET_NEXT. Is it right function module? If its right what input i need to give for this tcode and for the field project definition?
    Note: I searched in forum before posting, but couldn't find the solution.
    Thanks
    Regards,
    Prabu S.

    Hi,
    For project defination internal number is assigned by system.
    When you saves's project then system allocate one number to project defination, you can view it,
    SE11 >>> table  PROJ >> Click on contents >>> execute,
    here you will get your project defination & number is assigned to project defination.
    kapil

  • How assign a "Project Manager" for a new project?

    Hello,
    I need to know about the "Project Manager" in a new project.
    Does the "Resource Manager" build the team and assign a "Project Manager"?

    It totally depends on your organization process.
    Normally PMO creates project, build team,assign resources to tasks, then while save and  publish the projec assign Project manager as owner for the project plan.
    If you have Resource manager in your organization then he can build the team for the project publish it then PMO or project manager can assign the resource to the task then save and publish the plan. 
    IF project manager has idea about resources then he can also build the team and assign resource to the task.
    Note :- once PMO or resource manager build the team and publish the project then Project owner need to open the project plan add new field in the plan STATUS MANAGER and select his name for all task for which he will give the approval to the actual of the
    task send by resources.
    By default who ever will create project act as STATUS MANAGER for all the task. 
    kirtesh

  • Retention Policy and Managed folder based retention

    What is difference between "Retention Policy/ Policy Tags" and " Managed Content Settings"?
    In my setup , my managed folder folder become general folder after following steps
    1. Created Managed folder
    2. Created managed content settings for IPM.post and IPM.Appointment with retention action "Delete and Allow recovery".
    3. Created managed policy and applied to 1 mailbox, and this is working properly
    But After that,
    1. Created 3 retention tags(1 for inbox, 1 for sent, 1 personal).
    2. Created retention policy combining these 3 tags.
    3. Applied to SAME mailbox
    4. Ran 'ManagedFolderAssitant'
    **After this, Managed folder become general outlook folder.
    So, cant I have "Managed folder based retention for managed folders" and General retention for "Inbox,Sent"

    Exchange 2010 RTM introduced Retention Policies as the successor to the Message Records Management (MRM) technology introduced in Exchange 2007. MRM was the successor to Mailbox Manager Policies in Exchange 2003. Message Records Management is called MRM
    1.0 and Retention Policies is being called MRM 2.0 for short. MRM 1.0 as well as MRM 2.0 are both available in Exchange 2010. Only difference is we can manage Retention Policies from the EMC and EMS, but the Managed Folder Mailbox Policy is only Managed from
    the EMS through cmdlets in Exchange 2010 SP1.
    It completely depends on your requirements when to use MRM 1.0 and when to Use MRM 2.0.
     Certain new features are added in MRM 2.0 (Retention Policy) which allow us to manage our mailbox email items at very granular level. But if we are still happy with earlier version MRM 1.0 then we can continue using Managed folder mailbox
    Policy in Exchange 2010.
    [ Note: If we are Using the Retention Policy (MRM 2.0) then we can view the expiry of  each and every email items of the folders on which the retention Policy is tagged and this can be only view from OWA and Outlook 2010, But this feature
    is not available  for  Managed Folder Mailbox Policy (MRM 1.0) ]
    We cannot use the Base Folder only switch in MRM 2.0 because it is TAG  specific (DPT, RPT, and PPT) not Managed Folder specific.
    Managed folder Mailbox Policy is folder specific this would be the major difference.
    Refer to this link :
    Retention policies vs Managed folders

  • How to find the path of the project directory in Flex AS3.0?

    I am working on a project in which I reference a lot of external files. I need a way to refer to them relative to the location of the project folder.

    I don't want to know the location of the installed app. When I am building the project there are various content files in the project folder that get compiled too. I want to know the location of the content folder. Now, since this content folder is in the main project folder in Flex Builder, if I can find the location of the project folder, I can easily locate what I need - the content. But, I don't know hot to find the location of the main project folder on the hard disk.

  • How to find a materail based on Sales Area ??

    Dear All,
    How to find a materail based on Sales Area ??
    please let me know ..
    Thanks
    Venkat

    Hi Venkat
    Its actually the other way round- you extend a material to a sales area
    The quickest way to find all the sales areas to which a material is extended,  is to go to  transaction SE16 and give table MVKE and then give the relevant parameters.
    Please reward points if this helps you

  • Is it possible to find the  table based on the Date ?

    Dear Team ,
    Is it possible to find the table based on the Date ?
    I have created an table ,But forgot the Table Name .
    Is it possible to find the Tables created on particular Date .
    Regards ,
    Augustine

    as date is record the time also below query will work.
    select * from user_objects
    where
    object_type = 'TABLE' and
    to_date(created,'DD-MON-YYYY') =to_date('<your date value in DD-MON-YYYY format>','DD-MON-YYYY');
    Edited by: shaileshM on Feb 24, 2010 9:39 PM

  • MM-Based inventory management & Replenishment -based Inventory Management

    Hi,
    Can any one through me some light on the difference between "MM-Based inventory management" & "Replenishment -based Inventory Management" in IS-Retail.
    Is it something related to planning, If so what is the difference.
    Thanks in Advance,
    Shakthi Rajkumar.

    Hi
    In retail scenario the replenishment can happen in two ways
    (1) From DC to Stores
    (2) Directly from vendor to Distribution center.
    However the above two scenarios follow the following push / pull strategy to replenish the material.
    Case 1 : From DC to Stores
    How the push occurs ?
    Store orders/sales orders
    Automatic store orders/sales orders from different POS system
    Auto replenishment
    How the pull occurs ?
    Allocation of merchandise purchased
    Case 2 : Directly from vendor to Distribution center.
    How the push occurs?
    Reorder point planning
    Forecast based planning
    Time phased planning
    How the pull occurs?
    Allocation
    Manual purchase orders
    Hope this clarifies your doubts how the replenishment happens in retail scenario
    Reward if useful
    Regards
    edwin

  • Finding Manager for a pernr

    Hi Everyone,
    Can anyone plz. help me how to find manager for a given PERNR?

    Re: Finding the manager
    Re: find the manager for pirticular emp
    Re: How to get this relation of Employee ID and Manager ID

Maybe you are looking for