Skip to Content

CCUX0000 Additional Check on Configurations: Reading configuration data

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 24, 2006 at 11:08 AM

    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 *****

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 25, 2006 at 10:08 AM

    I replaced VC_I_GET_CONFIGURATION_IBASE with VC_I_GET_CONFIGURATION. Now it works.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.