Skip to Content

variable already been declared error in TOP Include

hello all,

i am developing a project in CMOD for SRVEUSCR( User screen on entry sheet tabstrip)

however when i declared some variables in ZXMLUTOP

getting error as CI_ESSRDB already has been declared.

no where i have declared these variables other than top include.

then why i am getting this error, please suggest a solution.

thanks in advance...

error1.jpg (114.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    May 18, 2017 at 12:25 PM

    Hi Vinay,

    The include ZXMLUTOP is one of the include program in XMLU function group, XMLU contains more number of includes.

    Kindly search the variable CI_ESSRDB globally as shown below.

    Regards

    Rajkumar Narasimman

    Add comment
    10|10000 characters needed characters exceeded

  • May 19, 2017 at 06:37 AM

    When you have an error "data object already declared" but you find only one declaration (with search option "in main program" to look everywhere), then the culprit is often the statement INCLUDE of the same include program occurring twice in the code.

    Add comment
    10|10000 characters needed characters exceeded

  • May 18, 2017 at 12:26 PM

    Seems there was a problem that 'disturbed' the exit function group, could you try (SE80) to reactivate the whole function group (XMLU) Have you included the ZXMLUTOP twice in the FG?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 18, 2017 at 12:07 PM
    -1

    Hello,

    if you open CMOD with your exit SRVEUSCR you can find in the component list a section for includes.

    There is CI_ESSRDB defined. Because of that I think it is decleared already and your tables declaration is not neccessary anymore.

    Nevertheless I dont understand why do you declar CI_ESSRDB with tables?

    CI_ESSRDB is not a DB table.

    Add comment
    10|10000 characters needed characters exceeded

    • If every variable of ZXMLUTOP is declared twice, then it's obvious that ZXMLUTOP has been included twice. So, search all places where there is an INCLUDE zxmlutop, you should find 2 places, one which is done by SAP and one which you added. Remove the one which you added.