cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.nullpointer exception in leave request

Former Member
0 Kudos

Hi folks,

I am getting null pointer exception when I am trying to access leave request in working time module in ess. The stack trace shows as below

The initial exception that caused the request to fail, was:

java.lang.NullPointerException

at com.sap.xss.hr.lea.form.edit.VcFormEdit.setVisibleFields(VcFormEdit.java:477)

at com.sap.xss.hr.lea.form.edit.VcFormEdit.onBeforeOutput(VcFormEdit.java:330)

at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEdit.onBeforeOutput(InternalVcFormEdit.java:1092)

at com.sap.xss.hr.lea.form.edit.VcFormEditInterface.onBeforeOutput(VcFormEditInterface.java:135)

at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEditInterface.onBeforeOutput(InternalVcFormEditInterface.java:192)

Pl let me know why I am facing this error.

Thanks,

Priyanka

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi vivek,

Thanks for your prompt reply.

I am not sure whether leave configuration is done for this since this was being done by my onsite counter parts. Can you please give me any help link on the configuration steps for leave module.

Thanks

Priyanka

Former Member
0 Kudos

Hi,

Please find the following setting for configuration .

Goto SPRO then follow following path

Personnel Management - > Employee Self-Service -> Service-Specific Settings -> Working Time -> Leave Request -> Processing Processes

Create Rule Groups

1st you need to create the role group ( following is E.g )

Role group : 00000001

Name of Role group : SAP Standard

Define Processing Processes for Each Rule Group (following is E.g)

Role group : 00000001

Name of Role group : SAP Standard

Start Date : 01.01.1800

End Date : 31.12.9999

Specify Processing Processes for Types of Leave ( for E.g )

(click up on new entry )

Role group : 00000001

Name of Role group : SAP Standard

PSG : 01

A/AType : 0420

Type Text : Seminar/course/training

Start Date : 01.01.1800

End Date : 31.12.9999

then once you make entri here you need to click up on details ( select that row then Ctrl + Shift + F2 )

then it will open change view of Processing Processes for Types of Leave ( here this screen for absene type 0420 )

in this screen

-


Start date in the Past

Put radio button on "Processing Permited to Rec. limit".

-


start date is the current date

Put radio button on "Processing is perminted"

-


Start date in the Future

put radio button "unrecstrikt processs is perminted"

-


tick mark at Display field next ....

tick makk to request may ..........

-


system response

tick mark "request has to be aproved'

like this you can make the SPRO setting for other leave othere than 0420 ..in the "Specify Processing Processes for Types of Leave"

Former Member
0 Kudos

Madam you forget to give points.

Edited by: Vivek D Jadhav on Jun 18, 2009 10:52 AM

Former Member
0 Kudos

I did now. Pl confirm. Thanks

Former Member
0 Kudos

Hi,

I did the same steps u mentioned. But I am still getting the exception. Can you suggest me what else needs to be done? How do I assign the rule group to a user / role?

Regards,

Ritesh

Former Member
0 Kudos

Hi,

I did the same steps u mentioned. But I am still getting the exception. Can you suggest me what else needs to be done? How do I assign the rule group to a user / role?

Regards,

Ritesh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

please find the following solution .it will definitely work .

If you leave configuration is done.

There was an incorrect data in your system. To do these please follow following process.

delete this request using

PTARQ> Delete documents (RPTARQDBDEl)

Please read the report documentation before

deleting the request but it should be safe as it is

a development system.

Please delete this with the above information or delete all

the records for the approver.

After this,, there will be some incorrect workitem in approver inbox.

You need to clear that also by Tcode - SWWL.