on 08-20-2014 2:47 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
</HTTP_HEADER>
</RESPONSE_DATA>
Thanks
Sarath Babu
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
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.