cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exception in function module G_SET_TREE_IMPORT when executing KCH1 /KCH2

former_member294530
Participant
0 Likes
2,072

Hi All

When executing T-Code KCH1 and KCH2 , I am getting the exception as below :

Details of the error message is shown below.

Exception in function module G_SET_TREE_IMPORT

Message no. OH000

Diagnosis

Error when executing a function module.
Function module: G_SET_TREE_IMPORT
Exception number: 0
Program name: SAPLKKHI/SAPLKKHI
Message for the function module: GS/036/01061000020403///

Procedure

Consult SAP to analyze and clear the error.

Please help to resolve the issue asap .

Thank you.

View Entire Topic
Sandra_Rossi
Active Contributor
0 Likes

Based on your answer that the "Exception number" is "0", it means that you didn't code correctly.

Exception number 0 is meaningless, what is important to know is the Exception NAME.

e.g. here an exception number between 1 and 5 means an exception between SET_NOT_FOUND and OTHERS (0 means no exception):

  CALL FUNCTION 'G_SET_TREE_IMPORT'
    EXPORTING
      setid                     = i_setid
    TABLES
      set_values                = lt_values
    EXCEPTIONS
      set_not_found             = 1
      illegal_field_replacement = 2
      illegal_table_replacement = 3
      set_is_damaged            = 4
      OTHERS                    = 5.

Rewrite your code and tell us what is the Exception NAME that you don't understand.

former_member294530
Participant
0 Likes

Hi Sandra ,

Thanks for Quick response . PFB Exception details when exceuting KCH1 / KCH2/KCH3 :

screenshot-2022-12-04-205843.jpg

Exception in function module G_SET_TREE_IMPORT

Message no. OH000

Diagnosis

Error when executing a function module.

Function module: G_SET_TREE_IMPORT

Exception number: 0

Program name: SAPLKKHI/SAPLKKHI

Message for the function module: GS/036/0106MG00MG///

Procedure

Consult SAP to analyze and clear the error.

image.png

former_member294530
Participant
0 Likes

Hi Sandra ,

When we run T-Code KCH1/KCH2 , Executing this FM CALL FUNCTION 'G_SET_TREE_IMPORT'

    EXPORTING
      setid                     = i_setid
    TABLES
      set_values                = lt_values
    EXCEPTIONS
      set_not_found             = 1
      illegal_field_replacement = 2
      illegal_table_replacement = 3
      set_is_damaged            = 4
      OTHERS                    = 5.
Its throwing Exception 4 which is Set_is_damaged .
former_member294530
Participant
0 Likes

Hi sandra.rossi , Kindly please help me to understand the Exception 4 which I am getting and it says 'The Set Hierarchy on the Database Is Faulty' .

Sandra_Rossi
Active Contributor

As I already said, there's no "exception number", so I guess you mean the exception SET_IS_DAMAGED. I hope you understand.

A set can be damaged if one node contains itself for instance. You need to ask the functional team to check the set. To know the exact reason, you need to debug.