cancel
Showing results for 
Search instead for 
Did you mean: 

Attribute values: How does "Value help" and "Task" work?

michaelfranke
Participant
0 Kudos

Hello,

I have created a customer Attribute which is an entry reference for MX_PERSON and a single value attribute. I want to display only some entries of identities when somebody uses this attributes on web UI task. Therefore I have to configure the attribute on tab "Attribute Values".


"SQL query" is working fine. But I want to test also the other methods.


"Value help": Is it possible that this doesn't work with attribute which has as type entry reference? I have added one entry to table mxi_value_help but this will be ignored. All entries of MX_PERSON will be displayed.

I have used following syntax
ValID ValKey ValText ValLocale
<new attribute> <mskey of an entry> <displayname of an entry> NULL

I expected that only one entry will be displayed.


"Task": I have no idea. Can anybody please give me an example how it works?


Thanks in advance!

Kind Regards
Michael

Accepted Solutions (1)

Accepted Solutions (1)

alexanderbrietz
Active Contributor
0 Kudos

Hi Michael,

I think you are heading in a wrong direction.

For the purpose described I think an SQL statement is the appropriate way.

Attribute value help is a lookup table to match simple attributes (not references) to dedicated value. Please find the example in the link Richard posted which explains the intention. The feature is most commonly used with attributes like MX_SALUTATION which translates HR values like 001 and 002 into language dependent values like "Frau", "Herr", "Ms." or "Mr.".

The idea of tasks is to set a reference for the specification of access controls. You define one task as the source for the access controls and refer to this task on the UI-tasks that should get the same settings. This way you only will have to maintain the task with the source specification for the access controls and all other tasks referring to it will inherit the new setting. Which can lead to intended but also to unintended effects!

HTH

Regards,

Alex

michaelfranke
Participant
0 Kudos

Thanks for your answer!

Answers (1)

Answers (1)

richard_pietsch
Active Contributor
0 Kudos

Hi,
I expect that the value help structure does not work with referenced entries. See https://help.sap.com/viewer/4773a9ae1296411a9d5c24873a8d418c/8.0/en-US/333e1c676fb54aa1a4de052c873a7....
Attribute value help is working only with:

  • SingleSelect
  • Radio button
  • ObjectValueHelp
  • MultiSelect

The option "Task" I did not found out either 😄
The documentation says "Select this option to specify a task for which the access control is used to retrieve the legal values." -_-

Regards, Richard

richard_pietsch
Active Contributor
0 Kudos

just a short addition... I use the MXI_ATTRVALUEHELP table for a number of custom attributes, each with SingleSelect presentation type. The table also gets filled by different processes in some scenarios (with to database pass). I prefer this value help basically for values with "master data" charater, such as the salutaion, user groups etc. Also, I noticed that the value help via SQL statement is limiting the results.. at 100 entries I think.. I did not found where I can change this.. So, I rather use the MXI_ATTRVALUEHELP table instead.

Regards

michaelfranke
Participant
0 Kudos

Thanks for your answer!