Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar weeks are locale-dependent #155

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

HeikoTheissen
Copy link
Contributor

@HeikoTheissen HeikoTheissen commented Dec 6, 2021

To be further discussed in Albatross meeting.

Supplementary Bibliography: The Week. By David Henkin

@HeikoTheissen
Copy link
Contributor Author

Shouldn't every term that applies to a Parameter also apply to ReturnType?

@ralfhandl
Copy link
Member

Shouldn't every term that applies to a Parameter also apply to ReturnType?

The term Core.OptionalParameter probably should not apply to ReturnType 😄

@HeikoTheissen
Copy link
Contributor Author

The term Core.OptionalParameter probably should not apply to ReturnType 😄

I mean all the IsSomething tags, for example.

vocabularies/Common.xml Outdated Show resolved Hide resolved
vocabularies/Common.xml Outdated Show resolved Hide resolved
vocabularies/Common.xml Show resolved Hide resolved
@ralfhandl
Copy link
Member

I mean all the IsSomething tags, for example.

Good point, let's check those and extend their applicability where necessary.

@HeikoTheissen HeikoTheissen linked an issue Dec 6, 2021 that may be closed by this pull request
vocabularies/Common.xml Outdated Show resolved Hide resolved
vocabularies/Common.xml Outdated Show resolved Hide resolved
vocabularies/Common.xml Outdated Show resolved Hide resolved
ralfhandl
ralfhandl previously approved these changes Dec 6, 2021
@ralfhandl
Copy link
Member

The "fiscal" terms were introduced by @GeraldKrause, he should also review this PR.

@HeikoTheissen HeikoTheissen marked this pull request as ready for review December 6, 2021 12:26
@HeikoTheissen HeikoTheissen changed the title Common.Locale annotation Calendar weeks are locale-dependent Dec 6, 2021
Copy link
Contributor

@GeraldKrause GeraldKrause left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove the regexp's from the fiscal terms? They are also given for calendar terms. In the end, they formally define the range of valid values and can be applied by an implementation for validation.

@HeikoTheissen
Copy link
Contributor Author

Why remove the regexp's from the fiscal terms? They are also given for calendar terms. In the end, they formally define the range of valid values and can be applied by an implementation for validation.

Are you sure that their value range is identical to that of a calendar week? (After learning that there is a calendar week 54, I am not so sure about my knowledge in this area any more.)

ralfhandl
ralfhandl previously approved these changes Dec 6, 2021
@GeraldKrause
Copy link
Contributor

GeraldKrause commented Dec 6, 2021

Why remove the regexp's from the fiscal terms? They are also given for calendar terms. In the end, they formally define the range of valid values and can be applied by an implementation for validation.

Are you sure that their value range is identical to that of a calendar week? (After learning that there is a calendar week 54, I am not so sure about my knowledge in this area any more.)

You are right. I checked my mail conversation with Thomas Schneider, subject matter expert in S/4 and found a mail from 2019 where the CDS ABAP Core Annotation spec for fiscalweek and fiscalyearweek also mention the WW pattern and the states for the latter: "The last two digits represent the fiscal week in the year." So, your update reflects this and the previous description for this term was more restrictive than needed.

GeraldKrause
GeraldKrause previously approved these changes Dec 6, 2021
@HeikoTheissen HeikoTheissen marked this pull request as draft December 7, 2021 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Too restrictive assumptions about calendar weeks
3 participants