‎2011 Oct 05 12:19 PM
Hi,
I have one issue with this include program RKEB090F. This program is being used in one of the custom program while checking this program we are getting syntax error field P_USEDB is unknown.
When I compared 4.7 and ECC 6 version, the code contains in 4.7 version is
----
FORM INITIALIZATION_EXIT *
----
........ *
----
FORM INITIALIZATION_EXIT.
ENDFORM.
but in ECC 6 the code contains
----
FORM INITIALIZATION_EXIT *
----
........ *
----
FORM INITIALIZATION_EXIT.
if rkb1d-smode = '7'.
CALL FUNCTION 'AS_DATASOURCE_INIT'
EXPORTING
I_REPORT = 'KE30'
I_REPORTTYPE = 'TR'
IMPORTING
E_USE_DATABASE = P_USEDB
E_USE_ARCHIVE = P_USEAR
E_USE_INFOSYS = P_USEAS
E_ARCHOBJ = P_OBJECT
ET_ARCH_SEL = SO_FILES[].
G_RKB2A-OBJECT = P_OBJECT.
G_RKB2A-USEDB = P_USEDB.
G_RKB2A-USEAR = P_USEAR.
G_RKB2A-USEAS = P_USEAS.
G_RKB2A-SO_FILES = SO_FILES[].
PERFORM HANDLE_DATASOURCE USING 'EX'.
endif.
ENDFORM.
due to this code I am getting the syntax errors. How can we know how this code is added.
Please let me know if you get any inputs.
Regards,
Jyothi CH.
‎2011 Oct 05 1:23 PM
Hi Jyothi,
Your field P_USEDB in the includecan be declared in the global include & your custom program may not have that include.
Define the field P_USEDB in your custom program include so that you will not get the error OR add that TOP innclude in your custom Program.
Let me know if this helps
Regards,
Rahul
‎2012 Jun 04 1:59 PM
Hi Guys,
I am having the same syntax error with this include RKEB090F and the Field P_USERB, but instead the program is a SAP Program. I have been trying to archive a table and I keep getting this error for different G* programs. I regenerate one, the other one gives error. I tried regenerating all of them and I still got this error.
Error in the ABAP Application Program
The current ABAP program "SAPLKYP4_UC" had to be terminated because it h
come across a statement that unfortunately cannot be executed
The following syntax error occurred in program "GPC6ZZ9KJ35AEXCXNZFQDJG3
in include "RKEB090F " in
line 17:
"Field "P_USEDB" is unknown. It is neither in one of the specified tabl"
"es nor defined by a "DATA" statement. ."
" "
" "
The include has been created and last changed by:
Created by: "SAP "
Last changed by: "SAP "
Error in the ABAP Application Program
PLEASE HELP
--Thanks in Advance,
Fiyaz
‎2013 Jun 20 5:37 AM
Hi Fiyaz,
I have seen a similar issue before, please check that you have the right program configured in transaction GRR2. These are report writing programs that if not properly configured they will throw the syntax error you are getting.
Cheers
Shaun