cancel
Showing results for 
Search instead for 
Did you mean: 

TMW Selection IDs and Function Module - date issue

BGibbons
Active Contributor
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

BGibbons
Active Contributor
0 Kudos

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