cancel
Showing results for 
Search instead for 
Did you mean: 

Leave request double deduction from single request.

0 Kudos

User is allocated 36 sick leave days, already used 2 and has 34 days available. When user requests leave, the system somehow multiples it by 2.

Example:

The system throws an "Not enough quota" error message when capturing range 2018/01/08 - 2018/01/31 is 18 days, it sees it as (18x2 = 36 > 34).

The system accepts when capturing maximum range 2018/01/08 - 2018/01/30 is 17 days, it sees it as (17x2 = 34 = 34).

What could be the issue?

Below is the call stack:

Method PROCESS_TYPE_SPEC_SRP is called twice which deducts twice using method count and deduct. It can be seen from above that method PROCESS_TYPE_SPEC_SRP is called via

1) IF_PT_BLP_TPOINT_COUNTRY~PROCESS_SRP and then via

2) IF_PT_TMW_BLP_TPOINT~PROCESS_SRP

The first method call to PROCESS_SRP happens when TPOINT = SRP (Individual Record Valuation) and the second one happens when TPOINT = RET (Recalculation).

<RET>

<SRP>

Where in config can we make it calculate either for SRP or RET and not for both?

matt
Active Contributor
0 Kudos

If this code is all standard SAP code you need to raise it at support.sap.com. Or search for a note.

Accepted Solutions (0)

Answers (1)

Answers (1)

raymond_giuseppi
Active Contributor
0 Kudos

Did you look for OSS notes suitable for your version/country, use keywords like "leave request" "twice" "quota" (several are available)

0 Kudos

Hi Raymond

Searched the OSS notes and none were related to the issue at hand. I've found some information here about personnel data migration from PRD to DEV issue.

Fine, so how can i test "out of quota" validations in DEV, should I hire an employee in DEV or there's is a way to test this?