Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Syntax error in standard include RKEB090F in ECC6

Former Member
0 Likes
689

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.

3 REPLIES 3
Read only

Former Member
0 Likes
611

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

Read only

0 Likes
611

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

Read only

0 Likes
611

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