cancel
Showing results for 
Search instead for 
Did you mean: 

ESS Record Working Time .. Restrict Time Entry with Relative limit

Former Member
0 Kudos

Hi SDN Users,

We are using ERP 2005 and EP 7.0 with webdynpro java ESS applications for Time, Travel and Personal Information.

In the ESS Record Working Time application, a user can scroll to any date he wants in the past or in the future and record/edit working times. The application does not take into consideration the setting made in the time entry profile for relative limit.

Please suggest the best way I can include this in the webdynpro application for Record Working Time. (in other words I would like to restrict the users to NOT be able to scroll before and later than 1 week from the current week).

Can this be achieved by modifying any ABAP program / BADI / User Exit (OR)

Would this require Webdynpro Code changes ?

Please suggest some changes if any one has gone through a similar requirement.

Thank You,

Salome

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Salome ,

You can use the following way out for this :

Lets say you want to allow one week before Begda , rest entries not allowed .

1. VcCatRecordentry View - make a method called dateValid(); this would return true / flase

we can get begda and endda.

wdcontext.currentcontextelement.gettimesheetBegda();

wdcontext.currentcontextelement.gettimesheetendda();

Date sysDate = new Date(Calendar.getInstance().getTimeInMillis());

int sysDay = sysDate.getDay();

2. Instantiate the Calendar Calendar c1 = new GregorianCalendar();

3. c1.add(c1.DATE,-7);

Date dt_end = c1.getTime();

now compare the dt_end to begda if it return >0

then in on action navigation nxt - report exception

this would work , since I did the same and it worked absolutely well for me .

Regards

Sandeep Sharma

Edited by: Sandeep Sharma on Jul 8, 2009 7:41 PM

Former Member
0 Kudos

I have been trying to achieve this by modifying the Webdynpro code - without success yet.

Can some one help me out with this please ?

Thank You,

Salome

Former Member
0 Kudos

Hi Salome ,

Were you able to do the same . I had the same issue ., Please let me know if there is workaround as well .

Regards