Quantcast
Viewing all articles
Browse latest Browse all 1237

Bug in HCM P&F SAP Method?

Hello,

 

This is directly related to my post here: http://scn.sap.com/thread/3407104. I believe I found a bug that is the reason for the form fields in my UI not being set after changing the field values in a generic service using DO_OPERATIONS.

 

In the method IF_HRASR00_MAPPER~DO_OPERATIONS in the class CL_HRASR00_GENSERV_MAPPER there is a section of code to update the ui fields based on the backend fields that have been changed. That code is as follows and appears on lines 169-193.

 

************************************
*6. Perform mapping back to UI fields
************************************
CALL METHOD me->map_backend_fields_to_ui
EXPORTING
special_fields  
= special_fields
service_datasets
= service_datasets_do_operations
mapping_datasets
= mapping_datasets_do_operations
IMPORTING
values_of_fields
= values_of_fields_do_operations.

CALL METHOD me->map_backend_fields_to_ui
EXPORTING
special_fields  
= special_fields
service_datasets
= service_datasets_read_only
mapping_datasets
= mapping_datasets_read_only
IMPORTING
values_of_fields
= values_of_fields_read_only.

CLEAR values_of_fields.
APPEND LINES OF values_of_fields_read_only TO values_of_fields.
APPEND LINES OF values_of_fields_do_operations TO values_of_fields.
* Special fields are duplicated in values_of_fields and needs to be removed
SORT values_of_fields.
DELETE ADJACENT DUPLICATES FROM values_of_fields COMPARING fieldname.

 

The field service_datasets does not actually exist. The field is actually service_dataset as declared on line 3.

DATA: service_dataset                TYPE hrasr00gensrv_dataset.

 

 

Are there any existing notes for this or should I submit to SAP?

 

THank you,

Ryan Arnold


Viewing all articles
Browse latest Browse all 1237

Trending Articles