Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

To get all employee travel request list of manger

Former Member
0 Kudos
248

Hi,

Please suggest me that how to get list of all employees travel requests assigned to that manager. Is there any standard BAPI's available?

Appreciate your help.

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
174

Hi Ruchi,

Check this fm HRWPC_RFC_OADP_GET_OBJECTS.

Thanks & Regards,

Shakeel

4 REPLIES 4

Former Member
0 Kudos
175

Hi Ruchi,

Check this fm HRWPC_RFC_OADP_GET_OBJECTS.

Thanks & Regards,

Shakeel

0 Kudos
174

Hi,

Can you please suggest me more about parameters what we need to pass and how to use that fm to get all  employee list assign to that manager.

Thanks.

0 Kudos
174

Hi Ruchi,

Pass values in Import parameters as shown below


You will get all Employee's list under that organization unit in T_OBJECTS.

CALL FUNCTION 'HRWPC_RFC_OADP_GET_OBJECTS' "

  EXPORTING

  objsel                     = 'MSS_TMV_EE_ALL' or "'MSS_TMV_EE_DIR'  " hrwpc_objsel 

  begda                     =  start date    " begda

  endda                     =  end date " endda

  user                        =  Manager User Name  "SY-UNAME

cachemaxage           = '0' " hrwpc_to_struc-cachevalid

  IMPORTING

  readdate = " sy-datum

  readtime = " sy-uzeit

  TABLES

* t_paramvalues = " hrwpc_s_oadp_paramvalue

  t_objects =   T_OBJECTS " hrwpc_s_keyobjec

* t_objectstructure = " hrwpc_s_keystruc

  EXCEPTIONS

  OBJSEL_NOT_FOUND = 1 "

  OBJECTSELECTION_INVALID = 2 "

Best Regards,

Shakeel

0 Kudos
174

Hi Shakeel,

Thanks for Support.