SAP Knowledge Base Article - Public

2954996 - Unable to Create Full day Vacation using WebService

Symptom

When you are trying to create Vacation through ManageEmployeeTimeIn Webservice, system is creating a Partial Day Vacation.

Environment

 SAP Business ByDesign

Reproducing the Issue

  • Execute the below Payload from SOAP or External Application using the Webservice ManageEmployeeTimein.

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">

<soap:Header/>

<soap:Body>

<glob:ActualEmployeeTimeBundleMaintainRequest_sync>

<BasicMessageHeader/>

<ActualEmployeeTime actionCode="01">

<ObjectNodeSenderTechnicalID>1</ObjectNodeSenderTechnicalID>

<EmployeeID>X</EmployeeID>

<WorkAgreementID>2/002</WorkAgreementID>

<ItemTypeCode>ZZZZZZ</ItemTypeCode>

<DatePeriod>

<StartDate>2020-06-03</StartDate>

<EndDate>2020-06-03</EndDate>

</DatePeriod>

<Duration>PT8H00M</Duration>

</ActualEmployeeTime>

</glob:ActualEmployeeTimeBundleMaintainRequest_sync>

</soap:Body>

</soap:Envelope>

  • Once the request is successful, Go to Time Administration Work Center -> Employee.
  • In the Employee Times, You can see that the Partial day Vacation was posted for that Particular Employee.

Cause

It is not possible to post Full Day Vacation using MaintainActualEmployeeTimeBundle method in the Webservice ManageEmployeeTimein.

Resolution

  1. There are three methods to Post Time using ManageEmployeeTimein webservice and the behaviour is as follows :
    • MaintainActualEmployeeTimeBundle  - Posting Full day Vacation is not possible and Duration is Mandatory.
    • MaintainBundle - No access for customers.
    • MaintainEmployeeTimeAsBundle -  Posting Full day Vacation is possible. But, the status of the time entry will be directly changed to Active.
  2. If you want to post a full day vacation with status Active, you can use the webservice MaintainEmployeeTimeAsBundle. In that case, you don't need to maintain Duration field.
  3. If you want to post a full day vacation with the status Inactive, it cannot be achieved using webservices and you need to use Odata Services.

Keywords

Time Administration, Webservice, ManageEmployeeTimein , KBA , SRD-HR-TLM , Time and Labour Management , Problem

Product

SAP Business ByDesign all versions