cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in HCM P&F SAP Method?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member191062
Active Contributor
0 Kudos

Dear Ryan,

this is not a Adobe Interactive forms issue, but an application sepcific problem. You more likely get answer in the respective application forum.

Best regards,

Dezso

Former Member
0 Kudos

Hi Dezso,

I will post in HCM. Sorry about that.

Ryan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ryan,

I believed this is related to your question in

http://scn.sap.com/thread/3407104

I have checked, the code in this method is correct. SERVICE_DATASET on line 3 served as local structure and it will not affect the logic in 169-193. So your issue unlikely causing by the code in this method.

Can you please check Chris's reply against your development?

Also, appreciate if you can let me know my inquiry below to understand your issue and help you further.

Please check if i understand your issue correctly.

IN DO_OPERATION, you changed couples of fields value in SERVICE_DATASETS.

On form you don't see the value get changed, but you did some client scripting on form to validate the value, it passes.

Am I right?

Thanks.

regards,

Xiang Li

Former Member
0 Kudos

Hi Xiang Li,

You are correct in your understanding of the issue.

Ryan