on 06-10-2011 12:39 AM
Hi,
In the Time Managers Workbench and customizing Employee Selection IDs I have created a custom Function Module.
As per the documentation the FM has a standard interface.
EXPORTING
uname = SY-UNAME " sy-uname
begda = " sy-datum
endda = " sy-datum
plvar = " plvar
authority_check = 'X' " flag_x
TABLES
objects_in = " hrsobid
objects_out = " hrsobid
EXCEPTIONS
NOTHING_FOUND = 1 "
. " HRCM_OWN_ORGUNIT_EMPL_GET
My issue is no matter what date or range of dates I select on the TMW when I debug my FM the BEGDA/ENDDA passed to the FM is 01-jun-2011 - 31-Aug-2011. I had assumed the range selected on the screen would be passed but this does not appear to be the case.
Any body any insight into using FMs in selection IDs and what I might be able to do to get the required dates into the FM ?
In the config for the function module there is a sub node that appears to be for passing additional data to the FM but I cannot find any documentation on this and have been unable to figure out how it can be used !! again any insight would be appreciated.
Cheers
bg.
For anybody interested the dates are goverened by your profile settings (Initial period and selection period relative to initial period)and despite extensive testing/debugging it appears to next to impossible get the dates selected on the screen passed to the FM.
in terms of passing additional data to the FM
what ever you enter there it is passed in to the FM using the following structure
REFERENCE(FUNC_DATA) TYPE HRFUNC_DATA_TAB*
"*"Local Interface:
*" IMPORTING
*" REFERENCE(UNAME) LIKE SY-UNAME DEFAULT SY-UNAME
*" REFERENCE(BEGDA) LIKE SY-DATUM
*" REFERENCE(ENDDA) LIKE SY-DATUM
*" VALUE(PLVAR) TYPE PLVAR
*" REFERENCE(AUTHORITY_CHECK) TYPE FLAG_X DEFAULT 'X'
*" TABLES
*" OBJECTS_IN STRUCTURE HRSOBID OPTIONAL
*" OBJECTS_OUT STRUCTURE HRSOBID
*" CHANGING
*" REFERENCE(FUNC_DATA) TYPE HRFUNC_DATA_TAB
*" EXCEPTIONS
*" NOTHING_FOUND
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.