on 10-07-2022 2:18 PM
Hi,
I am facing an issue about variant configuration when I try to hide a characteristic based on another one. In my scenario I have two characteristics: Z_RAINCAP_PIPE_SIZE & Z_RAINCAP_DEVICE_ORIENTATION.
Example of values for each characteristic:
Z_RAINCAP_PIPE_SIZE: No Raincap, 32", 42", 18"…
Z_RAINCAP_DEVICE_ORIENTATION : Vertical, Horizontal
I would like to hide the characteristic Z_RAINCAP_DEVICE_ORIENTATION when I enter ‘No Raincap’ as Z_RAINCAP_PIPE_SIZE charactic value.
I have created a procedure as follows:
$self.Z_HIDE_CHAR = 'Z_RAINCAP_DEVICE_ORIENTATION'
IF $self.Z_RAINCAP_PIPE_SIZE = 'No Raincap'
See screenshots as attachments
Previously I have created a characteristic Z_HIDE_CHAR with parameters SCREEN_DEP & INVISIBLE.
I do not see what is wrong. All is released…
I am on S4HANA 2020
Thanks for your help
Regards
Bruce
screenshot-raincap-procedure-editor.pngscreenshot-raincap-procedure.pngscreenshot-characteristic-hiden.png
Hi bruce51,
Something is not adding up. In your procedure you have Z_RAINCAP_DEVICE_ORIENTATION with underscores but in the screenshot you have Z RAINCAP DEVICE ORIENTATION with spaces. Are you displaying the descriptive name or the language independent name? It's hard to tell because in the same screen shot Z_RAINCAP_PIPE_SIZE is displayed with underscores. Same thing for the value, make sure you are putting the language independent name for the value No Raincap and not the descriptive name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to create a dependency between the characteristics. For example:
1) In Z_RAINCAP_DEVICE_ORIENTATION characteristic, create a Preconditions dependency.
2) In this preconditions, use the code: $self.Z_RAINCAP_PIPE_SIZE ne 'No Raincap'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Diego,
With the following precondition statement that works: Z_RAINCAP_PIPE_SIZE <> 'No Raincap'
But I wanted to test with the method explained in the links below (parameters SCREEN_DEP & INVISIBLE), without success on my side.
https://blogs.sap.com/2015/09/03/variant-configuration-another-way-to-hide-characterstic/
Regards
Bruce
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.