05-18-2017 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...
05-18-2017 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
05-18-2017 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.
05-18-2017 1:13 PM
Hi patrick,
i have commented entire tables line, still i am getting same error for other variables,
05-18-2017 1:29 PM
TABLES statement is often required for interface between dynpro and program (and logical database, other usage are obsolete)
05-19-2017 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?
05-20-2017 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.
05-18-2017 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
05-18-2017 1: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?
05-18-2017 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..
05-18-2017 1:55 PM
SAP did it and it's okay. From SE80 click on header (function group) and select activate in context menu. Also feel free to look at includes like ZXMLU[I,O]01 for definitions lost/hidden in the code of some modules.
05-19-2017 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..
05-19-2017 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.