2023 Nov 09 9:04 AM
Hello, Experts.
I need help with maintenance view with S attribute. I created this maintenance view, assigned S attribute to "Employee_name" field, used table maintenance generator, assigned &NC& to authorization group, named the function group same as my view, chose one step maintenance type with overview screen 2.
Maintenance was generated, but when i open table contents, no dialog asks for the Employee name. Instead there's an I/O field on the screen with value already assigned and all the entries are displayed ignoring the S attribute completely.
However, it works in view cluster, where the structure won't allow you to get lower in the hierarchy wihout choosing a row as S attribute.
Any opinions or advices are appreciated.
2023 Nov 09 9:47 AM
Isn't S only for a view within the context of a view cluster? What says the documentation?
What do you want to do exactly? (without talking about S)
2023 Nov 09 10:28 AM
Hi, Sandra. Thank you for response.
The documentation says this about S attribute - "These fields are used to create subsets when maintaining view data. Only a subset of the data is displayed. This subset is defined by entering a suitable value in this field."
I'm just discovering what can be done in SAP (I'm a junior ABAP dev). The view is defined like this:
User ID is hidden and USERNAME should be defining the subset. When i was going through the code of my colleagues, when you try to display the table content, it asks you to insert the value to create the subset.
However when i try to open table content of this view, the value is already assigned but no data is displayed. Looks like this:
"Jméno zaměstnance" is the USERNAME field. That's all that is displayed, the value in the field is always the last entry in the DB table from which the view takes the data. When i checked the screen, the field with username is output only, so i can't change the value.
All i want to do is to create the subset for now. As i said, it works in the view cluster, but my mind won't let me just ignore this problem. 🙂
2023 Nov 09 12:37 PM
Thanks. I have just read my (old) personal notes about "S":
2023 Nov 09 12:42 PM
Thank you, Sandra, for your response and time.
I was just about to add a comment that the problem was that the fields weren't flagged as keys. You were faster. 🙂