cancel
Showing results for 
Search instead for 
Did you mean: 

My Leave Request is not accepting a blank Additional Field.

Narender1
Explorer
0 Kudos

We have implemented the standard HCM My Leave Request Fiori application. When running for a given country, the app shows an additional field named "Number of Day".

The app does not allow to go ahead if the field is blank. I checked in backend SPRO transaction, but there is not field added in the configuration.

It does not matter if we enter a correct value ( correct number vacation day) as long as we put some value the app executes the "Send" operation successfully and displays the correct number of days in the confirm popup.

Could anyone tell how to make the addition field value accept blank value. Below are the request URL details.

Request url: .../sap/opu/odata/sap/HCM_LEAVE_REQ_CREATE_SRV/LeaveRequestCollection

The part of the payload (with additional field blank)

{StartDate: "2017-01-18T00:00:00", StartTime: "000000", Notes: "", ProcessCheckOnlyInd: true,…}

AbsenceTypeCode:"0101"

ActionCode:1

AdditionalFields:{ABWTG: ""}

ABWTG:""


The error is:

{"error":{"code":"/IWCOR/CX_DS_EP_PROPERTY_ERROR/005056A509B11ED1BF822D2D0917DA04","message":{"lang":"en","value":"Property 'ABWTG' at offset '289' has invalid value ''"},"innererror":{"transactionid":"sg1app01601917021614595601974500","timestamp":"20170216205956.1440830","Error_Resolution":{"SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP NW Gateway hub system and search for entries with the timestamp above for more details","SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)"},"errordetails":[]}}}

Accepted Solutions (0)

Answers (1)

Answers (1)

Sharathmg
Active Contributor
0 Kudos

First check the SAP Note, if it gives any hint.

Second, open the oData service in the gateway server - test the service on the server. If even these null value is not expected(which should be the case), then, you need to extend the OData service to ensure that it does not result in an error.

Regards,

Sharath