cancel
Showing results for 
Search instead for 
Did you mean: 

MOD operation in time evaluation

former_member193652
Active Contributor
0 Kudos
764

Hi everybody,

I need to use Mod operation in a calculation of PT PCR but I could not find any solution. You know 1391 Mod 4 is 3. I need a operation to do this in time evaluation PCR for me.

Although I can develop this operation by ABAP but I expect this basic operation provide by SAP. Do you have any idea for this issue?

Regards,

Omid

View Entire Topic
former_member274797
Active Participant
0 Kudos

Hi Omid,

Below might work. Give it a try.

From your example A = 1391 B = 4

HRS=A

HRS/B

ROUNDHR23 (Round Down to nearest whole number)

HRS*B

HRS-A

HRS*-1

Include error handling when A is less than B.

Hope it helps.

Thanks.

Regards

Sairam