How to get personnel number of the user in the wd java code in Leave reques

Hi all,
we are using the standard Leave Request Applicatin ESS.
can any one please tell me how to get the personnel number of the user in the WD java code?
cause i have pass the pernr number to a bapi and get the details.
please help me its urgent.
thanks in advance.

Hi Madhu,
Create a model for the particular bapi in wd java and acess it in your component. Then pernr parameter will be available in the context and u can pass value for the parameter (pernr) to the model and get the output.
If you hav any doubt, please let me know.
Regards,
Jithin

Similar Messages

  • How to get physical number of selected row on the screen.

    Hi,
    We have block defined with Numbers of Records Displayed = 3. In the same time the data set contains 10 records. We would like to know how to get a number of row selected on the screen. i.e. in our case that the number will be always between 1 and 3 independent of the current row position in the data set.
    Best regards,
    Constantin.

    You can calculate that number by subtracting :SYSTEM.CURSOR_RECORD and GET_BLOCK_PROPERTY('BLOCK', TOPMOST_RECORD)

  • How to get BP number having SAP User ID .?

    HI all,
    How to get BP number of a user having his SAP User ID .?
    Help reg this.

    hi check this...
    In SUS Link between registered User ID and Business Partner (Vendor) Number
    Assign User to Business Partner
    regards,
    venkat .

  • How to get Maximum Number of Concurrent users for last few days?

    Hi,
    How I can get maximum number of concurrent users which were logged in to the system (ECC 5.0) I mean I want to check the hostory for last few weeks. Is there any way to get the same? I know that I can get Cumulative number of users in st03 under Expert mode but that is the number of users logged into the system during the day. Is there any place where SAP maintians the High Watermark of Number of concurrent users reached in the system?
    Thanks in advance...
    Regards,
    Pravin

    Sorry I really missed that I have posted a question here on sdn. I wanted to know this for planning the system hardware requirements. Activities like PM ( Performance Management ) happens once a year and during that activity we see heavy user loan on the system so if I have the exact stats of 1 or 2 years data I can size the system better next time. Fortunately last 2 years PM was very smooth for us. In that look for the improvement because each time we had little extra Harware. By doing the exact analysis we can save a Cost of ownership...
    I was looking for R/3 users. I could see the number in st07 but I want to know the exact number at particular time.. I believe that st07 stores only for few days.
    Thanks
    Pravin

  • How to get highest number of open cursors within the current calendar day

    Hi all ,
    i need to know how to get the highest number of open cursors within the current calendar day.
    Thanks ,

    823030 wrote:
    the issue is my customer is getting the error ORA-01000: maximum open cursors exceeded and we need an sql statment that gets the following values :
    -highest number of open cursors experienced in the current calendar day.
    -current open cursors
    -and maximum open cursorsThis error is rare. It happens when
    a) the value of the open cursor parameter is set extremly low (default is something like 1000). Low would be something like 10.
    b) <strike>you have many concurrent users(=sessions) and </strike>the application does not use bind values
    In this case each select will open a new cursor, instead of reusing it.
    c) you have a select that opens a cursor for each line. This can happen with a statement where you have the CURSOR keyword somewhere in the select or where clause. Those cursors will be closed when the select is finished. But during the run time of the select, all cursors stay open.
    To track the number of "open cursors" during the day you would need to implement some monitoring. Maybe based on the view that was already mentioned.
    Edited by: Sven W. on May 16, 2011 2:30 PM - since the parameter is on session level, other open cursors should not influence it much.

  • How to get mail, firstname, lastname of user in OID by java?

    Hi all,
    I'm trying to get mail, firstname, lastname of user in OID, but I don't know how to work
    Please help me!!!
    Thanks!!!
    PS:I can get the userId by this code
    try
    InitialDirContext ctx = ConnectionUtil.getDefaultDirCtx(server,
    server_port,
    "cn=orcladmin",
    password );
    try
    Subscriber sub = new Subscriber(ctx,Util.IDTYPE_DN, cn,false);
    String[] arr=null;
    User[] user =sub.getUsers(ctx, Util.IDTYPE_SIMPLE, "*",null,arr);
    String[] users = new String[user.length];
    String dm ="cn=";
    for(int i=0;i<user.length;i++)
    users[i] = user.getDN(ctx).substring(0,user[i].getDN(ctx).indexOf(","));
    users[i] = users[i].substring(dm.length(),users[i].length());
    return users;
    //System.out.println("ok");
    catch(UtilException ue)
    System.out.println("error");
    return null;
    } // User myuser = null;
    catch(NamingException ne)
    // javax.naming.NamingException is thrown when an error occurs
    System.out.println(ne);
    return null;

    You are almost there.
    String[] arr=null;
    User[] user =sub.getUsers(ctx, Util.IDTYPE_SIMPLE, "*",null,arr);
    The String Array arr here needs to be an array of attributes that you wish the system to return with the search.
    Then from your User object you can get a collection of those attributes, here is a function that loads them into a HashMap
    private HashMap loadAttributes(User ldapUser, String[] attributes) {
    HashMap resultMap = new HashMap(attributes.length);
    PropertySetCollection psc;
    try {
    psc = ldapUser.getProperties(ctx, attributes, true);
    if (psc.isEmpty()) {
    return null;
    PropertySet userVals = psc.getPropertySet(0);
    for (int i = 0; i < userVals.size(); i++) {
    Property thisProperty = userVals.getProperty(i);
    if (thisProperty.size() > 1) {
    StringBuffer workBuf = new StringBuffer();
    for (int j = 0; j < thisProperty.size(); j++) {
    workBuf = workBuf.append((String) thisProperty.getValue(j)).append(",");
    resultMap.put(thisProperty.getName(), workBuf.toString());
    } else {
    resultMap.put(thisProperty.getName(), (String) thisProperty.getValue(0));
    } catch (UtilException e) {
    return null;
    return resultMap;
    }

  • How to execute BAPIs by getting the input from the user through the browser

    Hi,
    I have created a simple xMII transaction using BAPI. It is a simple BAPI with one input. Now i want the transaction to be executed by getting the input from the user through browser. Once the user enters the value and clicks on a button, I want the result of the BAPI to be displayed in the grid. How to link the BAPI/transaction with applet/Javascript coding.
    Thanks.

    The first thing I would recommend would be for you to collaborate with your colleague Vinodh, since his/her recent thread is very similar to yours:  Calling a BAPI from web page
    In your case, the iGrid applet will run the Xacue query template and automatically display the results from your output parameter.
    I would encourage you to take a look at the sticky thread at the top of the forum entitled "MII Manufacturing Templates Updated" since this MII project is full of samples for you and your colleague to learn from.

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • How to get total number of result count for particular key on cluster

    Hi-
    My application requirement is client side require only limited number of data for 'Search Key' form total records found in cluster. Also i need 'total number of result count' for that key present on the custer.
    To get subset of record i'm using IndexAwarefilter and returning only limited set each individual node. though i get total number of records present on the individual node, it is not possible to return this count to client form IndexAwarefilter (filter return only Binary set).
    Is there anyway i can get this number (total result size) on client side without returning whole chunk of data?
    Thanks in advance.
    Prashant

    user11100190 wrote:
    Hi,
    Thanks for suggesting a soultion, it works well.
    But apart from the count (cardinality), the client also expects the actual results. In this case, it seems that the filter will be executed twice (once for counting, then once again for generating actual resultset)
    Actually, we need to perform the paging. In order to achieve paging in efficient manner we need that filter returns only the PAGESIZE records and it also returns the total 'count' that meets the criteria.
    If you want to do paging, you can use the LimitFilter class.
    If you want to have paging AND total number of results, then at the moment you have to use two passes if you want to use out-of-the-box features because LimitFilter does not return the total number of results (which by the way may change between two page retrieval).
    What we currently do is, the filter puts the total count in a static variable and but returns only the first N records. The aggregator then clubs these info into a single list and returns to the client. (The List returned by aggregator contains a special entry representing the count).
    This is not really a good idea because if you have more than one user doing this operation then you will have problems storing more than one values in a single static variable and you used a cache service with a thread-pool (thread-count set to larger than one).
    We assume that the aggregator will execute immediately after the filter on the same node, this way aggregator will always read the count set by the filter.
    You can't assume this if you have multiple client threads doing the same kind of filtering operation and you have a thread-pool configured for the cache service.
    Please tell us if our approach will always work, and whether it will be efficient as compared to using Count class which requires executing filter twice.
    No it won't if you used a thread-pool. Also, it might happen that Coherence will execute the filtering and the aggregation from the same client thread multiple times on the same node if some partitions were newly moved to the node which already executed the filtering+aggregation once. I don't know anything which would even prevent this being executed on a separate thread concurrently.
    The following solution may be working, but I can't fully recommend it as it may leak memory depending on how exactly the filtering and aggregation is implemented (if it is possible that a filtering pass is done but the corresponding aggregation is not executed on the node because of some partitions moved away).
    At sending the cache.aggregate(Filter, EntryAggregator) call you should specify a unique key for each such filtering operation to both the filter and the aggregator.
    On the storage node you should have a static HashMap.
    The filter should do the following two steps while being synchronized on the HashMap.
    1. Ensure that a ConcurrentLinkedQueue object exists in a HashMap keyed by that unique key, and
    2. Enqueue the total number count you want to pass to the aggregator into that queue.
    The parallel aggregator should do the following two steps while being synchronized on the HashMap.
    1. Dequeue a single element from the queue, and return it as a partial total count.
    2. If the queue is now empty, then remove it from the HashMap.
    The parallel aggregator should return the popped number as a partial total count as part of the partial result.
    The client side of the parallel aware aggregator should sum the total counts in the partial result.
    Since the enqueueing and dequeueing may be interleaved from multiple threads, it may be possible that the partial total count returned in a result does not correspond to the data in the partial result, so you should not base anything on that assumption.
    Once again, that approach may leak memory based on how Coherence is internally implemented, so I can't recommend this approach but it may work.
    Another thought is that since returning entire cached values from an aggregation is more expensive than filtering (you have to deserialize and reserialize objects), you may still be better off by running a separate count and filter pass from the client, since for that you may not need to deserialize entries at all, so the cost on the server may be lower.
    Best regards,
    Robert

  • How to let the user define the colors for each plots in the graph (I use LabVIEW 7)?

    How to let the user define the colors for each plots in the graph (I
    use LabVIEW 7)?

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • How to get row number of selected entry from OVS search result

    Hi,
    Anyone having any idea on how to get row number of the  selected entry/ how to differentiate rows in OVS search result in ON_OVS method?
    Regards,
    Jatin

    Hi,
    You can get the selected record to <ls_selection> structure in co phase 3.
    From that structure you can get what ever field you want.,
    check the below code for reference,
    << Moderator message - Cut and paste response from F4 help for ALV table field removed. Plagiarism is not allowed in SCN >>
    hope this helps u.,
    Thanks & Regards,
    Kiran
    Edited by: Rob Burbank on Jan 5, 2012 5:24 PM

  • How to get paragraph number of selected text in ID CS4

    Hi,
    Can anybody help me how to get paragraph number of selected text in Indesign cs4.
    Thanks,
    Gopal

    Ah, I see -- thanks. Turns out that there's no difference in speed between texts.itemByRange(), characters.itemByRange(),and insertionPoints.itemByRange(). In a document with 170 pages of text, and with the cursor in the last paragraph, the second and third lines, below (and your function), give exactly the same result:
    t = app.selection[0];
    t.parentStory.texts.itemByRange (t.parentStory.insertionPoints[0], t).paragraphs.length;
    t.parentStory.characters.itemByRange (t.parentStory.characters[0], t).paragraphs.length;
    Peter

  • How to get OSB to stop appending port # in the endpoint of a published WSDL

    This is the closest thread I could find to my issue, but still is not quite what I am looking for: How to get ip number in WSDL instead of host name? I have an OSB server behind a VIP, and I am publishing a proxy service for an external client to call. The VIP only accepts connections over SSL/https. OSB only hosts services on http/port 80, and the VIP handles the connectivity and security between them.
    I wrote a wsdl by hand, set my endpoint to the VIP address (https), created the proxy service, and deployed to OSB. I can test the service all day in SoapUI by calling the VIP, so far so good. However, when the client calls https://VIP/myService/?wsdl, he sees the wsdl's endpoint populated as http://VIP/myService:80.
    How do I stop OSB from appending :80 to the endpoint in the wsdl? This makes it unusable for any client caller to generate code by calling ?wsdl, so it forces us to export the wsdl and all schema files and provide to clients by hand. What configuration setting can we change that will fix this behavior?

    vladodias wrote:
    OSB only hosts services on http/port 80...You can change OSB to host on any port you want and can also configure security...
    http://docs.oracle.com/cd/E28280_01/dev.1111/e15866/model.htm
    http://docs.oracle.com/cd/E28280_01/web.1111/e13707/ssl.htm#i1200848
    appending :80 to the endpoint in the wsdl ... makes it unusable for any client caller to generate code by calling ?wsdl
    I should have mentioned that :80 was an external constraint, so it was not an option to change this portion of the OSB configuration...
    Most wsdl clients should be able to call a wsdl from any port as well... The presence of :80 shouldn't make any difference... So, I can't quite understand that either...The point is to be able to provide a framework to clients that needs as few settings overridden as possible, so we'd like the published endpoint to actually match the true endpoint that we would expect a client to call.

  • How to get material number in smart form driver prog attached to MM01:NACE?

    Hi,
    I have attached driver program of smart form to MM01 usinfg nace.
    On save smart form should get generated.
    Can anybody guide me how to get material number from MM01 in driver program on saving MM01.
    as of now am not getting values in smart form.
    What additional lines to be coaded in driver program to get material number.
    Thanks.

    hi,
    use nast table in your import paramaters of smart forms.
    In the Nast table you can find a field with object key which holds the Material Number.
    Hope this helps.
    Thanks,
    subash

  • How do i change the user on the new health app?

    How do I change the user on the new health app?

    alsastud wrote:
    How do I delete the old User and create my own name and settings?
    Really, the best way is to "fool" the system into thinking this is a first run system.  To do this, you need to do the following
    First, boot into single-user mode by powering the system while holding the cmd-S key combination down.  This should bring you eventually to a black screen with a Unix terminal display.  Type the following three commands (that period before AppleSetupDone is very important):
    /sbin/mount -uw / <cr>
    rm /var/db/.AppleSetupDone <cr>
    shutdown -r now <cr>
    What should happen is that when the machine reboots after the last command, you should get a "Welcome to MacOS" routine which will ask you for user information and set up your new account using that information.
    After you get that done, you should, one way or another, be able to delete the folder of the old user in the Users folder, though you may need some help with that as well.

Maybe you are looking for