Hi Marcelo,
The overall approach seems to be solid. However, I miss appropriate coding to fill Variable ZCOMPCODE in the context of Analysis Authorization object ZCOMP.
You have to process the Customer-exit Variable at processing step 0, i.e. i_step = 0. Only then it will be processed for authorization.
The solution is in my opinion: add processing step 0 to the current coding as follows:
CASE i_vnam.
WHEN 'ZCOMPCODE'.
* Logic to pre-populate the variable screen with values from the custom table
IF i_step = 0 or i_step = 1.
...
Best regards,
Sander