To calculate Service as on date

Hi,
    I want to calculate the service as on date.
Employee No                     Employee Name                                  Date of joining                                      Service as on date
1000                                    XXXXXXX                                        01.06.2004                                            5 Years 3 months
2000                                  yyyyyyyyyyyyy                                01.08.2008                                            1 year 1 month
Is there any function module.
can you help me.
Regards,
K.Karthikeyan.
Edited by: Karthikeyan Krishnan on Sep 8, 2009 5:31 PM

In your case just pass the employee join date and current date.
I think this is what you want
data:wa_output type PSEN_DURATION_DEC.
CALL FUNCTION 'HR_SEN_CRULE_0100_DURATION'
  EXPORTING
    id_begda                       = dat1  "service join data
    id_endda                       = sy-datum  "current date
IMPORTING
   ES_DURATION                     = wa_output
EXCEPTIONS
   CONVERSION_NOT_SPECIFIED       = 1
   CONVERSION_NOT_POSSIBLE        = 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.
else.
  write:/ 'Years', wa_output-CALYY  DECIMALS 0,
        / 'Months',wa_output-CALMM  DECIMALS 0,
        /'Days', wa_output-CALDD    DECIMALS 0.
ENDIF.
Edited by: Keshu Thekkillam on Sep 8, 2009 5:42 PM

Similar Messages

  • HT4995 Internationally using Location Services without having data charges.  What settings should use on my iPhone 5?

    I'm traveling to Europe and I want to use Location Services without having data charges.  What settings should use on my iPhone 5?  I want to be able to use Trip Advisor City Guides Application to tour around cities for free.  I have a Verizon International Plan for my trip, but it is still pricey.  I would like to keep my iPhone cell services on for incoming calls, but I want to prevent international data charges.  Thanks for your help!

    You don't "choose" to use th 3g network.
    If you have paid for it in your plan and 3g coverage is available, your phone will automatically use it when necessary.
    3g provides faster internet speeds than 2g, so you can watch video or download stuff faster. Wifi is normally faster than 3g.
    Your iphone gps is "assisted", meaning it uses network data to calculate your position.
    Also, you would still need the network to download maps, directions etc as they are not on your device.

  • Informix / SQL Query to calculate Service Level Met %

    Hi,
    We have a client running UCCX 7.0 and we are upgrading it to 8.5.
    They have a custom .net application that display different stats on IP Phone. I have converted all of them except i am having problem calculating Service Level Met %
    Existing SQL query converts boolean into Float but Informix gives error that boolean can't be converted to float or integer.
    here is part of existing query (SQl Server) to calculate service level met %
    ROUND((SUM(CAST(ssl.metServiceLevel AS FLOAT))/COUNT(CAST(ssl.metServiceLevel AS FLOAT))) * 100,2) AS serviceLevelMet
    I will greatly appreciate if anyone can help converting this query into Informix query format.
    Thank you

    Hi Sonain
    Try this, it won't display a service level until you have received at least one call on the CSQ.
    SELECT csqsum.CSQName,loggedInAgents,talkingAgents,availableAgents,workingAgents,reservedAgents,servicelevel
    FROM  RtCSQsSummary csqSum left outer join
         (SELECT csqname, ROUND(sum(100 * (MetSL)/ (case when (MetSL + NotSL  = 0) then 1 else (MetSL + NotSL) end)) ) as servicelevel
            FROM(
                SELECT
                     trim( csqname) csqname
                    ,sum( case cqd.metServiceLevel when 't' then  1 else 0 end)  MetSL
                    ,sum( case cqd.metServiceLevel when 't' then 0 else 1 end) NotSL
                FROM ContactServiceQueue csq
                    inner join contactqueuedetail cqd  on cqd.targetID = csq.recordID
                    inner join contactroutingdetail crd on crd.sessionID = cqd.sessionID
                    inner join contactcalldetail ccd on crd.sessionID = ccd.sessionID
                WHERE Date(current) - Date(crd.StartDateTime ) = 0
                GROUP BY csqname
            )z
       GROUP BY z.csqname
        )y
    ON y.CSQName = csqsum.CSQName
    Please rate helpfull posts.
    Graham

  • How do you access a web service to insert data into table?

    Ok I have a simple html/jsp survey form to host on our web site. Because of firewall issues I cannot do a direct connect to the database and insert the data from the form. So I need to take the data from the survey form, and pass it to an existing web service, or create a web service that will insert this information for me into the database table?
    Thanks again.
    orozco

    Thanks for the reply shanu. Well, because of firewall issues, as a work around we use a web service to insert data into the database table. Since the Web Service already exist, we just thought it would be easy enough just to pass the parameters to it, and have it do the insert. So really all I need is just to communicate with the already existing web service. I will be honest though I have not really worked with web services before.
    orozcom

  • Crystal Report using a Web Service as a data source?

    I am trying to figure out how to use a Web Service as a data source in Crystal Reports. When I use the report wizard, I do not see an option to select Web Service as a new connection. We are currently using Crystal Reports 2008 v12.1.0.892. Could it be that my version does not support this? Is there an update that contains this feature? Please help.

    Thanks for your response. Unfortunately I do not see a radio button for Web Services. I've read that it should be there too. Could it be a missing plug-in or patch?
    Here are screen shots of what I see when trying to connect to an XML. Any thoughts?
    [http://s26.photobucket.com/albums/c120/hpolit/?action=view&current=wizard1.jpg]
    [http://s26.photobucket.com/albums/c120/hpolit/?action=view&current=wizard2.jpg]

  • Using a Web Service as a data provider for a Crystal Report

    <p>I&#39;m trying to write a Crystal Reports XI report that uses a Web Service as the data provider.  I have a Web Service written in ColdFusion that looks like this.<br /><br /><cfcomponent displayName="FindEmployee" ><br />   <cffunction name="FindEmployeeSort" access="remote"          <br />               returnType="xml" output="false"><br />      <cfdump var=form><br />      <cfset myXML = ""><br />       <!--- FindEmployeeSort body ---><br />       <cfquery name="EmployeeQuery" datasource="Production"><br />           Select * from employee<br />          <cfif isdefined(&#39;form.lastname&#39;)><br />             WHERE lastname LIKE &#39;%#form.lastname#%&#39; <br />          </cfif><br />           Order by lastname asc <br />        </cfquery><br />     <cfreturn EmployeeQuery>  <br />   </cffunction><br /></cfcomponent><br /><br />I can get the web service to work from a ColdFusion page (either locally or on a remote server).</p><p>When I try to create the CR data source, I get the following error:</p><p>Crystal Reports<br />! Logon Failed.<br />Details: Cannot find correspondign table information in the XML file</p><p>The steps I took were:<br />* Choose XML from the "Avalable Data Sources"<br />* Choose "Use Web Service Data Source"<br />* Choose "Use HTTP(S) WSDL" with a url of <a href="http://host/directory/FindEmployee.cfc?wsdl">http://host/directory/FindEmployee.cfc?wsdl</a><br />* Leave the "HTTP(S) Web Service User ID:" and "HTTP(S) Web Service Password:" parameters blank<br />* Accept the defaults for Services, Ports, and Methods.  They are respectively FindEmployee, FindEmployee.cfc and FindEmployeeSort.<br />* Then get the error</p><p>The most likely candidate to me is the user id and password, but I have no idea what to use.  I didn&#39;t have to set any login information up in the ColdFusion pages that I used to test the Web Service.</p><p>Any ideas where to go from here?</p><p>Thanks,</p><p>Brian</p>

    Please re-post if this is still an issue to the Java Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Web service as a data source in Crystal Reports 2008

    Post Author: jpdv
    CA Forum: Data Connectivity and SQL
    I've tried to setup a new report using a web service as a data source.
    Untill now, I have not been successful. I always get the same error: unable to log on to data source.
    Is there any sample that I can try so that I understand what I'm doing wrong?
    Or any documentation on the subject?
    Thanks.

    Having the same issues here also.
    I can see the wsdl file being accessed successfully in the web access log, but Xcelsius v5.3 return "unable to load URL"
    Only thing I can guess is that the schema is "untyped"
    So, nobody in SAP has a solution?

  • How to calculate the volume of data used (PI licensing limit).

    Hi,
    One of our customers has several interfases running on SAP PI. They have a license that allows them the use of PI for a quantity of Gb in message data per month (I think that's the usual way).
    They would like to know how near/far they are of their limint of data, so they would like to know how does SAP evaluate that.
    Does  anybody know wich tool(s) are used by SAP to calculate the volume of data spent in one month?. We would like to launch those tools and get this info (so we can evaluate if we can add new interfases or change the periodicity of existing ones within the limits of the current license).
    Thanks in advance for your help.
    Best Regards
    Rafa

    Hi Mark,
    I have a quick question. The links that you provided gives an idea of the way in which the volume is calculated. This is helpful.
    My question is regarding Auditing and Compliance:
    Client has bought SAP PI licence for certain GB of data per month.
    Can this report be generated automatically classified by SAP and Non SAP Systems (PI licence volume constraints are normally for data exchange for non SAP Systems)?
    Also can this data be measured at Adaptor level? How does one monitor data at Adaptor level.
    Thanks And Regards,
    Maloy

  • MS SQL database needs to run mdx query to analysis services to retrieve data from a BPC 10 Netweaver cube(view only)

    We are in the process of migrating from BPC7 SP12 Microsoft sql server to BPC10 netweaver on a sql server with BW7.4 and need to integrate our home grown data warehouse which is on a Microsoft sql server.  The data warehouse currently connects to BPC7 using integration services/analysis services and runs mdx queries to analysis services to retrieve data from the BPC7 cube (view only).  Please provide documentation on how to create this same integration with our data warehouse using BPC10 netweaver on a sql server.

    When you were setting up your ODBC data source for
    the Text driver, did you click on the "Options"
    button? There's a lot of options in there that I
    didn't understand at first glance.Yes I clicked on the options button, but the only thing there is dealing with file extensions. I left it set to the default.
    I have since tried closing my connection after I insert a record, I then try executeQuery, but still no luck. Seems strange that I can write to the file but not read from it. If any thing I'd expect the opposite problem.
    I have also tried using the class "JoltReport" from the sun tutorial instead of my own with the same result.
    Message was edited by:
    Hentay

  • Calling a web service from BusinessObjects Data Services

    Hi all,
    We are trying to generate a several levels deep structure to prepare the request for a web service call from Data Services. We tried using the Query transformation to map constant values to fields, but as there are nested complex structures, those don't get populated and at runtime we just get an empty request body. We also tried changing the 'optional' and 'occurrence' settings for the structures at every level, but did not help either. Is there any way to create a deep structure manually without getting the input from an XML file or having to create a persistant table, and if we should be using other functions rather than Query step to do so?
    Thanks,
    S. Gokhan Topcu

    Hi
    It is possible to map a heavily nested structure.  The minimum required to this is a row generation and a query transform.  The most important technique is the "make current" option for each level of nesting.
    It is one area that be confusing.  I have written a couple of white papers that walk through the techniques, they are on the SDN here
    Link: [http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/101c974c-11f9-2b10-4da5-cd350b7eeda0]
    Link: [http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/20bd5e60-11f9-2b10-2bbb-b5109cceff08]
    Good luck!
    Michael

  • Problem while calling a web service in BOBJ Data services

    Hello Experts,
    I am trying to call a web service in bobj data services. A real time job has been scheduled and published as a web service. I want to consume this service in web dynpro java.
    I tried both the methods the adaptive web services and depricated version. I also tried calling the url directly and with the metadata and execution destinations.
    No matter what I do, I keep getting the following error.
    Exception on execution of web service with WSDL URL 'http://XXXXX:28080/DataServices/servlet/webservices?ver=2.0&wsdl' with operation 'SERVICE_<NAME>' in interface 'Real-time_Services'
    The call never reaches data services system.  If I try to call the service from soapUI (web service testing tool) it works fine.
    I am using SAP NW 7.0 SP22 .
    Here is my code in dynpro to call the service.
         AdaptiveModel mod = new AdaptiveModel();
         Request_SERVICE_MDM_LOOKUP request = new Request_SERVICE_MDM_LOOKUP(mod);
         Query1 query1 = new Query1(mod);
         Response_SERVICE_MDM_LOOKUP response = new Response_SERVICE_MDM_LOOKUP(mod);
         request.setQuery(query1);
         request.setResponse(response);
         List list = new ArrayList();
         DefinitionsTypes_XsdSchema_1__XsdElement_1__XsdComplexType_Sequence1 element = new DefinitionsTypes_XsdSchema_1__XsdElement_1__XsdComplexType_Sequence1(mod);
         element.setCustomer_Name(wdContext.currentContextElement().getCustomerName());
         element.setZip_Code(wdContext.currentContextElement().getZipcode());
         element.setAddr1("");
         element.setAddr2("");
         element.setCity("");
         element.setCountry("");
         element.setState("");
         list.add(element);
         query1.set$002fDefinitions$002fTypes$002fXsdSchema$005b1$005d$002fXsdElement$005b1$005d$002fXsdComplexType$0023Sequence1(list);
         wdContext.nodeRequest_SERVICE_MDM_LOOKUP().bind(request);
          wdContext.currentRequest_SERVICE_MDM_LOOKUPElement().modelObject().execute();
          wdContext.nodeResponse().invalidate();
          wdContext.nodeQueryResponse().invalidate();
          wdContext.nodeSequenceResponse().invalidate();
    Please let me know if you have any pointers on how to solve this.
    Thanks in advance
    Praveen.

    have you create the destination?
    do  you use the wizard to generate code?
    usually there is catch clause for this line of code
    wdContext.currentRequest_SERVICE_MDM_LOOKUPElement().modelObject().execute();
    Edited by: John Wu on Dec 16, 2010 11:51 PM

  • Data Services as a data migration tool

    Hello All,
    Has anybody used Data Services as a data migrition tool from a SAP ECC system?  If so what is it like to use and are there any documents on this?
    Cheers,
    Nick.

    Hi Nick.
    About documents, here are some of them, but one that I think it could be useful for your understanding is the "BI109 SAP Data Migration" session: http://www.sdn.sap.com/irj/scn/shop?rid=/media/uuid/c08b931e-2a83-2c10-2aba-cb3968c5bc4e.
    It shows the data migration framework based on SAP BusinessObjects technologies for legacy to SAP and SAP to SAP migrations.
    More technical documents, showing how to set up iDocs, LSMW, etc:
    http://help.sap.com/bp_dmg603v1/DMS_US/Documentation/DM_installation_guide_EN_US.doc
    http://help.sap.com/bp_dmg603/DMS_US/Documentation/DM_Quick_Guide_EN_US.doc
    Regards,
    July

  • Standard SAP reports for detailed Service Entry Sheet data

    Hi All,
    I am searching for standard SAP reports to extract the detailed Service Entry Sheet data out of SAP. For example, I need the deailed information like Service Entry Sheet Number, Purchase Order Number, PO line item number, short text, Posting Date, External Number, Service number, Quantity, Gross Price, Cost Object (Order or Network or WBS), Personal Number (if applicable), workday. I couldn't find any standard report. So if anyone know it, please help me.
    Thanks,
    Ting

    Hi,
    In ME2S also you can get good report by execution and by clicking SO/ PO number.( where cost object can be viewed)
    If you are very much specific, go for development
    Regards,
    Biju K

  • Cold Fusion8 instaltion- Reg the service "Adobe LiveCycle data services ES"

    What is the purpose of the Cold Fusion8 service "Adobe LiveCycle data services ES"?I am using Sun solaris platform with Iplanet webserver
    I  don't require any Flash services still is it required to install that service?

    Could you tell me what are the basic steps to run the Livecycle on weblogic server? what are the system requirements and prices as per your experience?

  • Customer credit memo can't auto calculate the net due date

    Hi all,
    Our user used F-27 to entry customer credit memo (PK = 11),
    [F-27|http://www.flickr.com/photos/44956360@N08/5206144134/]
    and payment term use net 60 days,
    [F-27 - screen 2|http://www.flickr.com/photos/44956360@N08/5206144210/]
    but the system display the net due date doesn't add 60 days
    [F-27 - screen 3|http://www.flickr.com/photos/44956360@N08/5206144292/]
    To use fbl1n display the net due date doesn't add 60 days
    [FBL1N|http://www.flickr.com/photos/44956360@N08/5206144344/]
    Why the system can't auto calculate the net due date when user used PK = 11, but If user use PK = 01, the system can auto calculate the net due date.
    Best regards,
    Eric

    Hi Henri,
    I found the answer, when user enter the original document number in reference field of credit memo, the system can auto calculated the net due date!
    no reference doc
    [PIC1|http://www.flickr.com/photos/44956360@N08/5208025267/]
    input reference doc
    [PIC2|http://www.flickr.com/photos/44956360@N08/5208623198/]
    Thanks for your help.
    Best regards,
    Eric

Maybe you are looking for