Application Development 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: 

Maintenance view S attribute not working properly.

vnasinec
Discoverer
0 Kudos

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.

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos

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)

vnasinec
Discoverer
0 Kudos

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. 🙂

Sandra_Rossi
Active Contributor
0 Kudos

Thanks. I have just read my (old) personal notes about "S":

  • Only works for fields flagged as "key" in the maintenance view.
  • When the Management View is called, a small popup is first displayed for the user to restrict maintenance for a single value (as often with View Clusters), for all S-type columns (Wildcard not accepted, nor intervals, and space is considered a value).
  • it's a bit like entering SM30 and choosing restrictions (intervals accepted), except that fields of type S are automatically displayed and accept only a unique value.

vnasinec
Discoverer

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. 🙂