How to get number of leaves taken in a week?

Hi All
I have a leave type 'Hourly Leave' in hours. I want to find out the number of hours an employees has taken this leave in a week. I don't have OTL installed so dont have a holiday calender. I dont want to consider leaves other than weekly off.
Is it possible to find out this using Fast Formula and if yes then what is the high level definition of this formula?
Thanks in advance for the help.
Regards
Rahman

On the schedule functionality: This is available in 11i with FPK.RUP2 installed.
On the original question. Are you looking to report on this information or are you looking to prepopulate the 'duration' field in the Leave of Absence screen.
If you are looking to report on it you could do this just through SQL and I'm trying to understand why you need a formula.
Maybe we can take a step back and understand your business requirement and then advise on the best way to approach using the tools at your disposal.

Similar Messages

  • How to get number of rows return in SELECT query

    i'm very new in java, i have a question:
    - How to get number of rows return in SELECT query?
    (i use SQL Server 2000 Driver for JDBC and everything are done, i only want to know problems above)
    Thanks.

    make the result set scroll insensitve, do rs.last(), get the row num, and call rs.beforeFirst(), then you can process the result set like you currently do.
             String sql = "select * from testing";
             PreparedStatement ps =
              con.prepareStatement(sql,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
             ResultSet rs = ps.executeQuery();
             rs.last();
             System.out.println("Row count = " + rs.getRow());
             rs.beforeFirst();~Tim
    NOTE: Ugly, but does the trick.

  • How to get number of digits in given amount

    Hi Experts,
    How to get number of digits in given amount.
    Regards
    Mohit

    Check this :
    data: v_data1 type p decimals 3 value '12.860',
          v_char1 type char20,
          v_char2 type char20,
          v_char3 type char20,
          len type i.
    write v_data1 to v_char1.
    split v_char1 at '.' into v_char2 v_char3.
    len = strlen( v_char3 ).
    write:/ v_char2,
          / v_char3, " this holds the digit value
          / len.     " number digits

  • How i get number of record in repet frame?

    Hi,
    How i get number of record in repet frame?
    Regards
    Jomar

    Jomar,
    you can use Summary Columns in the Data Modell. Create them on group higher that your wished group (so on the pane for an first group of a query), use as Source the primary column and as reset at the group, where the summary column is located.
    If you hide some instances via format triggers, that you could use a counter inside the format triggers to count the rows.
    Regards
    Rainer

  • How to get number of rows in tableview

    Hello,
    Could anybody help me on how to get the number of rows in a tableview? Sort of using DESCRIBE TABLE in classic ABAP.
    Thanks,
    Ricky

    There is an attribute of the class CL_HTMLB_TABLEVIEW named
    ROWCOUNT.
    Inside an event u need to get this info use this code:
    Replace 'Monitor'  for the ID of your tableview
    DATA: tv TYPE REF TO CL_HTMLB_TABLEVIEW,
          r_count  type i,
          tv ?= CL_HTMLB_MANAGER=>GET_DATA(
          request = runtime->server->request
          name = 'tableView'
          id = 'Monitor' ).
          IF tv IS NOT INITIAL.
            DATA: tv_data TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
            tv_data = tv->data.
            r_count = tv_data->rowcount.
          ENDIF.

  • How to get number of pages in word document

    I am developing an OCR application where I need to get number of pages of word documents. I am currently assuming that each page consists of 46 lines but some how, I am not getting convinced with this logic. Is there any simplest way to get this information?
    Let me tell you that in the OCR system I am converting tiff iamges to .txt file and again reading txt file and counting number of pages based on number of lines.
    regards,
    Ranjan

    The number of pages depends on the font size, length of each line and any page break in between.
    You could just say, one page per 46 lines, it depends on how accurate you must be.
    Why not count the number of pages you scanned?

  • How to get number or size of selected messages

    Hey all
    Does anyone know how to get the number or the total size of a selected set of messages in Mail/10.8? I'm in the process of copying mail to an IMAP folder and want to get a general idea of how much stuff I'm sending before I do it.
    Thanks!
    Matt

    Thanks Leroy. That's what I was afraid of. It shows the size/quantity in IMAP folders, but not local folders. I would love a "status bar" as in the Finder, where it tells me how many messages I have selected ... one for the feedback form, I think.
    best
    Matt

  • ALV_GRID How to get number of lines after filted applyed?

    Hi, all!
    The task is to display title in alv_grid like
    "N records selected (X records on the screen)".
    It means, N records in dataset and X records displayed after  filter applyed by user.
    But i can't get number of lines after filter applyed from the alv_grid.
    Can anybody help me?
    Thanks & regards,
    Konstantin

    Hi,
    If it goes through PBO/PAI cycle after user sets the filter then in your PBO call method get_filtered_entries of CL_GUI_ALV_GRID and then do a describe statement on the table.
    Number of entries in your grid table - number of entries in this filtered entries table will give you the displayed entries after the filter is set.
    If it does not go through PBO/PAI cycle then register for after_user_command and I think the fcode for filter is '&FILTER' and code for the above logic in your handler method..
    Hope this helps..
    Sri

  • How to get number of rows and columns in a two dimensional array ?

    Hello,
    What would be the simplest way to get number of rows and columns in a two dimensional array represented as integers ?
    I'm looking for another solution as For...Each loop in case of large arrays.
    Regards,
    Petri

    Hi Petri,
    See a attached txt file for obtaining two arrays with upper and lower index values
    Regards
    Ray
    Regards
    Ray Farmer
    Attachments:
    Get2DArrayIndex.txt ‏2 KB

  • How to get Number of Column in Excel file

    Hi All,
                   My requirment is to get Number of Column in Excel file which i want to upload,
      so please suggest if there is any possible way to get this functionality.
    Thanks
    Anirudh

    Use FM "ALSM_EXCEL_TO_INTERNAL_TABLE".
    Adjust the values of i_begin_col & i_end_col parameters in this FM.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                      =
          I_BEGIN_COL                   =
          I_BEGIN_ROW                   =
          I_END_COL                     =
          I_END_ROW                     =
        TABLES
          INTERN                        =
      EXCEPTIONS
        INCONSISTENT_PARAMETERS       = 1
        UPLOAD_OLE                    = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards,
    BBR.

  • How to get videos I have taken from my computer to my TV by using Xfinity X1.

    I have managed to get photos from computer to TV, but can't find how to get my videos from my computer to my TV. I am using Xfinity X1 and am Triple Play customer. Thanks

    jimhuskey2 wrote:
    I have managed to get photos from computer to TV, but can't find how to get my videos from my computer to my TV. I am using Xfinity X1 and am Triple Play customer. Thanksthere is a feature to get video from your smartphone to the TV, the xFinity Share app. Possible to transfer to phone first?

  • How to get number of rows

    Hi!
    Can someone tell me how to obtain the number of rows returned by a query?
    I tried to use getFetchSize() but it seems to always return 0 for my query.
    THANKS in advance!
    ResultSet testRS = Stmt.executeQuery(testStmt);
    int size = testRS.getFetchSize();
    System.out.println("size = " + size);
    Wo Lay

    To get the number of rows returned, you have to loop
    through the result set, or do a "select count" (which
    is more efficient since it doesn't have to pass the
    rows across the network) ...Looping around the entire result set is not very performance efficient. Then agin if you use count (*) you actually execute an extra query.
    The best thing you can do is:// assume res is your result set.
    res.last();
    int rows = res.getRow();This way you only have to execute one query and you don't really need to loop around the entire result set. Of course you will have to have a scrollable result set, if this is supported by your DB.
    Hope that helped.
    afotoglidis

  • In XI mapping, how to get number from a number_range object in SAP R/3

    HI All,
    I have a scenario where I need to read a Number_range object  in SAP R/3 or ABAP XI and retreive the current number.
    I need to use this number during the message mapping.
    (I read about JCO and RFC, but am a little confused about how-to and what is the correct approach)
    Just to let you know, I do not want to pass this number in the original IDOC coming from IDOC, so I need this lookup.
    Scenario:
    In MM, make a call to SAP.
    Get the latest number from SNRO( number-range object)
    Use this number in mapping.
    Any help pointers, greatly appreciated.
    Many thanks
    Shirin

    Shrin,
    Please find the parameters you need to specify while creating UDF
    Imports:javax.xml.transform.stream.StreamResult;com.sap.aii.mapping.lookup.;javax.xml.transform.dom.DOMSource;javax.xml.parsers.DocumentBuilder;java.io.;javax.xml.parsers.;org.w3c.dom.;org.xml.sax.;javax.xml.transform.;
    The Template for RFC Lookup
    String content = "";
    MappingTrace importanttrace;
    importanttrace = container.getTrace() ;
    //Filling the string with our RFC-XML (With Values)
    String m = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns0:<Function Module name>xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\"></ns0:ZFI_GET_RUNID> ";
    RfcAccessor accessor = null;
    ByteArrayOutputStream out = null;
    try
    //1. Determine a channel (Business System, Communication channel)
    Channel channel = LookupService.getChannel("<Business System Name>","Communication channel name");
    //2. Get a RFC accesor for a channel.
    accessor = LookupService.getRfcAccessor(channel);
    //3. Create a xml input stream representing the FM request message.
    InputStream inputstream = new ByteArrayInputStream(m.getBytes());
    //4. Create xml Payload
    XmlPayload payload  =  LookupService.getXmlPayload(inputstream);
    //5. Execute Lookup
    Payload result = accessor.call(payload);
    InputStream in = result.getContent();
    //This are the extra step which i dont know what it mean
    //out = new ByteArrayOutputStream(1024);
    //byte[] buffer = new byte[1024];
    //for (int read = in.read(buffer); read > 0; read = in.read(buffer))
    //out.write(buffer,0,read);
    //content = out.toString();
    try {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse(in);
    NodeList list = document.getElementsByTagName( "REsult" );
    Node node = list.item(0);
    if (node  != null)
         node = node.getFirstChild();
         if (node  != null)
              content = node.getNodeValue();
    } catch (Exception e) {
    importanttrace.addWarning("Error while closing accesor" + e.getMessage());
    catch (LookupException e)
    importanttrace.addWarning("Error While lookup" + e.getMessage());
    //This exception is not to be catch at this step as there is no try step before this
    //catch (IOException e)
    //importanttrace.addWarning("Error" + e.getMessage());
    finally
    if(out!=null)
      try{
           out.close();
    } catch (IOException e) {
    importanttrace.addWarning("Error while closing system" + e.getMessage());
    //7. close the accessor in order to free resources
    if (accessor!=null) {
    try{
          accessor.close();
    } catch (Exception e) {
    importanttrace.addWarning("Error while closing accesor" + e.getMessage());
    return content;
    Have mentioned in genric  where u need to specify the communication channel name, business service etc.,
    Moreover there is a field result, which is the output returned from the FM

  • How to get number document of Original documents

    Hi all !
    now I have a request how to obtain original documents. Specifically as follows:
    I have an Invoice 1. I'm partial payment for that Invoice. The system generates a new invoice and it will be the clearing document for an invoice. Then I continued to make a payment more than once.
    How can I get an invoice number of the document?
    If you have a solution or experienced this problem. Please just help me.
    I would just appreciate your help. Thank you very much.

    My specific requirements are as follows:
    I have Invoice_1 with a value of u20AC 10,000.
    I use T-Code F-02 to make Payment_1 enter the value 1000 EUR. Then Using Residual Clearing (F-32) to make clear the Payment_1 and Invoice_1.
    After making clear, the system will generate Invoice_2 with a value of u20AC 9,000.
    In the database of the system will be Invoice_2 Document Clearing of Invoice_1. How to document from the number of Invoice_2 I know the document number Address Invoice_1.
    Note: This is just a simple case because only a Payment was made. In fact there may be many times the payment should be made by the clearing document was very difficult.
    I want a solution that actually simple enough to know number Address document of the original documents from the document by Clearing document number.
    Thanks !

  • How to get number of lines entered in detail block

    Hi ,
    Below is my requirement, I am calling custom form from standard RCV transactions form.
    Below are parameters : PO NUMBER, RCPT NUM, QTY. These values will be passed from standard form to custom form and these values will be stored at header level in my custom form.
    Based on the Quantity, I have to validate my detail block. For eg. If my quantiry is 10, my detail block items should not less or greater than 10.
    Can any one please suggest me how to achieve this. I tried SYSTEM.TRIGGER current record etc,. I am getting below issue. If I place my cursor on any other record rather than last record it is throwing error. SO any experts please help here.
    Thanks,

    You can use a calulated item of type summary for this. set the following propertie for a newly created item in your detail block
    -Summary type=Summary
    -Summary function=Count
    -Summarized block=your detail block
    -summarized item=any Required item in your detail block
    Now you can check the number of records with that item.

Maybe you are looking for

  • Conversion of unit of measure

    Dear Guru, I am making Sales Order, when I give freight in KG, it does not convert in gram or Ton. from where it will be done. Regards, Manoj Kumar

  • MC74 : how transfer SOP to PIR for a specific mrp area

    Dear guru , i want to transfer Planning Data of a SOP Version for a single material to Demand Management. The copy to Demand is run directly into the plant of the SOP Version. I manage MRP Area. How can I transfer directly SOP to PIR for a specific m

  • PCUI - portal event - webDynpro Abap

    Hello, From standard PCUI, which used to create partner, I want to get a value partner and send it to a view that content Webdynpro Abap through portal Event. Is it possible? How? Thanks.

  • 'BAPI_GOODSMVT_CREATE'  for ExtensionIN in documentation tab no structures

    Hello Friends, I am doing GR posting with BAPI 'BAPI_GOODSMVT_CREATE' but i need to enhance this BAPI to add some custom field with the help of EXTENSIONIN... kindly help me if any one have already work on that. For this bapi in the documentation tab

  • Writing to an output file

    Hello all,     I have an ABAP program in BW which reads the data from a BW ODS active table and writes the output to an external file on the server.     The file that is generated is huge(13 MB). The file is generated with the correct results, but al