‎2017 May 18 12:53 PM
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...
‎2017 May 18 1: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
‎2017 May 18 1:07 PM
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.
‎2017 May 18 1:13 PM
Hi patrick,
i have commented entire tables line, still i am getting same error for other variables,

‎2017 May 18 1:29 PM
TABLES statement is often required for interface between dynpro and program (and logical database, other usage are obsolete)
‎2017 May 19 9:44 PM
Rajkumar already explained how to search for the variables. Is there any problem with repeating the process with another variable? Or simply using a different name?
‎2017 May 20 8:13 AM
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.
‎2017 May 18 1: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
‎2017 May 18 1:26 PM
‎2017 May 18 1:47 PM
Hi raymond,
thanks for your reply,
as you said i have checked FG = XMLU, i found that some one has declared ZXMLUTOP in LXMLUTOP,
i think might be causing the error,
please see the screen attached,

i am unable to delete ZXMLUTOP from LXMLUTOP, its saying changes to LXMLUTOP are forbidden by sap..
‎2017 May 18 1:55 PM
‎2017 May 19 7:29 AM
Hi raymond,
i have activated the function group XMLU,
i have also checked includes ZXMLUO01, ZXMLUI01,
they did not contained any variables that were declared in ZXMLUTOP..
‎2017 May 19 7: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.