cancel
Showing results for 
Search instead for 
Did you mean: 

Variant configuration LO-VC hide characteristic

bruce51
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

a__engfehr
Active Participant
0 Kudos

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.

Diego_Concha
Explorer
0 Kudos

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

bruce51
Explorer
0 Kudos

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/

https://help.sap.com/docs/SAP_ERP_SPV/61155ee7ed304ae8b66b7526555a6a07/0a64b6531de6b64ce10000000a174...

Regards

Bruce