cancel
Showing results for 
Search instead for 
Did you mean: 

Generic Service has got more than one implementation

Former Member
0 Kudos
131

Hi All,

I am creating a custom process and form scenario modifying the standard one (change in working hours). As per the requirement I have to prepopulate Effective Date field with the value of next month's first working day. As this is required to do in BAdi, I am following the following steps but its failing while trying to add the fields in Backend service using "Service Field" command button.

1. Created one backend service as Z_CHANGE_WORKTIME.

2. Created a custom BAdi implementation, custom enhancement implementation and custom implementing class.

3. Used standard BAdi definition (HRASR00GEN_SERVICE_BASIC).

4. Set a filter on BAdi implementation: Value Z_CHANGE_WOKRTIME (Created Generic Service).

5. Added code in GET_FIELD_INFO method to get the field attributes on click of "Service Field" command button.

When I am clicking on "Service Fields" button in Design Time, I am getting an error "Generic service Z_CHANGE_WORKTIME has more than one implementation".

I am sure that no other implementation for this generic service exists. Please help me in getting this issue resolved.

Thanks,

Ashish

View Entire Topic
Former Member

For some reason the filters of the Standard implementations get not always applied. So you see them in the BAdI definition and the BAdI itself shows as active. If you run report BADI_RSANALYZE you can see any deviations for the filters. In my case it was BAdI HRASR00_MATERNITY_LEAVE which caused the trouble.

syedrizing21
Explorer
0 Kudos

Thanks in advance,

Syed

Edited by: Abdul Mannan Syed on Sep 23, 2010 12:55 AM