Professional Documents
Culture Documents
Applies to:
Service-Oriented Architecture, cProjects, and Cross Application Time Sheet. For more information, visit the Service - Oriented Architecture homepage.
Summary
By leveraging SOA and enterprise services, you can integrate the Cross Application Time Sheet application with the cProjects portal through ALE. This paper discusses the web service used for recording time and the various parameters that need to be passed on to the web service. Author: Anantharam Subramanian
Author Bio
Anantharam Subramanian has 15 years of experience in product development, manufacturing, project management and consulting. He is a certified SAP PP consultant with a Six Sigma green belt and Java Programmer certification from Sun. His SAP expertise includes Resource and Portfolio Management, cProjects, and cFolders.
Table of Contents
Preliminary Activities in cProjects .......................................................................................................................3 Launching the Web Service................................................................................................................................4 Entering Details within the Web Service.............................................................................................................6 Conclusion ........................................................................................................................................................11 Related Content................................................................................................................................................11 Disclaimer and Liability Notice..........................................................................................................................12
Note: cProjects and Cross Application Time Sheet are in different systems.
Click on SOAP Application for XI proxies. You will see the list of web services available in the system. The web service we will use is ECC_EMPTIMSHEETCHGRC. Launch the service by choosing the web service and clicking on the Web Service Homepage button as shown below.
You can continue testing the service by clicking on the Test button. Once done, you will be presented with the following screen.
At this point, you need to fill in the relevant entries. In case a particular entry is not relevant, check the SKIP box. Before you proceed further, visit the CAT2 transaction for the employee to whom you assigned a task in cProjects.
In the worklist area, you see the cProjects Project definition and the task along with their descriptions. Now you can see the values that need to be passed to the webservice.
Fill in the fields as follows: Action Code: Enter 1 for creation, 2 for changes, and 3 for deletions. For this example, use 1. WorkAgreementID: Enter the employee number in the field (String). Item -> Category code: Enter 1. TypeCode: Enter the attendance absence type in the field (String) EmployeeTimeValidity-> DatePeriod: Enter the start date and the end date for which you want to record time. Duration: Enter the number of hours in the same format as shown in the next screenshot (1 represents one hour).
Full working day indicator defaults to the value false. Change it based on the requirement. Activity Allocation and Cost Assignment: Sending Cost CenterID: Enter the sending cost center (mapped cost center of the employee). Resource Class ID: Enter the activity type here. In the example shown above, it is AA10.
Project Task confirmation: ProjectID: Enter the project id in the field (String) Project Element ID: Enter the task in the field (String)
Enter a value in the field Timeout(seconds) and then press Send. After the data is processed, the results will be displayed under Response as shown below.
Make sure to record the transaction documentid 000000000155. This will help you track the results in the time sheet-related table. Before moving on, make sure to familiarize yourself with the rest of the response. Now move to the CAT2 transaction in the ERP transaction for the employee 1000099. You will notice that the information has been automatically added in the data entry area.
You can also look in the CATSDB table for the id 000000000155 as indicated in the response column after executing the web service.
We can further continue with the process of approval and transfer to cProjects.
Conclusion
We now see how SOA can be leveraged during time recording for tasks. This goes a long way in improving productivity and ensures the portal being the single point of contact during project execution.
Related Content
SAP Help Portal ES Workplace For more information, visit the Service - Oriented Architecture homepage.