Skip to content

Language, exact field contents? #34

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

Closed
larshp opened this issue Apr 6, 2021 · 13 comments · Fixed by #279
Closed

Language, exact field contents? #34

larshp opened this issue Apr 6, 2021 · 13 comments · Fixed by #279
Labels
onlySAP Can be implemented by SAP only

Comments

@larshp
Copy link
Collaborator

larshp commented Apr 6, 2021

masterLanguage is part of multiple files, and it is defined as 2 characters

but what is considered correct, and what is wrong?

In SAP all user formatted languages are 2 characters upper case, but looking at something like ISO its 2 character lower case

Suggest to make an explicit enum list of allowed values

@larshp larshp changed the title Language? Language, exact field contents? Apr 8, 2021
@larshp
Copy link
Collaborator Author

larshp commented Jul 7, 2021

@larshp
Copy link
Collaborator Author

larshp commented Jul 19, 2021

suggest following ISO standards

@larshp larshp added the onlySAP Can be implemented by SAP only label Jul 19, 2021
@larshp
Copy link
Collaborator Author

larshp commented Jul 19, 2021

it's only possible for SAP to implement this issue, as the code for JSON generation is proprietary

@larshp
Copy link
Collaborator Author

larshp commented Aug 4, 2021

I see this issue as an easy low hanging fruit, impacting all files in the project => ie. it should be high priority IMHO

@schneidermic0
Copy link
Contributor

As mentioned above all conversions in ABAP produce 2 characters upper case (e.g. ISOLA conversion exits or transformations):

I think I would prefer using ISO 639-1 using small characters.

However, I would like to check with the team how we can convert this fast in simple transformations.

@schneidermic0
Copy link
Contributor

We took this topic up. Unfortunately, it turned out, that ABAP uses always upper-case language codes.

Both accept lower case iso codes as input (in our case deserialisation) but produce uppercase codes as output (in our case during serialisation).

Even if I personally would prefer small characters for language codes, I think we should stick to the representation ABAP uses in other places, too.

If no one disagrees, we should specify this in our repository documentation.

@larshp
Copy link
Collaborator Author

larshp commented Nov 30, 2021

suggest following ISO standards

@schneidermic0
Copy link
Contributor

Within the last weeks, we reiterated this topic (once more) and reached out to some more colleagues. They also suggested to use ISO-standard if the language is also used outside of ABAP systems.

Since I mentioned some ABAP functionality to do language conversions in ABAP systems. For the conversion to ISO language codes they suggested to use class CL_I18N_LANGUAGES.

We planned to take this up in our current iteration (see #280)

@larshp
Copy link
Collaborator Author

larshp commented Dec 20, 2021

class CL_I18N_LANGUAGES is not released, I'd expect SAP to have released stuff to convert between internal format and ISO codes

@schneidermic0
Copy link
Contributor

schneidermic0 commented Dec 20, 2021

class CL_I18N_LANGUAGES is not released, I'd expect SAP to have released stuff to convert between internal format and ISO codes

I have sent your feedback to the colleagues responsible.

@larshp
Copy link
Collaborator Author

larshp commented Dec 20, 2021

I've looked through https://abapedia.org/steampunk-2111-api/ but did not find anything similar

@schneidermic0
Copy link
Contributor

schneidermic0 commented Dec 21, 2021

I've looked through https://abapedia.org/steampunk-2111-api/ but did not find anything similar

Yes, there is nothing, currently. As mentioned above I sent the feedback to my colleagues. They've added it as request to their backlog.

@schneidermic0 schneidermic0 linked a pull request Jan 3, 2022 that will close this issue
@schneidermic0
Copy link
Contributor

I think we can close this issue. If I miss anything feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
onlySAP Can be implemented by SAP only
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants