cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori - My Time sheet - Read Data issue - No data was selected ( io_data_provider->read_entry_data )

sarath_7
Participant
0 Kudos

HI Experts ,

Could you please help me in resolving the below issue  .

We are Facing an issue while Implementing My Time Sheet App (UISRA002-100 , SRA002- 600 -SAPK-60004INSRA002 , SAPBasis - 702 )

As mentioned in below thread  , Applied notes

After applying 2026754 note Corrections  - Upon submission of time sheet - 'Check time entry' service getting called and asking for confirmation , once confirmed getting an error Message - No data was selected (LR-860) .

I have debugged the ABAP Code and observed that above message is coming from FM -SRA002_TS_TIMEENTRY_EDIT

This FM was called in class -  CL_SRA002_TIMESHEET_DPC_EXT  Here Getting blank values While reading the raw data using structure type

sra002_s_timeentry

Please find the code spot as below ./IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_ENTITY => CREATE_TIMEENTRY )

Do I need to implement any corrections/Customize here to read/Update the CATSDB table . ?? Please suggest ??

* Get request input data

   io_data_provider->read_entry_data( IMPORTING es_data = ls_request_input_data ).

* Map request input fields to function module parameters

   iv_operation = ls_request_input_data-cats_operation.

   iv_pernr = ls_request_input_data-employee_number.

   IF ls_request_input_data-releasedata EQ abap_true.                     "Note 1924974: Release flag

     lv_releasedata = abap_true.

   ELSE.

     lv_releasedata = abap_false.

   ENDIF.

* Append lines of table parameters in the function call

   IF ls_request_input_data IS NOT INITIAL.

     APPEND ls_request_input_data TO it_timeentry.                  "blank values here leading to error .

   ENDIF.

   TRY.

     clear lt_messages.

    CALL FUNCTION 'SRA002_TS_TIMEENTRY_EDIT'

         EXPORTING

           IV_FINAL           = 'X'

           IV_OPERATION       = iv_operation

           IT_TIMEENTRY       = it_timeentry

           iv_release_data    = lv_releasedata                               "Note 1924974: Release flag

         IMPORTING

           ET_TIMEENTRY       = lt_timeentry

           ES_LEADING_MESSAGE = lS_LEADING_MESSAGE

           et_messages        = lt_messages.



Thanks

Sarath Babu


Tags edited by: Michael Appleby

Accepted Solutions (0)

Answers (1)

Answers (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sarath,

Have you installed UIX01HCM SP03 and SRA002 SP05?

App Implementation: My Timesheet - SAP Fiori Apps for Lower Back-End Releases - SAP Library

Regards, Masa

SAP Customer Experience Group - CEG

sarath_7
Participant
0 Kudos

HI Masa ,

Thanks for the suggestion .

Currently we are working on Demo with BASIS 702 ,SRA002 - SP04  , UISRA* using same client as gateway but development we will start as you suggested .

We observed that below data read not working (conversion Raw data to structure ) .

I wrote some code after this below line to populate missing data - employee number and Operation data in structure and it is working fine now .

* Get request input data

   io_data_provider->read_entry_data( IMPORTING es_data = ls_request_input_data ).

Please find One more observation as below :

In Gate way error log it is observed that Request data service version and Response data service version are different is that expected or is it because of Wrong patch ??please let me know your inputs .

Request Data

MaxDataServiceVersion: 2.0

<HTTP_BODY>--batch_19ba-88c4-3570 content-type: multipart/mixed; boundary=changeset_7592-1938-3700 --changeset_7592-1938-3700 content-type: application/http content-transfer-encoding: binary POST TimeEntries HTTP/1.1 Accept-Language: EN Accept: application/json MaxDataServiceVersion: 2.0 DataServiceVersion: 2.0 x-csrf-token: SOfeX8r5rAFMn4-aWsZu5Q== Content-Type: application/json Content-Length: 176 {"Counter":"","TimeEntryOperation":"C","TimeEntryDataFields":{"

Response data

dataserviceversion: 1.0

- <IHTTPNVP>

<NAME>dataserviceversion</NAME>

<VALUE>2.0</VALUE>

</IHTTPNVP>

</HTTP_HEADER>

<HTTP_BODY>HTTP/1.1 400 Bad Request Content-Type: application/json Content-Length: 341 location: http://XXXXX.net:XXXX/sap/opu/odata/sap/SRA002_TIMESHEET_SRV/TimeEntries('') dataserviceversion: 1.0 {"error":{"code":"LR/860","message":{"lang":"en","value":"No data was selected"},"innererror":{"transactionid":"53F0B123656A4AB8E10000000AE93FCC","errordetails":[{"code":"LR/860","message":"No data was selected","propertyref":"","severity":"error"},{"code":"/IWBEP/CX_MGW_BUSI_EXCEPTION","message":"","propertyref":"","severity":"error"}]}}}</HTTP_BODY>

</RESPONSE_DATA>

Thanks

Sarath Babu

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sarath,

It does not make a sense for showing old app demo.

Important Note: Please use new UI with new SAP Fiori launchpad

Please install UIX01HCM SP03 and SRA002 SP05. Gateway server should be updated.

Regards, Masa

SAP Customer Experience Group - CEG