Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

urgent

Former Member
0 Likes
601

Please help me to find out the logic to round the field “RESBD-NLFZV"

The requirment is place as below.How do i deal with it?

You are able to enter the data in the offset field (NLFZV) in different time units ( Days, hours, minutes, seconds). When you convert this to days you might end up with un-even number of days. Here you need to round it to full days.

Examples: Before rounding: 13 hours -> After rounding: 1 day

Before rounding: 11 hours -> After rounding: 1 day (always at least one day if offset entered)

Before rounding: 27 hours -> After rounding: 1 day

Before rounding: 1 week -> 7 days

Please help me to find out the logic to round the field “RESBD-NLFZV"

The requirment is place as below.How do i deal with it?

You are able to enter the data in the offset field (NLFZV) in different time units ( Days, hours, minutes, seconds). When you convert this to days you might end up with un-even number of days. Here you need to round it to full days.

Examples: Before rounding: 13 hours -> After rounding: 1 day

Before rounding: 11 hours -> After rounding: 1 day (always at least one day if offset entered)

Before rounding: 27 hours -> After rounding: 1 day

Before rounding: 1 week -> 7 days

2 REPLIES 2
Read only

Former Member
0 Likes
565

use FM HR_NZ_ROUNDING_DECIMALS

regards,

saipriya

Read only

Former Member
0 Likes
565

use HR_SEN_ROUNDING_RULE_APPLY.

regards,

saipriya