cancel
Showing results for 
Search instead for 
Did you mean: 

HCM P&F Gerneric Service

Former Member
0 Kudos

Hello All,

I have custom form which displays some field value from SAP_PD Service ( OM Service). I wanted to display some

other field value which is not part of SAP_PD Service. I have created BADI implemenation for HRASR00GEN_SERVICE_BASIC

that BADI for Generic Service but i am struggling to add custom fields. Can anyone tell me how to add custom fields in Generic Service. So that i caninclude that service in my form and dispaly value.

Thanks

VJ

Accepted Solutions (1)

Accepted Solutions (1)

nikhilkup
Active Participant
0 Kudos

1. Define the field properties in GET_FIELD_INFO

LOOP AT service_fields INTO ls_service_field.

CASE ls_service_field.

WHEN c_fieldname_reason.

  • Reason

CLEAR ls_field_info.

ls_field_info-fieldname = c_fieldname_reason.

ls_field_info-field_data_element_name = c_dtel_reason.

ls_field_info-supports_value_help = true.

ls_field_info-supports_default_value = true.

APPEND ls_field_info TO field_infos. endcase. endloop.

2. Add the fields into defined operations in GET_OPERATIONS.

ls_operation-operation = c_oper_get_reason.

ls_operation-fieldnames = get_fields_of_operation( ls_operation-operation ).

APPEND ls_operation TO operations.

in method get_fields_of_operation

APPEND c_fieldname_reason TO fieldnames.

3. In initialization write the code for initialization of fields defined above.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

Using 'Process form scenario for Generic services' in SPRO create an 'Operation' and in BADI in the method GET_FIELDS_OF_OPERATION append all custom fields to fieldnames.

eg:APPEND c_appl_close_date TO fieldnames.

Then in SPRO u will have an option to select this fields against the operation in the f4 help.

Thanks,

Deepthi