cancel
Showing results for 
Search instead for 
Did you mean: 

Work Manager 6.2 Functional Locations Fetch

ggunturu
Participant
0 Kudos

I am on WM 6.2, I am trying to figure why no data is showing up in  locations and functional locations tabs.

I am getting the Work Orders and Notifications data.

I had break points on class /SMERP/CL_PM_FUNCLOCATION_DO~GET, but the during the transmit, it would not stop at my break point.

I looked in the agentry application and noticed that there were no fetches for functional location and locations.

I can view the functional location from the work order but i want the functional location list initially, like Work Orders and Notifications.

Don't SAP delivered WM 6.2 application have the fetches for functional location and locations? Do we have to do additional coding in agentry to make those work?

Appreciate any help.

Thanks,

Gopi.

Accepted Solutions (1)

Accepted Solutions (1)

former_member194451
Active Participant
0 Kudos

Hi Gopi,

The /SMERP/CL_PM_FUNCTIONLOCATION_DO->GET you mentioned is for the FUNCTION LOCATION complex table. It is not called by the Fetches. If your "Functional  Location" tab get the

data from the FUNCTION LOCATION complex table. You may want to go Mobile Data Object Configration in /syclo/configpanel.  Check and make sure the Data Filter of the FUNCTION LOCATION CT is setup to return the correct FUNCTION LOCATION.

Regards,

SAP Senior Support Engineer.

ggunturu
Participant
0 Kudos

Hi Chung Yu,

Thanks for the reply.

I had to reset the client every time to stop at the break point i put in /SMERP/CL_PM_FUNCLOCATION_DO->GET_COMPLEX_TABLE

When i debugged, I saw that get complex table was getting some F. locations, but those are not showing up in the functional locations tab. I read somewhere that you have to search the functional locations and then add to the list, but the search functionality did not get any functional locations.

Also, in the code in the GET_COMPLEX_TABLE method where it gets the mdo_input_vals,

mdo_input_vals-it_funct_loc_ra has already some functional locations in it, not able to figure out how it is populating those functional locations. Do know any information as where those functional locations might be coming from?

      me->oref_mdo_data->map_local_mobile_filter(
         CHANGING cs_filters = ls_mdo_input_vals ).

ALso, I have looked at the filters for the Complex table: SWM62_FUNCTION_LOCATION, standard data object: SWM62_FUNC_LOCATION_GENERIC and composite MDO: SWM62_FUNC_LOCATION_COMPOSITE

Thanks,

Gopi.

ggunturu
Participant
0 Kudos

Finally, I was able to make the functional location tab work, here is what i did.

I made the parameter:ctLocation , parameter group: CT_BAPI_WRAPPER  as /SMERP/PM_CTFLOC_LSET_GET instead of /SMERP/PM_CTFUNCLOCATION_GET

and parameter:ctLocation , parameter group: ENABLE_TABLE as 1.

I wanted to hide the location tab, that is why i made the ENABLE_TABLE for ctLocation as 0 earlier.

After those changes, the search worked and i was able to add the functional locations.

Answers (0)