10-24-2006 11:48 AM
Hi,
I have a problem with enhancement CCUX0000 Additional Check on Configurations and function module EXIT_SAPLCUKO_001. I have been struggling with it now a couple of days, and I just don't understand why this enhancement behaves like that.
This enhancement allows you to define your own program for checking a configuration after it has been maintained. The configuration can be checked. If the configuration is inconsistent or incomplete, the exception message INCONSISTENT_CONFIGURATION is triggered. As a result, a popup message "Do You Want to Exit the Incomplete or Inconsistent Configuration?" is displayed.
For some reason, this enhancement is triggered twice.
In the enhancement, I use function module VC_I_GET_CONFIGURATION_IBASE to read the configuration. In the first time, function returns only the original chracteristic, i.e. without the ones entered by the user. In the second time it returns all, i.e. both the original ones and also the characteristic entered by the user.
I have been trying to use other function modules to read the configuration. I have also tried to read the configuration only on the second round, but I cannot use this since in the second run the ecxeption message INCONSISTENT_CONFIGURATION is not working at all. Furthermore, I have been trying to use other user exits.
How can I read the configuration? Is this a bug in SAP standard?
Thanks in advance for your help,
Jarmo
10-24-2006 12:08 PM
HI Jarmo,
Use the following function module
CUXI_GET_SINGLE_CONFIGURATION or CUXI_GET_MULTI_CONFIGURATION
depending on your setup
Example.
SELECT SINGLE cuobj INTO l_root_instance FROM vbap
WHERE vbeln = p_vbeln
AND uepos = space.
CALL FUNCTION 'CUXI_GET_SINGLE_CONFIGURATION'
EXPORTING
i_root_instance = l_root_instance
TABLES
e_tab_instances = it_instances_tab
e_tab_part_of = it_part_of_tab
e_tab_values = it_values_tab
e_tab_var_keys = it_var_keys_tab
EXCEPTIONS
invalid_instance = 1
no_root_instance = 2
instance_is_a_classification = 3
internal_error = 4
no_profile_found = 5
invalid_data = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Reward if heplful *****
10-25-2006 11:08 AM
I replaced VC_I_GET_CONFIGURATION_IBASE with VC_I_GET_CONFIGURATION. Now it works.